lyrics-transcriber 0.35.1__py3-none-any.whl → 0.37.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 (41) hide show
  1. lyrics_transcriber/cli/cli_main.py +2 -0
  2. lyrics_transcriber/core/config.py +1 -1
  3. lyrics_transcriber/core/controller.py +35 -2
  4. lyrics_transcriber/correction/corrector.py +8 -8
  5. lyrics_transcriber/correction/handlers/base.py +4 -0
  6. lyrics_transcriber/correction/handlers/extend_anchor.py +9 -0
  7. lyrics_transcriber/correction/handlers/no_space_punct_match.py +21 -10
  8. lyrics_transcriber/correction/handlers/relaxed_word_count_match.py +21 -11
  9. lyrics_transcriber/correction/handlers/syllables_match.py +4 -4
  10. lyrics_transcriber/correction/handlers/word_count_match.py +19 -10
  11. lyrics_transcriber/frontend/dist/assets/index-BNNbsbVN.js +182 -0
  12. lyrics_transcriber/frontend/dist/index.html +1 -1
  13. lyrics_transcriber/frontend/src/components/AudioPlayer.tsx +18 -7
  14. lyrics_transcriber/frontend/src/components/CorrectionMetrics.tsx +28 -27
  15. lyrics_transcriber/frontend/src/components/DetailsModal.tsx +108 -12
  16. lyrics_transcriber/frontend/src/components/EditModal.tsx +10 -2
  17. lyrics_transcriber/frontend/src/components/LyricsAnalyzer.tsx +145 -141
  18. lyrics_transcriber/frontend/src/components/ReferenceView.tsx +7 -2
  19. lyrics_transcriber/frontend/src/components/ReviewChangesModal.tsx +24 -12
  20. lyrics_transcriber/frontend/src/components/TranscriptionView.tsx +8 -15
  21. lyrics_transcriber/frontend/src/components/WordEditControls.tsx +3 -3
  22. lyrics_transcriber/frontend/src/components/shared/components/HighlightedText.tsx +36 -51
  23. lyrics_transcriber/frontend/src/components/shared/components/SourceSelector.tsx +17 -19
  24. lyrics_transcriber/frontend/src/components/shared/hooks/useWordClick.ts +41 -33
  25. lyrics_transcriber/frontend/src/components/shared/types.ts +6 -6
  26. lyrics_transcriber/frontend/src/components/shared/utils/initializeDataWithIds.tsx +146 -0
  27. lyrics_transcriber/frontend/src/components/shared/utils/referenceLineCalculator.ts +24 -25
  28. lyrics_transcriber/frontend/src/types.ts +24 -23
  29. lyrics_transcriber/frontend/tsconfig.tsbuildinfo +1 -1
  30. lyrics_transcriber/lyrics/base_lyrics_provider.py +1 -0
  31. lyrics_transcriber/lyrics/file_provider.py +89 -0
  32. lyrics_transcriber/output/cdg.py +32 -6
  33. lyrics_transcriber/output/video.py +17 -7
  34. lyrics_transcriber/review/server.py +24 -8
  35. {lyrics_transcriber-0.35.1.dist-info → lyrics_transcriber-0.37.0.dist-info}/METADATA +1 -1
  36. {lyrics_transcriber-0.35.1.dist-info → lyrics_transcriber-0.37.0.dist-info}/RECORD +39 -38
  37. {lyrics_transcriber-0.35.1.dist-info → lyrics_transcriber-0.37.0.dist-info}/entry_points.txt +1 -0
  38. lyrics_transcriber/frontend/dist/assets/index-CQCER5Fo.js +0 -181
  39. lyrics_transcriber/frontend/src/components/shared/utils/newlineCalculator.ts +0 -37
  40. {lyrics_transcriber-0.35.1.dist-info → lyrics_transcriber-0.37.0.dist-info}/LICENSE +0 -0
  41. {lyrics_transcriber-0.35.1.dist-info → lyrics_transcriber-0.37.0.dist-info}/WHEEL +0 -0
@@ -1,181 +0,0 @@
1
- var y0=Object.defineProperty;var v0=(t,r,i)=>r in t?y0(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i;var Ai=(t,r,i)=>v0(t,typeof r!="symbol"?r+"":r,i);function x0(t,r){for(var i=0;i<r.length;i++){const s=r[i];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in t)){const u=Object.getOwnPropertyDescriptor(s,a);u&&Object.defineProperty(t,a,u.get?u:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(a){if(a.ep)return;a.ep=!0;const u=i(a);fetch(a.href,u)}})();function Ac(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var qu={exports:{}},Ni={},Yu={exports:{}},Fe={};/**
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 Qp;function S0(){if(Qp)return Fe;Qp=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),x=Symbol.iterator;function k(z){return z===null||typeof z!="object"?null:(z=x&&z[x]||z["@@iterator"],typeof z=="function"?z:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,S={};function P(z,q,ce){this.props=z,this.context=q,this.refs=S,this.updater=ce||E}P.prototype.isReactComponent={},P.prototype.setState=function(z,q){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,q,"setState")},P.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function $(){}$.prototype=P.prototype;function _(z,q,ce){this.props=z,this.context=q,this.refs=S,this.updater=ce||E}var T=_.prototype=new $;T.constructor=_,C(T,P.prototype),T.isPureReactComponent=!0;var R=Array.isArray,M=Object.prototype.hasOwnProperty,L={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function V(z,q,ce){var X,ne={},te=null,fe=null;if(q!=null)for(X in q.ref!==void 0&&(fe=q.ref),q.key!==void 0&&(te=""+q.key),q)M.call(q,X)&&!A.hasOwnProperty(X)&&(ne[X]=q[X]);var ge=arguments.length-2;if(ge===1)ne.children=ce;else if(1<ge){for(var xe=Array(ge),ye=0;ye<ge;ye++)xe[ye]=arguments[ye+2];ne.children=xe}if(z&&z.defaultProps)for(X in ge=z.defaultProps,ge)ne[X]===void 0&&(ne[X]=ge[X]);return{$$typeof:t,type:z,key:te,ref:fe,props:ne,_owner:L.current}}function ee(z,q){return{$$typeof:t,type:z.type,key:q,ref:z.ref,props:z.props,_owner:z._owner}}function v(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function G(z){var q={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(ce){return q[ce]})}var Z=/\/+/g;function K(z,q){return typeof z=="object"&&z!==null&&z.key!=null?G(""+z.key):q.toString(36)}function O(z,q,ce,X,ne){var te=typeof z;(te==="undefined"||te==="boolean")&&(z=null);var fe=!1;if(z===null)fe=!0;else switch(te){case"string":case"number":fe=!0;break;case"object":switch(z.$$typeof){case t:case r:fe=!0}}if(fe)return fe=z,ne=ne(fe),z=X===""?"."+K(fe,0):X,R(ne)?(ce="",z!=null&&(ce=z.replace(Z,"$&/")+"/"),O(ne,q,ce,"",function(ye){return ye})):ne!=null&&(v(ne)&&(ne=ee(ne,ce+(!ne.key||fe&&fe.key===ne.key?"":(""+ne.key).replace(Z,"$&/")+"/")+z)),q.push(ne)),1;if(fe=0,X=X===""?".":X+":",R(z))for(var ge=0;ge<z.length;ge++){te=z[ge];var xe=X+K(te,ge);fe+=O(te,q,ce,xe,ne)}else if(xe=k(z),typeof xe=="function")for(z=xe.call(z),ge=0;!(te=z.next()).done;)te=te.value,xe=X+K(te,ge++),fe+=O(te,q,ce,xe,ne);else if(te==="object")throw q=String(z),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return fe}function F(z,q,ce){if(z==null)return z;var X=[],ne=0;return O(z,X,"","",function(te){return q.call(ce,te,ne++)}),X}function B(z){if(z._status===-1){var q=z._result;q=q(),q.then(function(ce){(z._status===0||z._status===-1)&&(z._status=1,z._result=ce)},function(ce){(z._status===0||z._status===-1)&&(z._status=2,z._result=ce)}),z._status===-1&&(z._status=0,z._result=q)}if(z._status===1)return z._result.default;throw z._result}var Q={current:null},U={transition:null},Y={ReactCurrentDispatcher:Q,ReactCurrentBatchConfig:U,ReactCurrentOwner:L};function ie(){throw Error("act(...) is not supported in production builds of React.")}return Fe.Children={map:F,forEach:function(z,q,ce){F(z,function(){q.apply(this,arguments)},ce)},count:function(z){var q=0;return F(z,function(){q++}),q},toArray:function(z){return F(z,function(q){return q})||[]},only:function(z){if(!v(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},Fe.Component=P,Fe.Fragment=i,Fe.Profiler=a,Fe.PureComponent=_,Fe.StrictMode=s,Fe.Suspense=m,Fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,Fe.act=ie,Fe.cloneElement=function(z,q,ce){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var X=C({},z.props),ne=z.key,te=z.ref,fe=z._owner;if(q!=null){if(q.ref!==void 0&&(te=q.ref,fe=L.current),q.key!==void 0&&(ne=""+q.key),z.type&&z.type.defaultProps)var ge=z.type.defaultProps;for(xe in q)M.call(q,xe)&&!A.hasOwnProperty(xe)&&(X[xe]=q[xe]===void 0&&ge!==void 0?ge[xe]:q[xe])}var xe=arguments.length-2;if(xe===1)X.children=ce;else if(1<xe){ge=Array(xe);for(var ye=0;ye<xe;ye++)ge[ye]=arguments[ye+2];X.children=ge}return{$$typeof:t,type:z.type,key:ne,ref:te,props:X,_owner:fe}},Fe.createContext=function(z){return z={$$typeof:d,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:u,_context:z},z.Consumer=z},Fe.createElement=V,Fe.createFactory=function(z){var q=V.bind(null,z);return q.type=z,q},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function(z){return{$$typeof:p,render:z}},Fe.isValidElement=v,Fe.lazy=function(z){return{$$typeof:w,_payload:{_status:-1,_result:z},_init:B}},Fe.memo=function(z,q){return{$$typeof:h,type:z,compare:q===void 0?null:q}},Fe.startTransition=function(z){var q=U.transition;U.transition={};try{z()}finally{U.transition=q}},Fe.unstable_act=ie,Fe.useCallback=function(z,q){return Q.current.useCallback(z,q)},Fe.useContext=function(z){return Q.current.useContext(z)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(z){return Q.current.useDeferredValue(z)},Fe.useEffect=function(z,q){return Q.current.useEffect(z,q)},Fe.useId=function(){return Q.current.useId()},Fe.useImperativeHandle=function(z,q,ce){return Q.current.useImperativeHandle(z,q,ce)},Fe.useInsertionEffect=function(z,q){return Q.current.useInsertionEffect(z,q)},Fe.useLayoutEffect=function(z,q){return Q.current.useLayoutEffect(z,q)},Fe.useMemo=function(z,q){return Q.current.useMemo(z,q)},Fe.useReducer=function(z,q,ce){return Q.current.useReducer(z,q,ce)},Fe.useRef=function(z){return Q.current.useRef(z)},Fe.useState=function(z){return Q.current.useState(z)},Fe.useSyncExternalStore=function(z,q,ce){return Q.current.useSyncExternalStore(z,q,ce)},Fe.useTransition=function(){return Q.current.useTransition()},Fe.version="18.3.1",Fe}var qp;function Nc(){return qp||(qp=1,Yu.exports=S0()),Yu.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 Yp;function w0(){if(Yp)return Ni;Yp=1;var t=Nc(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(p,m,h){var w,x={},k=null,E=null;h!==void 0&&(k=""+h),m.key!==void 0&&(k=""+m.key),m.ref!==void 0&&(E=m.ref);for(w in m)s.call(m,w)&&!u.hasOwnProperty(w)&&(x[w]=m[w]);if(p&&p.defaultProps)for(w in m=p.defaultProps,m)x[w]===void 0&&(x[w]=m[w]);return{$$typeof:r,type:p,key:k,ref:E,props:x,_owner:a.current}}return Ni.Fragment=i,Ni.jsx=d,Ni.jsxs=d,Ni}var Xp;function C0(){return Xp||(Xp=1,qu.exports=w0()),qu.exports}var y=C0(),yl={},Xu={exports:{}},sn={},Ju={exports:{}},Zu={};/**
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 Jp;function b0(){return Jp||(Jp=1,function(t){function r(U,Y){var ie=U.length;U.push(Y);e:for(;0<ie;){var z=ie-1>>>1,q=U[z];if(0<a(q,Y))U[z]=Y,U[ie]=q,ie=z;else break e}}function i(U){return U.length===0?null:U[0]}function s(U){if(U.length===0)return null;var Y=U[0],ie=U.pop();if(ie!==Y){U[0]=ie;e:for(var z=0,q=U.length,ce=q>>>1;z<ce;){var X=2*(z+1)-1,ne=U[X],te=X+1,fe=U[te];if(0>a(ne,ie))te<q&&0>a(fe,ne)?(U[z]=fe,U[te]=ie,z=te):(U[z]=ne,U[X]=ie,z=X);else if(te<q&&0>a(fe,ie))U[z]=fe,U[te]=ie,z=te;else break e}}return Y}function a(U,Y){var ie=U.sortIndex-Y.sortIndex;return ie!==0?ie:U.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var d=Date,p=d.now();t.unstable_now=function(){return d.now()-p}}var m=[],h=[],w=1,x=null,k=3,E=!1,C=!1,S=!1,P=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(U){for(var Y=i(h);Y!==null;){if(Y.callback===null)s(h);else if(Y.startTime<=U)s(h),Y.sortIndex=Y.expirationTime,r(m,Y);else break;Y=i(h)}}function R(U){if(S=!1,T(U),!C)if(i(m)!==null)C=!0,B(M);else{var Y=i(h);Y!==null&&Q(R,Y.startTime-U)}}function M(U,Y){C=!1,S&&(S=!1,$(V),V=-1),E=!0;var ie=k;try{for(T(Y),x=i(m);x!==null&&(!(x.expirationTime>Y)||U&&!G());){var z=x.callback;if(typeof z=="function"){x.callback=null,k=x.priorityLevel;var q=z(x.expirationTime<=Y);Y=t.unstable_now(),typeof q=="function"?x.callback=q:x===i(m)&&s(m),T(Y)}else s(m);x=i(m)}if(x!==null)var ce=!0;else{var X=i(h);X!==null&&Q(R,X.startTime-Y),ce=!1}return ce}finally{x=null,k=ie,E=!1}}var L=!1,A=null,V=-1,ee=5,v=-1;function G(){return!(t.unstable_now()-v<ee)}function Z(){if(A!==null){var U=t.unstable_now();v=U;var Y=!0;try{Y=A(!0,U)}finally{Y?K():(L=!1,A=null)}}else L=!1}var K;if(typeof _=="function")K=function(){_(Z)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,F=O.port2;O.port1.onmessage=Z,K=function(){F.postMessage(null)}}else K=function(){P(Z,0)};function B(U){A=U,L||(L=!0,K())}function Q(U,Y){V=P(function(){U(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(U){U.callback=null},t.unstable_continueExecution=function(){C||E||(C=!0,B(M))},t.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<U?Math.floor(1e3/U):5},t.unstable_getCurrentPriorityLevel=function(){return k},t.unstable_getFirstCallbackNode=function(){return i(m)},t.unstable_next=function(U){switch(k){case 1:case 2:case 3:var Y=3;break;default:Y=k}var ie=k;k=Y;try{return U()}finally{k=ie}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(U,Y){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ie=k;k=U;try{return Y()}finally{k=ie}},t.unstable_scheduleCallback=function(U,Y,ie){var z=t.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?z+ie:z):ie=z,U){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=ie+q,U={id:w++,callback:Y,priorityLevel:U,startTime:ie,expirationTime:q,sortIndex:-1},ie>z?(U.sortIndex=ie,r(h,U),i(m)===null&&U===i(h)&&(S?($(V),V=-1):S=!0,Q(R,ie-z))):(U.sortIndex=q,r(m,U),C||E||(C=!0,B(M))),U},t.unstable_shouldYield=G,t.unstable_wrapCallback=function(U){var Y=k;return function(){var ie=k;k=Y;try{return U.apply(this,arguments)}finally{k=ie}}}}(Zu)),Zu}var Zp;function k0(){return Zp||(Zp=1,Ju.exports=b0()),Ju.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 em;function E0(){if(em)return sn;em=1;var t=Nc(),r=k0();function i(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function u(e,n){d(e,n),d(e+"Capture",n)}function d(e,n){for(a[e]=n,e=0;e<n.length;e++)s.add(n[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w={},x={};function k(e){return m.call(x,e)?!0:m.call(w,e)?!1:h.test(e)?x[e]=!0:(w[e]=!0,!1)}function E(e,n,o,l){if(o!==null&&o.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return l?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function C(e,n,o,l){if(n===null||typeof n>"u"||E(e,n,o,l))return!0;if(l)return!1;if(o!==null)switch(o.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function S(e,n,o,l,c,f,g){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=l,this.attributeNamespace=c,this.mustUseProperty=o,this.propertyName=e,this.type=n,this.sanitizeURL=f,this.removeEmptyString=g}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new S(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];P[n]=new S(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new S(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[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){P[e]=new S(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new S(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new S(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new S(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new S(e,5,!1,e.toLowerCase(),null,!1,!1)});var $=/[\-:]([a-z])/g;function _(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace($,_);P[n]=new S(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace($,_);P[n]=new S(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace($,_);P[n]=new S(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new S(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new S(e,1,!1,e.toLowerCase(),null,!0,!0)});function T(e,n,o,l){var c=P.hasOwnProperty(n)?P[n]:null;(c!==null?c.type!==0:l||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(C(n,o,c,l)&&(o=null),l||c===null?k(n)&&(o===null?e.removeAttribute(n):e.setAttribute(n,""+o)):c.mustUseProperty?e[c.propertyName]=o===null?c.type===3?!1:"":o:(n=c.attributeName,l=c.attributeNamespace,o===null?e.removeAttribute(n):(c=c.type,o=c===3||c===4&&o===!0?"":""+o,l?e.setAttributeNS(l,n,o):e.setAttribute(n,o))))}var R=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,M=Symbol.for("react.element"),L=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),ee=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),G=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),Q=Symbol.for("react.offscreen"),U=Symbol.iterator;function Y(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Object.assign,z;function q(e){if(z===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);z=n&&n[1]||""}return`
34
- `+z+e}var ce=!1;function X(e,n){if(!e||ce)return"";ce=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(H){var l=H}Reflect.construct(e,[],n)}else{try{n.call()}catch(H){l=H}e.call(n.prototype)}else{try{throw Error()}catch(H){l=H}e()}}catch(H){if(H&&l&&typeof H.stack=="string"){for(var c=H.stack.split(`
35
- `),f=l.stack.split(`
36
- `),g=c.length-1,I=f.length-1;1<=g&&0<=I&&c[g]!==f[I];)I--;for(;1<=g&&0<=I;g--,I--)if(c[g]!==f[I]){if(g!==1||I!==1)do if(g--,I--,0>I||c[g]!==f[I]){var j=`
37
- `+c[g].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=g&&0<=I);break}}}finally{ce=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?q(e):""}function ne(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return e=X(e.type,!1),e;case 11:return e=X(e.type.render,!1),e;case 1:return e=X(e.type,!0),e;default:return""}}function te(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 A:return"Fragment";case L:return"Portal";case ee:return"Profiler";case V:return"StrictMode";case K:return"Suspense";case O:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G:return(e.displayName||"Context")+".Consumer";case v:return(e._context.displayName||"Context")+".Provider";case Z:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return n=e.displayName||null,n!==null?n:te(e.type)||"Memo";case B:n=e._payload,e=e._init;try{return te(e(n))}catch{}}return null}function fe(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return te(n);case 8:return n===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function ge(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xe(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ye(e){var n=xe(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),l=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,f=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return c.call(this)},set:function(g){l=""+g,f.call(this,g)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Ae(e){e._valueTracker||(e._valueTracker=ye(e))}function Me(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),l="";return e&&(l=xe(e)?e.checked?"true":"false":e.value),e=l,e!==o?(n.setValue(e),!0):!1}function Ne(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 Te(e,n){var o=n.checked;return ie({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function Qe(e,n){var o=n.defaultValue==null?"":n.defaultValue,l=n.checked!=null?n.checked:n.defaultChecked;o=ge(n.value!=null?n.value:o),e._wrapperState={initialChecked:l,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Et(e,n){n=n.checked,n!=null&&T(e,"checked",n,!1)}function De(e,n){Et(e,n);var o=ge(n.value),l=n.type;if(o!=null)l==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?_t(e,n.type,o):n.hasOwnProperty("defaultValue")&&_t(e,n.type,ge(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function rt(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var l=n.type;if(!(l!=="submit"&&l!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function _t(e,n,o){(n!=="number"||Ne(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var lt=Array.isArray;function qe(e,n,o,l){if(e=e.options,n){n={};for(var c=0;c<o.length;c++)n["$"+o[c]]=!0;for(o=0;o<e.length;o++)c=n.hasOwnProperty("$"+e[o].value),e[o].selected!==c&&(e[o].selected=c),c&&l&&(e[o].defaultSelected=!0)}else{for(o=""+ge(o),n=null,c=0;c<e.length;c++){if(e[c].value===o){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}n!==null||e[c].disabled||(n=e[c])}n!==null&&(n.selected=!0)}}function Ce(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return ie({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ut(e,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(i(92));if(lt(o)){if(1<o.length)throw Error(i(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:ge(o)}}function St(e,n){var o=ge(n.value),l=ge(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),l!=null&&(e.defaultValue=""+l)}function se(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function de(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 ke(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?de(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var je,Be=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,l,c){MSApp.execUnsafeLocalFunction(function(){return e(n,o,l,c)})}:e}(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(je=je||document.createElement("div"),je.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=je.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function we(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var _e={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},pt=["Webkit","ms","Moz","O"];Object.keys(_e).forEach(function(e){pt.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),_e[n]=_e[e]})});function tt(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||_e.hasOwnProperty(e)&&_e[e]?(""+n).trim():n+"px"}function Nt(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var l=o.indexOf("--")===0,c=tt(o,n[o],l);o==="float"&&(o="cssFloat"),l?e.setProperty(o,c):e[o]=c}}var Ee=ie({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 Ye(e,n){if(n){if(Ee[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(i(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(i(61))}if(n.style!=null&&typeof n.style!="object")throw Error(i(62))}}function ut(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var hn=null;function Fn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lr=null,mr=null,ot=null;function $t(e){if(e=Si(e)){if(typeof Lr!="function")throw Error(i(280));var n=e.stateNode;n&&(n=_s(n),Lr(e.stateNode,e.type,n))}}function co(e){mr?ot?ot.push(e):ot=[e]:mr=e}function Or(){if(mr){var e=mr,n=ot;if(ot=mr=null,$t(e),n)for(e=0;e<n.length;e++)$t(n[e])}}function gn(e,n){return e(n)}function md(){}var fa=!1;function hd(e,n,o){if(fa)return e(n,o);fa=!0;try{return gn(e,n,o)}finally{fa=!1,(mr!==null||ot!==null)&&(md(),Or())}}function Zo(e,n){var o=e.stateNode;if(o===null)return null;var l=_s(o);if(l===null)return null;o=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,n,typeof o));return o}var pa=!1;if(p)try{var ei={};Object.defineProperty(ei,"passive",{get:function(){pa=!0}}),window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{pa=!1}function kg(e,n,o,l,c,f,g,I,j){var H=Array.prototype.slice.call(arguments,3);try{n.apply(o,H)}catch(oe){this.onError(oe)}}var ti=!1,cs=null,ds=!1,ma=null,Eg={onError:function(e){ti=!0,cs=e}};function Rg(e,n,o,l,c,f,g,I,j){ti=!1,cs=null,kg.apply(Eg,arguments)}function Pg(e,n,o,l,c,f,g,I,j){if(Rg.apply(this,arguments),ti){if(ti){var H=cs;ti=!1,cs=null}else throw Error(i(198));ds||(ds=!0,ma=H)}}function Fr(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,n.flags&4098&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function gd(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function yd(e){if(Fr(e)!==e)throw Error(i(188))}function Tg(e){var n=e.alternate;if(!n){if(n=Fr(e),n===null)throw Error(i(188));return n!==e?null:e}for(var o=e,l=n;;){var c=o.return;if(c===null)break;var f=c.alternate;if(f===null){if(l=c.return,l!==null){o=l;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===o)return yd(c),e;if(f===l)return yd(c),n;f=f.sibling}throw Error(i(188))}if(o.return!==l.return)o=c,l=f;else{for(var g=!1,I=c.child;I;){if(I===o){g=!0,o=c,l=f;break}if(I===l){g=!0,l=c,o=f;break}I=I.sibling}if(!g){for(I=f.child;I;){if(I===o){g=!0,o=f,l=c;break}if(I===l){g=!0,l=f,o=c;break}I=I.sibling}if(!g)throw Error(i(189))}}if(o.alternate!==l)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:n}function vd(e){return e=Tg(e),e!==null?xd(e):null}function xd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=xd(e);if(n!==null)return n;e=e.sibling}return null}var Sd=r.unstable_scheduleCallback,wd=r.unstable_cancelCallback,$g=r.unstable_shouldYield,Ig=r.unstable_requestPaint,Rt=r.unstable_now,Mg=r.unstable_getCurrentPriorityLevel,ha=r.unstable_ImmediatePriority,Cd=r.unstable_UserBlockingPriority,fs=r.unstable_NormalPriority,_g=r.unstable_LowPriority,bd=r.unstable_IdlePriority,ps=null,Bn=null;function zg(e){if(Bn&&typeof Bn.onCommitFiberRoot=="function")try{Bn.onCommitFiberRoot(ps,e,void 0,(e.current.flags&128)===128)}catch{}}var In=Math.clz32?Math.clz32:Ng,jg=Math.log,Ag=Math.LN2;function Ng(e){return e>>>=0,e===0?32:31-(jg(e)/Ag|0)|0}var ms=64,hs=4194304;function ni(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 gs(e,n){var o=e.pendingLanes;if(o===0)return 0;var l=0,c=e.suspendedLanes,f=e.pingedLanes,g=o&268435455;if(g!==0){var I=g&~c;I!==0?l=ni(I):(f&=g,f!==0&&(l=ni(f)))}else g=o&~c,g!==0?l=ni(g):f!==0&&(l=ni(f));if(l===0)return 0;if(n!==0&&n!==l&&!(n&c)&&(c=l&-l,f=n&-n,c>=f||c===16&&(f&4194240)!==0))return n;if(l&4&&(l|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=l;0<n;)o=31-In(n),c=1<<o,l|=e[o],n&=~c;return l}function Lg(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Og(e,n){for(var o=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes;0<f;){var g=31-In(f),I=1<<g,j=c[g];j===-1?(!(I&o)||I&l)&&(c[g]=Lg(I,n)):j<=n&&(e.expiredLanes|=I),f&=~I}}function ga(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function kd(){var e=ms;return ms<<=1,!(ms&4194240)&&(ms=64),e}function ya(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function ri(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-In(n),e[n]=o}function Fg(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var l=e.eventTimes;for(e=e.expirationTimes;0<o;){var c=31-In(o),f=1<<c;n[c]=0,l[c]=-1,e[c]=-1,o&=~f}}function va(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var l=31-In(o),c=1<<l;c&n|e[l]&n&&(e[l]|=n),o&=~c}}var et=0;function Ed(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Rd,xa,Pd,Td,$d,Sa=!1,ys=[],hr=null,gr=null,yr=null,oi=new Map,ii=new Map,vr=[],Bg="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 Id(e,n){switch(e){case"focusin":case"focusout":hr=null;break;case"dragenter":case"dragleave":gr=null;break;case"mouseover":case"mouseout":yr=null;break;case"pointerover":case"pointerout":oi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(n.pointerId)}}function si(e,n,o,l,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:n,domEventName:o,eventSystemFlags:l,nativeEvent:f,targetContainers:[c]},n!==null&&(n=Si(n),n!==null&&xa(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),e)}function Dg(e,n,o,l,c){switch(n){case"focusin":return hr=si(hr,e,n,o,l,c),!0;case"dragenter":return gr=si(gr,e,n,o,l,c),!0;case"mouseover":return yr=si(yr,e,n,o,l,c),!0;case"pointerover":var f=c.pointerId;return oi.set(f,si(oi.get(f)||null,e,n,o,l,c)),!0;case"gotpointercapture":return f=c.pointerId,ii.set(f,si(ii.get(f)||null,e,n,o,l,c)),!0}return!1}function Md(e){var n=Br(e.target);if(n!==null){var o=Fr(n);if(o!==null){if(n=o.tag,n===13){if(n=gd(o),n!==null){e.blockedOn=n,$d(e.priority,function(){Pd(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vs(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=Ca(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var l=new o.constructor(o.type,o);hn=l,o.target.dispatchEvent(l),hn=null}else return n=Si(o),n!==null&&xa(n),e.blockedOn=o,!1;n.shift()}return!0}function _d(e,n,o){vs(e)&&o.delete(n)}function Wg(){Sa=!1,hr!==null&&vs(hr)&&(hr=null),gr!==null&&vs(gr)&&(gr=null),yr!==null&&vs(yr)&&(yr=null),oi.forEach(_d),ii.forEach(_d)}function li(e,n){e.blockedOn===n&&(e.blockedOn=null,Sa||(Sa=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Wg)))}function ai(e){function n(c){return li(c,e)}if(0<ys.length){li(ys[0],e);for(var o=1;o<ys.length;o++){var l=ys[o];l.blockedOn===e&&(l.blockedOn=null)}}for(hr!==null&&li(hr,e),gr!==null&&li(gr,e),yr!==null&&li(yr,e),oi.forEach(n),ii.forEach(n),o=0;o<vr.length;o++)l=vr[o],l.blockedOn===e&&(l.blockedOn=null);for(;0<vr.length&&(o=vr[0],o.blockedOn===null);)Md(o),o.blockedOn===null&&vr.shift()}var fo=R.ReactCurrentBatchConfig,xs=!0;function Ug(e,n,o,l){var c=et,f=fo.transition;fo.transition=null;try{et=1,wa(e,n,o,l)}finally{et=c,fo.transition=f}}function Vg(e,n,o,l){var c=et,f=fo.transition;fo.transition=null;try{et=4,wa(e,n,o,l)}finally{et=c,fo.transition=f}}function wa(e,n,o,l){if(xs){var c=Ca(e,n,o,l);if(c===null)Fa(e,n,l,Ss,o),Id(e,l);else if(Dg(c,e,n,o,l))l.stopPropagation();else if(Id(e,l),n&4&&-1<Bg.indexOf(e)){for(;c!==null;){var f=Si(c);if(f!==null&&Rd(f),f=Ca(e,n,o,l),f===null&&Fa(e,n,l,Ss,o),f===c)break;c=f}c!==null&&l.stopPropagation()}else Fa(e,n,l,null,o)}}var Ss=null;function Ca(e,n,o,l){if(Ss=null,e=Fn(l),e=Br(e),e!==null)if(n=Fr(e),n===null)e=null;else if(o=n.tag,o===13){if(e=gd(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Ss=e,null}function zd(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(Mg()){case ha:return 1;case Cd:return 4;case fs:case _g:return 16;case bd:return 536870912;default:return 16}default:return 16}}var xr=null,ba=null,ws=null;function jd(){if(ws)return ws;var e,n=ba,o=n.length,l,c="value"in xr?xr.value:xr.textContent,f=c.length;for(e=0;e<o&&n[e]===c[e];e++);var g=o-e;for(l=1;l<=g&&n[o-l]===c[f-l];l++);return ws=c.slice(e,1<l?1-l:void 0)}function Cs(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function bs(){return!0}function Ad(){return!1}function an(e){function n(o,l,c,f,g){this._reactName=o,this._targetInst=c,this.type=l,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var I in e)e.hasOwnProperty(I)&&(o=e[I],this[I]=o?o(f):f[I]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?bs:Ad,this.isPropagationStopped=Ad,this}return ie(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=bs)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=bs)},persist:function(){},isPersistent:bs}),n}var po={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ka=an(po),ui=ie({},po,{view:0,detail:0}),Hg=an(ui),Ea,Ra,ci,ks=ie({},ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ta,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!==ci&&(ci&&e.type==="mousemove"?(Ea=e.screenX-ci.screenX,Ra=e.screenY-ci.screenY):Ra=Ea=0,ci=e),Ea)},movementY:function(e){return"movementY"in e?e.movementY:Ra}}),Nd=an(ks),Gg=ie({},ks,{dataTransfer:0}),Kg=an(Gg),Qg=ie({},ui,{relatedTarget:0}),Pa=an(Qg),qg=ie({},po,{animationName:0,elapsedTime:0,pseudoElement:0}),Yg=an(qg),Xg=ie({},po,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jg=an(Xg),Zg=ie({},po,{data:0}),Ld=an(Zg),ey={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ty={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"},ny={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ry(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=ny[e])?!!n[e]:!1}function Ta(){return ry}var oy=ie({},ui,{key:function(e){if(e.key){var n=ey[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Cs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ty[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ta,charCode:function(e){return e.type==="keypress"?Cs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),iy=an(oy),sy=ie({},ks,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Od=an(sy),ly=ie({},ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ta}),ay=an(ly),uy=ie({},po,{propertyName:0,elapsedTime:0,pseudoElement:0}),cy=an(uy),dy=ie({},ks,{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}),fy=an(dy),py=[9,13,27,32],$a=p&&"CompositionEvent"in window,di=null;p&&"documentMode"in document&&(di=document.documentMode);var my=p&&"TextEvent"in window&&!di,Fd=p&&(!$a||di&&8<di&&11>=di),Bd=" ",Dd=!1;function Wd(e,n){switch(e){case"keyup":return py.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ud(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mo=!1;function hy(e,n){switch(e){case"compositionend":return Ud(n);case"keypress":return n.which!==32?null:(Dd=!0,Bd);case"textInput":return e=n.data,e===Bd&&Dd?null:e;default:return null}}function gy(e,n){if(mo)return e==="compositionend"||!$a&&Wd(e,n)?(e=jd(),ws=ba=xr=null,mo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Fd&&n.locale!=="ko"?null:n.data;default:return null}}var yy={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 Vd(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!yy[e.type]:n==="textarea"}function Hd(e,n,o,l){co(l),n=$s(n,"onChange"),0<n.length&&(o=new ka("onChange","change",null,o,l),e.push({event:o,listeners:n}))}var fi=null,pi=null;function vy(e){cf(e,0)}function Es(e){var n=xo(e);if(Me(n))return e}function xy(e,n){if(e==="change")return n}var Gd=!1;if(p){var Ia;if(p){var Ma="oninput"in document;if(!Ma){var Kd=document.createElement("div");Kd.setAttribute("oninput","return;"),Ma=typeof Kd.oninput=="function"}Ia=Ma}else Ia=!1;Gd=Ia&&(!document.documentMode||9<document.documentMode)}function Qd(){fi&&(fi.detachEvent("onpropertychange",qd),pi=fi=null)}function qd(e){if(e.propertyName==="value"&&Es(pi)){var n=[];Hd(n,pi,e,Fn(e)),hd(vy,n)}}function Sy(e,n,o){e==="focusin"?(Qd(),fi=n,pi=o,fi.attachEvent("onpropertychange",qd)):e==="focusout"&&Qd()}function wy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Es(pi)}function Cy(e,n){if(e==="click")return Es(n)}function by(e,n){if(e==="input"||e==="change")return Es(n)}function ky(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Mn=typeof Object.is=="function"?Object.is:ky;function mi(e,n){if(Mn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),l=Object.keys(n);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var c=o[l];if(!m.call(n,c)||!Mn(e[c],n[c]))return!1}return!0}function Yd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xd(e,n){var o=Yd(e);e=0;for(var l;o;){if(o.nodeType===3){if(l=e+o.textContent.length,e<=n&&l>=n)return{node:o,offset:n-e};e=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Yd(o)}}function Jd(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Jd(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Zd(){for(var e=window,n=Ne();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=Ne(e.document)}return n}function _a(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Ey(e){var n=Zd(),o=e.focusedElem,l=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&Jd(o.ownerDocument.documentElement,o)){if(l!==null&&_a(o)){if(n=l.start,e=l.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var c=o.textContent.length,f=Math.min(l.start,c);l=l.end===void 0?f:Math.min(l.end,c),!e.extend&&f>l&&(c=l,l=f,f=c),c=Xd(o,f);var g=Xd(o,l);c&&g&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(n=n.createRange(),n.setStart(c.node,c.offset),e.removeAllRanges(),f>l?(e.addRange(n),e.extend(g.node,g.offset)):(n.setEnd(g.node,g.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)e=n[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ry=p&&"documentMode"in document&&11>=document.documentMode,ho=null,za=null,hi=null,ja=!1;function ef(e,n,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ja||ho==null||ho!==Ne(l)||(l=ho,"selectionStart"in l&&_a(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),hi&&mi(hi,l)||(hi=l,l=$s(za,"onSelect"),0<l.length&&(n=new ka("onSelect","select",null,n,o),e.push({event:n,listeners:l}),n.target=ho)))}function Rs(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var go={animationend:Rs("Animation","AnimationEnd"),animationiteration:Rs("Animation","AnimationIteration"),animationstart:Rs("Animation","AnimationStart"),transitionend:Rs("Transition","TransitionEnd")},Aa={},tf={};p&&(tf=document.createElement("div").style,"AnimationEvent"in window||(delete go.animationend.animation,delete go.animationiteration.animation,delete go.animationstart.animation),"TransitionEvent"in window||delete go.transitionend.transition);function Ps(e){if(Aa[e])return Aa[e];if(!go[e])return e;var n=go[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in tf)return Aa[e]=n[o];return e}var nf=Ps("animationend"),rf=Ps("animationiteration"),of=Ps("animationstart"),sf=Ps("transitionend"),lf=new Map,af="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 Sr(e,n){lf.set(e,n),u(n,[e])}for(var Na=0;Na<af.length;Na++){var La=af[Na],Py=La.toLowerCase(),Ty=La[0].toUpperCase()+La.slice(1);Sr(Py,"on"+Ty)}Sr(nf,"onAnimationEnd"),Sr(rf,"onAnimationIteration"),Sr(of,"onAnimationStart"),Sr("dblclick","onDoubleClick"),Sr("focusin","onFocus"),Sr("focusout","onBlur"),Sr(sf,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gi="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(" "),$y=new Set("cancel close invalid load scroll toggle".split(" ").concat(gi));function uf(e,n,o){var l=e.type||"unknown-event";e.currentTarget=o,Pg(l,n,void 0,e),e.currentTarget=null}function cf(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var l=e[o],c=l.event;l=l.listeners;e:{var f=void 0;if(n)for(var g=l.length-1;0<=g;g--){var I=l[g],j=I.instance,H=I.currentTarget;if(I=I.listener,j!==f&&c.isPropagationStopped())break e;uf(c,I,H),f=j}else for(g=0;g<l.length;g++){if(I=l[g],j=I.instance,H=I.currentTarget,I=I.listener,j!==f&&c.isPropagationStopped())break e;uf(c,I,H),f=j}}}if(ds)throw e=ma,ds=!1,ma=null,e}function ct(e,n){var o=n[Ha];o===void 0&&(o=n[Ha]=new Set);var l=e+"__bubble";o.has(l)||(df(n,e,2,!1),o.add(l))}function Oa(e,n,o){var l=0;n&&(l|=4),df(o,e,l,n)}var Ts="_reactListening"+Math.random().toString(36).slice(2);function yi(e){if(!e[Ts]){e[Ts]=!0,s.forEach(function(o){o!=="selectionchange"&&($y.has(o)||Oa(o,!1,e),Oa(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ts]||(n[Ts]=!0,Oa("selectionchange",!1,n))}}function df(e,n,o,l){switch(zd(n)){case 1:var c=Ug;break;case 4:c=Vg;break;default:c=wa}o=c.bind(null,n,o,e),c=void 0,!pa||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(n,o,{capture:!0,passive:c}):e.addEventListener(n,o,!0):c!==void 0?e.addEventListener(n,o,{passive:c}):e.addEventListener(n,o,!1)}function Fa(e,n,o,l,c){var f=l;if(!(n&1)&&!(n&2)&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var I=l.stateNode.containerInfo;if(I===c||I.nodeType===8&&I.parentNode===c)break;if(g===4)for(g=l.return;g!==null;){var j=g.tag;if((j===3||j===4)&&(j=g.stateNode.containerInfo,j===c||j.nodeType===8&&j.parentNode===c))return;g=g.return}for(;I!==null;){if(g=Br(I),g===null)return;if(j=g.tag,j===5||j===6){l=f=g;continue e}I=I.parentNode}}l=l.return}hd(function(){var H=f,oe=Fn(o),le=[];e:{var re=lf.get(e);if(re!==void 0){var pe=ka,ve=e;switch(e){case"keypress":if(Cs(o)===0)break e;case"keydown":case"keyup":pe=iy;break;case"focusin":ve="focus",pe=Pa;break;case"focusout":ve="blur",pe=Pa;break;case"beforeblur":case"afterblur":pe=Pa;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":pe=Nd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=Kg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=ay;break;case nf:case rf:case of:pe=Yg;break;case sf:pe=cy;break;case"scroll":pe=Hg;break;case"wheel":pe=fy;break;case"copy":case"cut":case"paste":pe=Jg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=Od}var Se=(n&4)!==0,Pt=!Se&&e==="scroll",D=Se?re!==null?re+"Capture":null:re;Se=[];for(var N=H,W;N!==null;){W=N;var ae=W.stateNode;if(W.tag===5&&ae!==null&&(W=ae,D!==null&&(ae=Zo(N,D),ae!=null&&Se.push(vi(N,ae,W)))),Pt)break;N=N.return}0<Se.length&&(re=new pe(re,ve,null,o,oe),le.push({event:re,listeners:Se}))}}if(!(n&7)){e:{if(re=e==="mouseover"||e==="pointerover",pe=e==="mouseout"||e==="pointerout",re&&o!==hn&&(ve=o.relatedTarget||o.fromElement)&&(Br(ve)||ve[er]))break e;if((pe||re)&&(re=oe.window===oe?oe:(re=oe.ownerDocument)?re.defaultView||re.parentWindow:window,pe?(ve=o.relatedTarget||o.toElement,pe=H,ve=ve?Br(ve):null,ve!==null&&(Pt=Fr(ve),ve!==Pt||ve.tag!==5&&ve.tag!==6)&&(ve=null)):(pe=null,ve=H),pe!==ve)){if(Se=Nd,ae="onMouseLeave",D="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(Se=Od,ae="onPointerLeave",D="onPointerEnter",N="pointer"),Pt=pe==null?re:xo(pe),W=ve==null?re:xo(ve),re=new Se(ae,N+"leave",pe,o,oe),re.target=Pt,re.relatedTarget=W,ae=null,Br(oe)===H&&(Se=new Se(D,N+"enter",ve,o,oe),Se.target=W,Se.relatedTarget=Pt,ae=Se),Pt=ae,pe&&ve)t:{for(Se=pe,D=ve,N=0,W=Se;W;W=yo(W))N++;for(W=0,ae=D;ae;ae=yo(ae))W++;for(;0<N-W;)Se=yo(Se),N--;for(;0<W-N;)D=yo(D),W--;for(;N--;){if(Se===D||D!==null&&Se===D.alternate)break t;Se=yo(Se),D=yo(D)}Se=null}else Se=null;pe!==null&&ff(le,re,pe,Se,!1),ve!==null&&Pt!==null&&ff(le,Pt,ve,Se,!0)}}e:{if(re=H?xo(H):window,pe=re.nodeName&&re.nodeName.toLowerCase(),pe==="select"||pe==="input"&&re.type==="file")var be=xy;else if(Vd(re))if(Gd)be=by;else{be=wy;var $e=Sy}else(pe=re.nodeName)&&pe.toLowerCase()==="input"&&(re.type==="checkbox"||re.type==="radio")&&(be=Cy);if(be&&(be=be(e,H))){Hd(le,be,o,oe);break e}$e&&$e(e,re,H),e==="focusout"&&($e=re._wrapperState)&&$e.controlled&&re.type==="number"&&_t(re,"number",re.value)}switch($e=H?xo(H):window,e){case"focusin":(Vd($e)||$e.contentEditable==="true")&&(ho=$e,za=H,hi=null);break;case"focusout":hi=za=ho=null;break;case"mousedown":ja=!0;break;case"contextmenu":case"mouseup":case"dragend":ja=!1,ef(le,o,oe);break;case"selectionchange":if(Ry)break;case"keydown":case"keyup":ef(le,o,oe)}var Ie;if($a)e:{switch(e){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else mo?Wd(e,o)&&(ze="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(ze="onCompositionStart");ze&&(Fd&&o.locale!=="ko"&&(mo||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&mo&&(Ie=jd()):(xr=oe,ba="value"in xr?xr.value:xr.textContent,mo=!0)),$e=$s(H,ze),0<$e.length&&(ze=new Ld(ze,e,null,o,oe),le.push({event:ze,listeners:$e}),Ie?ze.data=Ie:(Ie=Ud(o),Ie!==null&&(ze.data=Ie)))),(Ie=my?hy(e,o):gy(e,o))&&(H=$s(H,"onBeforeInput"),0<H.length&&(oe=new Ld("onBeforeInput","beforeinput",null,o,oe),le.push({event:oe,listeners:H}),oe.data=Ie))}cf(le,n)})}function vi(e,n,o){return{instance:e,listener:n,currentTarget:o}}function $s(e,n){for(var o=n+"Capture",l=[];e!==null;){var c=e,f=c.stateNode;c.tag===5&&f!==null&&(c=f,f=Zo(e,o),f!=null&&l.unshift(vi(e,f,c)),f=Zo(e,n),f!=null&&l.push(vi(e,f,c))),e=e.return}return l}function yo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ff(e,n,o,l,c){for(var f=n._reactName,g=[];o!==null&&o!==l;){var I=o,j=I.alternate,H=I.stateNode;if(j!==null&&j===l)break;I.tag===5&&H!==null&&(I=H,c?(j=Zo(o,f),j!=null&&g.unshift(vi(o,j,I))):c||(j=Zo(o,f),j!=null&&g.push(vi(o,j,I)))),o=o.return}g.length!==0&&e.push({event:n,listeners:g})}var Iy=/\r\n?/g,My=/\u0000|\uFFFD/g;function pf(e){return(typeof e=="string"?e:""+e).replace(Iy,`
38
- `).replace(My,"")}function Is(e,n,o){if(n=pf(n),pf(e)!==n&&o)throw Error(i(425))}function Ms(){}var Ba=null,Da=null;function Wa(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Ua=typeof setTimeout=="function"?setTimeout:void 0,_y=typeof clearTimeout=="function"?clearTimeout:void 0,mf=typeof Promise=="function"?Promise:void 0,zy=typeof queueMicrotask=="function"?queueMicrotask:typeof mf<"u"?function(e){return mf.resolve(null).then(e).catch(jy)}:Ua;function jy(e){setTimeout(function(){throw e})}function Va(e,n){var o=n,l=0;do{var c=o.nextSibling;if(e.removeChild(o),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(l===0){e.removeChild(c),ai(n);return}l--}else o!=="$"&&o!=="$?"&&o!=="$!"||l++;o=c}while(o);ai(n)}function wr(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function hf(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}var vo=Math.random().toString(36).slice(2),Dn="__reactFiber$"+vo,xi="__reactProps$"+vo,er="__reactContainer$"+vo,Ha="__reactEvents$"+vo,Ay="__reactListeners$"+vo,Ny="__reactHandles$"+vo;function Br(e){var n=e[Dn];if(n)return n;for(var o=e.parentNode;o;){if(n=o[er]||o[Dn]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=hf(e);e!==null;){if(o=e[Dn])return o;e=hf(e)}return n}e=o,o=e.parentNode}return null}function Si(e){return e=e[Dn]||e[er],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function xo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function _s(e){return e[xi]||null}var Ga=[],So=-1;function Cr(e){return{current:e}}function dt(e){0>So||(e.current=Ga[So],Ga[So]=null,So--)}function at(e,n){So++,Ga[So]=e.current,e.current=n}var br={},Vt=Cr(br),en=Cr(!1),Dr=br;function wo(e,n){var o=e.type.contextTypes;if(!o)return br;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===n)return l.__reactInternalMemoizedMaskedChildContext;var c={},f;for(f in o)c[f]=n[f];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=c),c}function tn(e){return e=e.childContextTypes,e!=null}function zs(){dt(en),dt(Vt)}function gf(e,n,o){if(Vt.current!==br)throw Error(i(168));at(Vt,n),at(en,o)}function yf(e,n,o){var l=e.stateNode;if(n=n.childContextTypes,typeof l.getChildContext!="function")return o;l=l.getChildContext();for(var c in l)if(!(c in n))throw Error(i(108,fe(e)||"Unknown",c));return ie({},o,l)}function js(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||br,Dr=Vt.current,at(Vt,e),at(en,en.current),!0}function vf(e,n,o){var l=e.stateNode;if(!l)throw Error(i(169));o?(e=yf(e,n,Dr),l.__reactInternalMemoizedMergedChildContext=e,dt(en),dt(Vt),at(Vt,e)):dt(en),at(en,o)}var tr=null,As=!1,Ka=!1;function xf(e){tr===null?tr=[e]:tr.push(e)}function Ly(e){As=!0,xf(e)}function kr(){if(!Ka&&tr!==null){Ka=!0;var e=0,n=et;try{var o=tr;for(et=1;e<o.length;e++){var l=o[e];do l=l(!0);while(l!==null)}tr=null,As=!1}catch(c){throw tr!==null&&(tr=tr.slice(e+1)),Sd(ha,kr),c}finally{et=n,Ka=!1}}return null}var Co=[],bo=0,Ns=null,Ls=0,yn=[],vn=0,Wr=null,nr=1,rr="";function Ur(e,n){Co[bo++]=Ls,Co[bo++]=Ns,Ns=e,Ls=n}function Sf(e,n,o){yn[vn++]=nr,yn[vn++]=rr,yn[vn++]=Wr,Wr=e;var l=nr;e=rr;var c=32-In(l)-1;l&=~(1<<c),o+=1;var f=32-In(n)+c;if(30<f){var g=c-c%5;f=(l&(1<<g)-1).toString(32),l>>=g,c-=g,nr=1<<32-In(n)+c|o<<c|l,rr=f+e}else nr=1<<f|o<<c|l,rr=e}function Qa(e){e.return!==null&&(Ur(e,1),Sf(e,1,0))}function qa(e){for(;e===Ns;)Ns=Co[--bo],Co[bo]=null,Ls=Co[--bo],Co[bo]=null;for(;e===Wr;)Wr=yn[--vn],yn[vn]=null,rr=yn[--vn],yn[vn]=null,nr=yn[--vn],yn[vn]=null}var un=null,cn=null,mt=!1,_n=null;function wf(e,n){var o=Cn(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=e,n=e.deletions,n===null?(e.deletions=[o],e.flags|=16):n.push(o)}function Cf(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,un=e,cn=wr(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,un=e,cn=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=Wr!==null?{id:nr,overflow:rr}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Cn(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,un=e,cn=null,!0):!1;default:return!1}}function Ya(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Xa(e){if(mt){var n=cn;if(n){var o=n;if(!Cf(e,n)){if(Ya(e))throw Error(i(418));n=wr(o.nextSibling);var l=un;n&&Cf(e,n)?wf(l,o):(e.flags=e.flags&-4097|2,mt=!1,un=e)}}else{if(Ya(e))throw Error(i(418));e.flags=e.flags&-4097|2,mt=!1,un=e}}}function bf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;un=e}function Os(e){if(e!==un)return!1;if(!mt)return bf(e),mt=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Wa(e.type,e.memoizedProps)),n&&(n=cn)){if(Ya(e))throw kf(),Error(i(418));for(;n;)wf(e,n),n=wr(n.nextSibling)}if(bf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(n===0){cn=wr(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}cn=null}}else cn=un?wr(e.stateNode.nextSibling):null;return!0}function kf(){for(var e=cn;e;)e=wr(e.nextSibling)}function ko(){cn=un=null,mt=!1}function Ja(e){_n===null?_n=[e]:_n.push(e)}var Oy=R.ReactCurrentBatchConfig;function wi(e,n,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 l=o.stateNode}if(!l)throw Error(i(147,e));var c=l,f=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===f?n.ref:(n=function(g){var I=c.refs;g===null?delete I[f]:I[f]=g},n._stringRef=f,n)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function Fs(e,n){throw e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Ef(e){var n=e._init;return n(e._payload)}function Rf(e){function n(D,N){if(e){var W=D.deletions;W===null?(D.deletions=[N],D.flags|=16):W.push(N)}}function o(D,N){if(!e)return null;for(;N!==null;)n(D,N),N=N.sibling;return null}function l(D,N){for(D=new Map;N!==null;)N.key!==null?D.set(N.key,N):D.set(N.index,N),N=N.sibling;return D}function c(D,N){return D=_r(D,N),D.index=0,D.sibling=null,D}function f(D,N,W){return D.index=W,e?(W=D.alternate,W!==null?(W=W.index,W<N?(D.flags|=2,N):W):(D.flags|=2,N)):(D.flags|=1048576,N)}function g(D){return e&&D.alternate===null&&(D.flags|=2),D}function I(D,N,W,ae){return N===null||N.tag!==6?(N=Uu(W,D.mode,ae),N.return=D,N):(N=c(N,W),N.return=D,N)}function j(D,N,W,ae){var be=W.type;return be===A?oe(D,N,W.props.children,ae,W.key):N!==null&&(N.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===B&&Ef(be)===N.type)?(ae=c(N,W.props),ae.ref=wi(D,N,W),ae.return=D,ae):(ae=ul(W.type,W.key,W.props,null,D.mode,ae),ae.ref=wi(D,N,W),ae.return=D,ae)}function H(D,N,W,ae){return N===null||N.tag!==4||N.stateNode.containerInfo!==W.containerInfo||N.stateNode.implementation!==W.implementation?(N=Vu(W,D.mode,ae),N.return=D,N):(N=c(N,W.children||[]),N.return=D,N)}function oe(D,N,W,ae,be){return N===null||N.tag!==7?(N=Xr(W,D.mode,ae,be),N.return=D,N):(N=c(N,W),N.return=D,N)}function le(D,N,W){if(typeof N=="string"&&N!==""||typeof N=="number")return N=Uu(""+N,D.mode,W),N.return=D,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case M:return W=ul(N.type,N.key,N.props,null,D.mode,W),W.ref=wi(D,null,N),W.return=D,W;case L:return N=Vu(N,D.mode,W),N.return=D,N;case B:var ae=N._init;return le(D,ae(N._payload),W)}if(lt(N)||Y(N))return N=Xr(N,D.mode,W,null),N.return=D,N;Fs(D,N)}return null}function re(D,N,W,ae){var be=N!==null?N.key:null;if(typeof W=="string"&&W!==""||typeof W=="number")return be!==null?null:I(D,N,""+W,ae);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case M:return W.key===be?j(D,N,W,ae):null;case L:return W.key===be?H(D,N,W,ae):null;case B:return be=W._init,re(D,N,be(W._payload),ae)}if(lt(W)||Y(W))return be!==null?null:oe(D,N,W,ae,null);Fs(D,W)}return null}function pe(D,N,W,ae,be){if(typeof ae=="string"&&ae!==""||typeof ae=="number")return D=D.get(W)||null,I(N,D,""+ae,be);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case M:return D=D.get(ae.key===null?W:ae.key)||null,j(N,D,ae,be);case L:return D=D.get(ae.key===null?W:ae.key)||null,H(N,D,ae,be);case B:var $e=ae._init;return pe(D,N,W,$e(ae._payload),be)}if(lt(ae)||Y(ae))return D=D.get(W)||null,oe(N,D,ae,be,null);Fs(N,ae)}return null}function ve(D,N,W,ae){for(var be=null,$e=null,Ie=N,ze=N=0,Ft=null;Ie!==null&&ze<W.length;ze++){Ie.index>ze?(Ft=Ie,Ie=null):Ft=Ie.sibling;var Ke=re(D,Ie,W[ze],ae);if(Ke===null){Ie===null&&(Ie=Ft);break}e&&Ie&&Ke.alternate===null&&n(D,Ie),N=f(Ke,N,ze),$e===null?be=Ke:$e.sibling=Ke,$e=Ke,Ie=Ft}if(ze===W.length)return o(D,Ie),mt&&Ur(D,ze),be;if(Ie===null){for(;ze<W.length;ze++)Ie=le(D,W[ze],ae),Ie!==null&&(N=f(Ie,N,ze),$e===null?be=Ie:$e.sibling=Ie,$e=Ie);return mt&&Ur(D,ze),be}for(Ie=l(D,Ie);ze<W.length;ze++)Ft=pe(Ie,D,ze,W[ze],ae),Ft!==null&&(e&&Ft.alternate!==null&&Ie.delete(Ft.key===null?ze:Ft.key),N=f(Ft,N,ze),$e===null?be=Ft:$e.sibling=Ft,$e=Ft);return e&&Ie.forEach(function(zr){return n(D,zr)}),mt&&Ur(D,ze),be}function Se(D,N,W,ae){var be=Y(W);if(typeof be!="function")throw Error(i(150));if(W=be.call(W),W==null)throw Error(i(151));for(var $e=be=null,Ie=N,ze=N=0,Ft=null,Ke=W.next();Ie!==null&&!Ke.done;ze++,Ke=W.next()){Ie.index>ze?(Ft=Ie,Ie=null):Ft=Ie.sibling;var zr=re(D,Ie,Ke.value,ae);if(zr===null){Ie===null&&(Ie=Ft);break}e&&Ie&&zr.alternate===null&&n(D,Ie),N=f(zr,N,ze),$e===null?be=zr:$e.sibling=zr,$e=zr,Ie=Ft}if(Ke.done)return o(D,Ie),mt&&Ur(D,ze),be;if(Ie===null){for(;!Ke.done;ze++,Ke=W.next())Ke=le(D,Ke.value,ae),Ke!==null&&(N=f(Ke,N,ze),$e===null?be=Ke:$e.sibling=Ke,$e=Ke);return mt&&Ur(D,ze),be}for(Ie=l(D,Ie);!Ke.done;ze++,Ke=W.next())Ke=pe(Ie,D,ze,Ke.value,ae),Ke!==null&&(e&&Ke.alternate!==null&&Ie.delete(Ke.key===null?ze:Ke.key),N=f(Ke,N,ze),$e===null?be=Ke:$e.sibling=Ke,$e=Ke);return e&&Ie.forEach(function(g0){return n(D,g0)}),mt&&Ur(D,ze),be}function Pt(D,N,W,ae){if(typeof W=="object"&&W!==null&&W.type===A&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case M:e:{for(var be=W.key,$e=N;$e!==null;){if($e.key===be){if(be=W.type,be===A){if($e.tag===7){o(D,$e.sibling),N=c($e,W.props.children),N.return=D,D=N;break e}}else if($e.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===B&&Ef(be)===$e.type){o(D,$e.sibling),N=c($e,W.props),N.ref=wi(D,$e,W),N.return=D,D=N;break e}o(D,$e);break}else n(D,$e);$e=$e.sibling}W.type===A?(N=Xr(W.props.children,D.mode,ae,W.key),N.return=D,D=N):(ae=ul(W.type,W.key,W.props,null,D.mode,ae),ae.ref=wi(D,N,W),ae.return=D,D=ae)}return g(D);case L:e:{for($e=W.key;N!==null;){if(N.key===$e)if(N.tag===4&&N.stateNode.containerInfo===W.containerInfo&&N.stateNode.implementation===W.implementation){o(D,N.sibling),N=c(N,W.children||[]),N.return=D,D=N;break e}else{o(D,N);break}else n(D,N);N=N.sibling}N=Vu(W,D.mode,ae),N.return=D,D=N}return g(D);case B:return $e=W._init,Pt(D,N,$e(W._payload),ae)}if(lt(W))return ve(D,N,W,ae);if(Y(W))return Se(D,N,W,ae);Fs(D,W)}return typeof W=="string"&&W!==""||typeof W=="number"?(W=""+W,N!==null&&N.tag===6?(o(D,N.sibling),N=c(N,W),N.return=D,D=N):(o(D,N),N=Uu(W,D.mode,ae),N.return=D,D=N),g(D)):o(D,N)}return Pt}var Eo=Rf(!0),Pf=Rf(!1),Bs=Cr(null),Ds=null,Ro=null,Za=null;function eu(){Za=Ro=Ds=null}function tu(e){var n=Bs.current;dt(Bs),e._currentValue=n}function nu(e,n,o){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===o)break;e=e.return}}function Po(e,n){Ds=e,Za=Ro=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(nn=!0),e.firstContext=null)}function xn(e){var n=e._currentValue;if(Za!==e)if(e={context:e,memoizedValue:n,next:null},Ro===null){if(Ds===null)throw Error(i(308));Ro=e,Ds.dependencies={lanes:0,firstContext:e}}else Ro=Ro.next=e;return n}var Vr=null;function ru(e){Vr===null?Vr=[e]:Vr.push(e)}function Tf(e,n,o,l){var c=n.interleaved;return c===null?(o.next=o,ru(n)):(o.next=c.next,c.next=o),n.interleaved=o,or(e,l)}function or(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var Er=!1;function ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $f(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ir(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Rr(e,n,o){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,Ge&2){var c=l.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),l.pending=n,or(e,o)}return c=l.interleaved,c===null?(n.next=n,ru(l)):(n.next=c.next,c.next=n),l.interleaved=n,or(e,o)}function Ws(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var l=n.lanes;l&=e.pendingLanes,o|=l,n.lanes=o,va(e,o)}}function If(e,n){var o=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var c=null,f=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};f===null?c=f=g:f=f.next=g,o=o.next}while(o!==null);f===null?c=f=n:f=f.next=n}else c=f=n;o={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:l.shared,effects:l.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function Us(e,n,o,l){var c=e.updateQueue;Er=!1;var f=c.firstBaseUpdate,g=c.lastBaseUpdate,I=c.shared.pending;if(I!==null){c.shared.pending=null;var j=I,H=j.next;j.next=null,g===null?f=H:g.next=H,g=j;var oe=e.alternate;oe!==null&&(oe=oe.updateQueue,I=oe.lastBaseUpdate,I!==g&&(I===null?oe.firstBaseUpdate=H:I.next=H,oe.lastBaseUpdate=j))}if(f!==null){var le=c.baseState;g=0,oe=H=j=null,I=f;do{var re=I.lane,pe=I.eventTime;if((l&re)===re){oe!==null&&(oe=oe.next={eventTime:pe,lane:0,tag:I.tag,payload:I.payload,callback:I.callback,next:null});e:{var ve=e,Se=I;switch(re=n,pe=o,Se.tag){case 1:if(ve=Se.payload,typeof ve=="function"){le=ve.call(pe,le,re);break e}le=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Se.payload,re=typeof ve=="function"?ve.call(pe,le,re):ve,re==null)break e;le=ie({},le,re);break e;case 2:Er=!0}}I.callback!==null&&I.lane!==0&&(e.flags|=64,re=c.effects,re===null?c.effects=[I]:re.push(I))}else pe={eventTime:pe,lane:re,tag:I.tag,payload:I.payload,callback:I.callback,next:null},oe===null?(H=oe=pe,j=le):oe=oe.next=pe,g|=re;if(I=I.next,I===null){if(I=c.shared.pending,I===null)break;re=I,I=re.next,re.next=null,c.lastBaseUpdate=re,c.shared.pending=null}}while(!0);if(oe===null&&(j=le),c.baseState=j,c.firstBaseUpdate=H,c.lastBaseUpdate=oe,n=c.shared.interleaved,n!==null){c=n;do g|=c.lane,c=c.next;while(c!==n)}else f===null&&(c.shared.lanes=0);Kr|=g,e.lanes=g,e.memoizedState=le}}function Mf(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var l=e[n],c=l.callback;if(c!==null){if(l.callback=null,l=o,typeof c!="function")throw Error(i(191,c));c.call(l)}}}var Ci={},Wn=Cr(Ci),bi=Cr(Ci),ki=Cr(Ci);function Hr(e){if(e===Ci)throw Error(i(174));return e}function iu(e,n){switch(at(ki,n),at(bi,e),at(Wn,Ci),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ke(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=ke(n,e)}dt(Wn),at(Wn,n)}function To(){dt(Wn),dt(bi),dt(ki)}function _f(e){Hr(ki.current);var n=Hr(Wn.current),o=ke(n,e.type);n!==o&&(at(bi,e),at(Wn,o))}function su(e){bi.current===e&&(dt(Wn),dt(bi))}var yt=Cr(0);function Vs(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var lu=[];function au(){for(var e=0;e<lu.length;e++)lu[e]._workInProgressVersionPrimary=null;lu.length=0}var Hs=R.ReactCurrentDispatcher,uu=R.ReactCurrentBatchConfig,Gr=0,vt=null,zt=null,Lt=null,Gs=!1,Ei=!1,Ri=0,Fy=0;function Ht(){throw Error(i(321))}function cu(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!Mn(e[o],n[o]))return!1;return!0}function du(e,n,o,l,c,f){if(Gr=f,vt=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Hs.current=e===null||e.memoizedState===null?Uy:Vy,e=o(l,c),Ei){f=0;do{if(Ei=!1,Ri=0,25<=f)throw Error(i(301));f+=1,Lt=zt=null,n.updateQueue=null,Hs.current=Hy,e=o(l,c)}while(Ei)}if(Hs.current=qs,n=zt!==null&&zt.next!==null,Gr=0,Lt=zt=vt=null,Gs=!1,n)throw Error(i(300));return e}function fu(){var e=Ri!==0;return Ri=0,e}function Un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lt===null?vt.memoizedState=Lt=e:Lt=Lt.next=e,Lt}function Sn(){if(zt===null){var e=vt.alternate;e=e!==null?e.memoizedState:null}else e=zt.next;var n=Lt===null?vt.memoizedState:Lt.next;if(n!==null)Lt=n,zt=e;else{if(e===null)throw Error(i(310));zt=e,e={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Lt===null?vt.memoizedState=Lt=e:Lt=Lt.next=e}return Lt}function Pi(e,n){return typeof n=="function"?n(e):n}function pu(e){var n=Sn(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var l=zt,c=l.baseQueue,f=o.pending;if(f!==null){if(c!==null){var g=c.next;c.next=f.next,f.next=g}l.baseQueue=c=f,o.pending=null}if(c!==null){f=c.next,l=l.baseState;var I=g=null,j=null,H=f;do{var oe=H.lane;if((Gr&oe)===oe)j!==null&&(j=j.next={lane:0,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),l=H.hasEagerState?H.eagerState:e(l,H.action);else{var le={lane:oe,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null};j===null?(I=j=le,g=l):j=j.next=le,vt.lanes|=oe,Kr|=oe}H=H.next}while(H!==null&&H!==f);j===null?g=l:j.next=I,Mn(l,n.memoizedState)||(nn=!0),n.memoizedState=l,n.baseState=g,n.baseQueue=j,o.lastRenderedState=l}if(e=o.interleaved,e!==null){c=e;do f=c.lane,vt.lanes|=f,Kr|=f,c=c.next;while(c!==e)}else c===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function mu(e){var n=Sn(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var l=o.dispatch,c=o.pending,f=n.memoizedState;if(c!==null){o.pending=null;var g=c=c.next;do f=e(f,g.action),g=g.next;while(g!==c);Mn(f,n.memoizedState)||(nn=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),o.lastRenderedState=f}return[f,l]}function zf(){}function jf(e,n){var o=vt,l=Sn(),c=n(),f=!Mn(l.memoizedState,c);if(f&&(l.memoizedState=c,nn=!0),l=l.queue,hu(Lf.bind(null,o,l,e),[e]),l.getSnapshot!==n||f||Lt!==null&&Lt.memoizedState.tag&1){if(o.flags|=2048,Ti(9,Nf.bind(null,o,l,c,n),void 0,null),Ot===null)throw Error(i(349));Gr&30||Af(o,n,c)}return c}function Af(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=vt.updateQueue,n===null?(n={lastEffect:null,stores:null},vt.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function Nf(e,n,o,l){n.value=o,n.getSnapshot=l,Of(n)&&Ff(e)}function Lf(e,n,o){return o(function(){Of(n)&&Ff(e)})}function Of(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!Mn(e,o)}catch{return!0}}function Ff(e){var n=or(e,1);n!==null&&Nn(n,e,1,-1)}function Bf(e){var n=Un();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:e},n.queue=e,e=e.dispatch=Wy.bind(null,vt,e),[n.memoizedState,e]}function Ti(e,n,o,l){return e={tag:e,create:n,destroy:o,deps:l,next:null},n=vt.updateQueue,n===null?(n={lastEffect:null,stores:null},vt.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(l=o.next,o.next=e,e.next=l,n.lastEffect=e)),e}function Df(){return Sn().memoizedState}function Ks(e,n,o,l){var c=Un();vt.flags|=e,c.memoizedState=Ti(1|n,o,void 0,l===void 0?null:l)}function Qs(e,n,o,l){var c=Sn();l=l===void 0?null:l;var f=void 0;if(zt!==null){var g=zt.memoizedState;if(f=g.destroy,l!==null&&cu(l,g.deps)){c.memoizedState=Ti(n,o,f,l);return}}vt.flags|=e,c.memoizedState=Ti(1|n,o,f,l)}function Wf(e,n){return Ks(8390656,8,e,n)}function hu(e,n){return Qs(2048,8,e,n)}function Uf(e,n){return Qs(4,2,e,n)}function Vf(e,n){return Qs(4,4,e,n)}function Hf(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Gf(e,n,o){return o=o!=null?o.concat([e]):null,Qs(4,4,Hf.bind(null,n,e),o)}function gu(){}function Kf(e,n){var o=Sn();n=n===void 0?null:n;var l=o.memoizedState;return l!==null&&n!==null&&cu(n,l[1])?l[0]:(o.memoizedState=[e,n],e)}function Qf(e,n){var o=Sn();n=n===void 0?null:n;var l=o.memoizedState;return l!==null&&n!==null&&cu(n,l[1])?l[0]:(e=e(),o.memoizedState=[e,n],e)}function qf(e,n,o){return Gr&21?(Mn(o,n)||(o=kd(),vt.lanes|=o,Kr|=o,e.baseState=!0),n):(e.baseState&&(e.baseState=!1,nn=!0),e.memoizedState=o)}function By(e,n){var o=et;et=o!==0&&4>o?o:4,e(!0);var l=uu.transition;uu.transition={};try{e(!1),n()}finally{et=o,uu.transition=l}}function Yf(){return Sn().memoizedState}function Dy(e,n,o){var l=Ir(e);if(o={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null},Xf(e))Jf(n,o);else if(o=Tf(e,n,o,l),o!==null){var c=Jt();Nn(o,e,l,c),Zf(o,n,l)}}function Wy(e,n,o){var l=Ir(e),c={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(Xf(e))Jf(n,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var g=n.lastRenderedState,I=f(g,o);if(c.hasEagerState=!0,c.eagerState=I,Mn(I,g)){var j=n.interleaved;j===null?(c.next=c,ru(n)):(c.next=j.next,j.next=c),n.interleaved=c;return}}catch{}finally{}o=Tf(e,n,c,l),o!==null&&(c=Jt(),Nn(o,e,l,c),Zf(o,n,l))}}function Xf(e){var n=e.alternate;return e===vt||n!==null&&n===vt}function Jf(e,n){Ei=Gs=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function Zf(e,n,o){if(o&4194240){var l=n.lanes;l&=e.pendingLanes,o|=l,n.lanes=o,va(e,o)}}var qs={readContext:xn,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useInsertionEffect:Ht,useLayoutEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useMutableSource:Ht,useSyncExternalStore:Ht,useId:Ht,unstable_isNewReconciler:!1},Uy={readContext:xn,useCallback:function(e,n){return Un().memoizedState=[e,n===void 0?null:n],e},useContext:xn,useEffect:Wf,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,Ks(4194308,4,Hf.bind(null,n,e),o)},useLayoutEffect:function(e,n){return Ks(4194308,4,e,n)},useInsertionEffect:function(e,n){return Ks(4,2,e,n)},useMemo:function(e,n){var o=Un();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var l=Un();return n=o!==void 0?o(n):n,l.memoizedState=l.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=Dy.bind(null,vt,e),[l.memoizedState,e]},useRef:function(e){var n=Un();return e={current:e},n.memoizedState=e},useState:Bf,useDebugValue:gu,useDeferredValue:function(e){return Un().memoizedState=e},useTransition:function(){var e=Bf(!1),n=e[0];return e=By.bind(null,e[1]),Un().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var l=vt,c=Un();if(mt){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),Ot===null)throw Error(i(349));Gr&30||Af(l,n,o)}c.memoizedState=o;var f={value:o,getSnapshot:n};return c.queue=f,Wf(Lf.bind(null,l,f,e),[e]),l.flags|=2048,Ti(9,Nf.bind(null,l,f,o,n),void 0,null),o},useId:function(){var e=Un(),n=Ot.identifierPrefix;if(mt){var o=rr,l=nr;o=(l&~(1<<32-In(l)-1)).toString(32)+o,n=":"+n+"R"+o,o=Ri++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=Fy++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Vy={readContext:xn,useCallback:Kf,useContext:xn,useEffect:hu,useImperativeHandle:Gf,useInsertionEffect:Uf,useLayoutEffect:Vf,useMemo:Qf,useReducer:pu,useRef:Df,useState:function(){return pu(Pi)},useDebugValue:gu,useDeferredValue:function(e){var n=Sn();return qf(n,zt.memoizedState,e)},useTransition:function(){var e=pu(Pi)[0],n=Sn().memoizedState;return[e,n]},useMutableSource:zf,useSyncExternalStore:jf,useId:Yf,unstable_isNewReconciler:!1},Hy={readContext:xn,useCallback:Kf,useContext:xn,useEffect:hu,useImperativeHandle:Gf,useInsertionEffect:Uf,useLayoutEffect:Vf,useMemo:Qf,useReducer:mu,useRef:Df,useState:function(){return mu(Pi)},useDebugValue:gu,useDeferredValue:function(e){var n=Sn();return zt===null?n.memoizedState=e:qf(n,zt.memoizedState,e)},useTransition:function(){var e=mu(Pi)[0],n=Sn().memoizedState;return[e,n]},useMutableSource:zf,useSyncExternalStore:jf,useId:Yf,unstable_isNewReconciler:!1};function zn(e,n){if(e&&e.defaultProps){n=ie({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function yu(e,n,o,l){n=e.memoizedState,o=o(l,n),o=o==null?n:ie({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Ys={isMounted:function(e){return(e=e._reactInternals)?Fr(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var l=Jt(),c=Ir(e),f=ir(l,c);f.payload=n,o!=null&&(f.callback=o),n=Rr(e,f,c),n!==null&&(Nn(n,e,c,l),Ws(n,e,c))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var l=Jt(),c=Ir(e),f=ir(l,c);f.tag=1,f.payload=n,o!=null&&(f.callback=o),n=Rr(e,f,c),n!==null&&(Nn(n,e,c,l),Ws(n,e,c))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=Jt(),l=Ir(e),c=ir(o,l);c.tag=2,n!=null&&(c.callback=n),n=Rr(e,c,l),n!==null&&(Nn(n,e,l,o),Ws(n,e,l))}};function ep(e,n,o,l,c,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,g):n.prototype&&n.prototype.isPureReactComponent?!mi(o,l)||!mi(c,f):!0}function tp(e,n,o){var l=!1,c=br,f=n.contextType;return typeof f=="object"&&f!==null?f=xn(f):(c=tn(n)?Dr:Vt.current,l=n.contextTypes,f=(l=l!=null)?wo(e,c):br),n=new n(o,f),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Ys,e.stateNode=n,n._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=f),n}function np(e,n,o,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,l),n.state!==e&&Ys.enqueueReplaceState(n,n.state,null)}function vu(e,n,o,l){var c=e.stateNode;c.props=o,c.state=e.memoizedState,c.refs={},ou(e);var f=n.contextType;typeof f=="object"&&f!==null?c.context=xn(f):(f=tn(n)?Dr:Vt.current,c.context=wo(e,f)),c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(yu(e,n,f,o),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(n=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),n!==c.state&&Ys.enqueueReplaceState(c,c.state,null),Us(e,o,c,l),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function $o(e,n){try{var o="",l=n;do o+=ne(l),l=l.return;while(l);var c=o}catch(f){c=`
39
- Error generating stack: `+f.message+`
40
- `+f.stack}return{value:e,source:n,stack:c,digest:null}}function xu(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function Su(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var Gy=typeof WeakMap=="function"?WeakMap:Map;function rp(e,n,o){o=ir(-1,o),o.tag=3,o.payload={element:null};var l=n.value;return o.callback=function(){rl||(rl=!0,Au=l),Su(e,n)},o}function op(e,n,o){o=ir(-1,o),o.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var c=n.value;o.payload=function(){return l(c)},o.callback=function(){Su(e,n)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(o.callback=function(){Su(e,n),typeof l!="function"&&(Tr===null?Tr=new Set([this]):Tr.add(this));var g=n.stack;this.componentDidCatch(n.value,{componentStack:g!==null?g:""})}),o}function ip(e,n,o){var l=e.pingCache;if(l===null){l=e.pingCache=new Gy;var c=new Set;l.set(n,c)}else c=l.get(n),c===void 0&&(c=new Set,l.set(n,c));c.has(o)||(c.add(o),e=s0.bind(null,e,n,o),n.then(e,e))}function sp(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function lp(e,n,o,l,c){return e.mode&1?(e.flags|=65536,e.lanes=c,e):(e===n?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=ir(-1,1),n.tag=2,Rr(o,n,1))),o.lanes|=1),e)}var Ky=R.ReactCurrentOwner,nn=!1;function Xt(e,n,o,l){n.child=e===null?Pf(n,null,o,l):Eo(n,e.child,o,l)}function ap(e,n,o,l,c){o=o.render;var f=n.ref;return Po(n,c),l=du(e,n,o,l,f,c),o=fu(),e!==null&&!nn?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~c,sr(e,n,c)):(mt&&o&&Qa(n),n.flags|=1,Xt(e,n,l,c),n.child)}function up(e,n,o,l,c){if(e===null){var f=o.type;return typeof f=="function"&&!Wu(f)&&f.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=f,cp(e,n,f,l,c)):(e=ul(o.type,null,l,n,n.mode,c),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!(e.lanes&c)){var g=f.memoizedProps;if(o=o.compare,o=o!==null?o:mi,o(g,l)&&e.ref===n.ref)return sr(e,n,c)}return n.flags|=1,e=_r(f,l),e.ref=n.ref,e.return=n,n.child=e}function cp(e,n,o,l,c){if(e!==null){var f=e.memoizedProps;if(mi(f,l)&&e.ref===n.ref)if(nn=!1,n.pendingProps=l=f,(e.lanes&c)!==0)e.flags&131072&&(nn=!0);else return n.lanes=e.lanes,sr(e,n,c)}return wu(e,n,o,l,c)}function dp(e,n,o){var l=n.pendingProps,c=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},at(Mo,dn),dn|=o;else{if(!(o&1073741824))return e=f!==null?f.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,at(Mo,dn),dn|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=f!==null?f.baseLanes:o,at(Mo,dn),dn|=l}else f!==null?(l=f.baseLanes|o,n.memoizedState=null):l=o,at(Mo,dn),dn|=l;return Xt(e,n,c,o),n.child}function fp(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function wu(e,n,o,l,c){var f=tn(o)?Dr:Vt.current;return f=wo(n,f),Po(n,c),o=du(e,n,o,l,f,c),l=fu(),e!==null&&!nn?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~c,sr(e,n,c)):(mt&&l&&Qa(n),n.flags|=1,Xt(e,n,o,c),n.child)}function pp(e,n,o,l,c){if(tn(o)){var f=!0;js(n)}else f=!1;if(Po(n,c),n.stateNode===null)Js(e,n),tp(n,o,l),vu(n,o,l,c),l=!0;else if(e===null){var g=n.stateNode,I=n.memoizedProps;g.props=I;var j=g.context,H=o.contextType;typeof H=="object"&&H!==null?H=xn(H):(H=tn(o)?Dr:Vt.current,H=wo(n,H));var oe=o.getDerivedStateFromProps,le=typeof oe=="function"||typeof g.getSnapshotBeforeUpdate=="function";le||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(I!==l||j!==H)&&np(n,g,l,H),Er=!1;var re=n.memoizedState;g.state=re,Us(n,l,g,c),j=n.memoizedState,I!==l||re!==j||en.current||Er?(typeof oe=="function"&&(yu(n,o,oe,l),j=n.memoizedState),(I=Er||ep(n,o,I,l,re,j,H))?(le||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"&&(n.flags|=4194308)):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=j),g.props=l,g.state=j,g.context=H,l=I):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{g=n.stateNode,$f(e,n),I=n.memoizedProps,H=n.type===n.elementType?I:zn(n.type,I),g.props=H,le=n.pendingProps,re=g.context,j=o.contextType,typeof j=="object"&&j!==null?j=xn(j):(j=tn(o)?Dr:Vt.current,j=wo(n,j));var pe=o.getDerivedStateFromProps;(oe=typeof pe=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(I!==le||re!==j)&&np(n,g,l,j),Er=!1,re=n.memoizedState,g.state=re,Us(n,l,g,c);var ve=n.memoizedState;I!==le||re!==ve||en.current||Er?(typeof pe=="function"&&(yu(n,o,pe,l),ve=n.memoizedState),(H=Er||ep(n,o,H,l,re,ve,j)||!1)?(oe||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(l,ve,j),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(l,ve,j)),typeof g.componentDidUpdate=="function"&&(n.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof g.componentDidUpdate!="function"||I===e.memoizedProps&&re===e.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||I===e.memoizedProps&&re===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=ve),g.props=l,g.state=ve,g.context=j,l=H):(typeof g.componentDidUpdate!="function"||I===e.memoizedProps&&re===e.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||I===e.memoizedProps&&re===e.memoizedState||(n.flags|=1024),l=!1)}return Cu(e,n,o,l,f,c)}function Cu(e,n,o,l,c,f){fp(e,n);var g=(n.flags&128)!==0;if(!l&&!g)return c&&vf(n,o,!1),sr(e,n,f);l=n.stateNode,Ky.current=n;var I=g&&typeof o.getDerivedStateFromError!="function"?null:l.render();return n.flags|=1,e!==null&&g?(n.child=Eo(n,e.child,null,f),n.child=Eo(n,null,I,f)):Xt(e,n,I,f),n.memoizedState=l.state,c&&vf(n,o,!0),n.child}function mp(e){var n=e.stateNode;n.pendingContext?gf(e,n.pendingContext,n.pendingContext!==n.context):n.context&&gf(e,n.context,!1),iu(e,n.containerInfo)}function hp(e,n,o,l,c){return ko(),Ja(c),n.flags|=256,Xt(e,n,o,l),n.child}var bu={dehydrated:null,treeContext:null,retryLane:0};function ku(e){return{baseLanes:e,cachePool:null,transitions:null}}function gp(e,n,o){var l=n.pendingProps,c=yt.current,f=!1,g=(n.flags&128)!==0,I;if((I=g)||(I=e!==null&&e.memoizedState===null?!1:(c&2)!==0),I?(f=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),at(yt,c&1),e===null)return Xa(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(n.mode&1?e.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(g=l.children,e=l.fallback,f?(l=n.mode,f=n.child,g={mode:"hidden",children:g},!(l&1)&&f!==null?(f.childLanes=0,f.pendingProps=g):f=cl(g,l,0,null),e=Xr(e,l,o,null),f.return=n,e.return=n,f.sibling=e,n.child=f,n.child.memoizedState=ku(o),n.memoizedState=bu,e):Eu(n,g));if(c=e.memoizedState,c!==null&&(I=c.dehydrated,I!==null))return Qy(e,n,g,l,I,c,o);if(f){f=l.fallback,g=n.mode,c=e.child,I=c.sibling;var j={mode:"hidden",children:l.children};return!(g&1)&&n.child!==c?(l=n.child,l.childLanes=0,l.pendingProps=j,n.deletions=null):(l=_r(c,j),l.subtreeFlags=c.subtreeFlags&14680064),I!==null?f=_r(I,f):(f=Xr(f,g,o,null),f.flags|=2),f.return=n,l.return=n,l.sibling=f,n.child=l,l=f,f=n.child,g=e.child.memoizedState,g=g===null?ku(o):{baseLanes:g.baseLanes|o,cachePool:null,transitions:g.transitions},f.memoizedState=g,f.childLanes=e.childLanes&~o,n.memoizedState=bu,l}return f=e.child,e=f.sibling,l=_r(f,{mode:"visible",children:l.children}),!(n.mode&1)&&(l.lanes=o),l.return=n,l.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=l,n.memoizedState=null,l}function Eu(e,n){return n=cl({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Xs(e,n,o,l){return l!==null&&Ja(l),Eo(n,e.child,null,o),e=Eu(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Qy(e,n,o,l,c,f,g){if(o)return n.flags&256?(n.flags&=-257,l=xu(Error(i(422))),Xs(e,n,g,l)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(f=l.fallback,c=n.mode,l=cl({mode:"visible",children:l.children},c,0,null),f=Xr(f,c,g,null),f.flags|=2,l.return=n,f.return=n,l.sibling=f,n.child=l,n.mode&1&&Eo(n,e.child,null,g),n.child.memoizedState=ku(g),n.memoizedState=bu,f);if(!(n.mode&1))return Xs(e,n,g,null);if(c.data==="$!"){if(l=c.nextSibling&&c.nextSibling.dataset,l)var I=l.dgst;return l=I,f=Error(i(419)),l=xu(f,l,void 0),Xs(e,n,g,l)}if(I=(g&e.childLanes)!==0,nn||I){if(l=Ot,l!==null){switch(g&-g){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=c&(l.suspendedLanes|g)?0:c,c!==0&&c!==f.retryLane&&(f.retryLane=c,or(e,c),Nn(l,e,c,-1))}return Du(),l=xu(Error(i(421))),Xs(e,n,g,l)}return c.data==="$?"?(n.flags|=128,n.child=e.child,n=l0.bind(null,e),c._reactRetry=n,null):(e=f.treeContext,cn=wr(c.nextSibling),un=n,mt=!0,_n=null,e!==null&&(yn[vn++]=nr,yn[vn++]=rr,yn[vn++]=Wr,nr=e.id,rr=e.overflow,Wr=n),n=Eu(n,l.children),n.flags|=4096,n)}function yp(e,n,o){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),nu(e.return,n,o)}function Ru(e,n,o,l,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:c}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=o,f.tailMode=c)}function vp(e,n,o){var l=n.pendingProps,c=l.revealOrder,f=l.tail;if(Xt(e,n,l.children,o),l=yt.current,l&2)l=l&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yp(e,o,n);else if(e.tag===19)yp(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}if(at(yt,l),!(n.mode&1))n.memoizedState=null;else switch(c){case"forwards":for(o=n.child,c=null;o!==null;)e=o.alternate,e!==null&&Vs(e)===null&&(c=o),o=o.sibling;o=c,o===null?(c=n.child,n.child=null):(c=o.sibling,o.sibling=null),Ru(n,!1,c,o,f);break;case"backwards":for(o=null,c=n.child,n.child=null;c!==null;){if(e=c.alternate,e!==null&&Vs(e)===null){n.child=c;break}e=c.sibling,c.sibling=o,o=c,c=e}Ru(n,!0,o,null,f);break;case"together":Ru(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Js(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function sr(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),Kr|=n.lanes,!(o&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,o=_r(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=_r(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function qy(e,n,o){switch(n.tag){case 3:mp(n),ko();break;case 5:_f(n);break;case 1:tn(n.type)&&js(n);break;case 4:iu(n,n.stateNode.containerInfo);break;case 10:var l=n.type._context,c=n.memoizedProps.value;at(Bs,l._currentValue),l._currentValue=c;break;case 13:if(l=n.memoizedState,l!==null)return l.dehydrated!==null?(at(yt,yt.current&1),n.flags|=128,null):o&n.child.childLanes?gp(e,n,o):(at(yt,yt.current&1),e=sr(e,n,o),e!==null?e.sibling:null);at(yt,yt.current&1);break;case 19:if(l=(o&n.childLanes)!==0,e.flags&128){if(l)return vp(e,n,o);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),at(yt,yt.current),l)break;return null;case 22:case 23:return n.lanes=0,dp(e,n,o)}return sr(e,n,o)}var xp,Pu,Sp,wp;xp=function(e,n){for(var o=n.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===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Pu=function(){},Sp=function(e,n,o,l){var c=e.memoizedProps;if(c!==l){e=n.stateNode,Hr(Wn.current);var f=null;switch(o){case"input":c=Te(e,c),l=Te(e,l),f=[];break;case"select":c=ie({},c,{value:void 0}),l=ie({},l,{value:void 0}),f=[];break;case"textarea":c=Ce(e,c),l=Ce(e,l),f=[];break;default:typeof c.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=Ms)}Ye(o,l);var g;o=null;for(H in c)if(!l.hasOwnProperty(H)&&c.hasOwnProperty(H)&&c[H]!=null)if(H==="style"){var I=c[H];for(g in I)I.hasOwnProperty(g)&&(o||(o={}),o[g]="")}else H!=="dangerouslySetInnerHTML"&&H!=="children"&&H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&H!=="autoFocus"&&(a.hasOwnProperty(H)?f||(f=[]):(f=f||[]).push(H,null));for(H in l){var j=l[H];if(I=c!=null?c[H]:void 0,l.hasOwnProperty(H)&&j!==I&&(j!=null||I!=null))if(H==="style")if(I){for(g in I)!I.hasOwnProperty(g)||j&&j.hasOwnProperty(g)||(o||(o={}),o[g]="");for(g in j)j.hasOwnProperty(g)&&I[g]!==j[g]&&(o||(o={}),o[g]=j[g])}else o||(f||(f=[]),f.push(H,o)),o=j;else H==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,I=I?I.__html:void 0,j!=null&&I!==j&&(f=f||[]).push(H,j)):H==="children"?typeof j!="string"&&typeof j!="number"||(f=f||[]).push(H,""+j):H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&(a.hasOwnProperty(H)?(j!=null&&H==="onScroll"&&ct("scroll",e),f||I===j||(f=[])):(f=f||[]).push(H,j))}o&&(f=f||[]).push("style",o);var H=f;(n.updateQueue=H)&&(n.flags|=4)}},wp=function(e,n,o,l){o!==l&&(n.flags|=4)};function $i(e,n){if(!mt)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Gt(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,l=0;if(n)for(var c=e.child;c!==null;)o|=c.lanes|c.childLanes,l|=c.subtreeFlags&14680064,l|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)o|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=o,n}function Yy(e,n,o){var l=n.pendingProps;switch(qa(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gt(n),null;case 1:return tn(n.type)&&zs(),Gt(n),null;case 3:return l=n.stateNode,To(),dt(en),dt(Vt),au(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Os(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,_n!==null&&(Ou(_n),_n=null))),Pu(e,n),Gt(n),null;case 5:su(n);var c=Hr(ki.current);if(o=n.type,e!==null&&n.stateNode!=null)Sp(e,n,o,l,c),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!l){if(n.stateNode===null)throw Error(i(166));return Gt(n),null}if(e=Hr(Wn.current),Os(n)){l=n.stateNode,o=n.type;var f=n.memoizedProps;switch(l[Dn]=n,l[xi]=f,e=(n.mode&1)!==0,o){case"dialog":ct("cancel",l),ct("close",l);break;case"iframe":case"object":case"embed":ct("load",l);break;case"video":case"audio":for(c=0;c<gi.length;c++)ct(gi[c],l);break;case"source":ct("error",l);break;case"img":case"image":case"link":ct("error",l),ct("load",l);break;case"details":ct("toggle",l);break;case"input":Qe(l,f),ct("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!f.multiple},ct("invalid",l);break;case"textarea":Ut(l,f),ct("invalid",l)}Ye(o,f),c=null;for(var g in f)if(f.hasOwnProperty(g)){var I=f[g];g==="children"?typeof I=="string"?l.textContent!==I&&(f.suppressHydrationWarning!==!0&&Is(l.textContent,I,e),c=["children",I]):typeof I=="number"&&l.textContent!==""+I&&(f.suppressHydrationWarning!==!0&&Is(l.textContent,I,e),c=["children",""+I]):a.hasOwnProperty(g)&&I!=null&&g==="onScroll"&&ct("scroll",l)}switch(o){case"input":Ae(l),rt(l,f,!0);break;case"textarea":Ae(l),se(l);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(l.onclick=Ms)}l=c,n.updateQueue=l,l!==null&&(n.flags|=4)}else{g=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=de(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=g.createElement(o,{is:l.is}):(e=g.createElement(o),o==="select"&&(g=e,l.multiple?g.multiple=!0:l.size&&(g.size=l.size))):e=g.createElementNS(e,o),e[Dn]=n,e[xi]=l,xp(e,n,!1,!1),n.stateNode=e;e:{switch(g=ut(o,l),o){case"dialog":ct("cancel",e),ct("close",e),c=l;break;case"iframe":case"object":case"embed":ct("load",e),c=l;break;case"video":case"audio":for(c=0;c<gi.length;c++)ct(gi[c],e);c=l;break;case"source":ct("error",e),c=l;break;case"img":case"image":case"link":ct("error",e),ct("load",e),c=l;break;case"details":ct("toggle",e),c=l;break;case"input":Qe(e,l),c=Te(e,l),ct("invalid",e);break;case"option":c=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},c=ie({},l,{value:void 0}),ct("invalid",e);break;case"textarea":Ut(e,l),c=Ce(e,l),ct("invalid",e);break;default:c=l}Ye(o,c),I=c;for(f in I)if(I.hasOwnProperty(f)){var j=I[f];f==="style"?Nt(e,j):f==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&Be(e,j)):f==="children"?typeof j=="string"?(o!=="textarea"||j!=="")&&we(e,j):typeof j=="number"&&we(e,""+j):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(a.hasOwnProperty(f)?j!=null&&f==="onScroll"&&ct("scroll",e):j!=null&&T(e,f,j,g))}switch(o){case"input":Ae(e),rt(e,l,!1);break;case"textarea":Ae(e),se(e);break;case"option":l.value!=null&&e.setAttribute("value",""+ge(l.value));break;case"select":e.multiple=!!l.multiple,f=l.value,f!=null?qe(e,!!l.multiple,f,!1):l.defaultValue!=null&&qe(e,!!l.multiple,l.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=Ms)}switch(o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return Gt(n),null;case 6:if(e&&n.stateNode!=null)wp(e,n,e.memoizedProps,l);else{if(typeof l!="string"&&n.stateNode===null)throw Error(i(166));if(o=Hr(ki.current),Hr(Wn.current),Os(n)){if(l=n.stateNode,o=n.memoizedProps,l[Dn]=n,(f=l.nodeValue!==o)&&(e=un,e!==null))switch(e.tag){case 3:Is(l.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Is(l.nodeValue,o,(e.mode&1)!==0)}f&&(n.flags|=4)}else l=(o.nodeType===9?o:o.ownerDocument).createTextNode(l),l[Dn]=n,n.stateNode=l}return Gt(n),null;case 13:if(dt(yt),l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(mt&&cn!==null&&n.mode&1&&!(n.flags&128))kf(),ko(),n.flags|=98560,f=!1;else if(f=Os(n),l!==null&&l.dehydrated!==null){if(e===null){if(!f)throw Error(i(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[Dn]=n}else ko(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;Gt(n),f=!1}else _n!==null&&(Ou(_n),_n=null),f=!0;if(!f)return n.flags&65536?n:null}return n.flags&128?(n.lanes=o,n):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(n.child.flags|=8192,n.mode&1&&(e===null||yt.current&1?jt===0&&(jt=3):Du())),n.updateQueue!==null&&(n.flags|=4),Gt(n),null);case 4:return To(),Pu(e,n),e===null&&yi(n.stateNode.containerInfo),Gt(n),null;case 10:return tu(n.type._context),Gt(n),null;case 17:return tn(n.type)&&zs(),Gt(n),null;case 19:if(dt(yt),f=n.memoizedState,f===null)return Gt(n),null;if(l=(n.flags&128)!==0,g=f.rendering,g===null)if(l)$i(f,!1);else{if(jt!==0||e!==null&&e.flags&128)for(e=n.child;e!==null;){if(g=Vs(e),g!==null){for(n.flags|=128,$i(f,!1),l=g.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),n.subtreeFlags=0,l=o,o=n.child;o!==null;)f=o,e=l,f.flags&=14680066,g=f.alternate,g===null?(f.childLanes=0,f.lanes=e,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,e=g.dependencies,f.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return at(yt,yt.current&1|2),n.child}e=e.sibling}f.tail!==null&&Rt()>_o&&(n.flags|=128,l=!0,$i(f,!1),n.lanes=4194304)}else{if(!l)if(e=Vs(g),e!==null){if(n.flags|=128,l=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),$i(f,!0),f.tail===null&&f.tailMode==="hidden"&&!g.alternate&&!mt)return Gt(n),null}else 2*Rt()-f.renderingStartTime>_o&&o!==1073741824&&(n.flags|=128,l=!0,$i(f,!1),n.lanes=4194304);f.isBackwards?(g.sibling=n.child,n.child=g):(o=f.last,o!==null?o.sibling=g:n.child=g,f.last=g)}return f.tail!==null?(n=f.tail,f.rendering=n,f.tail=n.sibling,f.renderingStartTime=Rt(),n.sibling=null,o=yt.current,at(yt,l?o&1|2:o&1),n):(Gt(n),null);case 22:case 23:return Bu(),l=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(n.flags|=8192),l&&n.mode&1?dn&1073741824&&(Gt(n),n.subtreeFlags&6&&(n.flags|=8192)):Gt(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function Xy(e,n){switch(qa(n),n.tag){case 1:return tn(n.type)&&zs(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return To(),dt(en),dt(Vt),au(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return su(n),null;case 13:if(dt(yt),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));ko()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return dt(yt),null;case 4:return To(),null;case 10:return tu(n.type._context),null;case 22:case 23:return Bu(),null;case 24:return null;default:return null}}var Zs=!1,Kt=!1,Jy=typeof WeakSet=="function"?WeakSet:Set,me=null;function Io(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(l){wt(e,n,l)}else o.current=null}function Tu(e,n,o){try{o()}catch(l){wt(e,n,l)}}var Cp=!1;function Zy(e,n){if(Ba=xs,e=Zd(),_a(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var c=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{o.nodeType,f.nodeType}catch{o=null;break e}var g=0,I=-1,j=-1,H=0,oe=0,le=e,re=null;t:for(;;){for(var pe;le!==o||c!==0&&le.nodeType!==3||(I=g+c),le!==f||l!==0&&le.nodeType!==3||(j=g+l),le.nodeType===3&&(g+=le.nodeValue.length),(pe=le.firstChild)!==null;)re=le,le=pe;for(;;){if(le===e)break t;if(re===o&&++H===c&&(I=g),re===f&&++oe===l&&(j=g),(pe=le.nextSibling)!==null)break;le=re,re=le.parentNode}le=pe}o=I===-1||j===-1?null:{start:I,end:j}}else o=null}o=o||{start:0,end:0}}else o=null;for(Da={focusedElem:e,selectionRange:o},xs=!1,me=n;me!==null;)if(n=me,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,me=e;else for(;me!==null;){n=me;try{var ve=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(ve!==null){var Se=ve.memoizedProps,Pt=ve.memoizedState,D=n.stateNode,N=D.getSnapshotBeforeUpdate(n.elementType===n.type?Se:zn(n.type,Se),Pt);D.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var W=n.stateNode.containerInfo;W.nodeType===1?W.textContent="":W.nodeType===9&&W.documentElement&&W.removeChild(W.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ae){wt(n,n.return,ae)}if(e=n.sibling,e!==null){e.return=n.return,me=e;break}me=n.return}return ve=Cp,Cp=!1,ve}function Ii(e,n,o){var l=n.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var c=l=l.next;do{if((c.tag&e)===e){var f=c.destroy;c.destroy=void 0,f!==void 0&&Tu(n,o,f)}c=c.next}while(c!==l)}}function el(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var l=o.create;o.destroy=l()}o=o.next}while(o!==n)}}function $u(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function bp(e){var n=e.alternate;n!==null&&(e.alternate=null,bp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Dn],delete n[xi],delete n[Ha],delete n[Ay],delete n[Ny])),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 kp(e){return e.tag===5||e.tag===3||e.tag===4}function Ep(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kp(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,n,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=Ms));else if(l!==4&&(e=e.child,e!==null))for(Iu(e,n,o),e=e.sibling;e!==null;)Iu(e,n,o),e=e.sibling}function Mu(e,n,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(Mu(e,n,o),e=e.sibling;e!==null;)Mu(e,n,o),e=e.sibling}var Bt=null,jn=!1;function Pr(e,n,o){for(o=o.child;o!==null;)Rp(e,n,o),o=o.sibling}function Rp(e,n,o){if(Bn&&typeof Bn.onCommitFiberUnmount=="function")try{Bn.onCommitFiberUnmount(ps,o)}catch{}switch(o.tag){case 5:Kt||Io(o,n);case 6:var l=Bt,c=jn;Bt=null,Pr(e,n,o),Bt=l,jn=c,Bt!==null&&(jn?(e=Bt,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):Bt.removeChild(o.stateNode));break;case 18:Bt!==null&&(jn?(e=Bt,o=o.stateNode,e.nodeType===8?Va(e.parentNode,o):e.nodeType===1&&Va(e,o),ai(e)):Va(Bt,o.stateNode));break;case 4:l=Bt,c=jn,Bt=o.stateNode.containerInfo,jn=!0,Pr(e,n,o),Bt=l,jn=c;break;case 0:case 11:case 14:case 15:if(!Kt&&(l=o.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){c=l=l.next;do{var f=c,g=f.destroy;f=f.tag,g!==void 0&&(f&2||f&4)&&Tu(o,n,g),c=c.next}while(c!==l)}Pr(e,n,o);break;case 1:if(!Kt&&(Io(o,n),l=o.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=o.memoizedProps,l.state=o.memoizedState,l.componentWillUnmount()}catch(I){wt(o,n,I)}Pr(e,n,o);break;case 21:Pr(e,n,o);break;case 22:o.mode&1?(Kt=(l=Kt)||o.memoizedState!==null,Pr(e,n,o),Kt=l):Pr(e,n,o);break;default:Pr(e,n,o)}}function Pp(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Jy),n.forEach(function(l){var c=a0.bind(null,e,l);o.has(l)||(o.add(l),l.then(c,c))})}}function An(e,n){var o=n.deletions;if(o!==null)for(var l=0;l<o.length;l++){var c=o[l];try{var f=e,g=n,I=g;e:for(;I!==null;){switch(I.tag){case 5:Bt=I.stateNode,jn=!1;break e;case 3:Bt=I.stateNode.containerInfo,jn=!0;break e;case 4:Bt=I.stateNode.containerInfo,jn=!0;break e}I=I.return}if(Bt===null)throw Error(i(160));Rp(f,g,c),Bt=null,jn=!1;var j=c.alternate;j!==null&&(j.return=null),c.return=null}catch(H){wt(c,n,H)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Tp(n,e),n=n.sibling}function Tp(e,n){var o=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(An(n,e),Vn(e),l&4){try{Ii(3,e,e.return),el(3,e)}catch(Se){wt(e,e.return,Se)}try{Ii(5,e,e.return)}catch(Se){wt(e,e.return,Se)}}break;case 1:An(n,e),Vn(e),l&512&&o!==null&&Io(o,o.return);break;case 5:if(An(n,e),Vn(e),l&512&&o!==null&&Io(o,o.return),e.flags&32){var c=e.stateNode;try{we(c,"")}catch(Se){wt(e,e.return,Se)}}if(l&4&&(c=e.stateNode,c!=null)){var f=e.memoizedProps,g=o!==null?o.memoizedProps:f,I=e.type,j=e.updateQueue;if(e.updateQueue=null,j!==null)try{I==="input"&&f.type==="radio"&&f.name!=null&&Et(c,f),ut(I,g);var H=ut(I,f);for(g=0;g<j.length;g+=2){var oe=j[g],le=j[g+1];oe==="style"?Nt(c,le):oe==="dangerouslySetInnerHTML"?Be(c,le):oe==="children"?we(c,le):T(c,oe,le,H)}switch(I){case"input":De(c,f);break;case"textarea":St(c,f);break;case"select":var re=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!f.multiple;var pe=f.value;pe!=null?qe(c,!!f.multiple,pe,!1):re!==!!f.multiple&&(f.defaultValue!=null?qe(c,!!f.multiple,f.defaultValue,!0):qe(c,!!f.multiple,f.multiple?[]:"",!1))}c[xi]=f}catch(Se){wt(e,e.return,Se)}}break;case 6:if(An(n,e),Vn(e),l&4){if(e.stateNode===null)throw Error(i(162));c=e.stateNode,f=e.memoizedProps;try{c.nodeValue=f}catch(Se){wt(e,e.return,Se)}}break;case 3:if(An(n,e),Vn(e),l&4&&o!==null&&o.memoizedState.isDehydrated)try{ai(n.containerInfo)}catch(Se){wt(e,e.return,Se)}break;case 4:An(n,e),Vn(e);break;case 13:An(n,e),Vn(e),c=e.child,c.flags&8192&&(f=c.memoizedState!==null,c.stateNode.isHidden=f,!f||c.alternate!==null&&c.alternate.memoizedState!==null||(ju=Rt())),l&4&&Pp(e);break;case 22:if(oe=o!==null&&o.memoizedState!==null,e.mode&1?(Kt=(H=Kt)||oe,An(n,e),Kt=H):An(n,e),Vn(e),l&8192){if(H=e.memoizedState!==null,(e.stateNode.isHidden=H)&&!oe&&e.mode&1)for(me=e,oe=e.child;oe!==null;){for(le=me=oe;me!==null;){switch(re=me,pe=re.child,re.tag){case 0:case 11:case 14:case 15:Ii(4,re,re.return);break;case 1:Io(re,re.return);var ve=re.stateNode;if(typeof ve.componentWillUnmount=="function"){l=re,o=re.return;try{n=l,ve.props=n.memoizedProps,ve.state=n.memoizedState,ve.componentWillUnmount()}catch(Se){wt(l,o,Se)}}break;case 5:Io(re,re.return);break;case 22:if(re.memoizedState!==null){Mp(le);continue}}pe!==null?(pe.return=re,me=pe):Mp(le)}oe=oe.sibling}e:for(oe=null,le=e;;){if(le.tag===5){if(oe===null){oe=le;try{c=le.stateNode,H?(f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(I=le.stateNode,j=le.memoizedProps.style,g=j!=null&&j.hasOwnProperty("display")?j.display:null,I.style.display=tt("display",g))}catch(Se){wt(e,e.return,Se)}}}else if(le.tag===6){if(oe===null)try{le.stateNode.nodeValue=H?"":le.memoizedProps}catch(Se){wt(e,e.return,Se)}}else if((le.tag!==22&&le.tag!==23||le.memoizedState===null||le===e)&&le.child!==null){le.child.return=le,le=le.child;continue}if(le===e)break e;for(;le.sibling===null;){if(le.return===null||le.return===e)break e;oe===le&&(oe=null),le=le.return}oe===le&&(oe=null),le.sibling.return=le.return,le=le.sibling}}break;case 19:An(n,e),Vn(e),l&4&&Pp(e);break;case 21:break;default:An(n,e),Vn(e)}}function Vn(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(kp(o)){var l=o;break e}o=o.return}throw Error(i(160))}switch(l.tag){case 5:var c=l.stateNode;l.flags&32&&(we(c,""),l.flags&=-33);var f=Ep(e);Mu(e,f,c);break;case 3:case 4:var g=l.stateNode.containerInfo,I=Ep(e);Iu(e,I,g);break;default:throw Error(i(161))}}catch(j){wt(e,e.return,j)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function e0(e,n,o){me=e,$p(e)}function $p(e,n,o){for(var l=(e.mode&1)!==0;me!==null;){var c=me,f=c.child;if(c.tag===22&&l){var g=c.memoizedState!==null||Zs;if(!g){var I=c.alternate,j=I!==null&&I.memoizedState!==null||Kt;I=Zs;var H=Kt;if(Zs=g,(Kt=j)&&!H)for(me=c;me!==null;)g=me,j=g.child,g.tag===22&&g.memoizedState!==null?_p(c):j!==null?(j.return=g,me=j):_p(c);for(;f!==null;)me=f,$p(f),f=f.sibling;me=c,Zs=I,Kt=H}Ip(e)}else c.subtreeFlags&8772&&f!==null?(f.return=c,me=f):Ip(e)}}function Ip(e){for(;me!==null;){var n=me;if(n.flags&8772){var o=n.alternate;try{if(n.flags&8772)switch(n.tag){case 0:case 11:case 15:Kt||el(5,n);break;case 1:var l=n.stateNode;if(n.flags&4&&!Kt)if(o===null)l.componentDidMount();else{var c=n.elementType===n.type?o.memoizedProps:zn(n.type,o.memoizedProps);l.componentDidUpdate(c,o.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var f=n.updateQueue;f!==null&&Mf(n,f,l);break;case 3:var g=n.updateQueue;if(g!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}Mf(n,g,o)}break;case 5:var I=n.stateNode;if(o===null&&n.flags&4){o=I;var j=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&o.focus();break;case"img":j.src&&(o.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var H=n.alternate;if(H!==null){var oe=H.memoizedState;if(oe!==null){var le=oe.dehydrated;le!==null&&ai(le)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Kt||n.flags&512&&$u(n)}catch(re){wt(n,n.return,re)}}if(n===e){me=null;break}if(o=n.sibling,o!==null){o.return=n.return,me=o;break}me=n.return}}function Mp(e){for(;me!==null;){var n=me;if(n===e){me=null;break}var o=n.sibling;if(o!==null){o.return=n.return,me=o;break}me=n.return}}function _p(e){for(;me!==null;){var n=me;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{el(4,n)}catch(j){wt(n,o,j)}break;case 1:var l=n.stateNode;if(typeof l.componentDidMount=="function"){var c=n.return;try{l.componentDidMount()}catch(j){wt(n,c,j)}}var f=n.return;try{$u(n)}catch(j){wt(n,f,j)}break;case 5:var g=n.return;try{$u(n)}catch(j){wt(n,g,j)}}}catch(j){wt(n,n.return,j)}if(n===e){me=null;break}var I=n.sibling;if(I!==null){I.return=n.return,me=I;break}me=n.return}}var t0=Math.ceil,tl=R.ReactCurrentDispatcher,_u=R.ReactCurrentOwner,wn=R.ReactCurrentBatchConfig,Ge=0,Ot=null,It=null,Dt=0,dn=0,Mo=Cr(0),jt=0,Mi=null,Kr=0,nl=0,zu=0,_i=null,rn=null,ju=0,_o=1/0,lr=null,rl=!1,Au=null,Tr=null,ol=!1,$r=null,il=0,zi=0,Nu=null,sl=-1,ll=0;function Jt(){return Ge&6?Rt():sl!==-1?sl:sl=Rt()}function Ir(e){return e.mode&1?Ge&2&&Dt!==0?Dt&-Dt:Oy.transition!==null?(ll===0&&(ll=kd()),ll):(e=et,e!==0||(e=window.event,e=e===void 0?16:zd(e.type)),e):1}function Nn(e,n,o,l){if(50<zi)throw zi=0,Nu=null,Error(i(185));ri(e,o,l),(!(Ge&2)||e!==Ot)&&(e===Ot&&(!(Ge&2)&&(nl|=o),jt===4&&Mr(e,Dt)),on(e,l),o===1&&Ge===0&&!(n.mode&1)&&(_o=Rt()+500,As&&kr()))}function on(e,n){var o=e.callbackNode;Og(e,n);var l=gs(e,e===Ot?Dt:0);if(l===0)o!==null&&wd(o),e.callbackNode=null,e.callbackPriority=0;else if(n=l&-l,e.callbackPriority!==n){if(o!=null&&wd(o),n===1)e.tag===0?Ly(jp.bind(null,e)):xf(jp.bind(null,e)),zy(function(){!(Ge&6)&&kr()}),o=null;else{switch(Ed(l)){case 1:o=ha;break;case 4:o=Cd;break;case 16:o=fs;break;case 536870912:o=bd;break;default:o=fs}o=Wp(o,zp.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function zp(e,n){if(sl=-1,ll=0,Ge&6)throw Error(i(327));var o=e.callbackNode;if(zo()&&e.callbackNode!==o)return null;var l=gs(e,e===Ot?Dt:0);if(l===0)return null;if(l&30||l&e.expiredLanes||n)n=al(e,l);else{n=l;var c=Ge;Ge|=2;var f=Np();(Ot!==e||Dt!==n)&&(lr=null,_o=Rt()+500,qr(e,n));do try{o0();break}catch(I){Ap(e,I)}while(!0);eu(),tl.current=f,Ge=c,It!==null?n=0:(Ot=null,Dt=0,n=jt)}if(n!==0){if(n===2&&(c=ga(e),c!==0&&(l=c,n=Lu(e,c))),n===1)throw o=Mi,qr(e,0),Mr(e,l),on(e,Rt()),o;if(n===6)Mr(e,l);else{if(c=e.current.alternate,!(l&30)&&!n0(c)&&(n=al(e,l),n===2&&(f=ga(e),f!==0&&(l=f,n=Lu(e,f))),n===1))throw o=Mi,qr(e,0),Mr(e,l),on(e,Rt()),o;switch(e.finishedWork=c,e.finishedLanes=l,n){case 0:case 1:throw Error(i(345));case 2:Yr(e,rn,lr);break;case 3:if(Mr(e,l),(l&130023424)===l&&(n=ju+500-Rt(),10<n)){if(gs(e,0)!==0)break;if(c=e.suspendedLanes,(c&l)!==l){Jt(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=Ua(Yr.bind(null,e,rn,lr),n);break}Yr(e,rn,lr);break;case 4:if(Mr(e,l),(l&4194240)===l)break;for(n=e.eventTimes,c=-1;0<l;){var g=31-In(l);f=1<<g,g=n[g],g>c&&(c=g),l&=~f}if(l=c,l=Rt()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*t0(l/1960))-l,10<l){e.timeoutHandle=Ua(Yr.bind(null,e,rn,lr),l);break}Yr(e,rn,lr);break;case 5:Yr(e,rn,lr);break;default:throw Error(i(329))}}}return on(e,Rt()),e.callbackNode===o?zp.bind(null,e):null}function Lu(e,n){var o=_i;return e.current.memoizedState.isDehydrated&&(qr(e,n).flags|=256),e=al(e,n),e!==2&&(n=rn,rn=o,n!==null&&Ou(n)),e}function Ou(e){rn===null?rn=e:rn.push.apply(rn,e)}function n0(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var l=0;l<o.length;l++){var c=o[l],f=c.getSnapshot;c=c.value;try{if(!Mn(f(),c))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Mr(e,n){for(n&=~zu,n&=~nl,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-In(n),l=1<<o;e[o]=-1,n&=~l}}function jp(e){if(Ge&6)throw Error(i(327));zo();var n=gs(e,0);if(!(n&1))return on(e,Rt()),null;var o=al(e,n);if(e.tag!==0&&o===2){var l=ga(e);l!==0&&(n=l,o=Lu(e,l))}if(o===1)throw o=Mi,qr(e,0),Mr(e,n),on(e,Rt()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,Yr(e,rn,lr),on(e,Rt()),null}function Fu(e,n){var o=Ge;Ge|=1;try{return e(n)}finally{Ge=o,Ge===0&&(_o=Rt()+500,As&&kr())}}function Qr(e){$r!==null&&$r.tag===0&&!(Ge&6)&&zo();var n=Ge;Ge|=1;var o=wn.transition,l=et;try{if(wn.transition=null,et=1,e)return e()}finally{et=l,wn.transition=o,Ge=n,!(Ge&6)&&kr()}}function Bu(){dn=Mo.current,dt(Mo)}function qr(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,_y(o)),It!==null)for(o=It.return;o!==null;){var l=o;switch(qa(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&zs();break;case 3:To(),dt(en),dt(Vt),au();break;case 5:su(l);break;case 4:To();break;case 13:dt(yt);break;case 19:dt(yt);break;case 10:tu(l.type._context);break;case 22:case 23:Bu()}o=o.return}if(Ot=e,It=e=_r(e.current,null),Dt=dn=n,jt=0,Mi=null,zu=nl=Kr=0,rn=_i=null,Vr!==null){for(n=0;n<Vr.length;n++)if(o=Vr[n],l=o.interleaved,l!==null){o.interleaved=null;var c=l.next,f=o.pending;if(f!==null){var g=f.next;f.next=c,l.next=g}o.pending=l}Vr=null}return e}function Ap(e,n){do{var o=It;try{if(eu(),Hs.current=qs,Gs){for(var l=vt.memoizedState;l!==null;){var c=l.queue;c!==null&&(c.pending=null),l=l.next}Gs=!1}if(Gr=0,Lt=zt=vt=null,Ei=!1,Ri=0,_u.current=null,o===null||o.return===null){jt=1,Mi=n,It=null;break}e:{var f=e,g=o.return,I=o,j=n;if(n=Dt,I.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var H=j,oe=I,le=oe.tag;if(!(oe.mode&1)&&(le===0||le===11||le===15)){var re=oe.alternate;re?(oe.updateQueue=re.updateQueue,oe.memoizedState=re.memoizedState,oe.lanes=re.lanes):(oe.updateQueue=null,oe.memoizedState=null)}var pe=sp(g);if(pe!==null){pe.flags&=-257,lp(pe,g,I,f,n),pe.mode&1&&ip(f,H,n),n=pe,j=H;var ve=n.updateQueue;if(ve===null){var Se=new Set;Se.add(j),n.updateQueue=Se}else ve.add(j);break e}else{if(!(n&1)){ip(f,H,n),Du();break e}j=Error(i(426))}}else if(mt&&I.mode&1){var Pt=sp(g);if(Pt!==null){!(Pt.flags&65536)&&(Pt.flags|=256),lp(Pt,g,I,f,n),Ja($o(j,I));break e}}f=j=$o(j,I),jt!==4&&(jt=2),_i===null?_i=[f]:_i.push(f),f=g;do{switch(f.tag){case 3:f.flags|=65536,n&=-n,f.lanes|=n;var D=rp(f,j,n);If(f,D);break e;case 1:I=j;var N=f.type,W=f.stateNode;if(!(f.flags&128)&&(typeof N.getDerivedStateFromError=="function"||W!==null&&typeof W.componentDidCatch=="function"&&(Tr===null||!Tr.has(W)))){f.flags|=65536,n&=-n,f.lanes|=n;var ae=op(f,I,n);If(f,ae);break e}}f=f.return}while(f!==null)}Op(o)}catch(be){n=be,It===o&&o!==null&&(It=o=o.return);continue}break}while(!0)}function Np(){var e=tl.current;return tl.current=qs,e===null?qs:e}function Du(){(jt===0||jt===3||jt===2)&&(jt=4),Ot===null||!(Kr&268435455)&&!(nl&268435455)||Mr(Ot,Dt)}function al(e,n){var o=Ge;Ge|=2;var l=Np();(Ot!==e||Dt!==n)&&(lr=null,qr(e,n));do try{r0();break}catch(c){Ap(e,c)}while(!0);if(eu(),Ge=o,tl.current=l,It!==null)throw Error(i(261));return Ot=null,Dt=0,jt}function r0(){for(;It!==null;)Lp(It)}function o0(){for(;It!==null&&!$g();)Lp(It)}function Lp(e){var n=Dp(e.alternate,e,dn);e.memoizedProps=e.pendingProps,n===null?Op(e):It=n,_u.current=null}function Op(e){var n=e;do{var o=n.alternate;if(e=n.return,n.flags&32768){if(o=Xy(o,n),o!==null){o.flags&=32767,It=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{jt=6,It=null;return}}else if(o=Yy(o,n,dn),o!==null){It=o;return}if(n=n.sibling,n!==null){It=n;return}It=n=e}while(n!==null);jt===0&&(jt=5)}function Yr(e,n,o){var l=et,c=wn.transition;try{wn.transition=null,et=1,i0(e,n,o,l)}finally{wn.transition=c,et=l}return null}function i0(e,n,o,l){do zo();while($r!==null);if(Ge&6)throw Error(i(327));o=e.finishedWork;var c=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 f=o.lanes|o.childLanes;if(Fg(e,f),e===Ot&&(It=Ot=null,Dt=0),!(o.subtreeFlags&2064)&&!(o.flags&2064)||ol||(ol=!0,Wp(fs,function(){return zo(),null})),f=(o.flags&15990)!==0,o.subtreeFlags&15990||f){f=wn.transition,wn.transition=null;var g=et;et=1;var I=Ge;Ge|=4,_u.current=null,Zy(e,o),Tp(o,e),Ey(Da),xs=!!Ba,Da=Ba=null,e.current=o,e0(o),Ig(),Ge=I,et=g,wn.transition=f}else e.current=o;if(ol&&(ol=!1,$r=e,il=c),f=e.pendingLanes,f===0&&(Tr=null),zg(o.stateNode),on(e,Rt()),n!==null)for(l=e.onRecoverableError,o=0;o<n.length;o++)c=n[o],l(c.value,{componentStack:c.stack,digest:c.digest});if(rl)throw rl=!1,e=Au,Au=null,e;return il&1&&e.tag!==0&&zo(),f=e.pendingLanes,f&1?e===Nu?zi++:(zi=0,Nu=e):zi=0,kr(),null}function zo(){if($r!==null){var e=Ed(il),n=wn.transition,o=et;try{if(wn.transition=null,et=16>e?16:e,$r===null)var l=!1;else{if(e=$r,$r=null,il=0,Ge&6)throw Error(i(331));var c=Ge;for(Ge|=4,me=e.current;me!==null;){var f=me,g=f.child;if(me.flags&16){var I=f.deletions;if(I!==null){for(var j=0;j<I.length;j++){var H=I[j];for(me=H;me!==null;){var oe=me;switch(oe.tag){case 0:case 11:case 15:Ii(8,oe,f)}var le=oe.child;if(le!==null)le.return=oe,me=le;else for(;me!==null;){oe=me;var re=oe.sibling,pe=oe.return;if(bp(oe),oe===H){me=null;break}if(re!==null){re.return=pe,me=re;break}me=pe}}}var ve=f.alternate;if(ve!==null){var Se=ve.child;if(Se!==null){ve.child=null;do{var Pt=Se.sibling;Se.sibling=null,Se=Pt}while(Se!==null)}}me=f}}if(f.subtreeFlags&2064&&g!==null)g.return=f,me=g;else e:for(;me!==null;){if(f=me,f.flags&2048)switch(f.tag){case 0:case 11:case 15:Ii(9,f,f.return)}var D=f.sibling;if(D!==null){D.return=f.return,me=D;break e}me=f.return}}var N=e.current;for(me=N;me!==null;){g=me;var W=g.child;if(g.subtreeFlags&2064&&W!==null)W.return=g,me=W;else e:for(g=N;me!==null;){if(I=me,I.flags&2048)try{switch(I.tag){case 0:case 11:case 15:el(9,I)}}catch(be){wt(I,I.return,be)}if(I===g){me=null;break e}var ae=I.sibling;if(ae!==null){ae.return=I.return,me=ae;break e}me=I.return}}if(Ge=c,kr(),Bn&&typeof Bn.onPostCommitFiberRoot=="function")try{Bn.onPostCommitFiberRoot(ps,e)}catch{}l=!0}return l}finally{et=o,wn.transition=n}}return!1}function Fp(e,n,o){n=$o(o,n),n=rp(e,n,1),e=Rr(e,n,1),n=Jt(),e!==null&&(ri(e,1,n),on(e,n))}function wt(e,n,o){if(e.tag===3)Fp(e,e,o);else for(;n!==null;){if(n.tag===3){Fp(n,e,o);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Tr===null||!Tr.has(l))){e=$o(o,e),e=op(n,e,1),n=Rr(n,e,1),e=Jt(),n!==null&&(ri(n,1,e),on(n,e));break}}n=n.return}}function s0(e,n,o){var l=e.pingCache;l!==null&&l.delete(n),n=Jt(),e.pingedLanes|=e.suspendedLanes&o,Ot===e&&(Dt&o)===o&&(jt===4||jt===3&&(Dt&130023424)===Dt&&500>Rt()-ju?qr(e,0):zu|=o),on(e,n)}function Bp(e,n){n===0&&(e.mode&1?(n=hs,hs<<=1,!(hs&130023424)&&(hs=4194304)):n=1);var o=Jt();e=or(e,n),e!==null&&(ri(e,n,o),on(e,o))}function l0(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),Bp(e,o)}function a0(e,n){var o=0;switch(e.tag){case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(o=c.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(i(314))}l!==null&&l.delete(n),Bp(e,o)}var Dp;Dp=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||en.current)nn=!0;else{if(!(e.lanes&o)&&!(n.flags&128))return nn=!1,qy(e,n,o);nn=!!(e.flags&131072)}else nn=!1,mt&&n.flags&1048576&&Sf(n,Ls,n.index);switch(n.lanes=0,n.tag){case 2:var l=n.type;Js(e,n),e=n.pendingProps;var c=wo(n,Vt.current);Po(n,o),c=du(null,n,l,e,c,o);var f=fu();return n.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,tn(l)?(f=!0,js(n)):f=!1,n.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,ou(n),c.updater=Ys,n.stateNode=c,c._reactInternals=n,vu(n,l,e,o),n=Cu(null,n,l,!0,f,o)):(n.tag=0,mt&&f&&Qa(n),Xt(null,n,c,o),n=n.child),n;case 16:l=n.elementType;e:{switch(Js(e,n),e=n.pendingProps,c=l._init,l=c(l._payload),n.type=l,c=n.tag=c0(l),e=zn(l,e),c){case 0:n=wu(null,n,l,e,o);break e;case 1:n=pp(null,n,l,e,o);break e;case 11:n=ap(null,n,l,e,o);break e;case 14:n=up(null,n,l,zn(l.type,e),o);break e}throw Error(i(306,l,""))}return n;case 0:return l=n.type,c=n.pendingProps,c=n.elementType===l?c:zn(l,c),wu(e,n,l,c,o);case 1:return l=n.type,c=n.pendingProps,c=n.elementType===l?c:zn(l,c),pp(e,n,l,c,o);case 3:e:{if(mp(n),e===null)throw Error(i(387));l=n.pendingProps,f=n.memoizedState,c=f.element,$f(e,n),Us(n,l,null,o);var g=n.memoizedState;if(l=g.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){c=$o(Error(i(423)),n),n=hp(e,n,l,o,c);break e}else if(l!==c){c=$o(Error(i(424)),n),n=hp(e,n,l,o,c);break e}else for(cn=wr(n.stateNode.containerInfo.firstChild),un=n,mt=!0,_n=null,o=Pf(n,null,l,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(ko(),l===c){n=sr(e,n,o);break e}Xt(e,n,l,o)}n=n.child}return n;case 5:return _f(n),e===null&&Xa(n),l=n.type,c=n.pendingProps,f=e!==null?e.memoizedProps:null,g=c.children,Wa(l,c)?g=null:f!==null&&Wa(l,f)&&(n.flags|=32),fp(e,n),Xt(e,n,g,o),n.child;case 6:return e===null&&Xa(n),null;case 13:return gp(e,n,o);case 4:return iu(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=Eo(n,null,l,o):Xt(e,n,l,o),n.child;case 11:return l=n.type,c=n.pendingProps,c=n.elementType===l?c:zn(l,c),ap(e,n,l,c,o);case 7:return Xt(e,n,n.pendingProps,o),n.child;case 8:return Xt(e,n,n.pendingProps.children,o),n.child;case 12:return Xt(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(l=n.type._context,c=n.pendingProps,f=n.memoizedProps,g=c.value,at(Bs,l._currentValue),l._currentValue=g,f!==null)if(Mn(f.value,g)){if(f.children===c.children&&!en.current){n=sr(e,n,o);break e}}else for(f=n.child,f!==null&&(f.return=n);f!==null;){var I=f.dependencies;if(I!==null){g=f.child;for(var j=I.firstContext;j!==null;){if(j.context===l){if(f.tag===1){j=ir(-1,o&-o),j.tag=2;var H=f.updateQueue;if(H!==null){H=H.shared;var oe=H.pending;oe===null?j.next=j:(j.next=oe.next,oe.next=j),H.pending=j}}f.lanes|=o,j=f.alternate,j!==null&&(j.lanes|=o),nu(f.return,o,n),I.lanes|=o;break}j=j.next}}else if(f.tag===10)g=f.type===n.type?null:f.child;else if(f.tag===18){if(g=f.return,g===null)throw Error(i(341));g.lanes|=o,I=g.alternate,I!==null&&(I.lanes|=o),nu(g,o,n),g=f.sibling}else g=f.child;if(g!==null)g.return=f;else for(g=f;g!==null;){if(g===n){g=null;break}if(f=g.sibling,f!==null){f.return=g.return,g=f;break}g=g.return}f=g}Xt(e,n,c.children,o),n=n.child}return n;case 9:return c=n.type,l=n.pendingProps.children,Po(n,o),c=xn(c),l=l(c),n.flags|=1,Xt(e,n,l,o),n.child;case 14:return l=n.type,c=zn(l,n.pendingProps),c=zn(l.type,c),up(e,n,l,c,o);case 15:return cp(e,n,n.type,n.pendingProps,o);case 17:return l=n.type,c=n.pendingProps,c=n.elementType===l?c:zn(l,c),Js(e,n),n.tag=1,tn(l)?(e=!0,js(n)):e=!1,Po(n,o),tp(n,l,c),vu(n,l,c,o),Cu(null,n,l,!0,e,o);case 19:return vp(e,n,o);case 22:return dp(e,n,o)}throw Error(i(156,n.tag))};function Wp(e,n){return Sd(e,n)}function u0(e,n,o,l){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=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(e,n,o,l){return new u0(e,n,o,l)}function Wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function c0(e){if(typeof e=="function")return Wu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Z)return 11;if(e===F)return 14}return 2}function _r(e,n){var o=e.alternate;return o===null?(o=Cn(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,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,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function ul(e,n,o,l,c,f){var g=2;if(l=e,typeof e=="function")Wu(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case A:return Xr(o.children,c,f,n);case V:g=8,c|=8;break;case ee:return e=Cn(12,o,n,c|2),e.elementType=ee,e.lanes=f,e;case K:return e=Cn(13,o,n,c),e.elementType=K,e.lanes=f,e;case O:return e=Cn(19,o,n,c),e.elementType=O,e.lanes=f,e;case Q:return cl(o,c,f,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case v:g=10;break e;case G:g=9;break e;case Z:g=11;break e;case F:g=14;break e;case B:g=16,l=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return n=Cn(g,o,n,c),n.elementType=e,n.type=l,n.lanes=f,n}function Xr(e,n,o,l){return e=Cn(7,e,l,n),e.lanes=o,e}function cl(e,n,o,l){return e=Cn(22,e,l,n),e.elementType=Q,e.lanes=o,e.stateNode={isHidden:!1},e}function Uu(e,n,o){return e=Cn(6,e,null,n),e.lanes=o,e}function Vu(e,n,o){return n=Cn(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function d0(e,n,o,l,c){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ya(0),this.expirationTimes=ya(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ya(0),this.identifierPrefix=l,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function Hu(e,n,o,l,c,f,g,I,j){return e=new d0(e,n,o,I,j),n===1?(n=1,f===!0&&(n|=8)):n=0,f=Cn(3,null,null,n),e.current=f,f.stateNode=e,f.memoizedState={element:l,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},ou(f),e}function f0(e,n,o){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:l==null?null:""+l,children:e,containerInfo:n,implementation:o}}function Up(e){if(!e)return br;e=e._reactInternals;e:{if(Fr(e)!==e||e.tag!==1)throw Error(i(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(tn(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(e.tag===1){var o=e.type;if(tn(o))return yf(e,o,n)}return n}function Vp(e,n,o,l,c,f,g,I,j){return e=Hu(o,l,!0,e,c,f,g,I,j),e.context=Up(null),o=e.current,l=Jt(),c=Ir(o),f=ir(l,c),f.callback=n??null,Rr(o,f,c),e.current.lanes=c,ri(e,c,l),on(e,l),e}function dl(e,n,o,l){var c=n.current,f=Jt(),g=Ir(c);return o=Up(o),n.context===null?n.context=o:n.pendingContext=o,n=ir(f,g),n.payload={element:e},l=l===void 0?null:l,l!==null&&(n.callback=l),e=Rr(c,n,g),e!==null&&(Nn(e,c,g,f),Ws(e,c,g)),g}function fl(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 Hp(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function Gu(e,n){Hp(e,n),(e=e.alternate)&&Hp(e,n)}var Gp=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ku(e){this._internalRoot=e}pl.prototype.render=Ku.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));dl(e,n,null,null)},pl.prototype.unmount=Ku.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Qr(function(){dl(null,e,null,null)}),n[er]=null}};function pl(e){this._internalRoot=e}pl.prototype.unstable_scheduleHydration=function(e){if(e){var n=Td();e={blockedOn:null,target:e,priority:n};for(var o=0;o<vr.length&&n!==0&&n<vr[o].priority;o++);vr.splice(o,0,e),o===0&&Md(e)}};function Qu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ml(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Kp(){}function p0(e,n,o,l,c){if(c){if(typeof l=="function"){var f=l;l=function(){var H=fl(g);f.call(H)}}var g=Vp(n,l,e,0,null,!1,!1,"",Kp);return e._reactRootContainer=g,e[er]=g.current,yi(e.nodeType===8?e.parentNode:e),Qr(),g}for(;c=e.lastChild;)e.removeChild(c);if(typeof l=="function"){var I=l;l=function(){var H=fl(j);I.call(H)}}var j=Hu(e,0,!1,null,null,!1,!1,"",Kp);return e._reactRootContainer=j,e[er]=j.current,yi(e.nodeType===8?e.parentNode:e),Qr(function(){dl(n,j,o,l)}),j}function hl(e,n,o,l,c){var f=o._reactRootContainer;if(f){var g=f;if(typeof c=="function"){var I=c;c=function(){var j=fl(g);I.call(j)}}dl(n,g,e,c)}else g=p0(o,n,e,c,l);return fl(g)}Rd=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=ni(n.pendingLanes);o!==0&&(va(n,o|1),on(n,Rt()),!(Ge&6)&&(_o=Rt()+500,kr()))}break;case 13:Qr(function(){var l=or(e,1);if(l!==null){var c=Jt();Nn(l,e,1,c)}}),Gu(e,1)}},xa=function(e){if(e.tag===13){var n=or(e,134217728);if(n!==null){var o=Jt();Nn(n,e,134217728,o)}Gu(e,134217728)}},Pd=function(e){if(e.tag===13){var n=Ir(e),o=or(e,n);if(o!==null){var l=Jt();Nn(o,e,n,l)}Gu(e,n)}},Td=function(){return et},$d=function(e,n){var o=et;try{return et=e,n()}finally{et=o}},Lr=function(e,n,o){switch(n){case"input":if(De(e,o),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var l=o[n];if(l!==e&&l.form===e.form){var c=_s(l);if(!c)throw Error(i(90));Me(l),De(l,c)}}}break;case"textarea":St(e,o);break;case"select":n=o.value,n!=null&&qe(e,!!o.multiple,n,!1)}},gn=Fu,md=Qr;var m0={usingClientEntryPoint:!1,Events:[Si,xo,_s,co,Or,Fu]},ji={findFiberByHostInstance:Br,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},h0={bundleType:ji.bundleType,version:ji.version,rendererPackageName:ji.rendererPackageName,rendererConfig:ji.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vd(e),e===null?null:e.stateNode},findFiberByHostInstance:ji.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 gl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gl.isDisabled&&gl.supportsFiber)try{ps=gl.inject(h0),Bn=gl}catch{}}return sn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=m0,sn.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qu(n))throw Error(i(200));return f0(e,n,null,o)},sn.createRoot=function(e,n){if(!Qu(e))throw Error(i(299));var o=!1,l="",c=Gp;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(c=n.onRecoverableError)),n=Hu(e,1,!1,null,null,o,!1,l,c),e[er]=n.current,yi(e.nodeType===8?e.parentNode:e),new Ku(n)},sn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=vd(n),e=e===null?null:e.stateNode,e},sn.flushSync=function(e){return Qr(e)},sn.hydrate=function(e,n,o){if(!ml(n))throw Error(i(200));return hl(null,e,n,!0,o)},sn.hydrateRoot=function(e,n,o){if(!Qu(e))throw Error(i(405));var l=o!=null&&o.hydratedSources||null,c=!1,f="",g=Gp;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onRecoverableError!==void 0&&(g=o.onRecoverableError)),n=Vp(n,null,e,1,o??null,c,!1,f,g),e[er]=n.current,yi(e),l)for(e=0;e<l.length;e++)o=l[e],c=o._getVersion,c=c(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,c]:n.mutableSourceEagerHydrationData.push(o,c);return new pl(n)},sn.render=function(e,n,o){if(!ml(n))throw Error(i(200));return hl(null,e,n,!1,o)},sn.unmountComponentAtNode=function(e){if(!ml(e))throw Error(i(40));return e._reactRootContainer?(Qr(function(){hl(null,null,e,!1,function(){e._reactRootContainer=null,e[er]=null})}),!0):!1},sn.unstable_batchedUpdates=Fu,sn.unstable_renderSubtreeIntoContainer=function(e,n,o,l){if(!ml(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return hl(e,n,o,!1,l)},sn.version="18.3.1-next-f1338f8080-20240426",sn}var tm;function ph(){if(tm)return Xu.exports;tm=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Xu.exports=E0(),Xu.exports}var nm;function R0(){if(nm)return yl;nm=1;var t=ph();return yl.createRoot=t.createRoot,yl.hydrateRoot=t.hydrateRoot,yl}var P0=R0();const T0=Ac(P0);var b=Nc();const En=Ac(b),Al=x0({__proto__:null,default:En},[b]);var ec={exports:{}},nt={};/**
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 rm;function $0(){if(rm)return nt;rm=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),E=Symbol.for("react.client.reference");function C(S){if(typeof S=="object"&&S!==null){var P=S.$$typeof;switch(P){case t:switch(S=S.type,S){case i:case a:case s:case m:case h:return S;default:switch(S=S&&S.$$typeof,S){case d:case p:case x:case w:return S;case u:return S;default:return P}}case r:return P}}}return nt.ContextConsumer=u,nt.ContextProvider=d,nt.Element=t,nt.ForwardRef=p,nt.Fragment=i,nt.Lazy=x,nt.Memo=w,nt.Portal=r,nt.Profiler=a,nt.StrictMode=s,nt.Suspense=m,nt.SuspenseList=h,nt.isContextConsumer=function(S){return C(S)===u},nt.isContextProvider=function(S){return C(S)===d},nt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},nt.isForwardRef=function(S){return C(S)===p},nt.isFragment=function(S){return C(S)===i},nt.isLazy=function(S){return C(S)===x},nt.isMemo=function(S){return C(S)===w},nt.isPortal=function(S){return C(S)===r},nt.isProfiler=function(S){return C(S)===a},nt.isStrictMode=function(S){return C(S)===s},nt.isSuspense=function(S){return C(S)===m},nt.isSuspenseList=function(S){return C(S)===h},nt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===i||S===a||S===s||S===m||S===h||S===k||typeof S=="object"&&S!==null&&(S.$$typeof===x||S.$$typeof===w||S.$$typeof===d||S.$$typeof===u||S.$$typeof===p||S.$$typeof===E||S.getModuleId!==void 0)},nt.typeOf=C,nt}var om;function I0(){return om||(om=1,ec.exports=$0()),ec.exports}var mh=I0();function Yn(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function hh(t){if(b.isValidElement(t)||mh.isValidElementType(t)||!Yn(t))return t;const r={};return Object.keys(t).forEach(i=>{r[i]=hh(t[i])}),r}function qt(t,r,i={clone:!0}){const s=i.clone?{...t}:t;return Yn(t)&&Yn(r)&&Object.keys(r).forEach(a=>{b.isValidElement(r[a])||mh.isValidElementType(r[a])?s[a]=r[a]:Yn(r[a])&&Object.prototype.hasOwnProperty.call(t,a)&&Yn(t[a])?s[a]=qt(t[a],r[a],i):i.clone?s[a]=Yn(r[a])?hh(r[a]):r[a]:s[a]=r[a]}),s}function fr(t,...r){const i=new URL(`https://mui.com/production-error/?code=${t}`);return r.forEach(s=>i.searchParams.append("args[]",s)),`Minified MUI error #${t}; visit ${i} for the full message.`}function he(t){if(typeof t!="string")throw new Error(fr(7));return t.charAt(0).toUpperCase()+t.slice(1)}function im(...t){return t.reduce((r,i)=>i==null?r:function(...a){r.apply(this,a),i.apply(this,a)},()=>{})}function gh(t,r=166){let i;function s(...a){const u=()=>{t.apply(this,a)};clearTimeout(i),i=setTimeout(u,r)}return s.clear=()=>{clearTimeout(i)},s}function tc(t,r){var i,s,a;return b.isValidElement(t)&&r.indexOf(t.type.muiName??((a=(s=(i=t.type)==null?void 0:i._payload)==null?void 0:s.value)==null?void 0:a.muiName))!==-1}function Zt(t){return t&&t.ownerDocument||document}function pr(t){return Zt(t).defaultView||window}function hc(t,r){typeof t=="function"?t(r):t&&(t.current=r)}const Zn=typeof window<"u"?b.useLayoutEffect:b.useEffect;let sm=0;function M0(t){const[r,i]=b.useState(t),s=t||r;return b.useEffect(()=>{r==null&&(sm+=1,i(`mui-${sm}`))},[r]),s}const _0={...Al},lm=_0.useId;function ns(t){if(lm!==void 0){const r=lm();return t??r}return M0(t)}function gc({controlled:t,default:r,name:i,state:s="value"}){const{current:a}=b.useRef(t!==void 0),[u,d]=b.useState(r),p=a?t:u,m=b.useCallback(h=>{a||d(h)},[]);return[p,m]}function dr(t){const r=b.useRef(t);return Zn(()=>{r.current=t}),b.useRef((...i)=>(0,r.current)(...i)).current}function At(...t){return b.useMemo(()=>t.every(r=>r==null)?null:r=>{t.forEach(i=>{hc(i,r)})},t)}const am={};function yh(t,r){const i=b.useRef(am);return i.current===am&&(i.current=t(r)),i}const z0=[];function j0(t){b.useEffect(t,z0)}class Lc{constructor(){Ai(this,"currentId",null);Ai(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Ai(this,"disposeEffect",()=>this.clear)}static create(){return new Lc}start(r,i){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,i()},r)}}function Oc(){const t=yh(Lc.create).current;return j0(t.disposeEffect),t}function Nl(t){try{return t.matches(":focus-visible")}catch{}return!1}function vh(t=window){const r=t.document.documentElement.clientWidth;return t.innerWidth-r}function A0(t){return b.Children.toArray(t).filter(r=>b.isValidElement(r))}const N0={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ho(t,r){const i={...r};for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)){const a=s;if(a==="components"||a==="slots")i[a]={...t[a],...i[a]};else if(a==="componentsProps"||a==="slotProps"){const u=t[a],d=r[a];if(!d)i[a]=u||{};else if(!u)i[a]=d;else{i[a]={...d};for(const p in u)if(Object.prototype.hasOwnProperty.call(u,p)){const m=p;i[a][m]=Ho(u[m],d[m])}}}else i[a]===void 0&&(i[a]=t[a])}return i}function Ue(t,r,i=void 0){const s={};for(const a in t){const u=t[a];let d="",p=!0;for(let m=0;m<u.length;m+=1){const h=u[m];h&&(d+=(p===!0?"":" ")+r(h),p=!1,i&&i[h]&&(d+=" "+i[h]))}s[a]=d}return s}const um=t=>t,L0=()=>{let t=um;return{configure(r){t=r},generate(r){return t(r)},reset(){t=um}}},xh=L0(),O0={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 Ve(t,r,i="Mui"){const s=O0[r];return s?`${i}-${s}`:`${xh.generate(t)}-${r}`}function Oe(t,r,i="Mui"){const s={};return r.forEach(a=>{s[a]=Ve(t,a,i)}),s}function Do(t,r=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(t,i))}function F0(t){return typeof t=="string"}function Sh(t,r,i){return t===void 0||F0(t)?r:{...r,ownerState:{...r.ownerState,...i}}}function wh(t){var r,i,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(i=wh(t[r]))&&(s&&(s+=" "),s+=i)}else for(i in t)t[i]&&(s&&(s+=" "),s+=i);return s}function Re(){for(var t,r,i=0,s="",a=arguments.length;i<a;i++)(t=arguments[i])&&(r=wh(t))&&(s&&(s+=" "),s+=r);return s}function Ki(t,r=[]){if(t===void 0)return{};const i={};return Object.keys(t).filter(s=>s.match(/^on[A-Z]/)&&typeof t[s]=="function"&&!r.includes(s)).forEach(s=>{i[s]=t[s]}),i}function cm(t){if(t===void 0)return{};const r={};return Object.keys(t).filter(i=>!(i.match(/^on[A-Z]/)&&typeof t[i]=="function")).forEach(i=>{r[i]=t[i]}),r}function Ch(t){const{getSlotProps:r,additionalProps:i,externalSlotProps:s,externalForwardedProps:a,className:u}=t;if(!r){const E=Re(i==null?void 0:i.className,u,a==null?void 0:a.className,s==null?void 0:s.className),C={...i==null?void 0:i.style,...a==null?void 0:a.style,...s==null?void 0:s.style},S={...i,...a,...s};return E.length>0&&(S.className=E),Object.keys(C).length>0&&(S.style=C),{props:S,internalRef:void 0}}const d=Ki({...a,...s}),p=cm(s),m=cm(a),h=r(d),w=Re(h==null?void 0:h.className,i==null?void 0:i.className,u,a==null?void 0:a.className,s==null?void 0:s.className),x={...h==null?void 0:h.style,...i==null?void 0:i.style,...a==null?void 0:a.style,...s==null?void 0:s.style},k={...h,...i,...m,...p};return w.length>0&&(k.className=w),Object.keys(x).length>0&&(k.style=x),{props:k,internalRef:h.ref}}function bh(t,r,i){return typeof t=="function"?t(r,i):t}function Kn(t){var x;const{elementType:r,externalSlotProps:i,ownerState:s,skipResolvingSlotProps:a=!1,...u}=t,d=a?{}:bh(i,s),{props:p,internalRef:m}=Ch({...u,externalSlotProps:d}),h=At(m,d==null?void 0:d.ref,(x=t.additionalProps)==null?void 0:x.ref);return Sh(r,{...p,ref:h},s)}function rs(t){var r;return parseInt(b.version,10)>=19?((r=t==null?void 0:t.props)==null?void 0:r.ref)||null:(t==null?void 0:t.ref)||null}function Qi(t,r){return r?qt(t,r,{clone:!1}):t}function B0(t,r){if(!t.containerQueries)return r;const i=Object.keys(r).filter(s=>s.startsWith("@container")).sort((s,a)=>{var d,p;const u=/min-width:\s*([0-9.]+)/;return+(((d=s.match(u))==null?void 0:d[1])||0)-+(((p=a.match(u))==null?void 0:p[1])||0)});return i.length?i.reduce((s,a)=>{const u=r[a];return delete s[a],s[a]=u,s},{...r}):r}function D0(t,r){return r==="@"||r.startsWith("@")&&(t.some(i=>r.startsWith(`@${i}`))||!!r.match(/^@\d/))}function W0(t,r){const i=r.match(/^@([^/]+)?\/?(.+)?$/);if(!i)return null;const[,s,a]=i,u=Number.isNaN(+s)?s||0:+s;return t.containerQueries(a).up(u)}function U0(t){const r=(u,d)=>u.replace("@media",d?`@container ${d}`:"@container");function i(u,d){u.up=(...p)=>r(t.breakpoints.up(...p),d),u.down=(...p)=>r(t.breakpoints.down(...p),d),u.between=(...p)=>r(t.breakpoints.between(...p),d),u.only=(...p)=>r(t.breakpoints.only(...p),d),u.not=(...p)=>{const m=r(t.breakpoints.not(...p),d);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const s={},a=u=>(i(s,u),s);return i(a),{...t,containerQueries:a}}const Vl={xs:0,sm:600,md:900,lg:1200,xl:1536},dm={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Vl[t]}px)`},V0={containerQueries:t=>({up:r=>{let i=typeof r=="number"?r:Vl[r]||r;return typeof i=="number"&&(i=`${i}px`),t?`@container ${t} (min-width:${i})`:`@container (min-width:${i})`}})};function Pn(t,r,i){const s=t.theme||{};if(Array.isArray(r)){const u=s.breakpoints||dm;return r.reduce((d,p,m)=>(d[u.up(u.keys[m])]=i(r[m]),d),{})}if(typeof r=="object"){const u=s.breakpoints||dm;return Object.keys(r).reduce((d,p)=>{if(D0(u.keys,p)){const m=W0(s.containerQueries?s:V0,p);m&&(d[m]=i(r[p],p))}else if(Object.keys(u.values||Vl).includes(p)){const m=u.up(p);d[m]=i(r[p],p)}else{const m=p;d[m]=r[m]}return d},{})}return i(r)}function H0(t={}){var i;return((i=t.keys)==null?void 0:i.reduce((s,a)=>{const u=t.up(a);return s[u]={},s},{}))||{}}function G0(t,r){return t.reduce((i,s)=>{const a=i[s];return(!a||Object.keys(a).length===0)&&delete i[s],i},r)}function K0(t,r){if(typeof t!="object")return{};const i={},s=Object.keys(r);return Array.isArray(t)?s.forEach((a,u)=>{u<t.length&&(i[a]=!0)}):s.forEach(a=>{t[a]!=null&&(i[a]=!0)}),i}function Hl({values:t,breakpoints:r,base:i}){const s=i||K0(t,r),a=Object.keys(s);if(a.length===0)return t;let u;return a.reduce((d,p,m)=>(Array.isArray(t)?(d[p]=t[m]!=null?t[m]:t[u],u=m):typeof t=="object"?(d[p]=t[p]!=null?t[p]:t[u],u=p):d[p]=t,d),{})}function Gl(t,r,i=!0){if(!r||typeof r!="string")return null;if(t&&t.vars&&i){const s=`vars.${r}`.split(".").reduce((a,u)=>a&&a[u]?a[u]:null,t);if(s!=null)return s}return r.split(".").reduce((s,a)=>s&&s[a]!=null?s[a]:null,t)}function Ll(t,r,i,s=i){let a;return typeof t=="function"?a=t(i):Array.isArray(t)?a=t[i]||s:a=Gl(t,i)||s,r&&(a=r(a,s,t)),a}function Tt(t){const{prop:r,cssProperty:i=t.prop,themeKey:s,transform:a}=t,u=d=>{if(d[r]==null)return null;const p=d[r],m=d.theme,h=Gl(m,s)||{};return Pn(d,p,x=>{let k=Ll(h,a,x);return x===k&&typeof x=="string"&&(k=Ll(h,a,`${r}${x==="default"?"":he(x)}`,x)),i===!1?k:{[i]:k}})};return u.propTypes={},u.filterProps=[r],u}function Q0(t){const r={};return i=>(r[i]===void 0&&(r[i]=t(i)),r[i])}const q0={m:"margin",p:"padding"},Y0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},X0=Q0(t=>{if(t.length>2)if(fm[t])t=fm[t];else return[t];const[r,i]=t.split(""),s=q0[r],a=Y0[i]||"";return Array.isArray(a)?a.map(u=>s+u):[s+a]}),Fc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Bc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Fc,...Bc];function os(t,r,i,s){const a=Gl(t,r,!0)??i;return typeof a=="number"||typeof a=="string"?u=>typeof u=="string"?u:typeof a=="string"?`calc(${u} * ${a})`:a*u:Array.isArray(a)?u=>{if(typeof u=="string")return u;const d=Math.abs(u),p=a[d];return u>=0?p:typeof p=="number"?-p:`-${p}`}:typeof a=="function"?a:()=>{}}function Dc(t){return os(t,"spacing",8)}function is(t,r){return typeof r=="string"||r==null?r:t(r)}function J0(t,r){return i=>t.reduce((s,a)=>(s[a]=is(r,i),s),{})}function Z0(t,r,i,s){if(!r.includes(i))return null;const a=X0(i),u=J0(a,s),d=t[i];return Pn(t,d,u)}function kh(t,r){const i=Dc(t.theme);return Object.keys(t).map(s=>Z0(t,r,s,i)).reduce(Qi,{})}function Ct(t){return kh(t,Fc)}Ct.propTypes={};Ct.filterProps=Fc;function bt(t){return kh(t,Bc)}bt.propTypes={};bt.filterProps=Bc;function Kl(...t){const r=t.reduce((s,a)=>(a.filterProps.forEach(u=>{s[u]=a}),s),{}),i=s=>Object.keys(s).reduce((a,u)=>r[u]?Qi(a,r[u](s)):a,{});return i.propTypes={},i.filterProps=t.reduce((s,a)=>s.concat(a.filterProps),[]),i}function kn(t){return typeof t!="number"?t:`${t}px solid`}function Tn(t,r){return Tt({prop:t,themeKey:"borders",transform:r})}const ev=Tn("border",kn),tv=Tn("borderTop",kn),nv=Tn("borderRight",kn),rv=Tn("borderBottom",kn),ov=Tn("borderLeft",kn),iv=Tn("borderColor"),sv=Tn("borderTopColor"),lv=Tn("borderRightColor"),av=Tn("borderBottomColor"),uv=Tn("borderLeftColor"),cv=Tn("outline",kn),dv=Tn("outlineColor"),Ql=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const r=os(t.theme,"shape.borderRadius",4),i=s=>({borderRadius:is(r,s)});return Pn(t,t.borderRadius,i)}return null};Ql.propTypes={};Ql.filterProps=["borderRadius"];Kl(ev,tv,nv,rv,ov,iv,sv,lv,av,uv,Ql,cv,dv);const ql=t=>{if(t.gap!==void 0&&t.gap!==null){const r=os(t.theme,"spacing",8),i=s=>({gap:is(r,s)});return Pn(t,t.gap,i)}return null};ql.propTypes={};ql.filterProps=["gap"];const Yl=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const r=os(t.theme,"spacing",8),i=s=>({columnGap:is(r,s)});return Pn(t,t.columnGap,i)}return null};Yl.propTypes={};Yl.filterProps=["columnGap"];const Xl=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const r=os(t.theme,"spacing",8),i=s=>({rowGap:is(r,s)});return Pn(t,t.rowGap,i)}return null};Xl.propTypes={};Xl.filterProps=["rowGap"];const fv=Tt({prop:"gridColumn"}),pv=Tt({prop:"gridRow"}),mv=Tt({prop:"gridAutoFlow"}),hv=Tt({prop:"gridAutoColumns"}),gv=Tt({prop:"gridAutoRows"}),yv=Tt({prop:"gridTemplateColumns"}),vv=Tt({prop:"gridTemplateRows"}),xv=Tt({prop:"gridTemplateAreas"}),Sv=Tt({prop:"gridArea"});Kl(ql,Yl,Xl,fv,pv,mv,hv,gv,yv,vv,xv,Sv);function Uo(t,r){return r==="grey"?r:t}const wv=Tt({prop:"color",themeKey:"palette",transform:Uo}),Cv=Tt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Uo}),bv=Tt({prop:"backgroundColor",themeKey:"palette",transform:Uo});Kl(wv,Cv,bv);function fn(t){return t<=1&&t!==0?`${t*100}%`:t}const kv=Tt({prop:"width",transform:fn}),Wc=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const r=i=>{var a,u,d,p,m;const s=((d=(u=(a=t.theme)==null?void 0:a.breakpoints)==null?void 0:u.values)==null?void 0:d[i])||Vl[i];return s?((m=(p=t.theme)==null?void 0:p.breakpoints)==null?void 0:m.unit)!=="px"?{maxWidth:`${s}${t.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:fn(i)}};return Pn(t,t.maxWidth,r)}return null};Wc.filterProps=["maxWidth"];const Ev=Tt({prop:"minWidth",transform:fn}),Rv=Tt({prop:"height",transform:fn}),Pv=Tt({prop:"maxHeight",transform:fn}),Tv=Tt({prop:"minHeight",transform:fn});Tt({prop:"size",cssProperty:"width",transform:fn});Tt({prop:"size",cssProperty:"height",transform:fn});const $v=Tt({prop:"boxSizing"});Kl(kv,Wc,Ev,Rv,Pv,Tv,$v);const ss={border:{themeKey:"borders",transform:kn},borderTop:{themeKey:"borders",transform:kn},borderRight:{themeKey:"borders",transform:kn},borderBottom:{themeKey:"borders",transform:kn},borderLeft:{themeKey:"borders",transform:kn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:kn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ql},color:{themeKey:"palette",transform:Uo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Uo},backgroundColor:{themeKey:"palette",transform:Uo},p:{style:bt},pt:{style:bt},pr:{style:bt},pb:{style:bt},pl:{style:bt},px:{style:bt},py:{style:bt},padding:{style:bt},paddingTop:{style:bt},paddingRight:{style:bt},paddingBottom:{style:bt},paddingLeft:{style:bt},paddingX:{style:bt},paddingY:{style:bt},paddingInline:{style:bt},paddingInlineStart:{style:bt},paddingInlineEnd:{style:bt},paddingBlock:{style:bt},paddingBlockStart:{style:bt},paddingBlockEnd:{style:bt},m:{style:Ct},mt:{style:Ct},mr:{style:Ct},mb:{style:Ct},ml:{style:Ct},mx:{style:Ct},my:{style:Ct},margin:{style:Ct},marginTop:{style:Ct},marginRight:{style:Ct},marginBottom:{style:Ct},marginLeft:{style:Ct},marginX:{style:Ct},marginY:{style:Ct},marginInline:{style:Ct},marginInlineStart:{style:Ct},marginInlineEnd:{style:Ct},marginBlock:{style:Ct},marginBlockStart:{style:Ct},marginBlockEnd:{style:Ct},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ql},rowGap:{style:Xl},columnGap:{style:Yl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fn},maxWidth:{style:Wc},minWidth:{transform:fn},height:{transform:fn},maxHeight:{transform:fn},minHeight:{transform:fn},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 Iv(...t){const r=t.reduce((s,a)=>s.concat(Object.keys(a)),[]),i=new Set(r);return t.every(s=>i.size===Object.keys(s).length)}function Mv(t,r){return typeof t=="function"?t(r):t}function _v(){function t(i,s,a,u){const d={[i]:s,theme:a},p=u[i];if(!p)return{[i]:s};const{cssProperty:m=i,themeKey:h,transform:w,style:x}=p;if(s==null)return null;if(h==="typography"&&s==="inherit")return{[i]:s};const k=Gl(a,h)||{};return x?x(d):Pn(d,s,C=>{let S=Ll(k,w,C);return C===S&&typeof C=="string"&&(S=Ll(k,w,`${i}${C==="default"?"":he(C)}`,C)),m===!1?S:{[m]:S}})}function r(i){const{sx:s,theme:a={}}=i||{};if(!s)return null;const u=a.unstable_sxConfig??ss;function d(p){let m=p;if(typeof p=="function")m=p(a);else if(typeof p!="object")return p;if(!m)return null;const h=H0(a.breakpoints),w=Object.keys(h);let x=h;return Object.keys(m).forEach(k=>{const E=Mv(m[k],a);if(E!=null)if(typeof E=="object")if(u[k])x=Qi(x,t(k,E,a,u));else{const C=Pn({theme:a},E,S=>({[k]:S}));Iv(C,E)?x[k]=r({sx:E,theme:a}):x=Qi(x,C)}else x=Qi(x,t(k,E,a,u))}),B0(a,G0(w,x))}return Array.isArray(s)?s.map(d):d(s)}return r}const so=_v();so.filterProps=["sx"];const zv=t=>{var s;const r={systemProps:{},otherProps:{}},i=((s=t==null?void 0:t.theme)==null?void 0:s.unstable_sxConfig)??ss;return Object.keys(t).forEach(a=>{i[a]?r.systemProps[a]=t[a]:r.otherProps[a]=t[a]}),r};function Uc(t){const{sx:r,...i}=t,{systemProps:s,otherProps:a}=zv(i);let u;return Array.isArray(r)?u=[s,...r]:typeof r=="function"?u=(...d)=>{const p=r(...d);return Yn(p)?{...s,...p}:s}:u={...s,...r},{...a,sx:u}}function Ol(){return Ol=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)({}).hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},Ol.apply(null,arguments)}function jv(t){if(t.sheet)return t.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===t)return document.styleSheets[r]}function Av(t){var r=document.createElement("style");return r.setAttribute("data-emotion",t.key),t.nonce!==void 0&&r.setAttribute("nonce",t.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var Nv=function(){function t(i){var s=this;this._insertTag=function(a){var u;s.tags.length===0?s.insertionPoint?u=s.insertionPoint.nextSibling:s.prepend?u=s.container.firstChild:u=s.before:u=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(a,u),s.tags.push(a)},this.isSpeedy=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=t.prototype;return r.hydrate=function(s){s.forEach(this._insertTag)},r.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Av(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var u=jv(a);try{u.insertRule(s,u.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(s));this.ctr++},r.flush=function(){this.tags.forEach(function(s){var a;return(a=s.parentNode)==null?void 0:a.removeChild(s)}),this.tags=[],this.ctr=0},t}(),Qt="-ms-",Fl="-moz-",Xe="-webkit-",Eh="comm",Vc="rule",Hc="decl",Lv="@import",Rh="@keyframes",Ov="@layer",Fv=Math.abs,Jl=String.fromCharCode,Bv=Object.assign;function Dv(t,r){return Wt(t,0)^45?(((r<<2^Wt(t,0))<<2^Wt(t,1))<<2^Wt(t,2))<<2^Wt(t,3):0}function Ph(t){return t.trim()}function Wv(t,r){return(t=r.exec(t))?t[0]:t}function Je(t,r,i){return t.replace(r,i)}function yc(t,r){return t.indexOf(r)}function Wt(t,r){return t.charCodeAt(r)|0}function Xi(t,r,i){return t.slice(r,i)}function Qn(t){return t.length}function Gc(t){return t.length}function vl(t,r){return r.push(t),t}function Uv(t,r){return t.map(r).join("")}var Zl=1,Go=1,Th=0,ln=0,Mt=0,qo="";function ea(t,r,i,s,a,u,d){return{value:t,root:r,parent:i,type:s,props:a,children:u,line:Zl,column:Go,length:d,return:""}}function Li(t,r){return Bv(ea("",null,null,"",null,null,0),t,{length:-t.length},r)}function Vv(){return Mt}function Hv(){return Mt=ln>0?Wt(qo,--ln):0,Go--,Mt===10&&(Go=1,Zl--),Mt}function mn(){return Mt=ln<Th?Wt(qo,ln++):0,Go++,Mt===10&&(Go=1,Zl++),Mt}function Xn(){return Wt(qo,ln)}function Ml(){return ln}function ls(t,r){return Xi(qo,t,r)}function Ji(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $h(t){return Zl=Go=1,Th=Qn(qo=t),ln=0,[]}function Ih(t){return qo="",t}function _l(t){return Ph(ls(ln-1,vc(t===91?t+2:t===40?t+1:t)))}function Gv(t){for(;(Mt=Xn())&&Mt<33;)mn();return Ji(t)>2||Ji(Mt)>3?"":" "}function Kv(t,r){for(;--r&&mn()&&!(Mt<48||Mt>102||Mt>57&&Mt<65||Mt>70&&Mt<97););return ls(t,Ml()+(r<6&&Xn()==32&&mn()==32))}function vc(t){for(;mn();)switch(Mt){case t:return ln;case 34:case 39:t!==34&&t!==39&&vc(Mt);break;case 40:t===41&&vc(t);break;case 92:mn();break}return ln}function Qv(t,r){for(;mn()&&t+Mt!==57;)if(t+Mt===84&&Xn()===47)break;return"/*"+ls(r,ln-1)+"*"+Jl(t===47?t:mn())}function qv(t){for(;!Ji(Xn());)mn();return ls(t,ln)}function Yv(t){return Ih(zl("",null,null,null,[""],t=$h(t),0,[0],t))}function zl(t,r,i,s,a,u,d,p,m){for(var h=0,w=0,x=d,k=0,E=0,C=0,S=1,P=1,$=1,_=0,T="",R=a,M=u,L=s,A=T;P;)switch(C=_,_=mn()){case 40:if(C!=108&&Wt(A,x-1)==58){yc(A+=Je(_l(_),"&","&\f"),"&\f")!=-1&&($=-1);break}case 34:case 39:case 91:A+=_l(_);break;case 9:case 10:case 13:case 32:A+=Gv(C);break;case 92:A+=Kv(Ml()-1,7);continue;case 47:switch(Xn()){case 42:case 47:vl(Xv(Qv(mn(),Ml()),r,i),m);break;default:A+="/"}break;case 123*S:p[h++]=Qn(A)*$;case 125*S:case 59:case 0:switch(_){case 0:case 125:P=0;case 59+w:$==-1&&(A=Je(A,/\f/g,"")),E>0&&Qn(A)-x&&vl(E>32?mm(A+";",s,i,x-1):mm(Je(A," ","")+";",s,i,x-2),m);break;case 59:A+=";";default:if(vl(L=pm(A,r,i,h,w,a,p,T,R=[],M=[],x),u),_===123)if(w===0)zl(A,r,L,L,R,u,x,p,M);else switch(k===99&&Wt(A,3)===110?100:k){case 100:case 108:case 109:case 115:zl(t,L,L,s&&vl(pm(t,L,L,0,0,a,p,T,a,R=[],x),M),a,M,x,p,s?R:M);break;default:zl(A,L,L,L,[""],M,0,p,M)}}h=w=E=0,S=$=1,T=A="",x=d;break;case 58:x=1+Qn(A),E=C;default:if(S<1){if(_==123)--S;else if(_==125&&S++==0&&Hv()==125)continue}switch(A+=Jl(_),_*S){case 38:$=w>0?1:(A+="\f",-1);break;case 44:p[h++]=(Qn(A)-1)*$,$=1;break;case 64:Xn()===45&&(A+=_l(mn())),k=Xn(),w=x=Qn(T=A+=qv(Ml())),_++;break;case 45:C===45&&Qn(A)==2&&(S=0)}}return u}function pm(t,r,i,s,a,u,d,p,m,h,w){for(var x=a-1,k=a===0?u:[""],E=Gc(k),C=0,S=0,P=0;C<s;++C)for(var $=0,_=Xi(t,x+1,x=Fv(S=d[C])),T=t;$<E;++$)(T=Ph(S>0?k[$]+" "+_:Je(_,/&\f/g,k[$])))&&(m[P++]=T);return ea(t,r,i,a===0?Vc:p,m,h,w)}function Xv(t,r,i){return ea(t,r,i,Eh,Jl(Vv()),Xi(t,2,-2),0)}function mm(t,r,i,s){return ea(t,r,i,Hc,Xi(t,0,s),Xi(t,s+1,-1),s)}function Vo(t,r){for(var i="",s=Gc(t),a=0;a<s;a++)i+=r(t[a],a,t,r)||"";return i}function Jv(t,r,i,s){switch(t.type){case Ov:if(t.children.length)break;case Lv:case Hc:return t.return=t.return||t.value;case Eh:return"";case Rh:return t.return=t.value+"{"+Vo(t.children,s)+"}";case Vc:t.value=t.props.join(",")}return Qn(i=Vo(t.children,s))?t.return=t.value+"{"+i+"}":""}function Zv(t){var r=Gc(t);return function(i,s,a,u){for(var d="",p=0;p<r;p++)d+=t[p](i,s,a,u)||"";return d}}function e1(t){return function(r){r.root||(r=r.return)&&t(r)}}function Mh(t){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=t(i)),r[i]}}var t1=function(r,i,s){for(var a=0,u=0;a=u,u=Xn(),a===38&&u===12&&(i[s]=1),!Ji(u);)mn();return ls(r,ln)},n1=function(r,i){var s=-1,a=44;do switch(Ji(a)){case 0:a===38&&Xn()===12&&(i[s]=1),r[s]+=t1(ln-1,i,s);break;case 2:r[s]+=_l(a);break;case 4:if(a===44){r[++s]=Xn()===58?"&\f":"",i[s]=r[s].length;break}default:r[s]+=Jl(a)}while(a=mn());return r},r1=function(r,i){return Ih(n1($h(r),i))},hm=new WeakMap,o1=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var i=r.value,s=r.parent,a=r.column===s.column&&r.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(r.props.length===1&&i.charCodeAt(0)!==58&&!hm.get(s))&&!a){hm.set(r,!0);for(var u=[],d=r1(i,u),p=s.props,m=0,h=0;m<d.length;m++)for(var w=0;w<p.length;w++,h++)r.props[h]=u[m]?d[m].replace(/&\f/g,p[w]):p[w]+" "+d[m]}}},i1=function(r){if(r.type==="decl"){var i=r.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(r.return="",r.value="")}};function _h(t,r){switch(Dv(t,r)){case 5103:return Xe+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Xe+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Xe+t+Fl+t+Qt+t+t;case 6828:case 4268:return Xe+t+Qt+t+t;case 6165:return Xe+t+Qt+"flex-"+t+t;case 5187:return Xe+t+Je(t,/(\w+).+(:[^]+)/,Xe+"box-$1$2"+Qt+"flex-$1$2")+t;case 5443:return Xe+t+Qt+"flex-item-"+Je(t,/flex-|-self/,"")+t;case 4675:return Xe+t+Qt+"flex-line-pack"+Je(t,/align-content|flex-|-self/,"")+t;case 5548:return Xe+t+Qt+Je(t,"shrink","negative")+t;case 5292:return Xe+t+Qt+Je(t,"basis","preferred-size")+t;case 6060:return Xe+"box-"+Je(t,"-grow","")+Xe+t+Qt+Je(t,"grow","positive")+t;case 4554:return Xe+Je(t,/([^-])(transform)/g,"$1"+Xe+"$2")+t;case 6187:return Je(Je(Je(t,/(zoom-|grab)/,Xe+"$1"),/(image-set)/,Xe+"$1"),t,"")+t;case 5495:case 3959:return Je(t,/(image-set\([^]*)/,Xe+"$1$`$1");case 4968:return Je(Je(t,/(.+:)(flex-)?(.*)/,Xe+"box-pack:$3"+Qt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xe+t+t;case 4095:case 3583:case 4068:case 2532:return Je(t,/(.+)-inline(.+)/,Xe+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qn(t)-1-r>6)switch(Wt(t,r+1)){case 109:if(Wt(t,r+4)!==45)break;case 102:return Je(t,/(.+:)(.+)-([^]+)/,"$1"+Xe+"$2-$3$1"+Fl+(Wt(t,r+3)==108?"$3":"$2-$3"))+t;case 115:return~yc(t,"stretch")?_h(Je(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(Wt(t,r+1)!==115)break;case 6444:switch(Wt(t,Qn(t)-3-(~yc(t,"!important")&&10))){case 107:return Je(t,":",":"+Xe)+t;case 101:return Je(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xe+(Wt(t,14)===45?"inline-":"")+"box$3$1"+Xe+"$2$3$1"+Qt+"$2box$3")+t}break;case 5936:switch(Wt(t,r+11)){case 114:return Xe+t+Qt+Je(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Xe+t+Qt+Je(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Xe+t+Qt+Je(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Xe+t+Qt+t+t}return t}var s1=function(r,i,s,a){if(r.length>-1&&!r.return)switch(r.type){case Hc:r.return=_h(r.value,r.length);break;case Rh:return Vo([Li(r,{value:Je(r.value,"@","@"+Xe)})],a);case Vc:if(r.length)return Uv(r.props,function(u){switch(Wv(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vo([Li(r,{props:[Je(u,/:(read-\w+)/,":"+Fl+"$1")]})],a);case"::placeholder":return Vo([Li(r,{props:[Je(u,/:(plac\w+)/,":"+Xe+"input-$1")]}),Li(r,{props:[Je(u,/:(plac\w+)/,":"+Fl+"$1")]}),Li(r,{props:[Je(u,/:(plac\w+)/,Qt+"input-$1")]})],a)}return""})}},l1=[s1],a1=function(r){var i=r.key;if(i==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(S){var P=S.getAttribute("data-emotion");P.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var a=r.stylisPlugins||l1,u={},d,p=[];d=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(S){for(var P=S.getAttribute("data-emotion").split(" "),$=1;$<P.length;$++)u[P[$]]=!0;p.push(S)});var m,h=[o1,i1];{var w,x=[Jv,e1(function(S){w.insert(S)})],k=Zv(h.concat(a,x)),E=function(P){return Vo(Yv(P),k)};m=function(P,$,_,T){w=_,E(P?P+"{"+$.styles+"}":$.styles),T&&(C.inserted[$.name]=!0)}}var C={key:i,sheet:new Nv({key:i,container:d,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:u,registered:{},insert:m};return C.sheet.hydrate(p),C},nc={exports:{}},Ze={};/** @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 gm;function u1(){if(gm)return Ze;gm=1;var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,s=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,u=t?Symbol.for("react.profiler"):60114,d=t?Symbol.for("react.provider"):60109,p=t?Symbol.for("react.context"):60110,m=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,w=t?Symbol.for("react.forward_ref"):60112,x=t?Symbol.for("react.suspense"):60113,k=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,C=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,P=t?Symbol.for("react.fundamental"):60117,$=t?Symbol.for("react.responder"):60118,_=t?Symbol.for("react.scope"):60119;function T(M){if(typeof M=="object"&&M!==null){var L=M.$$typeof;switch(L){case r:switch(M=M.type,M){case m:case h:case s:case u:case a:case x:return M;default:switch(M=M&&M.$$typeof,M){case p:case w:case C:case E:case d:return M;default:return L}}case i:return L}}}function R(M){return T(M)===h}return Ze.AsyncMode=m,Ze.ConcurrentMode=h,Ze.ContextConsumer=p,Ze.ContextProvider=d,Ze.Element=r,Ze.ForwardRef=w,Ze.Fragment=s,Ze.Lazy=C,Ze.Memo=E,Ze.Portal=i,Ze.Profiler=u,Ze.StrictMode=a,Ze.Suspense=x,Ze.isAsyncMode=function(M){return R(M)||T(M)===m},Ze.isConcurrentMode=R,Ze.isContextConsumer=function(M){return T(M)===p},Ze.isContextProvider=function(M){return T(M)===d},Ze.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===r},Ze.isForwardRef=function(M){return T(M)===w},Ze.isFragment=function(M){return T(M)===s},Ze.isLazy=function(M){return T(M)===C},Ze.isMemo=function(M){return T(M)===E},Ze.isPortal=function(M){return T(M)===i},Ze.isProfiler=function(M){return T(M)===u},Ze.isStrictMode=function(M){return T(M)===a},Ze.isSuspense=function(M){return T(M)===x},Ze.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===s||M===h||M===u||M===a||M===x||M===k||typeof M=="object"&&M!==null&&(M.$$typeof===C||M.$$typeof===E||M.$$typeof===d||M.$$typeof===p||M.$$typeof===w||M.$$typeof===P||M.$$typeof===$||M.$$typeof===_||M.$$typeof===S)},Ze.typeOf=T,Ze}var ym;function c1(){return ym||(ym=1,nc.exports=u1()),nc.exports}var rc,vm;function d1(){if(vm)return rc;vm=1;var t=c1(),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},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[t.ForwardRef]=s,u[t.Memo]=a;function d(C){return t.isMemo(C)?a:u[C.$$typeof]||r}var p=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,w=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,k=Object.prototype;function E(C,S,P){if(typeof S!="string"){if(k){var $=x(S);$&&$!==k&&E(C,$,P)}var _=m(S);h&&(_=_.concat(h(S)));for(var T=d(C),R=d(S),M=0;M<_.length;++M){var L=_[M];if(!i[L]&&!(P&&P[L])&&!(R&&R[L])&&!(T&&T[L])){var A=w(S,L);try{p(C,L,A)}catch{}}}}return C}return rc=E,rc}d1();var f1=!0;function zh(t,r,i){var s="";return i.split(" ").forEach(function(a){t[a]!==void 0?r.push(t[a]+";"):a&&(s+=a+" ")}),s}var Kc=function(r,i,s){var a=r.key+"-"+i.name;(s===!1||f1===!1)&&r.registered[a]===void 0&&(r.registered[a]=i.styles)},Qc=function(r,i,s){Kc(r,i,s);var a=r.key+"-"+i.name;if(r.inserted[i.name]===void 0){var u=i;do r.insert(i===u?"."+a:"",u,r.sheet,!0),u=u.next;while(u!==void 0)}};function p1(t){for(var r=0,i,s=0,a=t.length;a>=4;++s,a-=4)i=t.charCodeAt(s)&255|(t.charCodeAt(++s)&255)<<8|(t.charCodeAt(++s)&255)<<16|(t.charCodeAt(++s)&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^=(t.charCodeAt(s+2)&255)<<16;case 2:r^=(t.charCodeAt(s+1)&255)<<8;case 1:r^=t.charCodeAt(s)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var m1={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},h1=/[A-Z]|^ms/g,g1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jh=function(r){return r.charCodeAt(1)===45},xm=function(r){return r!=null&&typeof r!="boolean"},oc=Mh(function(t){return jh(t)?t:t.replace(h1,"-$&").toLowerCase()}),Sm=function(r,i){switch(r){case"animation":case"animationName":if(typeof i=="string")return i.replace(g1,function(s,a,u){return qn={name:a,styles:u,next:qn},a})}return m1[r]!==1&&!jh(r)&&typeof i=="number"&&i!==0?i+"px":i};function Zi(t,r,i){if(i==null)return"";var s=i;if(s.__emotion_styles!==void 0)return s;switch(typeof i){case"boolean":return"";case"object":{var a=i;if(a.anim===1)return qn={name:a.name,styles:a.styles,next:qn},a.name;var u=i;if(u.styles!==void 0){var d=u.next;if(d!==void 0)for(;d!==void 0;)qn={name:d.name,styles:d.styles,next:qn},d=d.next;var p=u.styles+";";return p}return y1(t,r,i)}case"function":{if(t!==void 0){var m=qn,h=i(t);return qn=m,Zi(t,r,h)}break}}var w=i;if(r==null)return w;var x=r[w];return x!==void 0?x:w}function y1(t,r,i){var s="";if(Array.isArray(i))for(var a=0;a<i.length;a++)s+=Zi(t,r,i[a])+";";else for(var u in i){var d=i[u];if(typeof d!="object"){var p=d;r!=null&&r[p]!==void 0?s+=u+"{"+r[p]+"}":xm(p)&&(s+=oc(u)+":"+Sm(u,p)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&(r==null||r[d[0]]===void 0))for(var m=0;m<d.length;m++)xm(d[m])&&(s+=oc(u)+":"+Sm(u,d[m])+";");else{var h=Zi(t,r,d);switch(u){case"animation":case"animationName":{s+=oc(u)+":"+h+";";break}default:s+=u+"{"+h+"}"}}}return s}var wm=/label:\s*([^\s;{]+)\s*(;|$)/g,qn;function as(t,r,i){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var s=!0,a="";qn=void 0;var u=t[0];if(u==null||u.raw===void 0)s=!1,a+=Zi(i,r,u);else{var d=u;a+=d[0]}for(var p=1;p<t.length;p++)if(a+=Zi(i,r,t[p]),s){var m=u;a+=m[p]}wm.lastIndex=0;for(var h="",w;(w=wm.exec(a))!==null;)h+="-"+w[1];var x=p1(a)+h;return{name:x,styles:a,next:qn}}var v1=function(r){return r()},Ah=Al.useInsertionEffect?Al.useInsertionEffect:!1,Nh=Ah||v1,Cm=Ah||b.useLayoutEffect,Lh=b.createContext(typeof HTMLElement<"u"?a1({key:"css"}):null);Lh.Provider;var qc=function(r){return b.forwardRef(function(i,s){var a=b.useContext(Lh);return r(i,a,s)})},ta=b.createContext({}),Yc={}.hasOwnProperty,xc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",x1=function(r,i){var s={};for(var a in i)Yc.call(i,a)&&(s[a]=i[a]);return s[xc]=r,s},S1=function(r){var i=r.cache,s=r.serialized,a=r.isStringTag;return Kc(i,s,a),Nh(function(){return Qc(i,s,a)}),null},w1=qc(function(t,r,i){var s=t.css;typeof s=="string"&&r.registered[s]!==void 0&&(s=r.registered[s]);var a=t[xc],u=[s],d="";typeof t.className=="string"?d=zh(r.registered,u,t.className):t.className!=null&&(d=t.className+" ");var p=as(u,void 0,b.useContext(ta));d+=r.key+"-"+p.name;var m={};for(var h in t)Yc.call(t,h)&&h!=="css"&&h!==xc&&(m[h]=t[h]);return m.className=d,i&&(m.ref=i),b.createElement(b.Fragment,null,b.createElement(S1,{cache:r,serialized:p,isStringTag:typeof a=="string"}),b.createElement(a,m))}),C1=w1,b1=function(r,i){var s=arguments;if(i==null||!Yc.call(i,"css"))return b.createElement.apply(void 0,s);var a=s.length,u=new Array(a);u[0]=C1,u[1]=x1(r,i);for(var d=2;d<a;d++)u[d]=s[d];return b.createElement.apply(null,u)};(function(t){var r;r||(r=t.JSX||(t.JSX={}))})(b1);var k1=qc(function(t,r){var i=t.styles,s=as([i],void 0,b.useContext(ta)),a=b.useRef();return Cm(function(){var u=r.key+"-global",d=new r.sheet.constructor({key:u,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),p=!1,m=document.querySelector('style[data-emotion="'+u+" "+s.name+'"]');return r.sheet.tags.length&&(d.before=r.sheet.tags[0]),m!==null&&(p=!0,m.setAttribute("data-emotion",u),d.hydrate([m])),a.current=[d,p],function(){d.flush()}},[r]),Cm(function(){var u=a.current,d=u[0],p=u[1];if(p){u[1]=!1;return}if(s.next!==void 0&&Qc(r,s.next,!0),d.tags.length){var m=d.tags[d.tags.length-1].nextElementSibling;d.before=m,d.flush()}r.insert("",s,d,!1)},[r,s.name]),null});function Xc(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return as(r)}function Yo(){var t=Xc.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var E1=/^((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)-.*))$/,R1=Mh(function(t){return E1.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),P1=R1,T1=function(r){return r!=="theme"},bm=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?P1:T1},km=function(r,i,s){var a;if(i){var u=i.shouldForwardProp;a=r.__emotion_forwardProp&&u?function(d){return r.__emotion_forwardProp(d)&&u(d)}:u}return typeof a!="function"&&s&&(a=r.__emotion_forwardProp),a},$1=function(r){var i=r.cache,s=r.serialized,a=r.isStringTag;return Kc(i,s,a),Nh(function(){return Qc(i,s,a)}),null},I1=function t(r,i){var s=r.__emotion_real===r,a=s&&r.__emotion_base||r,u,d;i!==void 0&&(u=i.label,d=i.target);var p=km(r,i,s),m=p||bm(a),h=!m("as");return function(){var w=arguments,x=s&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(u!==void 0&&x.push("label:"+u+";"),w[0]==null||w[0].raw===void 0)x.push.apply(x,w);else{var k=w[0];x.push(k[0]);for(var E=w.length,C=1;C<E;C++)x.push(w[C],k[C])}var S=qc(function(P,$,_){var T=h&&P.as||a,R="",M=[],L=P;if(P.theme==null){L={};for(var A in P)L[A]=P[A];L.theme=b.useContext(ta)}typeof P.className=="string"?R=zh($.registered,M,P.className):P.className!=null&&(R=P.className+" ");var V=as(x.concat(M),$.registered,L);R+=$.key+"-"+V.name,d!==void 0&&(R+=" "+d);var ee=h&&p===void 0?bm(T):m,v={};for(var G in P)h&&G==="as"||ee(G)&&(v[G]=P[G]);return v.className=R,_&&(v.ref=_),b.createElement(b.Fragment,null,b.createElement($1,{cache:$,serialized:V,isStringTag:typeof T=="string"}),b.createElement(T,v))});return S.displayName=u!==void 0?u:"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"."+d}}),S.withComponent=function(P,$){var _=t(P,Ol({},i,$,{shouldForwardProp:km(S,$,!0)}));return _.apply(void 0,x)},S}},M1=["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"],Sc=I1.bind(null);M1.forEach(function(t){Sc[t]=Sc(t)});function _1(t){return t==null||Object.keys(t).length===0}function z1(t){const{styles:r,defaultTheme:i={}}=t,s=typeof r=="function"?a=>r(_1(a)?i:a):r;return y.jsx(k1,{styles:s})}/**
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 Oh(t,r){return Sc(t,r)}function j1(t,r){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=r(t.__emotion_styles))}const Em=[];function Rm(t){return Em[0]=t,as(Em)}const A1=t=>{const r=Object.keys(t).map(i=>({key:i,val:t[i]}))||[];return r.sort((i,s)=>i.val-s.val),r.reduce((i,s)=>({...i,[s.key]:s.val}),{})};function N1(t){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:s=5,...a}=t,u=A1(r),d=Object.keys(u);function p(k){return`@media (min-width:${typeof r[k]=="number"?r[k]:k}${i})`}function m(k){return`@media (max-width:${(typeof r[k]=="number"?r[k]:k)-s/100}${i})`}function h(k,E){const C=d.indexOf(E);return`@media (min-width:${typeof r[k]=="number"?r[k]:k}${i}) and (max-width:${(C!==-1&&typeof r[d[C]]=="number"?r[d[C]]:E)-s/100}${i})`}function w(k){return d.indexOf(k)+1<d.length?h(k,d[d.indexOf(k)+1]):p(k)}function x(k){const E=d.indexOf(k);return E===0?p(d[1]):E===d.length-1?m(d[E]):h(k,d[d.indexOf(k)+1]).replace("@media","@media not all and")}return{keys:d,values:u,up:p,down:m,between:h,only:w,not:x,unit:i,...a}}const L1={borderRadius:4};function Fh(t=8,r=Dc({spacing:t})){if(t.mui)return t;const i=(...s)=>(s.length===0?[1]:s).map(u=>{const d=r(u);return typeof d=="number"?`${d}px`:d}).join(" ");return i.mui=!0,i}function O1(t,r){var s;const i=this;if(i.vars){if(!((s=i.colorSchemes)!=null&&s[t])||typeof i.getColorSchemeSelector!="function")return{};let a=i.getColorSchemeSelector(t);return a==="&"?r:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:r})}return i.palette.mode===t?r:{}}function Jc(t={},...r){const{breakpoints:i={},palette:s={},spacing:a,shape:u={},...d}=t,p=N1(i),m=Fh(a);let h=qt({breakpoints:p,direction:"ltr",components:{},palette:{mode:"light",...s},spacing:m,shape:{...L1,...u}},d);return h=U0(h),h.applyStyles=O1,h=r.reduce((w,x)=>qt(w,x),h),h.unstable_sxConfig={...ss,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(x){return so({sx:x,theme:this})},h}function F1(t){return Object.keys(t).length===0}function Bh(t=null){const r=b.useContext(ta);return!r||F1(r)?t:r}const B1=Jc();function Zc(t=B1){return Bh(t)}function D1({styles:t,themeId:r,defaultTheme:i={}}){const s=Zc(i),a=typeof t=="function"?t(r&&s[r]||s):t;return y.jsx(z1,{styles:a})}function W1(t={}){const{themeId:r,defaultTheme:i,defaultClassName:s="MuiBox-root",generateClassName:a}=t,u=Oh("div",{shouldForwardProp:p=>p!=="theme"&&p!=="sx"&&p!=="as"})(so);return b.forwardRef(function(m,h){const w=Zc(i),{className:x,component:k="div",...E}=Uc(m);return y.jsx(u,{as:k,ref:h,className:Re(x,a?a(s):s),theme:r&&w[r]||w,...E})})}function Dh(t){const{variants:r,...i}=t,s={variants:r,style:Rm(i),isProcessed:!0};return s.style===i||r&&r.forEach(a=>{typeof a.style!="function"&&(a.style=Rm(a.style))}),s}const U1=Jc();function ic(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function V1(t){return t?(r,i)=>i[t]:null}function H1(t,r,i){t.theme=K1(t.theme)?i:t.theme[r]||t.theme}function jl(t,r){const i=typeof r=="function"?r(t):r;if(Array.isArray(i))return i.flatMap(s=>jl(t,s));if(Array.isArray(i==null?void 0:i.variants)){let s;if(i.isProcessed)s=i.style;else{const{variants:a,...u}=i;s=u}return Wh(t,i.variants,[s])}return i!=null&&i.isProcessed?i.style:i}function Wh(t,r,i=[]){var a;let s;e:for(let u=0;u<r.length;u+=1){const d=r[u];if(typeof d.props=="function"){if(s??(s={...t,...t.ownerState,ownerState:t.ownerState}),!d.props(s))continue}else for(const p in d.props)if(t[p]!==d.props[p]&&((a=t.ownerState)==null?void 0:a[p])!==d.props[p])continue e;typeof d.style=="function"?(s??(s={...t,...t.ownerState,ownerState:t.ownerState}),i.push(d.style(s))):i.push(d.style)}return i}function Uh(t={}){const{themeId:r,defaultTheme:i=U1,rootShouldForwardProp:s=ic,slotShouldForwardProp:a=ic}=t;function u(p){H1(p,r,i)}return(p,m={})=>{j1(p,M=>M.filter(L=>L!==so));const{name:h,slot:w,skipVariantsResolver:x,skipSx:k,overridesResolver:E=V1(q1(w)),...C}=m,S=x!==void 0?x:w&&w!=="Root"&&w!=="root"||!1,P=k||!1;let $=ic;w==="Root"||w==="root"?$=s:w?$=a:Q1(p)&&($=void 0);const _=Oh(p,{shouldForwardProp:$,label:G1(),...C}),T=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function(A){return jl(A,M)};if(Yn(M)){const L=Dh(M);return L.variants?function(V){return jl(V,L)}:L.style}return M},R=(...M)=>{const L=[],A=M.map(T),V=[];if(L.push(u),h&&E&&V.push(function(Z){var B,Q;const O=(Q=(B=Z.theme.components)==null?void 0:B[h])==null?void 0:Q.styleOverrides;if(!O)return null;const F={};for(const U in O)F[U]=jl(Z,O[U]);return E(Z,F)}),h&&!S&&V.push(function(Z){var F,B;const K=Z.theme,O=(B=(F=K==null?void 0:K.components)==null?void 0:F[h])==null?void 0:B.variants;return O?Wh(Z,O):null}),P||V.push(so),Array.isArray(A[0])){const G=A.shift(),Z=new Array(L.length).fill(""),K=new Array(V.length).fill("");let O;O=[...Z,...G,...K],O.raw=[...Z,...G.raw,...K],L.unshift(O)}const ee=[...L,...A,...V],v=_(...ee);return p.muiName&&(v.muiName=p.muiName),v};return _.withConfig&&(R.withConfig=_.withConfig),R}}function G1(t,r){return void 0}function K1(t){for(const r in t)return!1;return!0}function Q1(t){return typeof t=="string"&&t.charCodeAt(0)>96}function q1(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const Y1=Uh();function X1(t){const{theme:r,name:i,props:s}=t;return!r||!r.components||!r.components[i]||!r.components[i].defaultProps?s:Ho(r.components[i].defaultProps,s)}function J1(t,r,i,s,a){const[u,d]=b.useState(()=>a&&i?i(t).matches:s?s(t).matches:r);return Zn(()=>{if(!i)return;const p=i(t),m=()=>{d(p.matches)};return m(),p.addEventListener("change",m),()=>{p.removeEventListener("change",m)}},[t,i]),u}const Z1={...Al},Vh=Z1.useSyncExternalStore;function ex(t,r,i,s,a){const u=b.useCallback(()=>r,[r]),d=b.useMemo(()=>{if(a&&i)return()=>i(t).matches;if(s!==null){const{matches:w}=s(t);return()=>w}return u},[u,t,s,a,i]),[p,m]=b.useMemo(()=>{if(i===null)return[u,()=>()=>{}];const w=i(t);return[()=>w.matches,x=>(w.addEventListener("change",x),()=>{w.removeEventListener("change",x)})]},[u,i,t]);return Vh(m,p,d)}function tx(t={}){const{themeId:r}=t;return function(s,a={}){let u=Bh();u&&r&&(u=u[r]||u);const d=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:p=!1,matchMedia:m=d?window.matchMedia:null,ssrMatchMedia:h=null,noSsr:w=!1}=X1({name:"MuiUseMediaQuery",props:a,theme:u});let x=typeof s=="function"?s(u):s;return x=x.replace(/^@media( ?)/m,""),(Vh!==void 0?ex:J1)(x,p,m,h,w)}}function ed(t,r=0,i=1){return Do(t,r,i)}function nx(t){t=t.slice(1);const r=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let i=t.match(r);return i&&i[0].length===1&&(i=i.map(s=>s+s)),i?`rgb${i.length===4?"a":""}(${i.map((s,a)=>a<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function Ar(t){if(t.type)return t;if(t.charAt(0)==="#")return Ar(nx(t));const r=t.indexOf("("),i=t.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(i))throw new Error(fr(9,t));let s=t.substring(r+1,t.length-1),a;if(i==="color"){if(s=s.split(" "),a=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(fr(10,a))}else s=s.split(",");return s=s.map(u=>parseFloat(u)),{type:i,values:s,colorSpace:a}}const rx=t=>{const r=Ar(t);return r.values.slice(0,3).map((i,s)=>r.type.includes("hsl")&&s!==0?`${i}%`:i).join(" ")},Vi=(t,r)=>{try{return rx(t)}catch{return t}};function na(t){const{type:r,colorSpace:i}=t;let{values:s}=t;return r.includes("rgb")?s=s.map((a,u)=>u<3?parseInt(a,10):a):r.includes("hsl")&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),r.includes("color")?s=`${i} ${s.join(" ")}`:s=`${s.join(", ")}`,`${r}(${s})`}function Hh(t){t=Ar(t);const{values:r}=t,i=r[0],s=r[1]/100,a=r[2]/100,u=s*Math.min(a,1-a),d=(h,w=(h+i/30)%12)=>a-u*Math.max(Math.min(w-3,9-w,1),-1);let p="rgb";const m=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return t.type==="hsla"&&(p+="a",m.push(r[3])),na({type:p,values:m})}function wc(t){t=Ar(t);let r=t.type==="hsl"||t.type==="hsla"?Ar(Hh(t)).values:t.values;return r=r.map(i=>(t.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 ox(t,r){const i=wc(t),s=wc(r);return(Math.max(i,s)+.05)/(Math.min(i,s)+.05)}function xt(t,r){return t=Ar(t),r=ed(r),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${r}`:t.values[3]=r,na(t)}function xl(t,r,i){try{return xt(t,r)}catch{return t}}function lo(t,r){if(t=Ar(t),r=ed(r),t.type.includes("hsl"))t.values[2]*=1-r;else if(t.type.includes("rgb")||t.type.includes("color"))for(let i=0;i<3;i+=1)t.values[i]*=1-r;return na(t)}function it(t,r,i){try{return lo(t,r)}catch{return t}}function ao(t,r){if(t=Ar(t),r=ed(r),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*r;else if(t.type.includes("rgb"))for(let i=0;i<3;i+=1)t.values[i]+=(255-t.values[i])*r;else if(t.type.includes("color"))for(let i=0;i<3;i+=1)t.values[i]+=(1-t.values[i])*r;return na(t)}function st(t,r,i){try{return ao(t,r)}catch{return t}}function ix(t,r=.15){return wc(t)>.5?lo(t,r):ao(t,r)}function Sl(t,r,i){try{return ix(t,r)}catch{return t}}const sx=b.createContext(),Gh=()=>b.useContext(sx)??!1,lx=b.createContext(void 0);function ax(t){const{theme:r,name:i,props:s}=t;if(!r||!r.components||!r.components[i])return s;const a=r.components[i];return a.defaultProps?Ho(a.defaultProps,s):!a.styleOverrides&&!a.variants?Ho(a,s):s}function ux({props:t,name:r}){const i=b.useContext(lx);return ax({props:t,name:r,theme:{components:i}})}const Pm={theme:void 0};function cx(t){let r,i;return function(a){let u=r;return(u===void 0||a.theme!==i)&&(Pm.theme=a.theme,u=Dh(t(Pm)),r=u,i=a.theme),u}}function dx(t=""){function r(...s){if(!s.length)return"";const a=s[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${a}${r(...s.slice(1))})`:`, ${a}`}return(s,...a)=>`var(--${t?`${t}-`:""}${s}${r(...a)})`}const Tm=(t,r,i,s=[])=>{let a=t;r.forEach((u,d)=>{d===r.length-1?Array.isArray(a)?a[Number(u)]=i:a&&typeof a=="object"&&(a[u]=i):a&&typeof a=="object"&&(a[u]||(a[u]=s.includes(u)?[]:{}),a=a[u])})},fx=(t,r,i)=>{function s(a,u=[],d=[]){Object.entries(a).forEach(([p,m])=>{(!i||!i([...u,p]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?s(m,[...u,p],Array.isArray(m)?[...d,p]:d):r([...u,p],m,d))})}s(t)},px=(t,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(s=>t.includes(s))||t[t.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function sc(t,r){const{prefix:i,shouldSkipGeneratingVar:s}=r||{},a={},u={},d={};return fx(t,(p,m,h)=>{if((typeof m=="string"||typeof m=="number")&&(!s||!s(p,m))){const w=`--${i?`${i}-`:""}${p.join("-")}`,x=px(p,m);Object.assign(a,{[w]:x}),Tm(u,p,`var(${w})`,h),Tm(d,p,`var(${w}, ${x})`,h)}},p=>p[0]==="vars"),{css:a,vars:u,varsWithDefaults:d}}function mx(t,r={}){const{getSelector:i=P,disableCssColorScheme:s,colorSchemeSelector:a}=r,{colorSchemes:u={},components:d,defaultColorScheme:p="light",...m}=t,{vars:h,css:w,varsWithDefaults:x}=sc(m,r);let k=x;const E={},{[p]:C,...S}=u;if(Object.entries(S||{}).forEach(([T,R])=>{const{vars:M,css:L,varsWithDefaults:A}=sc(R,r);k=qt(k,A),E[T]={css:L,vars:M}}),C){const{css:T,vars:R,varsWithDefaults:M}=sc(C,r);k=qt(k,M),E[p]={css:T,vars:R}}function P(T,R){var L,A;let M=a;if(a==="class"&&(M=".%s"),a==="data"&&(M="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(M=`[${a}="%s"]`),T){if(M==="media")return t.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${((A=(L=u[T])==null?void 0:L.palette)==null?void 0:A.mode)||T})`]:{":root":R}};if(M)return t.defaultColorScheme===T?`:root, ${M.replace("%s",String(T))}`:M.replace("%s",String(T))}return":root"}return{vars:k,generateThemeVars:()=>{let T={...h};return Object.entries(E).forEach(([,{vars:R}])=>{T=qt(T,R)}),T},generateStyleSheets:()=>{var V,ee;const T=[],R=t.defaultColorScheme||"light";function M(v,G){Object.keys(G).length&&T.push(typeof v=="string"?{[v]:{...G}}:v)}M(i(void 0,{...w}),w);const{[R]:L,...A}=E;if(L){const{css:v}=L,G=(ee=(V=u[R])==null?void 0:V.palette)==null?void 0:ee.mode,Z=!s&&G?{colorScheme:G,...v}:{...v};M(i(R,{...Z}),Z)}return Object.entries(A).forEach(([v,{css:G}])=>{var O,F;const Z=(F=(O=u[v])==null?void 0:O.palette)==null?void 0:F.mode,K=!s&&Z?{colorScheme:Z,...G}:{...G};M(i(v,{...K}),K)}),T}}}function hx(t){return function(i){return t==="media"?`@media (prefers-color-scheme: ${i})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${i}"] &`:t==="class"?`.${i} &`:t==="data"?`[data-${i}] &`:`${t.replace("%s",i)} &`:"&"}}const es={black:"#000",white:"#fff"},gx={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"},jo={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"},Ao={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"},Oi={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"},No={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"},Lo={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"},Oo={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 Kh(){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:es.white,default:es.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 yx=Kh();function Qh(){return{text:{primary:es.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:es.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 $m=Qh();function Im(t,r,i,s){const a=s.light||s,u=s.dark||s*1.5;t[r]||(t.hasOwnProperty(i)?t[r]=t[i]:r==="light"?t.light=ao(t.main,a):r==="dark"&&(t.dark=lo(t.main,u)))}function vx(t="light"){return t==="dark"?{main:No[200],light:No[50],dark:No[400]}:{main:No[700],light:No[400],dark:No[800]}}function xx(t="light"){return t==="dark"?{main:jo[200],light:jo[50],dark:jo[400]}:{main:jo[500],light:jo[300],dark:jo[700]}}function Sx(t="light"){return t==="dark"?{main:Ao[500],light:Ao[300],dark:Ao[700]}:{main:Ao[700],light:Ao[400],dark:Ao[800]}}function wx(t="light"){return t==="dark"?{main:Lo[400],light:Lo[300],dark:Lo[700]}:{main:Lo[700],light:Lo[500],dark:Lo[900]}}function Cx(t="light"){return t==="dark"?{main:Oo[400],light:Oo[300],dark:Oo[700]}:{main:Oo[800],light:Oo[500],dark:Oo[900]}}function bx(t="light"){return t==="dark"?{main:Oi[400],light:Oi[300],dark:Oi[700]}:{main:"#ed6c02",light:Oi[500],dark:Oi[900]}}function td(t){const{mode:r="light",contrastThreshold:i=3,tonalOffset:s=.2,...a}=t,u=t.primary||vx(r),d=t.secondary||xx(r),p=t.error||Sx(r),m=t.info||wx(r),h=t.success||Cx(r),w=t.warning||bx(r);function x(S){return ox(S,$m.text.primary)>=i?$m.text.primary:yx.text.primary}const k=({color:S,name:P,mainShade:$=500,lightShade:_=300,darkShade:T=700})=>{if(S={...S},!S.main&&S[$]&&(S.main=S[$]),!S.hasOwnProperty("main"))throw new Error(fr(11,P?` (${P})`:"",$));if(typeof S.main!="string")throw new Error(fr(12,P?` (${P})`:"",JSON.stringify(S.main)));return Im(S,"light",_,s),Im(S,"dark",T,s),S.contrastText||(S.contrastText=x(S.main)),S};let E;return r==="light"?E=Kh():r==="dark"&&(E=Qh()),qt({common:{...es},mode:r,primary:k({color:u,name:"primary"}),secondary:k({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:k({color:p,name:"error"}),warning:k({color:w,name:"warning"}),info:k({color:m,name:"info"}),success:k({color:h,name:"success"}),grey:gx,contrastThreshold:i,getContrastText:x,augmentColor:k,tonalOffset:s,...E},a)}function kx(t){const r={};return Object.entries(t).forEach(s=>{const[a,u]=s;typeof u=="object"&&(r[a]=`${u.fontStyle?`${u.fontStyle} `:""}${u.fontVariant?`${u.fontVariant} `:""}${u.fontWeight?`${u.fontWeight} `:""}${u.fontStretch?`${u.fontStretch} `:""}${u.fontSize||""}${u.lineHeight?`/${u.lineHeight} `:""}${u.fontFamily||""}`)}),r}function Ex(t,r){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...r}}function Rx(t){return Math.round(t*1e5)/1e5}const Mm={textTransform:"uppercase"},_m='"Roboto", "Helvetica", "Arial", sans-serif';function Px(t,r){const{fontFamily:i=_m,fontSize:s=14,fontWeightLight:a=300,fontWeightRegular:u=400,fontWeightMedium:d=500,fontWeightBold:p=700,htmlFontSize:m=16,allVariants:h,pxToRem:w,...x}=typeof r=="function"?r(t):r,k=s/14,E=w||(P=>`${P/m*k}rem`),C=(P,$,_,T,R)=>({fontFamily:i,fontWeight:P,fontSize:E($),lineHeight:_,...i===_m?{letterSpacing:`${Rx(T/$)}em`}:{},...R,...h}),S={h1:C(a,96,1.167,-1.5),h2:C(a,60,1.2,-.5),h3:C(u,48,1.167,0),h4:C(u,34,1.235,.25),h5:C(u,24,1.334,0),h6:C(d,20,1.6,.15),subtitle1:C(u,16,1.75,.15),subtitle2:C(d,14,1.57,.1),body1:C(u,16,1.5,.15),body2:C(u,14,1.43,.15),button:C(d,14,1.75,.4,Mm),caption:C(u,12,1.66,.4),overline:C(u,12,2.66,1,Mm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qt({htmlFontSize:m,pxToRem:E,fontFamily:i,fontSize:s,fontWeightLight:a,fontWeightRegular:u,fontWeightMedium:d,fontWeightBold:p,...S},x,{clone:!1})}const Tx=.2,$x=.14,Ix=.12;function ht(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${Tx})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${$x})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${Ix})`].join(",")}const Mx=["none",ht(0,2,1,-1,0,1,1,0,0,1,3,0),ht(0,3,1,-2,0,2,2,0,0,1,5,0),ht(0,3,3,-2,0,3,4,0,0,1,8,0),ht(0,2,4,-1,0,4,5,0,0,1,10,0),ht(0,3,5,-1,0,5,8,0,0,1,14,0),ht(0,3,5,-1,0,6,10,0,0,1,18,0),ht(0,4,5,-2,0,7,10,1,0,2,16,1),ht(0,5,5,-3,0,8,10,1,0,3,14,2),ht(0,5,6,-3,0,9,12,1,0,3,16,2),ht(0,6,6,-3,0,10,14,1,0,4,18,3),ht(0,6,7,-4,0,11,15,1,0,4,20,3),ht(0,7,8,-4,0,12,17,2,0,5,22,4),ht(0,7,8,-4,0,13,19,2,0,5,24,4),ht(0,7,9,-4,0,14,21,2,0,5,26,4),ht(0,8,9,-5,0,15,22,2,0,6,28,5),ht(0,8,10,-5,0,16,24,2,0,6,30,5),ht(0,8,11,-5,0,17,26,2,0,6,32,5),ht(0,9,11,-5,0,18,28,2,0,7,34,6),ht(0,9,12,-6,0,19,29,2,0,7,36,6),ht(0,10,13,-6,0,20,31,3,0,8,38,7),ht(0,10,13,-6,0,21,33,3,0,8,40,7),ht(0,10,14,-6,0,22,35,3,0,8,42,7),ht(0,11,14,-7,0,23,36,3,0,9,44,8),ht(0,11,15,-7,0,24,38,3,0,9,46,8)],_x={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)"},qh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zm(t){return`${Math.round(t)}ms`}function zx(t){if(!t)return 0;const r=t/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function jx(t){const r={..._x,...t.easing},i={...qh,...t.duration};return{getAutoHeightDuration:zx,create:(a=["all"],u={})=>{const{duration:d=i.standard,easing:p=r.easeInOut,delay:m=0,...h}=u;return(Array.isArray(a)?a:[a]).map(w=>`${w} ${typeof d=="string"?d:zm(d)} ${p} ${typeof m=="string"?m:zm(m)}`).join(",")},...t,easing:r,duration:i}}const Ax={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Nx(t){return Yn(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function Yh(t={}){const r={...t};function i(s){const a=Object.entries(s);for(let u=0;u<a.length;u++){const[d,p]=a[u];!Nx(p)||d.startsWith("unstable_")?delete s[d]:Yn(p)&&(s[d]={...p},i(s[d]))}}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 Cc(t={},...r){const{breakpoints:i,mixins:s={},spacing:a,palette:u={},transitions:d={},typography:p={},shape:m,...h}=t;if(t.vars)throw new Error(fr(20));const w=td(u),x=Jc(t);let k=qt(x,{mixins:Ex(x.breakpoints,s),palette:w,shadows:Mx.slice(),typography:Px(w,p),transitions:jx(d),zIndex:{...Ax}});return k=qt(k,h),k=r.reduce((E,C)=>qt(E,C),k),k.unstable_sxConfig={...ss,...h==null?void 0:h.unstable_sxConfig},k.unstable_sx=function(C){return so({sx:C,theme:this})},k.toRuntimeSource=Yh,k}function bc(t){let r;return t<1?r=5.11916*t**2:r=4.5*Math.log(t+1)+2,Math.round(r*10)/1e3}const Lx=[...Array(25)].map((t,r)=>{if(r===0)return"none";const i=bc(r);return`linear-gradient(rgba(255 255 255 / ${i}), rgba(255 255 255 / ${i}))`});function Xh(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function Jh(t){return t==="dark"?Lx:[]}function Ox(t){const{palette:r={mode:"light"},opacity:i,overlays:s,...a}=t,u=td(r);return{palette:u,opacity:{...Xh(u.mode),...i},overlays:s||Jh(u.mode),...a}}function Fx(t){var r;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((r=t[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const Bx=t=>[...[...Array(25)].map((r,i)=>`--${t?`${t}-`:""}overlays-${i}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],Dx=t=>(r,i)=>{const s=t.rootSelector||":root",a=t.colorSchemeSelector;let u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(u=`[${a}="%s"]`),t.defaultColorScheme===r){if(r==="dark"){const d={};return Bx(t.cssVarPrefix).forEach(p=>{d[p]=i[p],delete i[p]}),u==="media"?{[s]:i,"@media (prefers-color-scheme: dark)":{[s]:d}}:u?{[u.replace("%s",r)]:d,[`${s}, ${u.replace("%s",r)}`]:i}:{[s]:{...i,...d}}}if(u&&u!=="media")return`${s}, ${u.replace("%s",String(r))}`}else if(r){if(u==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[s]:i}};if(u)return u.replace("%s",String(r))}return s};function Wx(t,r){r.forEach(i=>{t[i]||(t[i]={})})}function J(t,r,i){!t[r]&&i&&(t[r]=i)}function Hi(t){return typeof t!="string"||!t.startsWith("hsl")?t:Hh(t)}function ar(t,r){`${r}Channel`in t||(t[`${r}Channel`]=Vi(Hi(t[r])))}function Ux(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Hn=t=>{try{return t()}catch{}},Vx=(t="mui")=>dx(t);function lc(t,r,i,s){if(!r)return;r=r===!0?{}:r;const a=s==="dark"?"dark":"light";if(!i){t[s]=Ox({...r,palette:{mode:a,...r==null?void 0:r.palette}});return}const{palette:u,...d}=Cc({...i,palette:{mode:a,...r==null?void 0:r.palette}});return t[s]={...r,palette:u,opacity:{...Xh(a),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||Jh(a)},d}function Hx(t={},...r){const{colorSchemes:i={light:!0},defaultColorScheme:s,disableCssColorScheme:a=!1,cssVarPrefix:u="mui",shouldSkipGeneratingVar:d=Fx,colorSchemeSelector:p=i.light&&i.dark?"media":void 0,rootSelector:m=":root",...h}=t,w=Object.keys(i)[0],x=s||(i.light&&w!=="light"?"light":w),k=Vx(u),{[x]:E,light:C,dark:S,...P}=i,$={...P};let _=E;if((x==="dark"&&!("dark"in i)||x==="light"&&!("light"in i))&&(_=!0),!_)throw new Error(fr(21,x));const T=lc($,_,h,x);C&&!$.light&&lc($,C,void 0,"light"),S&&!$.dark&&lc($,S,void 0,"dark");let R={defaultColorScheme:x,...T,cssVarPrefix:u,colorSchemeSelector:p,rootSelector:m,getCssVar:k,colorSchemes:$,font:{...kx(T.typography),...T.font},spacing:Ux(h.spacing)};Object.keys(R.colorSchemes).forEach(ee=>{const v=R.colorSchemes[ee].palette,G=Z=>{const K=Z.split("-"),O=K[1],F=K[2];return k(Z,v[O][F])};if(v.mode==="light"&&(J(v.common,"background","#fff"),J(v.common,"onBackground","#000")),v.mode==="dark"&&(J(v.common,"background","#000"),J(v.common,"onBackground","#fff")),Wx(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){J(v.Alert,"errorColor",it(v.error.light,.6)),J(v.Alert,"infoColor",it(v.info.light,.6)),J(v.Alert,"successColor",it(v.success.light,.6)),J(v.Alert,"warningColor",it(v.warning.light,.6)),J(v.Alert,"errorFilledBg",G("palette-error-main")),J(v.Alert,"infoFilledBg",G("palette-info-main")),J(v.Alert,"successFilledBg",G("palette-success-main")),J(v.Alert,"warningFilledBg",G("palette-warning-main")),J(v.Alert,"errorFilledColor",Hn(()=>v.getContrastText(v.error.main))),J(v.Alert,"infoFilledColor",Hn(()=>v.getContrastText(v.info.main))),J(v.Alert,"successFilledColor",Hn(()=>v.getContrastText(v.success.main))),J(v.Alert,"warningFilledColor",Hn(()=>v.getContrastText(v.warning.main))),J(v.Alert,"errorStandardBg",st(v.error.light,.9)),J(v.Alert,"infoStandardBg",st(v.info.light,.9)),J(v.Alert,"successStandardBg",st(v.success.light,.9)),J(v.Alert,"warningStandardBg",st(v.warning.light,.9)),J(v.Alert,"errorIconColor",G("palette-error-main")),J(v.Alert,"infoIconColor",G("palette-info-main")),J(v.Alert,"successIconColor",G("palette-success-main")),J(v.Alert,"warningIconColor",G("palette-warning-main")),J(v.AppBar,"defaultBg",G("palette-grey-100")),J(v.Avatar,"defaultBg",G("palette-grey-400")),J(v.Button,"inheritContainedBg",G("palette-grey-300")),J(v.Button,"inheritContainedHoverBg",G("palette-grey-A100")),J(v.Chip,"defaultBorder",G("palette-grey-400")),J(v.Chip,"defaultAvatarColor",G("palette-grey-700")),J(v.Chip,"defaultIconColor",G("palette-grey-700")),J(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),J(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),J(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),J(v.LinearProgress,"primaryBg",st(v.primary.main,.62)),J(v.LinearProgress,"secondaryBg",st(v.secondary.main,.62)),J(v.LinearProgress,"errorBg",st(v.error.main,.62)),J(v.LinearProgress,"infoBg",st(v.info.main,.62)),J(v.LinearProgress,"successBg",st(v.success.main,.62)),J(v.LinearProgress,"warningBg",st(v.warning.main,.62)),J(v.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.11)`),J(v.Slider,"primaryTrack",st(v.primary.main,.62)),J(v.Slider,"secondaryTrack",st(v.secondary.main,.62)),J(v.Slider,"errorTrack",st(v.error.main,.62)),J(v.Slider,"infoTrack",st(v.info.main,.62)),J(v.Slider,"successTrack",st(v.success.main,.62)),J(v.Slider,"warningTrack",st(v.warning.main,.62));const Z=Sl(v.background.default,.8);J(v.SnackbarContent,"bg",Z),J(v.SnackbarContent,"color",Hn(()=>v.getContrastText(Z))),J(v.SpeedDialAction,"fabHoverBg",Sl(v.background.paper,.15)),J(v.StepConnector,"border",G("palette-grey-400")),J(v.StepContent,"border",G("palette-grey-400")),J(v.Switch,"defaultColor",G("palette-common-white")),J(v.Switch,"defaultDisabledColor",G("palette-grey-100")),J(v.Switch,"primaryDisabledColor",st(v.primary.main,.62)),J(v.Switch,"secondaryDisabledColor",st(v.secondary.main,.62)),J(v.Switch,"errorDisabledColor",st(v.error.main,.62)),J(v.Switch,"infoDisabledColor",st(v.info.main,.62)),J(v.Switch,"successDisabledColor",st(v.success.main,.62)),J(v.Switch,"warningDisabledColor",st(v.warning.main,.62)),J(v.TableCell,"border",st(xl(v.divider,1),.88)),J(v.Tooltip,"bg",xl(v.grey[700],.92))}if(v.mode==="dark"){J(v.Alert,"errorColor",st(v.error.light,.6)),J(v.Alert,"infoColor",st(v.info.light,.6)),J(v.Alert,"successColor",st(v.success.light,.6)),J(v.Alert,"warningColor",st(v.warning.light,.6)),J(v.Alert,"errorFilledBg",G("palette-error-dark")),J(v.Alert,"infoFilledBg",G("palette-info-dark")),J(v.Alert,"successFilledBg",G("palette-success-dark")),J(v.Alert,"warningFilledBg",G("palette-warning-dark")),J(v.Alert,"errorFilledColor",Hn(()=>v.getContrastText(v.error.dark))),J(v.Alert,"infoFilledColor",Hn(()=>v.getContrastText(v.info.dark))),J(v.Alert,"successFilledColor",Hn(()=>v.getContrastText(v.success.dark))),J(v.Alert,"warningFilledColor",Hn(()=>v.getContrastText(v.warning.dark))),J(v.Alert,"errorStandardBg",it(v.error.light,.9)),J(v.Alert,"infoStandardBg",it(v.info.light,.9)),J(v.Alert,"successStandardBg",it(v.success.light,.9)),J(v.Alert,"warningStandardBg",it(v.warning.light,.9)),J(v.Alert,"errorIconColor",G("palette-error-main")),J(v.Alert,"infoIconColor",G("palette-info-main")),J(v.Alert,"successIconColor",G("palette-success-main")),J(v.Alert,"warningIconColor",G("palette-warning-main")),J(v.AppBar,"defaultBg",G("palette-grey-900")),J(v.AppBar,"darkBg",G("palette-background-paper")),J(v.AppBar,"darkColor",G("palette-text-primary")),J(v.Avatar,"defaultBg",G("palette-grey-600")),J(v.Button,"inheritContainedBg",G("palette-grey-800")),J(v.Button,"inheritContainedHoverBg",G("palette-grey-700")),J(v.Chip,"defaultBorder",G("palette-grey-700")),J(v.Chip,"defaultAvatarColor",G("palette-grey-300")),J(v.Chip,"defaultIconColor",G("palette-grey-300")),J(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),J(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),J(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),J(v.LinearProgress,"primaryBg",it(v.primary.main,.5)),J(v.LinearProgress,"secondaryBg",it(v.secondary.main,.5)),J(v.LinearProgress,"errorBg",it(v.error.main,.5)),J(v.LinearProgress,"infoBg",it(v.info.main,.5)),J(v.LinearProgress,"successBg",it(v.success.main,.5)),J(v.LinearProgress,"warningBg",it(v.warning.main,.5)),J(v.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.13)`),J(v.Slider,"primaryTrack",it(v.primary.main,.5)),J(v.Slider,"secondaryTrack",it(v.secondary.main,.5)),J(v.Slider,"errorTrack",it(v.error.main,.5)),J(v.Slider,"infoTrack",it(v.info.main,.5)),J(v.Slider,"successTrack",it(v.success.main,.5)),J(v.Slider,"warningTrack",it(v.warning.main,.5));const Z=Sl(v.background.default,.98);J(v.SnackbarContent,"bg",Z),J(v.SnackbarContent,"color",Hn(()=>v.getContrastText(Z))),J(v.SpeedDialAction,"fabHoverBg",Sl(v.background.paper,.15)),J(v.StepConnector,"border",G("palette-grey-600")),J(v.StepContent,"border",G("palette-grey-600")),J(v.Switch,"defaultColor",G("palette-grey-300")),J(v.Switch,"defaultDisabledColor",G("palette-grey-600")),J(v.Switch,"primaryDisabledColor",it(v.primary.main,.55)),J(v.Switch,"secondaryDisabledColor",it(v.secondary.main,.55)),J(v.Switch,"errorDisabledColor",it(v.error.main,.55)),J(v.Switch,"infoDisabledColor",it(v.info.main,.55)),J(v.Switch,"successDisabledColor",it(v.success.main,.55)),J(v.Switch,"warningDisabledColor",it(v.warning.main,.55)),J(v.TableCell,"border",it(xl(v.divider,1),.68)),J(v.Tooltip,"bg",xl(v.grey[700],.92))}ar(v.background,"default"),ar(v.background,"paper"),ar(v.common,"background"),ar(v.common,"onBackground"),ar(v,"divider"),Object.keys(v).forEach(Z=>{const K=v[Z];Z!=="tonalOffset"&&K&&typeof K=="object"&&(K.main&&J(v[Z],"mainChannel",Vi(Hi(K.main))),K.light&&J(v[Z],"lightChannel",Vi(Hi(K.light))),K.dark&&J(v[Z],"darkChannel",Vi(Hi(K.dark))),K.contrastText&&J(v[Z],"contrastTextChannel",Vi(Hi(K.contrastText))),Z==="text"&&(ar(v[Z],"primary"),ar(v[Z],"secondary")),Z==="action"&&(K.active&&ar(v[Z],"active"),K.selected&&ar(v[Z],"selected")))})}),R=r.reduce((ee,v)=>qt(ee,v),R);const M={prefix:u,disableCssColorScheme:a,shouldSkipGeneratingVar:d,getSelector:Dx(R)},{vars:L,generateThemeVars:A,generateStyleSheets:V}=mx(R,M);return R.vars=L,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([ee,v])=>{R[ee]=v}),R.generateThemeVars=A,R.generateStyleSheets=V,R.generateSpacing=function(){return Fh(h.spacing,Dc(this))},R.getColorSchemeSelector=hx(p),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=d,R.unstable_sxConfig={...ss,...h==null?void 0:h.unstable_sxConfig},R.unstable_sx=function(v){return so({sx:v,theme:this})},R.toRuntimeSource=Yh,R}function jm(t,r,i){t.colorSchemes&&i&&(t.colorSchemes[r]={...i!==!0&&i,palette:td({...i===!0?{}:i.palette,mode:r})})}function Zh(t={},...r){const{palette:i,cssVariables:s=!1,colorSchemes:a=i?void 0:{light:!0},defaultColorScheme:u=i==null?void 0:i.mode,...d}=t,p=u||"light",m=a==null?void 0:a[p],h={...a,...i?{[p]:{...typeof m!="boolean"&&m,palette:i}}:void 0};if(s===!1){if(!("colorSchemes"in t))return Cc(t,...r);let w=i;"palette"in t||h[p]&&(h[p]!==!0?w=h[p].palette:p==="dark"&&(w={mode:"dark"}));const x=Cc({...t,palette:w},...r);return x.defaultColorScheme=p,x.colorSchemes=h,x.palette.mode==="light"&&(x.colorSchemes.light={...h.light!==!0&&h.light,palette:x.palette},jm(x,"dark",h.dark)),x.palette.mode==="dark"&&(x.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:x.palette},jm(x,"light",h.light)),x}return!i&&!("light"in h)&&p==="light"&&(h.light=!0),Hx({...d,colorSchemes:h,defaultColorScheme:p,...typeof s!="boolean"&&s},...r)}const nd=Zh(),us="$$material";function uo(){const t=Zc(nd);return t[us]||t}function Gx(t){return y.jsx(D1,{...t,defaultTheme:nd,themeId:us})}function ra(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const $n=t=>ra(t)&&t!=="classes",ue=Uh({themeId:us,defaultTheme:nd,rootShouldForwardProp:$n});function Kx(t){return function(i){return y.jsx(Gx,{styles:typeof t=="function"?s=>t({theme:s,...i}):t})}}function Qx(){return Uc}const We=cx;function He(t){return ux(t)}function qx(t){return Ve("MuiSvgIcon",t)}Oe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Yx=t=>{const{color:r,fontSize:i,classes:s}=t,a={root:["root",r!=="inherit"&&`color${he(r)}`,`fontSize${he(i)}`]};return Ue(a,qx,s)},Xx=ue("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,i.color!=="inherit"&&r[`color${he(i.color)}`],r[`fontSize${he(i.fontSize)}`]]}})(We(({theme:t})=>{var r,i,s,a,u,d,p,m,h,w,x,k,E,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(r=t.transitions)==null?void 0:r.create)==null?void 0:a.call(r,"fill",{duration:(s=(i=(t.vars??t).transitions)==null?void 0:i.duration)==null?void 0:s.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((d=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((m=(p=t.typography)==null?void 0:p.pxToRem)==null?void 0:m.call(p,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((w=(h=t.typography)==null?void 0:h.pxToRem)==null?void 0:w.call(h,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,S])=>S&&S.main).map(([S])=>{var P,$;return{props:{color:S},style:{color:($=(P=(t.vars??t).palette)==null?void 0:P[S])==null?void 0:$.main}}}),{props:{color:"action"},style:{color:(k=(x=(t.vars??t).palette)==null?void 0:x.action)==null?void 0:k.active}},{props:{color:"disabled"},style:{color:(C=(E=(t.vars??t).palette)==null?void 0:E.action)==null?void 0:C.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),kc=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiSvgIcon"}),{children:a,className:u,color:d="inherit",component:p="svg",fontSize:m="medium",htmlColor:h,inheritViewBox:w=!1,titleAccess:x,viewBox:k="0 0 24 24",...E}=s,C=b.isValidElement(a)&&a.type==="svg",S={...s,color:d,component:p,fontSize:m,instanceFontSize:r.fontSize,inheritViewBox:w,viewBox:k,hasSvgAsChild:C},P={};w||(P.viewBox=k);const $=Yx(S);return y.jsxs(Xx,{as:p,className:Re($.root,u),focusable:"false",color:h,"aria-hidden":x?void 0:!0,role:x?"img":void 0,ref:i,...P,...E,...C&&a.props,ownerState:S,children:[C?a.props.children:a,x?y.jsx("title",{children:x}):null]})});kc.muiName="SvgIcon";function gt(t,r){function i(s,a){return y.jsx(kc,{"data-testid":`${r}Icon`,ref:a,...s,children:t})}return i.muiName=kc.muiName,b.memo(b.forwardRef(i))}const eg=gt(y.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 tg(t,r){if(t==null)return{};var i={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(r.indexOf(s)!==-1)continue;i[s]=t[s]}return i}function Ec(t,r){return Ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},Ec(t,r)}function ng(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,Ec(t,r)}var rg=ph();const wl=Ac(rg),Am={disabled:!1},Bl=En.createContext(null);var Jx=function(r){return r.scrollTop},Gi="unmounted",to="exited",no="entering",Wo="entered",Rc="exiting",On=function(t){ng(r,t);function r(s,a){var u;u=t.call(this,s,a)||this;var d=a,p=d&&!d.isMounting?s.enter:s.appear,m;return u.appearStatus=null,s.in?p?(m=to,u.appearStatus=no):m=Wo:s.unmountOnExit||s.mountOnEnter?m=Gi:m=to,u.state={status:m},u.nextCallback=null,u}r.getDerivedStateFromProps=function(a,u){var d=a.in;return d&&u.status===Gi?{status:to}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(a){var u=null;if(a!==this.props){var d=this.state.status;this.props.in?d!==no&&d!==Wo&&(u=no):(d===no||d===Wo)&&(u=Rc)}this.updateStatus(!1,u)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var a=this.props.timeout,u,d,p;return u=d=p=a,a!=null&&typeof a!="number"&&(u=a.exit,d=a.enter,p=a.appear!==void 0?a.appear:d),{exit:u,enter:d,appear:p}},i.updateStatus=function(a,u){if(a===void 0&&(a=!1),u!==null)if(this.cancelNextCallback(),u===no){if(this.props.unmountOnExit||this.props.mountOnEnter){var d=this.props.nodeRef?this.props.nodeRef.current:wl.findDOMNode(this);d&&Jx(d)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===to&&this.setState({status:Gi})},i.performEnter=function(a){var u=this,d=this.props.enter,p=this.context?this.context.isMounting:a,m=this.props.nodeRef?[p]:[wl.findDOMNode(this),p],h=m[0],w=m[1],x=this.getTimeouts(),k=p?x.appear:x.enter;if(!a&&!d||Am.disabled){this.safeSetState({status:Wo},function(){u.props.onEntered(h)});return}this.props.onEnter(h,w),this.safeSetState({status:no},function(){u.props.onEntering(h,w),u.onTransitionEnd(k,function(){u.safeSetState({status:Wo},function(){u.props.onEntered(h,w)})})})},i.performExit=function(){var a=this,u=this.props.exit,d=this.getTimeouts(),p=this.props.nodeRef?void 0:wl.findDOMNode(this);if(!u||Am.disabled){this.safeSetState({status:to},function(){a.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:Rc},function(){a.props.onExiting(p),a.onTransitionEnd(d.exit,function(){a.safeSetState({status:to},function(){a.props.onExited(p)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(a,u){u=this.setNextCallback(u),this.setState(a,u)},i.setNextCallback=function(a){var u=this,d=!0;return this.nextCallback=function(p){d&&(d=!1,u.nextCallback=null,a(p))},this.nextCallback.cancel=function(){d=!1},this.nextCallback},i.onTransitionEnd=function(a,u){this.setNextCallback(u);var d=this.props.nodeRef?this.props.nodeRef.current:wl.findDOMNode(this),p=a==null&&!this.props.addEndListener;if(!d||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[d,this.nextCallback],h=m[0],w=m[1];this.props.addEndListener(h,w)}a!=null&&setTimeout(this.nextCallback,a)},i.render=function(){var a=this.state.status;if(a===Gi)return null;var u=this.props,d=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var p=tg(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return En.createElement(Bl.Provider,{value:null},typeof d=="function"?d(a,p):En.cloneElement(En.Children.only(d),p))},r}(En.Component);On.contextType=Bl;On.propTypes={};function Fo(){}On.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fo,onEntering:Fo,onEntered:Fo,onExit:Fo,onExiting:Fo,onExited:Fo};On.UNMOUNTED=Gi;On.EXITED=to;On.ENTERING=no;On.ENTERED=Wo;On.EXITING=Rc;function Zx(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rd(t,r){var i=function(u){return r&&b.isValidElement(u)?r(u):u},s=Object.create(null);return t&&b.Children.map(t,function(a){return a}).forEach(function(a){s[a.key]=i(a)}),s}function eS(t,r){t=t||{},r=r||{};function i(w){return w in r?r[w]:t[w]}var s=Object.create(null),a=[];for(var u in t)u in r?a.length&&(s[u]=a,a=[]):a.push(u);var d,p={};for(var m in r){if(s[m])for(d=0;d<s[m].length;d++){var h=s[m][d];p[s[m][d]]=i(h)}p[m]=i(m)}for(d=0;d<a.length;d++)p[a[d]]=i(a[d]);return p}function ro(t,r,i){return i[r]!=null?i[r]:t.props[r]}function tS(t,r){return rd(t.children,function(i){return b.cloneElement(i,{onExited:r.bind(null,i),in:!0,appear:ro(i,"appear",t),enter:ro(i,"enter",t),exit:ro(i,"exit",t)})})}function nS(t,r,i){var s=rd(t.children),a=eS(r,s);return Object.keys(a).forEach(function(u){var d=a[u];if(b.isValidElement(d)){var p=u in r,m=u in s,h=r[u],w=b.isValidElement(h)&&!h.props.in;m&&(!p||w)?a[u]=b.cloneElement(d,{onExited:i.bind(null,d),in:!0,exit:ro(d,"exit",t),enter:ro(d,"enter",t)}):!m&&p&&!w?a[u]=b.cloneElement(d,{in:!1}):m&&p&&b.isValidElement(h)&&(a[u]=b.cloneElement(d,{onExited:i.bind(null,d),in:h.props.in,exit:ro(d,"exit",t),enter:ro(d,"enter",t)}))}}),a}var rS=Object.values||function(t){return Object.keys(t).map(function(r){return t[r]})},oS={component:"div",childFactory:function(r){return r}},od=function(t){ng(r,t);function r(s,a){var u;u=t.call(this,s,a)||this;var d=u.handleExited.bind(Zx(u));return u.state={contextValue:{isMounting:!0},handleExited:d,firstRender:!0},u}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,u){var d=u.children,p=u.handleExited,m=u.firstRender;return{children:m?tS(a,p):nS(a,d,p),firstRender:!1}},i.handleExited=function(a,u){var d=rd(this.props.children);a.key in d||(a.props.onExited&&a.props.onExited(u),this.mounted&&this.setState(function(p){var m=Ol({},p.children);return delete m[a.key],{children:m}}))},i.render=function(){var a=this.props,u=a.component,d=a.childFactory,p=tg(a,["component","childFactory"]),m=this.state.contextValue,h=rS(this.state.children).map(d);return delete p.appear,delete p.enter,delete p.exit,u===null?En.createElement(Bl.Provider,{value:m},h):En.createElement(Bl.Provider,{value:m},En.createElement(u,p,h))},r}(En.Component);od.propTypes={};od.defaultProps=oS;const og=t=>t.scrollTop;function Ko(t,r){const{timeout:i,easing:s,style:a={}}=t;return{duration:a.transitionDuration??(typeof i=="number"?i:i[r.mode]||0),easing:a.transitionTimingFunction??(typeof s=="object"?s[r.mode]:s),delay:a.transitionDelay}}function iS(t){return Ve("MuiCollapse",t)}Oe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const sS=t=>{const{orientation:r,classes:i}=t,s={root:["root",`${r}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${r}`],wrapperInner:["wrapperInner",`${r}`]};return Ue(s,iS,i)},lS=ue("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,r[i.orientation],i.state==="entered"&&r.entered,i.state==="exited"&&!i.in&&i.collapsedSize==="0px"&&r.hidden]}})(We(({theme:t})=>({height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.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"}}]}))),aS=ue("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(t,r)=>r.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),uS=ue("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(t,r)=>r.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Pc=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiCollapse"}),{addEndListener:a,children:u,className:d,collapsedSize:p="0px",component:m,easing:h,in:w,onEnter:x,onEntered:k,onEntering:E,onExit:C,onExited:S,onExiting:P,orientation:$="vertical",style:_,timeout:T=qh.standard,TransitionComponent:R=On,...M}=s,L={...s,orientation:$,collapsedSize:p},A=sS(L),V=uo(),ee=Oc(),v=b.useRef(null),G=b.useRef(),Z=typeof p=="number"?`${p}px`:p,K=$==="horizontal",O=K?"width":"height",F=b.useRef(null),B=At(i,F),Q=te=>fe=>{if(te){const ge=F.current;fe===void 0?te(ge):te(ge,fe)}},U=()=>v.current?v.current[K?"clientWidth":"clientHeight"]:0,Y=Q((te,fe)=>{v.current&&K&&(v.current.style.position="absolute"),te.style[O]=Z,x&&x(te,fe)}),ie=Q((te,fe)=>{const ge=U();v.current&&K&&(v.current.style.position="");const{duration:xe,easing:ye}=Ko({style:_,timeout:T,easing:h},{mode:"enter"});if(T==="auto"){const Ae=V.transitions.getAutoHeightDuration(ge);te.style.transitionDuration=`${Ae}ms`,G.current=Ae}else te.style.transitionDuration=typeof xe=="string"?xe:`${xe}ms`;te.style[O]=`${ge}px`,te.style.transitionTimingFunction=ye,E&&E(te,fe)}),z=Q((te,fe)=>{te.style[O]="auto",k&&k(te,fe)}),q=Q(te=>{te.style[O]=`${U()}px`,C&&C(te)}),ce=Q(S),X=Q(te=>{const fe=U(),{duration:ge,easing:xe}=Ko({style:_,timeout:T,easing:h},{mode:"exit"});if(T==="auto"){const ye=V.transitions.getAutoHeightDuration(fe);te.style.transitionDuration=`${ye}ms`,G.current=ye}else te.style.transitionDuration=typeof ge=="string"?ge:`${ge}ms`;te.style[O]=Z,te.style.transitionTimingFunction=xe,P&&P(te)}),ne=te=>{T==="auto"&&ee.start(G.current||0,te),a&&a(F.current,te)};return y.jsx(R,{in:w,onEnter:Y,onEntered:z,onEntering:ie,onExit:q,onExited:ce,onExiting:X,addEndListener:ne,nodeRef:F,timeout:T==="auto"?null:T,...M,children:(te,{ownerState:fe,...ge})=>y.jsx(lS,{as:m,className:Re(A.root,d,{entered:A.entered,exited:!w&&Z==="0px"&&A.hidden}[te]),style:{[K?"minWidth":"minHeight"]:Z,..._},ref:B,ownerState:{...L,state:te},...ge,children:y.jsx(aS,{ownerState:{...L,state:te},className:A.wrapper,ref:v,children:y.jsx(uS,{ownerState:{...L,state:te},className:A.wrapperInner,children:u})})})})});Pc&&(Pc.muiSupportAuto=!0);function cS(t){return Ve("MuiPaper",t)}Oe("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 dS=t=>{const{square:r,elevation:i,variant:s,classes:a}=t,u={root:["root",s,!r&&"rounded",s==="elevation"&&`elevation${i}`]};return Ue(u,cS,a)},fS=ue("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,r[i.variant],!i.square&&r.rounded,i.variant==="elevation"&&r[`elevation${i.elevation}`]]}})(We(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:r})=>!r.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Nr=b.forwardRef(function(r,i){var E;const s=He({props:r,name:"MuiPaper"}),a=uo(),{className:u,component:d="div",elevation:p=1,square:m=!1,variant:h="elevation",...w}=s,x={...s,component:d,elevation:p,square:m,variant:h},k=dS(x);return y.jsx(fS,{as:d,ownerState:x,className:Re(k.root,u),ref:i,...w,style:{...h==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[p],...a.vars&&{"--Paper-overlay":(E=a.vars.overlays)==null?void 0:E[p]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${xt("#fff",bc(p))}, ${xt("#fff",bc(p))})`}},...w.style}})});function kt(t,r){const{className:i,elementType:s,ownerState:a,externalForwardedProps:u,internalForwardedProps:d,shouldForwardComponentProp:p=!1,...m}=r,{component:h,slots:w={[t]:void 0},slotProps:x={[t]:void 0},...k}=u,E=w[t]||s,C=bh(x[t],a),{props:{component:S,...P},internalRef:$}=Ch({className:i,...m,externalForwardedProps:t==="root"?k:void 0,externalSlotProps:C}),_=At($,C==null?void 0:C.ref,r.ref),T=t==="root"?S||h:S,R=Sh(E,{...t==="root"&&!h&&!w[t]&&d,...t!=="root"&&!w[t]&&d,...P,...T&&!p&&{as:T},...T&&p&&{component:T},ref:_},a);return[E,R]}class Dl{constructor(){Ai(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 Dl}static use(){const r=yh(Dl.create).current,[i,s]=b.useState(!1);return r.shouldMount=i,r.setShouldMount=s,b.useEffect(r.mountEffect,[i]),r}mount(){return this.mounted||(this.mounted=mS(),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 pS(){return Dl.use()}function mS(){let t,r;const i=new Promise((s,a)=>{t=s,r=a});return i.resolve=t,i.reject=r,i}function hS(t){const{className:r,classes:i,pulsate:s=!1,rippleX:a,rippleY:u,rippleSize:d,in:p,onExited:m,timeout:h}=t,[w,x]=b.useState(!1),k=Re(r,i.ripple,i.rippleVisible,s&&i.ripplePulsate),E={width:d,height:d,top:-(d/2)+u,left:-(d/2)+a},C=Re(i.child,w&&i.childLeaving,s&&i.childPulsate);return!p&&!w&&x(!0),b.useEffect(()=>{if(!p&&m!=null){const S=setTimeout(m,h);return()=>{clearTimeout(S)}}},[m,p,h]),y.jsx("span",{className:k,style:E,children:y.jsx("span",{className:C})})}const bn=Oe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Tc=550,gS=80,yS=Yo`
69
- 0% {
70
- transform: scale(0);
71
- opacity: 0.1;
72
- }
73
-
74
- 100% {
75
- transform: scale(1);
76
- opacity: 0.3;
77
- }
78
- `,vS=Yo`
79
- 0% {
80
- opacity: 1;
81
- }
82
-
83
- 100% {
84
- opacity: 0;
85
- }
86
- `,xS=Yo`
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
- `,SS=ue("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),wS=ue(hS,{name:"MuiTouchRipple",slot:"Ripple"})`
99
- opacity: 0;
100
- position: absolute;
101
-
102
- &.${bn.rippleVisible} {
103
- opacity: 0.3;
104
- transform: scale(1);
105
- animation-name: ${yS};
106
- animation-duration: ${Tc}ms;
107
- animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
108
- }
109
-
110
- &.${bn.ripplePulsate} {
111
- animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms;
112
- }
113
-
114
- & .${bn.child} {
115
- opacity: 1;
116
- display: block;
117
- width: 100%;
118
- height: 100%;
119
- border-radius: 50%;
120
- background-color: currentColor;
121
- }
122
-
123
- & .${bn.childLeaving} {
124
- opacity: 0;
125
- animation-name: ${vS};
126
- animation-duration: ${Tc}ms;
127
- animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
128
- }
129
-
130
- & .${bn.childPulsate} {
131
- position: absolute;
132
- /* @noflip */
133
- left: 0px;
134
- top: 0;
135
- animation-name: ${xS};
136
- animation-duration: 2500ms;
137
- animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
138
- animation-iteration-count: infinite;
139
- animation-delay: 200ms;
140
- }
141
- `,CS=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiTouchRipple"}),{center:a=!1,classes:u={},className:d,...p}=s,[m,h]=b.useState([]),w=b.useRef(0),x=b.useRef(null);b.useEffect(()=>{x.current&&(x.current(),x.current=null)},[m]);const k=b.useRef(!1),E=Oc(),C=b.useRef(null),S=b.useRef(null),P=b.useCallback(R=>{const{pulsate:M,rippleX:L,rippleY:A,rippleSize:V,cb:ee}=R;h(v=>[...v,y.jsx(wS,{classes:{ripple:Re(u.ripple,bn.ripple),rippleVisible:Re(u.rippleVisible,bn.rippleVisible),ripplePulsate:Re(u.ripplePulsate,bn.ripplePulsate),child:Re(u.child,bn.child),childLeaving:Re(u.childLeaving,bn.childLeaving),childPulsate:Re(u.childPulsate,bn.childPulsate)},timeout:Tc,pulsate:M,rippleX:L,rippleY:A,rippleSize:V},w.current)]),w.current+=1,x.current=ee},[u]),$=b.useCallback((R={},M={},L=()=>{})=>{const{pulsate:A=!1,center:V=a||M.pulsate,fakeElement:ee=!1}=M;if((R==null?void 0:R.type)==="mousedown"&&k.current){k.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(k.current=!0);const v=ee?null:S.current,G=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Z,K,O;if(V||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)Z=Math.round(G.width/2),K=Math.round(G.height/2);else{const{clientX:F,clientY:B}=R.touches&&R.touches.length>0?R.touches[0]:R;Z=Math.round(F-G.left),K=Math.round(B-G.top)}if(V)O=Math.sqrt((2*G.width**2+G.height**2)/3),O%2===0&&(O+=1);else{const F=Math.max(Math.abs((v?v.clientWidth:0)-Z),Z)*2+2,B=Math.max(Math.abs((v?v.clientHeight:0)-K),K)*2+2;O=Math.sqrt(F**2+B**2)}R!=null&&R.touches?C.current===null&&(C.current=()=>{P({pulsate:A,rippleX:Z,rippleY:K,rippleSize:O,cb:L})},E.start(gS,()=>{C.current&&(C.current(),C.current=null)})):P({pulsate:A,rippleX:Z,rippleY:K,rippleSize:O,cb:L})},[a,P,E]),_=b.useCallback(()=>{$({},{pulsate:!0})},[$]),T=b.useCallback((R,M)=>{if(E.clear(),(R==null?void 0:R.type)==="touchend"&&C.current){C.current(),C.current=null,E.start(0,()=>{T(R,M)});return}C.current=null,h(L=>L.length>0?L.slice(1):L),x.current=M},[E]);return b.useImperativeHandle(i,()=>({pulsate:_,start:$,stop:T}),[_,$,T]),y.jsx(SS,{className:Re(bn.root,u.root,d),ref:S,...p,children:y.jsx(od,{component:null,exit:!0,children:m})})});function bS(t){return Ve("MuiButtonBase",t)}const kS=Oe("MuiButtonBase",["root","disabled","focusVisible"]),ES=t=>{const{disabled:r,focusVisible:i,focusVisibleClassName:s,classes:a}=t,d=Ue({root:["root",r&&"disabled",i&&"focusVisible"]},bS,a);return i&&s&&(d.root+=` ${s}`),d},RS=ue("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,r)=>r.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),oa=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiButtonBase"}),{action:a,centerRipple:u=!1,children:d,className:p,component:m="button",disabled:h=!1,disableRipple:w=!1,disableTouchRipple:x=!1,focusRipple:k=!1,focusVisibleClassName:E,LinkComponent:C="a",onBlur:S,onClick:P,onContextMenu:$,onDragLeave:_,onFocus:T,onFocusVisible:R,onKeyDown:M,onKeyUp:L,onMouseDown:A,onMouseLeave:V,onMouseUp:ee,onTouchEnd:v,onTouchMove:G,onTouchStart:Z,tabIndex:K=0,TouchRippleProps:O,touchRippleRef:F,type:B,...Q}=s,U=b.useRef(null),Y=pS(),ie=At(Y.ref,F),[z,q]=b.useState(!1);h&&z&&q(!1),b.useImperativeHandle(a,()=>({focusVisible:()=>{q(!0),U.current.focus()}}),[]);const ce=Y.shouldMount&&!w&&!h;b.useEffect(()=>{z&&k&&!w&&Y.pulsate()},[w,k,z,Y]);const X=ur(Y,"start",A,x),ne=ur(Y,"stop",$,x),te=ur(Y,"stop",_,x),fe=ur(Y,"stop",ee,x),ge=ur(Y,"stop",Ce=>{z&&Ce.preventDefault(),V&&V(Ce)},x),xe=ur(Y,"start",Z,x),ye=ur(Y,"stop",v,x),Ae=ur(Y,"stop",G,x),Me=ur(Y,"stop",Ce=>{Nl(Ce.target)||q(!1),S&&S(Ce)},!1),Ne=dr(Ce=>{U.current||(U.current=Ce.currentTarget),Nl(Ce.target)&&(q(!0),R&&R(Ce)),T&&T(Ce)}),Te=()=>{const Ce=U.current;return m&&m!=="button"&&!(Ce.tagName==="A"&&Ce.href)},Qe=dr(Ce=>{k&&!Ce.repeat&&z&&Ce.key===" "&&Y.stop(Ce,()=>{Y.start(Ce)}),Ce.target===Ce.currentTarget&&Te()&&Ce.key===" "&&Ce.preventDefault(),M&&M(Ce),Ce.target===Ce.currentTarget&&Te()&&Ce.key==="Enter"&&!h&&(Ce.preventDefault(),P&&P(Ce))}),Et=dr(Ce=>{k&&Ce.key===" "&&z&&!Ce.defaultPrevented&&Y.stop(Ce,()=>{Y.pulsate(Ce)}),L&&L(Ce),P&&Ce.target===Ce.currentTarget&&Te()&&Ce.key===" "&&!Ce.defaultPrevented&&P(Ce)});let De=m;De==="button"&&(Q.href||Q.to)&&(De=C);const rt={};De==="button"?(rt.type=B===void 0?"button":B,rt.disabled=h):(!Q.href&&!Q.to&&(rt.role="button"),h&&(rt["aria-disabled"]=h));const _t=At(i,U),lt={...s,centerRipple:u,component:m,disabled:h,disableRipple:w,disableTouchRipple:x,focusRipple:k,tabIndex:K,focusVisible:z},qe=ES(lt);return y.jsxs(RS,{as:De,className:Re(qe.root,p),ownerState:lt,onBlur:Me,onClick:P,onContextMenu:ne,onFocus:Ne,onKeyDown:Qe,onKeyUp:Et,onMouseDown:X,onMouseLeave:ge,onMouseUp:fe,onDragLeave:te,onTouchEnd:ye,onTouchMove:Ae,onTouchStart:xe,ref:_t,tabIndex:h?-1:K,type:B,...rt,...Q,children:[d,ce?y.jsx(CS,{ref:ie,center:u,...O}):null]})});function ur(t,r,i,s=!1){return dr(a=>(i&&i(a),s||t[r](a),!0))}function PS(t){return typeof t.main=="string"}function TS(t,r=[]){if(!PS(t))return!1;for(const i of r)if(!t.hasOwnProperty(i)||typeof t[i]!="string")return!1;return!0}function Yt(t=[]){return([,r])=>r&&TS(r,t)}function $S(t){return Ve("MuiAlert",t)}const Nm=Oe("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 IS(t){return Ve("MuiCircularProgress",t)}Oe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const jr=44,$c=Yo`
142
- 0% {
143
- transform: rotate(0deg);
144
- }
145
-
146
- 100% {
147
- transform: rotate(360deg);
148
- }
149
- `,Ic=Yo`
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
- `,MS=typeof $c!="string"?Xc`
165
- animation: ${$c} 1.4s linear infinite;
166
- `:null,_S=typeof Ic!="string"?Xc`
167
- animation: ${Ic} 1.4s ease-in-out infinite;
168
- `:null,zS=t=>{const{classes:r,variant:i,color:s,disableShrink:a}=t,u={root:["root",i,`color${he(s)}`],svg:["svg"],circle:["circle",`circle${he(i)}`,a&&"circleDisableShrink"]};return Ue(u,IS,r)},jS=ue("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,r[i.variant],r[`color${he(i.color)}`]]}})(We(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:MS||{animation:`${$c} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Yt()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}}))]}))),AS=ue("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,r)=>r.svg})({display:"block"}),NS=ue("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.circle,r[`circle${he(i.variant)}`],i.disableShrink&&r.circleDisableShrink]}})(We(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:r})=>r.variant==="indeterminate"&&!r.disableShrink,style:_S||{animation:`${Ic} 1.4s ease-in-out infinite`}}]}))),ig=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiCircularProgress"}),{className:a,color:u="primary",disableShrink:d=!1,size:p=40,style:m,thickness:h=3.6,value:w=0,variant:x="indeterminate",...k}=s,E={...s,color:u,disableShrink:d,size:p,thickness:h,value:w,variant:x},C=zS(E),S={},P={},$={};if(x==="determinate"){const _=2*Math.PI*((jr-h)/2);S.strokeDasharray=_.toFixed(3),$["aria-valuenow"]=Math.round(w),S.strokeDashoffset=`${((100-w)/100*_).toFixed(3)}px`,P.transform="rotate(-90deg)"}return y.jsx(jS,{className:Re(C.root,a),style:{width:p,height:p,...P,...m},ownerState:E,ref:i,role:"progressbar",...$,...k,children:y.jsx(AS,{className:C.svg,ownerState:E,viewBox:`${jr/2} ${jr/2} ${jr} ${jr}`,children:y.jsx(NS,{className:C.circle,style:S,ownerState:E,cx:jr,cy:jr,r:(jr-h)/2,fill:"none",strokeWidth:h})})})});function LS(t){return Ve("MuiIconButton",t)}const Lm=Oe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),OS=t=>{const{classes:r,disabled:i,color:s,edge:a,size:u,loading:d}=t,p={root:["root",d&&"loading",i&&"disabled",s!=="default"&&`color${he(s)}`,a&&`edge${he(a)}`,`size${he(u)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ue(p,LS,r)},FS=ue(oa,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,i.loading&&r.loading,i.color!=="default"&&r[`color${he(i.color)}`],i.edge&&r[`edge${he(i.edge)}`],r[`size${he(i.size)}`]]}})(We(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:r=>!r.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),We(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Yt()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(t.palette).filter(Yt()).map(([r])=>({props:{color:r},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:xt((t.vars||t).palette[r].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${Lm.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${Lm.loading}`]:{color:"transparent"}}))),BS=ue("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,r)=>r.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Jn=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiIconButton"}),{edge:a=!1,children:u,className:d,color:p="default",disabled:m=!1,disableFocusRipple:h=!1,size:w="medium",id:x,loading:k=null,loadingIndicator:E,...C}=s,S=ns(x),P=E??y.jsx(ig,{"aria-labelledby":S,color:"inherit",size:16}),$={...s,edge:a,color:p,disabled:m,disableFocusRipple:h,loading:k,loadingIndicator:P,size:w},_=OS($);return y.jsxs(FS,{id:S,className:Re(_.root,d),centerRipple:!0,focusRipple:!h,disabled:m||k,ref:i,...C,ownerState:$,children:[typeof k=="boolean"&&y.jsx("span",{className:_.loadingWrapper,style:{display:"contents"},children:y.jsx(BS,{className:_.loadingIndicator,ownerState:$,children:k&&P})}),u]})}),DS=gt(y.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"),WS=gt(y.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),US=gt(y.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"),VS=gt(y.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"),HS=gt(y.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"),GS=t=>{const{variant:r,color:i,severity:s,classes:a}=t,u={root:["root",`color${he(i||s)}`,`${r}${he(i||s)}`,`${r}`],icon:["icon"],message:["message"],action:["action"]};return Ue(u,$S,a)},KS=ue(Nr,{name:"MuiAlert",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,r[i.variant],r[`${i.variant}${he(i.color||i.severity)}`]]}})(We(({theme:t})=>{const r=t.palette.mode==="light"?lo:ao,i=t.palette.mode==="light"?ao:lo;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(Yt(["light"])).map(([s])=>({props:{colorSeverity:s,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${s}Color`]:r(t.palette[s].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${s}StandardBg`]:i(t.palette[s].light,.9),[`& .${Nm.icon}`]:t.vars?{color:t.vars.palette.Alert[`${s}IconColor`]}:{color:t.palette[s].main}}})),...Object.entries(t.palette).filter(Yt(["light"])).map(([s])=>({props:{colorSeverity:s,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${s}Color`]:r(t.palette[s].light,.6),border:`1px solid ${(t.vars||t).palette[s].light}`,[`& .${Nm.icon}`]:t.vars?{color:t.vars.palette.Alert[`${s}IconColor`]}:{color:t.palette[s].main}}})),...Object.entries(t.palette).filter(Yt(["dark"])).map(([s])=>({props:{colorSeverity:s,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${s}FilledColor`],backgroundColor:t.vars.palette.Alert[`${s}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[s].dark:t.palette[s].main,color:t.palette.getContrastText(t.palette[s].main)}}}))]}})),QS=ue("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,r)=>r.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),qS=ue("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,r)=>r.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),YS=ue("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,r)=>r.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Om={success:y.jsx(DS,{fontSize:"inherit"}),warning:y.jsx(WS,{fontSize:"inherit"}),error:y.jsx(US,{fontSize:"inherit"}),info:y.jsx(VS,{fontSize:"inherit"})},Cl=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiAlert"}),{action:a,children:u,className:d,closeText:p="Close",color:m,components:h={},componentsProps:w={},icon:x,iconMapping:k=Om,onClose:E,role:C="alert",severity:S="success",slotProps:P={},slots:$={},variant:_="standard",...T}=s,R={...s,color:m,severity:S,variant:_,colorSeverity:m||S},M=GS(R),L={slots:{closeButton:h.CloseButton,closeIcon:h.CloseIcon,...$},slotProps:{...w,...P}},[A,V]=kt("root",{ref:i,shouldForwardComponentProp:!0,className:Re(M.root,d),elementType:KS,externalForwardedProps:{...L,...T},ownerState:R,additionalProps:{role:C,elevation:0}}),[ee,v]=kt("icon",{className:M.icon,elementType:QS,externalForwardedProps:L,ownerState:R}),[G,Z]=kt("message",{className:M.message,elementType:qS,externalForwardedProps:L,ownerState:R}),[K,O]=kt("action",{className:M.action,elementType:YS,externalForwardedProps:L,ownerState:R}),[F,B]=kt("closeButton",{elementType:Jn,externalForwardedProps:L,ownerState:R}),[Q,U]=kt("closeIcon",{elementType:HS,externalForwardedProps:L,ownerState:R});return y.jsxs(A,{...V,children:[x!==!1?y.jsx(ee,{...v,children:x||k[S]||Om[S]}):null,y.jsx(G,{...Z,children:u}),a!=null?y.jsx(K,{...O,children:a}):null,a==null&&E?y.jsx(K,{...O,children:y.jsx(F,{size:"small","aria-label":p,title:p,color:"inherit",onClick:E,...B,children:y.jsx(Q,{fontSize:"small",...U})})}):null]})});function XS(t){return Ve("MuiTypography",t)}Oe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const JS={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ZS=Qx(),ew=t=>{const{align:r,gutterBottom:i,noWrap:s,paragraph:a,variant:u,classes:d}=t,p={root:["root",u,t.align!=="inherit"&&`align${he(r)}`,i&&"gutterBottom",s&&"noWrap",a&&"paragraph"]};return Ue(p,XS,d)},tw=ue("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,i.variant&&r[i.variant],i.align!=="inherit"&&r[`align${he(i.align)}`],i.noWrap&&r.noWrap,i.gutterBottom&&r.gutterBottom,i.paragraph&&r.paragraph]}})(We(({theme:t})=>{var r;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([i,s])=>i!=="inherit"&&s&&typeof s=="object").map(([i,s])=>({props:{variant:i},style:s})),...Object.entries(t.palette).filter(Yt()).map(([i])=>({props:{color:i},style:{color:(t.vars||t).palette[i].main}})),...Object.entries(((r=t.palette)==null?void 0:r.text)||{}).filter(([,i])=>typeof i=="string").map(([i])=>({props:{color:`text${he(i)}`},style:{color:(t.vars||t).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}}]}})),Fm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Le=b.forwardRef(function(r,i){const{color:s,...a}=He({props:r,name:"MuiTypography"}),u=!JS[s],d=ZS({...a,...u&&{color:s}}),{align:p="inherit",className:m,component:h,gutterBottom:w=!1,noWrap:x=!1,paragraph:k=!1,variant:E="body1",variantMapping:C=Fm,...S}=d,P={...d,align:p,color:s,className:m,component:h,gutterBottom:w,noWrap:x,paragraph:k,variant:E,variantMapping:C},$=h||(k?"p":C[E]||Fm[E])||"span",_=ew(P);return y.jsx(tw,{as:$,ref:i,className:Re(_.root,m),...S,ownerState:P,style:{...p!=="inherit"&&{"--Typography-textAlign":p},...S.style}})});function nw(t){return typeof t=="function"?t():t}const rw=b.forwardRef(function(r,i){const{children:s,container:a,disablePortal:u=!1}=r,[d,p]=b.useState(null),m=At(b.isValidElement(s)?rs(s):null,i);if(Zn(()=>{u||p(nw(a)||document.body)},[a,u]),Zn(()=>{if(d&&!u)return hc(i,d),()=>{hc(i,null)}},[i,d,u]),u){if(b.isValidElement(s)){const h={ref:m};return b.cloneElement(s,h)}return s}return d&&rg.createPortal(s,d)});function bl(t){return parseInt(t,10)||0}const ow={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function iw(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflowing}const sw=b.forwardRef(function(r,i){const{onChange:s,maxRows:a,minRows:u=1,style:d,value:p,...m}=r,{current:h}=b.useRef(p!=null),w=b.useRef(null),x=At(i,w),k=b.useRef(null),E=b.useRef(null),C=b.useCallback(()=>{const $=w.current,T=pr($).getComputedStyle($);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};const R=E.current;R.style.width=T.width,R.value=$.value||r.placeholder||"x",R.value.slice(-1)===`
169
- `&&(R.value+=" ");const M=T.boxSizing,L=bl(T.paddingBottom)+bl(T.paddingTop),A=bl(T.borderBottomWidth)+bl(T.borderTopWidth),V=R.scrollHeight;R.value="x";const ee=R.scrollHeight;let v=V;u&&(v=Math.max(Number(u)*ee,v)),a&&(v=Math.min(Number(a)*ee,v)),v=Math.max(v,ee);const G=v+(M==="border-box"?L+A:0),Z=Math.abs(v-V)<=1;return{outerHeightStyle:G,overflowing:Z}},[a,u,r.placeholder]),S=b.useCallback(()=>{const $=C();if(iw($))return;const _=$.outerHeightStyle,T=w.current;k.current!==_&&(k.current=_,T.style.height=`${_}px`),T.style.overflow=$.overflowing?"hidden":""},[C]);Zn(()=>{const $=()=>{S()};let _;const T=gh($),R=w.current,M=pr(R);M.addEventListener("resize",T);let L;return typeof ResizeObserver<"u"&&(L=new ResizeObserver($),L.observe(R)),()=>{T.clear(),cancelAnimationFrame(_),M.removeEventListener("resize",T),L&&L.disconnect()}},[C,S]),Zn(()=>{S()});const P=$=>{h||S(),s&&s($)};return y.jsxs(b.Fragment,{children:[y.jsx("textarea",{value:p,onChange:P,ref:x,rows:u,style:d,...m}),y.jsx("textarea",{"aria-hidden":!0,className:r.className,readOnly:!0,ref:E,tabIndex:-1,style:{...ow.shadow,...d,paddingTop:0,paddingBottom:0}})]})});function io(t){return typeof t=="string"}function Xo({props:t,states:r,muiFormControl:i}){return r.reduce((s,a)=>(s[a]=t[a],i&&typeof t[a]>"u"&&(s[a]=i[a]),s),{})}const id=b.createContext(void 0);function Jo(){return b.useContext(id)}function Bm(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Wl(t,r=!1){return t&&(Bm(t.value)&&t.value!==""||r&&Bm(t.defaultValue)&&t.defaultValue!=="")}function lw(t){return t.startAdornment}function aw(t){return Ve("MuiInputBase",t)}const Qo=Oe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Dm;const ia=(t,r)=>{const{ownerState:i}=t;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${he(i.color)}`],i.fullWidth&&r.fullWidth,i.hiddenLabel&&r.hiddenLabel]},sa=(t,r)=>{const{ownerState:i}=t;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]},uw=t=>{const{classes:r,color:i,disabled:s,error:a,endAdornment:u,focused:d,formControl:p,fullWidth:m,hiddenLabel:h,multiline:w,readOnly:x,size:k,startAdornment:E,type:C}=t,S={root:["root",`color${he(i)}`,s&&"disabled",a&&"error",m&&"fullWidth",d&&"focused",p&&"formControl",k&&k!=="medium"&&`size${he(k)}`,w&&"multiline",E&&"adornedStart",u&&"adornedEnd",h&&"hiddenLabel",x&&"readOnly"],input:["input",s&&"disabled",C==="search"&&"inputTypeSearch",w&&"inputMultiline",k==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",E&&"inputAdornedStart",u&&"inputAdornedEnd",x&&"readOnly"]};return Ue(S,aw,r)},la=ue("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ia})(We(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Qo.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:r})=>r.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:r,size:i})=>r.multiline&&i==="small",style:{paddingTop:1}},{props:({ownerState:r})=>r.fullWidth,style:{width:"100%"}}]}))),aa=ue("input",{name:"MuiInputBase",slot:"Input",overridesResolver:sa})(We(({theme:t})=>{const r=t.palette.mode==="light",i={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},s={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Qo.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Qo.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:u})=>!u.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:u})=>u.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Wm=Kx({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),sd=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:u,autoFocus:d,className:p,color:m,components:h={},componentsProps:w={},defaultValue:x,disabled:k,disableInjectingGlobalStyles:E,endAdornment:C,error:S,fullWidth:P=!1,id:$,inputComponent:_="input",inputProps:T={},inputRef:R,margin:M,maxRows:L,minRows:A,multiline:V=!1,name:ee,onBlur:v,onChange:G,onClick:Z,onFocus:K,onKeyDown:O,onKeyUp:F,placeholder:B,readOnly:Q,renderSuffix:U,rows:Y,size:ie,slotProps:z={},slots:q={},startAdornment:ce,type:X="text",value:ne,...te}=s,fe=T.value!=null?T.value:ne,{current:ge}=b.useRef(fe!=null),xe=b.useRef(),ye=b.useCallback(_e=>{},[]),Ae=At(xe,R,T.ref,ye),[Me,Ne]=b.useState(!1),Te=Jo(),Qe=Xo({props:s,muiFormControl:Te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Qe.focused=Te?Te.focused:Me,b.useEffect(()=>{!Te&&k&&Me&&(Ne(!1),v&&v())},[Te,k,Me,v]);const Et=Te&&Te.onFilled,De=Te&&Te.onEmpty,rt=b.useCallback(_e=>{Wl(_e)?Et&&Et():De&&De()},[Et,De]);Zn(()=>{ge&&rt({value:fe})},[fe,rt,ge]);const _t=_e=>{K&&K(_e),T.onFocus&&T.onFocus(_e),Te&&Te.onFocus?Te.onFocus(_e):Ne(!0)},lt=_e=>{v&&v(_e),T.onBlur&&T.onBlur(_e),Te&&Te.onBlur?Te.onBlur(_e):Ne(!1)},qe=(_e,...pt)=>{if(!ge){const tt=_e.target||xe.current;if(tt==null)throw new Error(fr(1));rt({value:tt.value})}T.onChange&&T.onChange(_e,...pt),G&&G(_e,...pt)};b.useEffect(()=>{rt(xe.current)},[]);const Ce=_e=>{xe.current&&_e.currentTarget===_e.target&&xe.current.focus(),Z&&Z(_e)};let Ut=_,St=T;V&&Ut==="input"&&(Y?St={type:void 0,minRows:Y,maxRows:Y,...St}:St={type:void 0,maxRows:L,minRows:A,...St},Ut=sw);const se=_e=>{rt(_e.animationName==="mui-auto-fill-cancel"?xe.current:{value:"x"})};b.useEffect(()=>{Te&&Te.setAdornedStart(!!ce)},[Te,ce]);const de={...s,color:Qe.color||"primary",disabled:Qe.disabled,endAdornment:C,error:Qe.error,focused:Qe.focused,formControl:Te,fullWidth:P,hiddenLabel:Qe.hiddenLabel,multiline:V,size:Qe.size,startAdornment:ce,type:X},ke=uw(de),je=q.root||h.Root||la,Be=z.root||w.root||{},we=q.input||h.Input||aa;return St={...St,...z.input??w.input},y.jsxs(b.Fragment,{children:[!E&&typeof Wm=="function"&&(Dm||(Dm=y.jsx(Wm,{}))),y.jsxs(je,{...Be,ref:i,onClick:Ce,...te,...!io(je)&&{ownerState:{...de,...Be.ownerState}},className:Re(ke.root,Be.className,p,Q&&"MuiInputBase-readOnly"),children:[ce,y.jsx(id.Provider,{value:null,children:y.jsx(we,{"aria-invalid":Qe.error,"aria-describedby":a,autoComplete:u,autoFocus:d,defaultValue:x,disabled:Qe.disabled,id:$,onAnimationStart:se,name:ee,placeholder:B,readOnly:Q,required:Qe.required,rows:Y,value:fe,onKeyDown:O,onKeyUp:F,type:X,...St,...!io(we)&&{as:Ut,ownerState:{...de,...St.ownerState}},ref:Ae,className:Re(ke.input,St.className,Q&&"MuiInputBase-readOnly"),onBlur:lt,onChange:qe,onFocus:_t})}),C,U?U({...Qe,startAdornment:ce}):null]})]})});function cw(t){return Ve("MuiInput",t)}const Fi={...Qo,...Oe("MuiInput",["root","underline","input"])};function dw(t){return Ve("MuiOutlinedInput",t)}const Gn={...Qo,...Oe("MuiOutlinedInput",["root","notchedOutline","input"])};function fw(t){return Ve("MuiFilledInput",t)}const Jr={...Qo,...Oe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},pw=gt(y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),mw={entering:{opacity:1},entered:{opacity:1}},Mc=b.forwardRef(function(r,i){const s=uo(),a={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{addEndListener:u,appear:d=!0,children:p,easing:m,in:h,onEnter:w,onEntered:x,onEntering:k,onExit:E,onExited:C,onExiting:S,style:P,timeout:$=a,TransitionComponent:_=On,...T}=r,R=b.useRef(null),M=At(R,rs(p),i),L=O=>F=>{if(O){const B=R.current;F===void 0?O(B):O(B,F)}},A=L(k),V=L((O,F)=>{og(O);const B=Ko({style:P,timeout:$,easing:m},{mode:"enter"});O.style.webkitTransition=s.transitions.create("opacity",B),O.style.transition=s.transitions.create("opacity",B),w&&w(O,F)}),ee=L(x),v=L(S),G=L(O=>{const F=Ko({style:P,timeout:$,easing:m},{mode:"exit"});O.style.webkitTransition=s.transitions.create("opacity",F),O.style.transition=s.transitions.create("opacity",F),E&&E(O)}),Z=L(C),K=O=>{u&&u(R.current,O)};return y.jsx(_,{appear:d,in:h,nodeRef:R,onEnter:V,onEntered:ee,onEntering:A,onExit:G,onExited:Z,onExiting:v,addEndListener:K,timeout:$,...T,children:(O,{ownerState:F,...B})=>b.cloneElement(p,{style:{opacity:0,visibility:O==="exited"&&!h?"hidden":void 0,...mw[O],...P,...p.props.style},ref:M,...B})})});function hw(t){return Ve("MuiBackdrop",t)}Oe("MuiBackdrop",["root","invisible"]);const gw=t=>{const{classes:r,invisible:i}=t;return Ue({root:["root",i&&"invisible"]},hw,r)},yw=ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;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"}}]}),sg=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiBackdrop"}),{children:a,className:u,component:d="div",invisible:p=!1,open:m,components:h={},componentsProps:w={},slotProps:x={},slots:k={},TransitionComponent:E,transitionDuration:C,...S}=s,P={...s,component:d,invisible:p},$=gw(P),_={transition:E,root:h.Root,...k},T={...w,...x},R={slots:_,slotProps:T},[M,L]=kt("root",{elementType:yw,externalForwardedProps:R,className:Re($.root,u),ownerState:P}),[A,V]=kt("transition",{elementType:Mc,externalForwardedProps:R,ownerState:P});return y.jsx(A,{in:m,timeout:C,...S,...V,children:y.jsx(M,{"aria-hidden":!0,...L,classes:$,ref:i,children:a})})}),vw=Oe("MuiBox",["root"]),xw=Zh(),Pe=W1({themeId:us,defaultTheme:xw,defaultClassName:vw.root,generateClassName:xh.generate});function Sw(t){return Ve("MuiButton",t)}const Zr=Oe("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"]),ww=b.createContext({}),Cw=b.createContext(void 0),bw=t=>{const{color:r,disableElevation:i,fullWidth:s,size:a,variant:u,loading:d,loadingPosition:p,classes:m}=t,h={root:["root",d&&"loading",u,`${u}${he(r)}`,`size${he(a)}`,`${u}Size${he(a)}`,`color${he(r)}`,i&&"disableElevation",s&&"fullWidth",d&&`loadingPosition${he(p)}`],startIcon:["icon","startIcon",`iconSize${he(a)}`],endIcon:["icon","endIcon",`iconSize${he(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},w=Ue(h,Sw,m);return{...m,...w}},lg=[{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}}}],kw=ue(oa,{shouldForwardProp:t=>$n(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,r[i.variant],r[`${i.variant}${he(i.color)}`],r[`size${he(i.size)}`],r[`${i.variant}Size${he(i.size)}`],i.color==="inherit"&&r.colorInherit,i.disableElevation&&r.disableElevation,i.fullWidth&&r.fullWidth,i.loading&&r.loading]}})(We(({theme:t})=>{const r=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],i=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Zr.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Zr.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Zr.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Zr.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Yt()).map(([s])=>({props:{color:s},style:{"--variant-textColor":(t.vars||t).palette[s].main,"--variant-outlinedColor":(t.vars||t).palette[s].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[s].mainChannel} / 0.5)`:xt(t.palette[s].main,.5),"--variant-containedColor":(t.vars||t).palette[s].contrastText,"--variant-containedBg":(t.vars||t).palette[s].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[s].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[s].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette[s].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[s].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[s].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette[s].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:r,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:i,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Zr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Zr.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Zr.loading}`]:{color:"transparent"}}}]}})),Ew=ue("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.startIcon,i.loading&&r.startIconLoadingStart,r[`iconSize${he(i.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...lg]})),Rw=ue("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.endIcon,i.loading&&r.endIconLoadingEnd,r[`iconSize${he(i.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...lg]})),Pw=ue("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,r)=>r.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Um=ue("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,r)=>r.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),pn=b.forwardRef(function(r,i){const s=b.useContext(ww),a=b.useContext(Cw),u=Ho(s,r),d=He({props:u,name:"MuiButton"}),{children:p,color:m="primary",component:h="button",className:w,disabled:x=!1,disableElevation:k=!1,disableFocusRipple:E=!1,endIcon:C,focusVisibleClassName:S,fullWidth:P=!1,id:$,loading:_=null,loadingIndicator:T,loadingPosition:R="center",size:M="medium",startIcon:L,type:A,variant:V="text",...ee}=d,v=ns($),G=T??y.jsx(ig,{"aria-labelledby":v,color:"inherit",size:16}),Z={...d,color:m,component:h,disabled:x,disableElevation:k,disableFocusRipple:E,fullWidth:P,loading:_,loadingIndicator:G,loadingPosition:R,size:M,type:A,variant:V},K=bw(Z),O=(L||_&&R==="start")&&y.jsx(Ew,{className:K.startIcon,ownerState:Z,children:L||y.jsx(Um,{className:K.loadingIconPlaceholder,ownerState:Z})}),F=(C||_&&R==="end")&&y.jsx(Rw,{className:K.endIcon,ownerState:Z,children:C||y.jsx(Um,{className:K.loadingIconPlaceholder,ownerState:Z})}),B=a||"",Q=typeof _=="boolean"?y.jsx("span",{className:K.loadingWrapper,style:{display:"contents"},children:_&&y.jsx(Pw,{className:K.loadingIndicator,ownerState:Z,children:G})}):null;return y.jsxs(kw,{ownerState:Z,className:Re(s.className,K.root,w,B),component:h,disabled:x||_,focusRipple:!E,focusVisibleClassName:Re(K.focusVisible,S),ref:i,type:A,id:v,...ee,classes:K,children:[O,R!=="end"&&Q,p,R==="end"&&Q,F]})});function Tw(t){const r=Zt(t);return r.body===t?pr(t).innerWidth>r.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function qi(t,r){r?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Vm(t){return parseInt(pr(t).getComputedStyle(t).paddingRight,10)||0}function $w(t){const i=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),s=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return i||s}function Hm(t,r,i,s,a){const u=[r,i,...s];[].forEach.call(t.children,d=>{const p=!u.includes(d),m=!$w(d);p&&m&&qi(d,a)})}function ac(t,r){let i=-1;return t.some((s,a)=>r(s)?(i=a,!0):!1),i}function Iw(t,r){const i=[],s=t.container;if(!r.disableScrollLock){if(Tw(s)){const d=vh(pr(s));i.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${Vm(s)+d}px`;const p=Zt(s).querySelectorAll(".mui-fixed");[].forEach.call(p,m=>{i.push({value:m.style.paddingRight,property:"padding-right",el:m}),m.style.paddingRight=`${Vm(m)+d}px`})}let u;if(s.parentNode instanceof DocumentFragment)u=Zt(s).body;else{const d=s.parentElement,p=pr(s);u=(d==null?void 0:d.nodeName)==="HTML"&&p.getComputedStyle(d).overflowY==="scroll"?d:s}i.push({value:u.style.overflow,property:"overflow",el:u},{value:u.style.overflowX,property:"overflow-x",el:u},{value:u.style.overflowY,property:"overflow-y",el:u}),u.style.overflow="hidden"}return()=>{i.forEach(({value:u,el:d,property:p})=>{u?d.style.setProperty(p,u):d.style.removeProperty(p)})}}function Mw(t){const r=[];return[].forEach.call(t.children,i=>{i.getAttribute("aria-hidden")==="true"&&r.push(i)}),r}class _w{constructor(){this.modals=[],this.containers=[]}add(r,i){let s=this.modals.indexOf(r);if(s!==-1)return s;s=this.modals.length,this.modals.push(r),r.modalRef&&qi(r.modalRef,!1);const a=Mw(i);Hm(i,r.mount,r.modalRef,a,!0);const u=ac(this.containers,d=>d.container===i);return u!==-1?(this.containers[u].modals.push(r),s):(this.containers.push({modals:[r],container:i,restore:null,hiddenSiblings:a}),s)}mount(r,i){const s=ac(this.containers,u=>u.modals.includes(r)),a=this.containers[s];a.restore||(a.restore=Iw(a,i))}remove(r,i=!0){const s=this.modals.indexOf(r);if(s===-1)return s;const a=ac(this.containers,d=>d.modals.includes(r)),u=this.containers[a];if(u.modals.splice(u.modals.indexOf(r),1),this.modals.splice(s,1),u.modals.length===0)u.restore&&u.restore(),r.modalRef&&qi(r.modalRef,i),Hm(u.container,r.mount,r.modalRef,u.hiddenSiblings,!1),this.containers.splice(a,1);else{const d=u.modals[u.modals.length-1];d.modalRef&&qi(d.modalRef,!1)}return s}isTopModal(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}const zw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jw(t){const r=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(r)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:r}function Aw(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const r=s=>t.ownerDocument.querySelector(`input[type="radio"]${s}`);let i=r(`[name="${t.name}"]:checked`);return i||(i=r(`[name="${t.name}"]`)),i!==t}function Nw(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||Aw(t))}function Lw(t){const r=[],i=[];return Array.from(t.querySelectorAll(zw)).forEach((s,a)=>{const u=jw(s);u===-1||!Nw(s)||(u===0?r.push(s):i.push({documentOrder:a,tabIndex:u,node:s}))}),i.sort((s,a)=>s.tabIndex===a.tabIndex?s.documentOrder-a.documentOrder:s.tabIndex-a.tabIndex).map(s=>s.node).concat(r)}function Ow(){return!0}function Fw(t){const{children:r,disableAutoFocus:i=!1,disableEnforceFocus:s=!1,disableRestoreFocus:a=!1,getTabbable:u=Lw,isEnabled:d=Ow,open:p}=t,m=b.useRef(!1),h=b.useRef(null),w=b.useRef(null),x=b.useRef(null),k=b.useRef(null),E=b.useRef(!1),C=b.useRef(null),S=At(rs(r),C),P=b.useRef(null);b.useEffect(()=>{!p||!C.current||(E.current=!i)},[i,p]),b.useEffect(()=>{if(!p||!C.current)return;const T=Zt(C.current);return C.current.contains(T.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),E.current&&C.current.focus()),()=>{a||(x.current&&x.current.focus&&(m.current=!0,x.current.focus()),x.current=null)}},[p]),b.useEffect(()=>{if(!p||!C.current)return;const T=Zt(C.current),R=A=>{P.current=A,!(s||!d()||A.key!=="Tab")&&T.activeElement===C.current&&A.shiftKey&&(m.current=!0,w.current&&w.current.focus())},M=()=>{var ee,v;const A=C.current;if(A===null)return;if(!T.hasFocus()||!d()||m.current){m.current=!1;return}if(A.contains(T.activeElement)||s&&T.activeElement!==h.current&&T.activeElement!==w.current)return;if(T.activeElement!==k.current)k.current=null;else if(k.current!==null)return;if(!E.current)return;let V=[];if((T.activeElement===h.current||T.activeElement===w.current)&&(V=u(C.current)),V.length>0){const G=!!((ee=P.current)!=null&&ee.shiftKey&&((v=P.current)==null?void 0:v.key)==="Tab"),Z=V[0],K=V[V.length-1];typeof Z!="string"&&typeof K!="string"&&(G?K.focus():Z.focus())}else A.focus()};T.addEventListener("focusin",M),T.addEventListener("keydown",R,!0);const L=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(L),T.removeEventListener("focusin",M),T.removeEventListener("keydown",R,!0)}},[i,s,a,d,p,u]);const $=T=>{x.current===null&&(x.current=T.relatedTarget),E.current=!0,k.current=T.target;const R=r.props.onFocus;R&&R(T)},_=T=>{x.current===null&&(x.current=T.relatedTarget),E.current=!0};return y.jsxs(b.Fragment,{children:[y.jsx("div",{tabIndex:p?0:-1,onFocus:_,ref:h,"data-testid":"sentinelStart"}),b.cloneElement(r,{ref:S,onFocus:$}),y.jsx("div",{tabIndex:p?0:-1,onFocus:_,ref:w,"data-testid":"sentinelEnd"})]})}function Bw(t){return typeof t=="function"?t():t}function Dw(t){return t?t.props.hasOwnProperty("in"):!1}const Gm=()=>{},kl=new _w;function Ww(t){const{container:r,disableEscapeKeyDown:i=!1,disableScrollLock:s=!1,closeAfterTransition:a=!1,onTransitionEnter:u,onTransitionExited:d,children:p,onClose:m,open:h,rootRef:w}=t,x=b.useRef({}),k=b.useRef(null),E=b.useRef(null),C=At(E,w),[S,P]=b.useState(!h),$=Dw(p);let _=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(_=!1);const T=()=>Zt(k.current),R=()=>(x.current.modalRef=E.current,x.current.mount=k.current,x.current),M=()=>{kl.mount(R(),{disableScrollLock:s}),E.current&&(E.current.scrollTop=0)},L=dr(()=>{const F=Bw(r)||T().body;kl.add(R(),F),E.current&&M()}),A=()=>kl.isTopModal(R()),V=dr(F=>{k.current=F,F&&(h&&A()?M():E.current&&qi(E.current,_))}),ee=b.useCallback(()=>{kl.remove(R(),_)},[_]);b.useEffect(()=>()=>{ee()},[ee]),b.useEffect(()=>{h?L():(!$||!a)&&ee()},[h,ee,$,a,L]);const v=F=>B=>{var Q;(Q=F.onKeyDown)==null||Q.call(F,B),!(B.key!=="Escape"||B.which===229||!A())&&(i||(B.stopPropagation(),m&&m(B,"escapeKeyDown")))},G=F=>B=>{var Q;(Q=F.onClick)==null||Q.call(F,B),B.target===B.currentTarget&&m&&m(B,"backdropClick")};return{getRootProps:(F={})=>{const B=Ki(t);delete B.onTransitionEnter,delete B.onTransitionExited;const Q={...B,...F};return{role:"presentation",...Q,onKeyDown:v(Q),ref:C}},getBackdropProps:(F={})=>{const B=F;return{"aria-hidden":!0,...B,onClick:G(B),open:h}},getTransitionProps:()=>{const F=()=>{P(!1),u&&u()},B=()=>{P(!0),d&&d(),a&&ee()};return{onEnter:im(F,(p==null?void 0:p.props.onEnter)??Gm),onExited:im(B,(p==null?void 0:p.props.onExited)??Gm)}},rootRef:C,portalRef:V,isTopModal:A,exited:S,hasTransition:$}}function Uw(t){return Ve("MuiModal",t)}Oe("MuiModal",["root","hidden","backdrop"]);const Vw=t=>{const{open:r,exited:i,classes:s}=t;return Ue({root:["root",!r&&i&&"hidden"],backdrop:["backdrop"]},Uw,s)},Hw=ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,!i.open&&i.exited&&r.hidden]}})(We(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:r})=>!r.open&&r.exited,style:{visibility:"hidden"}}]}))),Gw=ue(sg,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,r)=>r.backdrop})({zIndex:-1}),ld=b.forwardRef(function(r,i){const s=He({name:"MuiModal",props:r}),{BackdropComponent:a=Gw,BackdropProps:u,classes:d,className:p,closeAfterTransition:m=!1,children:h,container:w,component:x,components:k={},componentsProps:E={},disableAutoFocus:C=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:P=!1,disablePortal:$=!1,disableRestoreFocus:_=!1,disableScrollLock:T=!1,hideBackdrop:R=!1,keepMounted:M=!1,onBackdropClick:L,onClose:A,onTransitionEnter:V,onTransitionExited:ee,open:v,slotProps:G={},slots:Z={},theme:K,...O}=s,F={...s,closeAfterTransition:m,disableAutoFocus:C,disableEnforceFocus:S,disableEscapeKeyDown:P,disablePortal:$,disableRestoreFocus:_,disableScrollLock:T,hideBackdrop:R,keepMounted:M},{getRootProps:B,getBackdropProps:Q,getTransitionProps:U,portalRef:Y,isTopModal:ie,exited:z,hasTransition:q}=Ww({...F,rootRef:i}),ce={...F,exited:z},X=Vw(ce),ne={};if(h.props.tabIndex===void 0&&(ne.tabIndex="-1"),q){const{onEnter:Me,onExited:Ne}=U();ne.onEnter=Me,ne.onExited=Ne}const te={...O,slots:{root:k.Root,backdrop:k.Backdrop,...Z},slotProps:{...E,...G}},[fe,ge]=kt("root",{elementType:Hw,externalForwardedProps:te,getSlotProps:B,additionalProps:{ref:i,as:x},ownerState:ce,className:Re(p,X==null?void 0:X.root,!ce.open&&ce.exited&&(X==null?void 0:X.hidden))}),[xe,ye]=kt("backdrop",{elementType:a,externalForwardedProps:te,additionalProps:u,getSlotProps:Me=>Q({...Me,onClick:Ne=>{L&&L(Ne),Me!=null&&Me.onClick&&Me.onClick(Ne)}}),className:Re(u==null?void 0:u.className,X==null?void 0:X.backdrop),ownerState:ce}),Ae=At(u==null?void 0:u.ref,ye.ref);return!M&&!v&&(!q||z)?null:y.jsx(rw,{ref:Y,container:w,disablePortal:$,children:y.jsxs(fe,{...ge,children:[!R&&a?y.jsx(xe,{...ye,ref:Ae}):null,y.jsx(Fw,{disableEnforceFocus:S,disableAutoFocus:C,disableRestoreFocus:_,isEnabled:ie,open:v,children:b.cloneElement(h,ne)})]})})});function Kw(t){return Ve("MuiDialog",t)}const uc=Oe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),ag=b.createContext({}),Qw=ue(sg,{name:"MuiDialog",slot:"Backdrop",overrides:(t,r)=>r.backdrop})({zIndex:-1}),qw=t=>{const{classes:r,scroll:i,maxWidth:s,fullWidth:a,fullScreen:u}=t,d={root:["root"],container:["container",`scroll${he(i)}`],paper:["paper",`paperScroll${he(i)}`,`paperWidth${he(String(s))}`,a&&"paperFullWidth",u&&"paperFullScreen"]};return Ue(d,Kw,r)},Yw=ue(ld,{name:"MuiDialog",slot:"Root",overridesResolver:(t,r)=>r.root})({"@media print":{position:"absolute !important"}}),Xw=ue("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.container,r[`scroll${he(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"}}}]}),Jw=ue(Nr,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.paper,r[`scrollPaper${he(i.scroll)}`],r[`paperWidth${he(String(i.maxWidth))}`],i.fullWidth&&r.paperFullWidth,i.fullScreen&&r.paperFullScreen]}})(We(({theme:t})=>({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:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${uc.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(r=>r!=="xs").map(r=>({props:{maxWidth:r},style:{maxWidth:`${t.breakpoints.values[r]}${t.breakpoints.unit}`,[`&.${uc.paperScrollBody}`]:{[t.breakpoints.down(t.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,[`&.${uc.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ua=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiDialog"}),a=uo(),u={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":d,"aria-labelledby":p,"aria-modal":m=!0,BackdropComponent:h,BackdropProps:w,children:x,className:k,disableEscapeKeyDown:E=!1,fullScreen:C=!1,fullWidth:S=!1,maxWidth:P="sm",onBackdropClick:$,onClick:_,onClose:T,open:R,PaperComponent:M=Nr,PaperProps:L={},scroll:A="paper",slots:V={},slotProps:ee={},TransitionComponent:v=Mc,transitionDuration:G=u,TransitionProps:Z,...K}=s,O={...s,disableEscapeKeyDown:E,fullScreen:C,fullWidth:S,maxWidth:P,scroll:A},F=qw(O),B=b.useRef(),Q=Te=>{B.current=Te.target===Te.currentTarget},U=Te=>{_&&_(Te),B.current&&(B.current=null,$&&$(Te),T&&T(Te,"backdropClick"))},Y=ns(p),ie=b.useMemo(()=>({titleId:Y}),[Y]),z={transition:v,...V},q={transition:Z,paper:L,backdrop:w,...ee},ce={slots:z,slotProps:q},[X,ne]=kt("root",{elementType:Yw,shouldForwardComponentProp:!0,externalForwardedProps:ce,ownerState:O,className:Re(F.root,k),ref:i}),[te,fe]=kt("backdrop",{elementType:Qw,shouldForwardComponentProp:!0,externalForwardedProps:ce,ownerState:O}),[ge,xe]=kt("paper",{elementType:Jw,shouldForwardComponentProp:!0,externalForwardedProps:ce,ownerState:O,className:Re(F.paper,L.className)}),[ye,Ae]=kt("container",{elementType:Xw,externalForwardedProps:ce,ownerState:O,className:Re(F.container)}),[Me,Ne]=kt("transition",{elementType:Mc,externalForwardedProps:ce,ownerState:O,additionalProps:{appear:!0,in:R,timeout:G,role:"presentation"}});return y.jsx(X,{closeAfterTransition:!0,slots:{backdrop:te},slotProps:{backdrop:{transitionDuration:G,as:h,...fe}},disableEscapeKeyDown:E,onClose:T,open:R,onClick:U,...ne,...K,children:y.jsx(Me,{...Ne,children:y.jsx(ye,{onMouseDown:Q,...Ae,children:y.jsx(ge,{as:M,elevation:24,role:"dialog","aria-describedby":d,"aria-labelledby":Y,"aria-modal":m,...xe,children:y.jsx(ag.Provider,{value:ie,children:x})})})})})});function Zw(t){return Ve("MuiDialogActions",t)}Oe("MuiDialogActions",["root","spacing"]);const eC=t=>{const{classes:r,disableSpacing:i}=t;return Ue({root:["root",!i&&"spacing"]},Zw,r)},tC=ue("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,!i.disableSpacing&&r.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),ug=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiDialogActions"}),{className:a,disableSpacing:u=!1,...d}=s,p={...s,disableSpacing:u},m=eC(p);return y.jsx(tC,{className:Re(m.root,a),ownerState:p,ref:i,...d})});function nC(t){return Ve("MuiDialogContent",t)}Oe("MuiDialogContent",["root","dividers"]);function rC(t){return Ve("MuiDialogTitle",t)}const oC=Oe("MuiDialogTitle",["root"]),iC=t=>{const{classes:r,dividers:i}=t;return Ue({root:["root",i&&"dividers"]},nC,r)},sC=ue("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,i.dividers&&r.dividers]}})(We(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:r})=>r.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:r})=>!r.dividers,style:{[`.${oC.root} + &`]:{paddingTop:0}}}]}))),ca=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiDialogContent"}),{className:a,dividers:u=!1,...d}=s,p={...s,dividers:u},m=iC(p);return y.jsx(sC,{className:Re(m.root,a),ownerState:p,ref:i,...d})}),lC=t=>{const{classes:r}=t;return Ue({root:["root"]},rC,r)},aC=ue(Le,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,r)=>r.root})({padding:"16px 24px",flex:"0 0 auto"}),da=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiDialogTitle"}),{className:a,id:u,...d}=s,p=s,m=lC(p),{titleId:h=u}=b.useContext(ag);return y.jsx(aC,{component:"h2",className:Re(m.root,a),ownerState:p,ref:i,variant:"h6",id:u??h,...d})}),Km=Oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),uC=t=>{const{classes:r,disableUnderline:i,startAdornment:s,endAdornment:a,size:u,hiddenLabel:d,multiline:p}=t,m={root:["root",!i&&"underline",s&&"adornedStart",a&&"adornedEnd",u==="small"&&`size${he(u)}`,d&&"hiddenLabel",p&&"multiline"],input:["input"]},h=Ue(m,fw,r);return{...r,...h}},cC=ue(la,{shouldForwardProp:t=>$n(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[...ia(t,r),!i.disableUnderline&&r.underline]}})(We(({theme:t})=>{const r=t.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s}},[`&.${Jr.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s},[`&.${Jr.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:u},variants:[{props:({ownerState:d})=>!d.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Jr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jr.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Jr.disabled}, .${Jr.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Jr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Yt()).map(([d])=>{var p;return{props:{disableUnderline:!1,color:d},style:{"&::after":{borderBottom:`2px solid ${(p=(t.vars||t).palette[d])==null?void 0:p.main}`}}}}),{props:({ownerState:d})=>d.startAdornment,style:{paddingLeft:12}},{props:({ownerState:d})=>d.endAdornment,style:{paddingRight:12}},{props:({ownerState:d})=>d.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:d,size:p})=>d.multiline&&p==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:d})=>d.multiline&&d.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:d})=>d.multiline&&d.hiddenLabel&&d.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),dC=ue(aa,{name:"MuiFilledInput",slot:"Input",overridesResolver:sa})(We(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:r})=>r.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:0}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:0}},{props:({ownerState:r})=>r.hiddenLabel&&r.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:r})=>r.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ad=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:u={},componentsProps:d,fullWidth:p=!1,hiddenLabel:m,inputComponent:h="input",multiline:w=!1,slotProps:x,slots:k={},type:E="text",...C}=s,S={...s,disableUnderline:a,fullWidth:p,inputComponent:h,multiline:w,type:E},P=uC(s),$={root:{ownerState:S},input:{ownerState:S}},_=x??d?qt($,x??d):$,T=k.root??u.Root??cC,R=k.input??u.Input??dC;return y.jsx(sd,{slots:{root:T,input:R},slotProps:_,fullWidth:p,inputComponent:h,multiline:w,ref:i,type:E,...C,classes:P})});ad.muiName="Input";function fC(t){return Ve("MuiFormControl",t)}Oe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const pC=t=>{const{classes:r,margin:i,fullWidth:s}=t,a={root:["root",i!=="none"&&`margin${he(i)}`,s&&"fullWidth"]};return Ue(a,fC,r)},mC=ue("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,r[`margin${he(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%"}}]}),hC=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiFormControl"}),{children:a,className:u,color:d="primary",component:p="div",disabled:m=!1,error:h=!1,focused:w,fullWidth:x=!1,hiddenLabel:k=!1,margin:E="none",required:C=!1,size:S="medium",variant:P="outlined",...$}=s,_={...s,color:d,component:p,disabled:m,error:h,fullWidth:x,hiddenLabel:k,margin:E,required:C,size:S,variant:P},T=pC(_),[R,M]=b.useState(()=>{let F=!1;return a&&b.Children.forEach(a,B=>{if(!tc(B,["Input","Select"]))return;const Q=tc(B,["Select"])?B.props.input:B;Q&&lw(Q.props)&&(F=!0)}),F}),[L,A]=b.useState(()=>{let F=!1;return a&&b.Children.forEach(a,B=>{tc(B,["Input","Select"])&&(Wl(B.props,!0)||Wl(B.props.inputProps,!0))&&(F=!0)}),F}),[V,ee]=b.useState(!1);m&&V&&ee(!1);const v=w!==void 0&&!m?w:V;let G;b.useRef(!1);const Z=b.useCallback(()=>{A(!0)},[]),K=b.useCallback(()=>{A(!1)},[]),O=b.useMemo(()=>({adornedStart:R,setAdornedStart:M,color:d,disabled:m,error:h,filled:L,focused:v,fullWidth:x,hiddenLabel:k,size:S,onBlur:()=>{ee(!1)},onFocus:()=>{ee(!0)},onEmpty:K,onFilled:Z,registerEffect:G,required:C,variant:P}),[R,d,m,h,L,v,x,k,G,K,Z,C,S,P]);return y.jsx(id.Provider,{value:O,children:y.jsx(mC,{as:p,ownerState:_,className:Re(T.root,u),ref:i,...$,children:a})})});function gC(t){return Ve("MuiFormHelperText",t)}const Qm=Oe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var qm;const yC=t=>{const{classes:r,contained:i,size:s,disabled:a,error:u,filled:d,focused:p,required:m}=t,h={root:["root",a&&"disabled",u&&"error",s&&`size${he(s)}`,i&&"contained",p&&"focused",d&&"filled",m&&"required"]};return Ue(h,gC,r)},vC=ue("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,i.size&&r[`size${he(i.size)}`],i.contained&&r.contained,i.filled&&r.filled]}})(We(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Qm.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Qm.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:r})=>r.contained,style:{marginLeft:14,marginRight:14}}]}))),xC=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiFormHelperText"}),{children:a,className:u,component:d="p",disabled:p,error:m,filled:h,focused:w,margin:x,required:k,variant:E,...C}=s,S=Jo(),P=Xo({props:s,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),$={...s,component:d,contained:P.variant==="filled"||P.variant==="outlined",variant:P.variant,size:P.size,disabled:P.disabled,error:P.error,filled:P.filled,focused:P.focused,required:P.required};delete $.ownerState;const _=yC($);return y.jsx(vC,{as:d,className:Re(_.root,u),ref:i,...C,ownerState:$,children:a===" "?qm||(qm=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function SC(t){return Ve("MuiFormLabel",t)}const Yi=Oe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),wC=t=>{const{classes:r,color:i,focused:s,disabled:a,error:u,filled:d,required:p}=t,m={root:["root",`color${he(i)}`,a&&"disabled",u&&"error",d&&"filled",s&&"focused",p&&"required"],asterisk:["asterisk",u&&"error"]};return Ue(m,SC,r)},CC=ue("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,i.color==="secondary"&&r.colorSecondary,i.filled&&r.filled]}})(We(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Yt()).map(([r])=>({props:{color:r},style:{[`&.${Yi.focused}`]:{color:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${Yi.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Yi.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),bC=ue("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,r)=>r.asterisk})(We(({theme:t})=>({[`&.${Yi.error}`]:{color:(t.vars||t).palette.error.main}}))),kC=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiFormLabel"}),{children:a,className:u,color:d,component:p="label",disabled:m,error:h,filled:w,focused:x,required:k,...E}=s,C=Jo(),S=Xo({props:s,muiFormControl:C,states:["color","required","focused","disabled","error","filled"]}),P={...s,color:S.color||"primary",component:p,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},$=wC(P);return y.jsxs(CC,{as:p,ownerState:P,className:Re($.root,u),ref:i,...E,children:[a,S.required&&y.jsxs(bC,{ownerState:P,"aria-hidden":!0,className:$.asterisk,children:[" ","*"]})]})}),Ym=b.createContext();function EC(t){return Ve("MuiGrid",t)}const RC=[0,1,2,3,4,5,6,7,8,9,10],PC=["column-reverse","column","row-reverse","row"],TC=["nowrap","wrap-reverse","wrap"],Bi=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],ts=Oe("MuiGrid",["root","container","item","zeroMinWidth",...RC.map(t=>`spacing-xs-${t}`),...PC.map(t=>`direction-xs-${t}`),...TC.map(t=>`wrap-xs-${t}`),...Bi.map(t=>`grid-xs-${t}`),...Bi.map(t=>`grid-sm-${t}`),...Bi.map(t=>`grid-md-${t}`),...Bi.map(t=>`grid-lg-${t}`),...Bi.map(t=>`grid-xl-${t}`)]);function $C({theme:t,ownerState:r}){let i;return t.breakpoints.keys.reduce((s,a)=>{let u={};if(r[a]&&(i=r[a]),!i)return s;if(i===!0)u={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(i==="auto")u={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const d=Hl({values:r.columns,breakpoints:t.breakpoints.values}),p=typeof d=="object"?d[a]:d;if(p==null)return s;const m=`${Math.round(i/p*1e8)/1e6}%`;let h={};if(r.container&&r.item&&r.columnSpacing!==0){const w=t.spacing(r.columnSpacing);if(w!=="0px"){const x=`calc(${m} + ${w})`;h={flexBasis:x,maxWidth:x}}}u={flexBasis:m,flexGrow:0,maxWidth:m,...h}}return t.breakpoints.values[a]===0?Object.assign(s,u):s[t.breakpoints.up(a)]=u,s},{})}function IC({theme:t,ownerState:r}){const i=Hl({values:r.direction,breakpoints:t.breakpoints.values});return Pn({theme:t},i,s=>{const a={flexDirection:s};return s.startsWith("column")&&(a[`& > .${ts.item}`]={maxWidth:"none"}),a})}function cg({breakpoints:t,values:r}){let i="";Object.keys(r).forEach(a=>{i===""&&r[a]!==0&&(i=a)});const s=Object.keys(t).sort((a,u)=>t[a]-t[u]);return s.slice(0,s.indexOf(i))}function MC({theme:t,ownerState:r}){const{container:i,rowSpacing:s}=r;let a={};if(i&&s!==0){const u=Hl({values:s,breakpoints:t.breakpoints.values});let d;typeof u=="object"&&(d=cg({breakpoints:t.breakpoints.values,values:u})),a=Pn({theme:t},u,(p,m)=>{const h=t.spacing(p);return h!=="0px"?{marginTop:`calc(-1 * ${h})`,[`& > .${ts.item}`]:{paddingTop:h}}:d!=null&&d.includes(m)?{}:{marginTop:0,[`& > .${ts.item}`]:{paddingTop:0}}})}return a}function _C({theme:t,ownerState:r}){const{container:i,columnSpacing:s}=r;let a={};if(i&&s!==0){const u=Hl({values:s,breakpoints:t.breakpoints.values});let d;typeof u=="object"&&(d=cg({breakpoints:t.breakpoints.values,values:u})),a=Pn({theme:t},u,(p,m)=>{const h=t.spacing(p);if(h!=="0px"){const w=`calc(-1 * ${h})`;return{width:`calc(100% + ${h})`,marginLeft:w,[`& > .${ts.item}`]:{paddingLeft:h}}}return d!=null&&d.includes(m)?{}:{width:"100%",marginLeft:0,[`& > .${ts.item}`]:{paddingLeft:0}}})}return a}function zC(t,r,i={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[i[`spacing-xs-${String(t)}`]];const s=[];return r.forEach(a=>{const u=t[a];Number(u)>0&&s.push(i[`spacing-${a}-${String(u)}`])}),s}const jC=ue("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t,{container:s,direction:a,item:u,spacing:d,wrap:p,zeroMinWidth:m,breakpoints:h}=i;let w=[];s&&(w=zC(d,h,r));const x=[];return h.forEach(k=>{const E=i[k];E&&x.push(r[`grid-${k}-${String(E)}`])}),[r.root,s&&r.container,u&&r.item,m&&r.zeroMinWidth,...w,a!=="row"&&r[`direction-xs-${String(a)}`],p!=="wrap"&&r[`wrap-xs-${String(p)}`],...x]}})(({ownerState:t})=>({boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...t.item&&{margin:0},...t.zeroMinWidth&&{minWidth:0},...t.wrap!=="wrap"&&{flexWrap:t.wrap}}),IC,MC,_C,$C);function AC(t,r){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const i=[];return r.forEach(s=>{const a=t[s];if(Number(a)>0){const u=`spacing-${s}-${String(a)}`;i.push(u)}}),i}const NC=t=>{const{classes:r,container:i,direction:s,item:a,spacing:u,wrap:d,zeroMinWidth:p,breakpoints:m}=t;let h=[];i&&(h=AC(u,m));const w=[];m.forEach(k=>{const E=t[k];E&&w.push(`grid-${k}-${String(E)}`)});const x={root:["root",i&&"container",a&&"item",p&&"zeroMinWidth",...h,s!=="row"&&`direction-xs-${String(s)}`,d!=="wrap"&&`wrap-xs-${String(d)}`,...w]};return Ue(x,EC,r)},Ln=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiGrid"}),{breakpoints:a}=uo(),u=Uc(s),{className:d,columns:p,columnSpacing:m,component:h="div",container:w=!1,direction:x="row",item:k=!1,rowSpacing:E,spacing:C=0,wrap:S="wrap",zeroMinWidth:P=!1,...$}=u,_=E||C,T=m||C,R=b.useContext(Ym),M=w?p||12:R,L={},A={...$};a.keys.forEach(v=>{$[v]!=null&&(L[v]=$[v],delete A[v])});const V={...u,columns:M,container:w,direction:x,item:k,rowSpacing:_,columnSpacing:T,wrap:S,zeroMinWidth:P,spacing:C,...L,breakpoints:a.keys},ee=NC(V);return y.jsx(Ym.Provider,{value:M,children:y.jsx(jC,{ownerState:V,className:Re(ee.root,d),as:h,ref:i,...A})})});function _c(t){return`scale(${t}, ${t**2})`}const LC={entering:{opacity:1,transform:_c(1)},entered:{opacity:1,transform:"none"}},cc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),zc=b.forwardRef(function(r,i){const{addEndListener:s,appear:a=!0,children:u,easing:d,in:p,onEnter:m,onEntered:h,onEntering:w,onExit:x,onExited:k,onExiting:E,style:C,timeout:S="auto",TransitionComponent:P=On,...$}=r,_=Oc(),T=b.useRef(),R=uo(),M=b.useRef(null),L=At(M,rs(u),i),A=F=>B=>{if(F){const Q=M.current;B===void 0?F(Q):F(Q,B)}},V=A(w),ee=A((F,B)=>{og(F);const{duration:Q,delay:U,easing:Y}=Ko({style:C,timeout:S,easing:d},{mode:"enter"});let ie;S==="auto"?(ie=R.transitions.getAutoHeightDuration(F.clientHeight),T.current=ie):ie=Q,F.style.transition=[R.transitions.create("opacity",{duration:ie,delay:U}),R.transitions.create("transform",{duration:cc?ie:ie*.666,delay:U,easing:Y})].join(","),m&&m(F,B)}),v=A(h),G=A(E),Z=A(F=>{const{duration:B,delay:Q,easing:U}=Ko({style:C,timeout:S,easing:d},{mode:"exit"});let Y;S==="auto"?(Y=R.transitions.getAutoHeightDuration(F.clientHeight),T.current=Y):Y=B,F.style.transition=[R.transitions.create("opacity",{duration:Y,delay:Q}),R.transitions.create("transform",{duration:cc?Y:Y*.666,delay:cc?Q:Q||Y*.333,easing:U})].join(","),F.style.opacity=0,F.style.transform=_c(.75),x&&x(F)}),K=A(k),O=F=>{S==="auto"&&_.start(T.current||0,F),s&&s(M.current,F)};return y.jsx(P,{appear:a,in:p,nodeRef:M,onEnter:ee,onEntered:v,onEntering:V,onExit:Z,onExited:K,onExiting:G,addEndListener:O,timeout:S==="auto"?null:S,...$,children:(F,{ownerState:B,...Q})=>b.cloneElement(u,{style:{opacity:0,transform:_c(.75),visibility:F==="exited"&&!p?"hidden":void 0,...LC[F],...C,...u.props.style},ref:L,...Q})})});zc&&(zc.muiSupportAuto=!0);const OC=tx({themeId:us}),FC=t=>{const{classes:r,disableUnderline:i}=t,a=Ue({root:["root",!i&&"underline"],input:["input"]},cw,r);return{...r,...a}},BC=ue(la,{shouldForwardProp:t=>$n(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[...ia(t,r),!i.disableUnderline&&r.underline]}})(We(({theme:t})=>{let i=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(i=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:s})=>s.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Fi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fi.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Fi.disabled}, .${Fi.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${i}`}},[`&.${Fi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Yt()).map(([s])=>({props:{color:s,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[s].main}`}}}))]}})),DC=ue(aa,{name:"MuiInput",slot:"Input",overridesResolver:sa})({}),ud=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiInput"}),{disableUnderline:a=!1,components:u={},componentsProps:d,fullWidth:p=!1,inputComponent:m="input",multiline:h=!1,slotProps:w,slots:x={},type:k="text",...E}=s,C=FC(s),P={root:{ownerState:{disableUnderline:a}}},$=w??d?qt(w??d,P):P,_=x.root??u.Root??BC,T=x.input??u.Input??DC;return y.jsx(sd,{slots:{root:_,input:T},slotProps:$,fullWidth:p,inputComponent:m,multiline:h,ref:i,type:k,...E,classes:C})});ud.muiName="Input";function WC(t){return Ve("MuiInputLabel",t)}Oe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const UC=t=>{const{classes:r,formControl:i,size:s,shrink:a,disableAnimation:u,variant:d,required:p}=t,m={root:["root",i&&"formControl",!u&&"animated",a&&"shrink",s&&s!=="normal"&&`size${he(s)}`,d],asterisk:[p&&"asterisk"]},h=Ue(m,WC,r);return{...r,...h}},VC=ue(kC,{shouldForwardProp:t=>$n(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[{[`& .${Yi.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]]}})(We(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:r})=>r.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:r})=>r.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:r})=>!r.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:r,ownerState: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:s})=>r==="filled"&&i.shrink&&s==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:r,ownerState:i})=>r==="outlined"&&i.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),HC=b.forwardRef(function(r,i){const s=He({name:"MuiInputLabel",props:r}),{disableAnimation:a=!1,margin:u,shrink:d,variant:p,className:m,...h}=s,w=Jo();let x=d;typeof x>"u"&&w&&(x=w.filled||w.focused||w.adornedStart);const k=Xo({props:s,muiFormControl:w,states:["size","variant","required","focused"]}),E={...s,disableAnimation:a,formControl:w,shrink:x,size:k.size,variant:k.variant,required:k.required,focused:k.focused},C=UC(E);return y.jsx(VC,{"data-shrink":x,ref:i,className:Re(C.root,m),...h,ownerState:E,classes:C})}),jc=b.createContext({});function GC(t){return Ve("MuiList",t)}Oe("MuiList",["root","padding","dense","subheader"]);const KC=t=>{const{classes:r,disablePadding:i,dense:s,subheader:a}=t;return Ue({root:["root",!i&&"padding",s&&"dense",a&&"subheader"]},GC,r)},QC=ue("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;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:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),qC=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiList"}),{children:a,className:u,component:d="ul",dense:p=!1,disablePadding:m=!1,subheader:h,...w}=s,x=b.useMemo(()=>({dense:p}),[p]),k={...s,component:d,dense:p,disablePadding:m},E=KC(k);return y.jsx(jc.Provider,{value:x,children:y.jsxs(QC,{as:d,className:Re(E.root,u),ref:i,ownerState:k,...w,children:[h,a]})})}),Xm=Oe("MuiListItemIcon",["root","alignItemsFlexStart"]),Jm=Oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function dc(t,r,i){return t===r?t.firstChild:r&&r.nextElementSibling?r.nextElementSibling:i?null:t.firstChild}function Zm(t,r,i){return t===r?i?t.firstChild:t.lastChild:r&&r.previousElementSibling?r.previousElementSibling:i?null:t.lastChild}function dg(t,r){if(r===void 0)return!0;let i=t.innerText;return i===void 0&&(i=t.textContent),i=i.trim().toLowerCase(),i.length===0?!1:r.repeating?i[0]===r.keys[0]:i.startsWith(r.keys.join(""))}function Di(t,r,i,s,a,u){let d=!1,p=a(t,r,r?i:!1);for(;p;){if(p===t.firstChild){if(d)return!1;d=!0}const m=s?!1:p.disabled||p.getAttribute("aria-disabled")==="true";if(!p.hasAttribute("tabindex")||!dg(p,u)||m)p=a(t,p,i);else return p.focus(),!0}return!1}const YC=b.forwardRef(function(r,i){const{actions:s,autoFocus:a=!1,autoFocusItem:u=!1,children:d,className:p,disabledItemsFocusable:m=!1,disableListWrap:h=!1,onKeyDown:w,variant:x="selectedMenu",...k}=r,E=b.useRef(null),C=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Zn(()=>{a&&E.current.focus()},[a]),b.useImperativeHandle(s,()=>({adjustStyleForScrollbar:(T,{direction:R})=>{const M=!E.current.style.width;if(T.clientHeight<E.current.clientHeight&&M){const L=`${vh(pr(T))}px`;E.current.style[R==="rtl"?"paddingLeft":"paddingRight"]=L,E.current.style.width=`calc(100% + ${L})`}return E.current}}),[]);const S=T=>{const R=E.current,M=T.key;if(T.ctrlKey||T.metaKey||T.altKey){w&&w(T);return}const A=Zt(R).activeElement;if(M==="ArrowDown")T.preventDefault(),Di(R,A,h,m,dc);else if(M==="ArrowUp")T.preventDefault(),Di(R,A,h,m,Zm);else if(M==="Home")T.preventDefault(),Di(R,null,h,m,dc);else if(M==="End")T.preventDefault(),Di(R,null,h,m,Zm);else if(M.length===1){const V=C.current,ee=M.toLowerCase(),v=performance.now();V.keys.length>0&&(v-V.lastTime>500?(V.keys=[],V.repeating=!0,V.previousKeyMatched=!0):V.repeating&&ee!==V.keys[0]&&(V.repeating=!1)),V.lastTime=v,V.keys.push(ee);const G=A&&!V.repeating&&dg(A,V);V.previousKeyMatched&&(G||Di(R,A,!1,m,dc,V))?T.preventDefault():V.previousKeyMatched=!1}w&&w(T)},P=At(E,i);let $=-1;b.Children.forEach(d,(T,R)=>{if(!b.isValidElement(T)){$===R&&($+=1,$>=d.length&&($=-1));return}T.props.disabled||(x==="selectedMenu"&&T.props.selected||$===-1)&&($=R),$===R&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&($+=1,$>=d.length&&($=-1))});const _=b.Children.map(d,(T,R)=>{if(R===$){const M={};return u&&(M.autoFocus=!0),T.props.tabIndex===void 0&&x==="selectedMenu"&&(M.tabIndex=0),b.cloneElement(T,M)}return T});return y.jsx(qC,{role:"menu",ref:P,className:p,onKeyDown:S,tabIndex:a?0:-1,...k,children:_})});function XC(t){return Ve("MuiPopover",t)}Oe("MuiPopover",["root","paper"]);function eh(t,r){let i=0;return typeof r=="number"?i=r:r==="center"?i=t.height/2:r==="bottom"&&(i=t.height),i}function th(t,r){let i=0;return typeof r=="number"?i=r:r==="center"?i=t.width/2:r==="right"&&(i=t.width),i}function nh(t){return[t.horizontal,t.vertical].map(r=>typeof r=="number"?`${r}px`:r).join(" ")}function fc(t){return typeof t=="function"?t():t}const JC=t=>{const{classes:r}=t;return Ue({root:["root"],paper:["paper"]},XC,r)},ZC=ue(ld,{name:"MuiPopover",slot:"Root",overridesResolver:(t,r)=>r.root})({}),fg=ue(Nr,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,r)=>r.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),e2=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiPopover"}),{action:a,anchorEl:u,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:m="anchorEl",children:h,className:w,container:x,elevation:k=8,marginThreshold:E=16,open:C,PaperProps:S={},slots:P={},slotProps:$={},transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:T=zc,transitionDuration:R="auto",TransitionProps:{onEntering:M,...L}={},disableScrollLock:A=!1,...V}=s,ee=($==null?void 0:$.paper)??S,v=b.useRef(),G={...s,anchorOrigin:d,anchorReference:m,elevation:k,marginThreshold:E,externalPaperSlotProps:ee,transformOrigin:_,TransitionComponent:T,transitionDuration:R,TransitionProps:L},Z=JC(G),K=b.useCallback(()=>{if(m==="anchorPosition")return p;const ye=fc(u),Me=(ye&&ye.nodeType===1?ye:Zt(v.current).body).getBoundingClientRect();return{top:Me.top+eh(Me,d.vertical),left:Me.left+th(Me,d.horizontal)}},[u,d.horizontal,d.vertical,p,m]),O=b.useCallback(ye=>({vertical:eh(ye,_.vertical),horizontal:th(ye,_.horizontal)}),[_.horizontal,_.vertical]),F=b.useCallback(ye=>{const Ae={width:ye.offsetWidth,height:ye.offsetHeight},Me=O(Ae);if(m==="none")return{top:null,left:null,transformOrigin:nh(Me)};const Ne=K();let Te=Ne.top-Me.vertical,Qe=Ne.left-Me.horizontal;const Et=Te+Ae.height,De=Qe+Ae.width,rt=pr(fc(u)),_t=rt.innerHeight-E,lt=rt.innerWidth-E;if(E!==null&&Te<E){const qe=Te-E;Te-=qe,Me.vertical+=qe}else if(E!==null&&Et>_t){const qe=Et-_t;Te-=qe,Me.vertical+=qe}if(E!==null&&Qe<E){const qe=Qe-E;Qe-=qe,Me.horizontal+=qe}else if(De>lt){const qe=De-lt;Qe-=qe,Me.horizontal+=qe}return{top:`${Math.round(Te)}px`,left:`${Math.round(Qe)}px`,transformOrigin:nh(Me)}},[u,m,K,O,E]),[B,Q]=b.useState(C),U=b.useCallback(()=>{const ye=v.current;if(!ye)return;const Ae=F(ye);Ae.top!==null&&ye.style.setProperty("top",Ae.top),Ae.left!==null&&(ye.style.left=Ae.left),ye.style.transformOrigin=Ae.transformOrigin,Q(!0)},[F]);b.useEffect(()=>(A&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[u,A,U]);const Y=(ye,Ae)=>{M&&M(ye,Ae),U()},ie=()=>{Q(!1)};b.useEffect(()=>{C&&U()}),b.useImperativeHandle(a,()=>C?{updatePosition:()=>{U()}}:null,[C,U]),b.useEffect(()=>{if(!C)return;const ye=gh(()=>{U()}),Ae=pr(u);return Ae.addEventListener("resize",ye),()=>{ye.clear(),Ae.removeEventListener("resize",ye)}},[u,C,U]);let z=R;R==="auto"&&!T.muiSupportAuto&&(z=void 0);const q=x||(u?Zt(fc(u)).body:void 0),ce={slots:P,slotProps:{...$,paper:ee}},[X,ne]=kt("paper",{elementType:fg,externalForwardedProps:ce,additionalProps:{elevation:k,className:Re(Z.paper,ee==null?void 0:ee.className),style:B?ee.style:{...ee.style,opacity:0}},ownerState:G}),[te,{slotProps:fe,...ge}]=kt("root",{elementType:ZC,externalForwardedProps:ce,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:q,open:C},ownerState:G,className:Re(Z.root,w)}),xe=At(v,ne.ref);return y.jsx(te,{...ge,...!io(te)&&{slotProps:fe,disableScrollLock:A},...V,ref:i,children:y.jsx(T,{appear:!0,in:C,onEntering:Y,onExited:ie,timeout:z,...L,children:y.jsx(X,{...ne,ref:xe,children:h})})})});function t2(t){return Ve("MuiMenu",t)}Oe("MuiMenu",["root","paper","list"]);const n2={vertical:"top",horizontal:"right"},r2={vertical:"top",horizontal:"left"},o2=t=>{const{classes:r}=t;return Ue({root:["root"],paper:["paper"],list:["list"]},t2,r)},i2=ue(e2,{shouldForwardProp:t=>$n(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,r)=>r.root})({}),s2=ue(fg,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,r)=>r.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),l2=ue(YC,{name:"MuiMenu",slot:"List",overridesResolver:(t,r)=>r.list})({outline:0}),pg=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiMenu"}),{autoFocus:a=!0,children:u,className:d,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:h,open:w,PaperProps:x={},PopoverClasses:k,transitionDuration:E="auto",TransitionProps:{onEntering:C,...S}={},variant:P="selectedMenu",slots:$={},slotProps:_={},...T}=s,R=Gh(),M={...s,autoFocus:a,disableAutoFocusItem:p,MenuListProps:m,onEntering:C,PaperProps:x,transitionDuration:E,TransitionProps:S,variant:P},L=o2(M),A=a&&!p&&w,V=b.useRef(null),ee=(B,Q)=>{V.current&&V.current.adjustStyleForScrollbar(B,{direction:R?"rtl":"ltr"}),C&&C(B,Q)},v=B=>{B.key==="Tab"&&(B.preventDefault(),h&&h(B,"tabKeyDown"))};let G=-1;b.Children.map(u,(B,Q)=>{b.isValidElement(B)&&(B.props.disabled||(P==="selectedMenu"&&B.props.selected||G===-1)&&(G=Q))});const Z=$.paper??s2,K=_.paper??x,O=Kn({elementType:$.root,externalSlotProps:_.root,ownerState:M,className:[L.root,d]}),F=Kn({elementType:Z,externalSlotProps:K,ownerState:M,className:L.paper});return y.jsx(i2,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?n2:r2,slots:{paper:Z,root:$.root},slotProps:{root:O,paper:F},open:w,ref:i,transitionDuration:E,TransitionProps:{onEntering:ee,...S},ownerState:M,...T,classes:k,children:y.jsx(l2,{onKeyDown:v,actions:V,autoFocus:a&&(G===-1||p),autoFocusItem:A,variant:P,...m,className:Re(L.list,m.className),children:u})})});function a2(t){return Ve("MuiMenuItem",t)}const Wi=Oe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),u2=(t,r)=>{const{ownerState:i}=t;return[r.root,i.dense&&r.dense,i.divider&&r.divider,!i.disableGutters&&r.gutters]},c2=t=>{const{disabled:r,dense:i,divider:s,disableGutters:a,selected:u,classes:d}=t,m=Ue({root:["root",i&&"dense",r&&"disabled",!a&&"gutters",s&&"divider",u&&"selected"]},a2,d);return{...d,...m}},d2=ue(oa,{shouldForwardProp:t=>$n(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:u2})(We(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Wi.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:xt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Wi.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:xt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Wi.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:xt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:xt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Wi.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Wi.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Km.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Km.inset}`]:{marginLeft:52},[`& .${Jm.root}`]:{marginTop:0,marginBottom:0},[`& .${Jm.inset}`]:{paddingLeft:36},[`& .${Xm.root}`]:{minWidth:36},variants:[{props:({ownerState:r})=>!r.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:r})=>r.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:r})=>!r.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:r})=>r.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${Xm.root} svg`]:{fontSize:"1.25rem"}}}]}))),El=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiMenuItem"}),{autoFocus:a=!1,component:u="li",dense:d=!1,divider:p=!1,disableGutters:m=!1,focusVisibleClassName:h,role:w="menuitem",tabIndex:x,className:k,...E}=s,C=b.useContext(jc),S=b.useMemo(()=>({dense:d||C.dense||!1,disableGutters:m}),[C.dense,d,m]),P=b.useRef(null);Zn(()=>{a&&P.current&&P.current.focus()},[a]);const $={...s,dense:S.dense,divider:p,disableGutters:m},_=c2(s),T=At(P,i);let R;return s.disabled||(R=x!==void 0?x:-1),y.jsx(jc.Provider,{value:S,children:y.jsx(d2,{ref:T,role:w,tabIndex:R,component:u,focusVisibleClassName:Re(_.focusVisible,h),className:Re(_.root,k),...E,ownerState:$,classes:_})})});function f2(t){return Ve("MuiNativeSelect",t)}const cd=Oe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),p2=t=>{const{classes:r,variant:i,disabled:s,multiple:a,open:u,error:d}=t,p={select:["select",i,s&&"disabled",a&&"multiple",d&&"error"],icon:["icon",`icon${he(i)}`,u&&"iconOpen",s&&"disabled"]};return Ue(p,f2,r)},mg=ue("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${cd.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:r})=>r.variant!=="filled"&&r.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),m2=ue(mg,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:$n,overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.select,r[i.variant],i.error&&r.error,{[`&.${cd.multiple}`]:r.multiple}]}})({}),hg=ue("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${cd.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:r})=>r.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),h2=ue(hg,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.icon,i.variant&&r[`icon${he(i.variant)}`],i.open&&r.iconOpen]}})({}),g2=b.forwardRef(function(r,i){const{className:s,disabled:a,error:u,IconComponent:d,inputRef:p,variant:m="standard",...h}=r,w={...r,disabled:a,variant:m,error:u},x=p2(w);return y.jsxs(b.Fragment,{children:[y.jsx(m2,{ownerState:w,className:Re(x.select,s),disabled:a,ref:p||i,...h}),r.multiple?null:y.jsx(h2,{as:d,ownerState:w,className:x.icon})]})});var rh;const y2=ue("fieldset",{shouldForwardProp:$n})({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%"}),v2=ue("legend",{shouldForwardProp:$n})(We(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:r})=>!r.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:r})=>r.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:r})=>r.withLabel&&r.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function x2(t){const{children:r,classes:i,className:s,label:a,notched:u,...d}=t,p=a!=null&&a!=="",m={...t,notched:u,withLabel:p};return y.jsx(y2,{"aria-hidden":!0,className:s,ownerState:m,...d,children:y.jsx(v2,{ownerState:m,children:p?y.jsx("span",{children:a}):rh||(rh=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const S2=t=>{const{classes:r}=t,s=Ue({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},dw,r);return{...r,...s}},w2=ue(la,{shouldForwardProp:t=>$n(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ia})(We(({theme:t})=>{const r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Gn.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Gn.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Gn.focused} .${Gn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(Yt()).map(([i])=>({props:{color:i},style:{[`&.${Gn.focused} .${Gn.notchedOutline}`]:{borderColor:(t.vars||t).palette[i].main}}})),{props:{},style:{[`&.${Gn.error} .${Gn.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Gn.disabled} .${Gn.notchedOutline}`]:{borderColor:(t.vars||t).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:s})=>i.multiline&&s==="small",style:{padding:"8.5px 14px"}}]}})),C2=ue(x2,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,r)=>r.notchedOutline})(We(({theme:t})=>{const r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}})),b2=ue(aa,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:sa})(We(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:r})=>r.multiline,style:{padding:0}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:0}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:0}}]}))),dd=b.forwardRef(function(r,i){var s;const a=He({props:r,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:p="input",label:m,multiline:h=!1,notched:w,slots:x={},type:k="text",...E}=a,C=S2(a),S=Jo(),P=Xo({props:a,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),$={...a,color:P.color||"primary",disabled:P.disabled,error:P.error,focused:P.focused,formControl:S,fullWidth:d,hiddenLabel:P.hiddenLabel,multiline:h,size:P.size,type:k},_=x.root??u.Root??w2,T=x.input??u.Input??b2;return y.jsx(sd,{slots:{root:_,input:T},renderSuffix:R=>y.jsx(C2,{ownerState:$,className:C.notchedOutline,label:m!=null&&m!==""&&P.required?s||(s=y.jsxs(b.Fragment,{children:[m," ","*"]})):m,notched:typeof w<"u"?w:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:d,inputComponent:p,multiline:h,ref:i,type:k,...E,classes:{...C,notchedOutline:null}})});dd.muiName="Input";function gg(t){return Ve("MuiSelect",t)}const Ui=Oe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var oh;const k2=ue(mg,{name:"MuiSelect",slot:"Select",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[{[`&.${Ui.select}`]:r.select},{[`&.${Ui.select}`]:r[i.variant]},{[`&.${Ui.error}`]:r.error},{[`&.${Ui.multiple}`]:r.multiple}]}})({[`&.${Ui.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),E2=ue(hg,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.icon,i.variant&&r[`icon${he(i.variant)}`],i.open&&r.iconOpen]}})({}),R2=ue("input",{shouldForwardProp:t=>ra(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,r)=>r.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ih(t,r){return typeof r=="object"&&r!==null?t===r:String(t)===String(r)}function P2(t){return t==null||typeof t=="string"&&!t.trim()}const T2=t=>{const{classes:r,variant:i,disabled:s,multiple:a,open:u,error:d}=t,p={select:["select",i,s&&"disabled",a&&"multiple",d&&"error"],icon:["icon",`icon${he(i)}`,u&&"iconOpen",s&&"disabled"],nativeInput:["nativeInput"]};return Ue(p,gg,r)},$2=b.forwardRef(function(r,i){var Nt;const{"aria-describedby":s,"aria-label":a,autoFocus:u,autoWidth:d,children:p,className:m,defaultOpen:h,defaultValue:w,disabled:x,displayEmpty:k,error:E=!1,IconComponent:C,inputRef:S,labelId:P,MenuProps:$={},multiple:_,name:T,onBlur:R,onChange:M,onClose:L,onFocus:A,onOpen:V,open:ee,readOnly:v,renderValue:G,required:Z,SelectDisplayProps:K={},tabIndex:O,type:F,value:B,variant:Q="standard",...U}=r,[Y,ie]=gc({controlled:B,default:w,name:"Select"}),[z,q]=gc({controlled:ee,default:h,name:"Select"}),ce=b.useRef(null),X=b.useRef(null),[ne,te]=b.useState(null),{current:fe}=b.useRef(ee!=null),[ge,xe]=b.useState(),ye=At(i,S),Ae=b.useCallback(Ee=>{X.current=Ee,Ee&&te(Ee)},[]),Me=ne==null?void 0:ne.parentNode;b.useImperativeHandle(ye,()=>({focus:()=>{X.current.focus()},node:ce.current,value:Y}),[Y]),b.useEffect(()=>{h&&z&&ne&&!fe&&(xe(d?null:Me.clientWidth),X.current.focus())},[ne,d]),b.useEffect(()=>{u&&X.current.focus()},[u]),b.useEffect(()=>{if(!P)return;const Ee=Zt(X.current).getElementById(P);if(Ee){const Ye=()=>{getSelection().isCollapsed&&X.current.focus()};return Ee.addEventListener("click",Ye),()=>{Ee.removeEventListener("click",Ye)}}},[P]);const Ne=(Ee,Ye)=>{Ee?V&&V(Ye):L&&L(Ye),fe||(xe(d?null:Me.clientWidth),q(Ee))},Te=Ee=>{Ee.button===0&&(Ee.preventDefault(),X.current.focus(),Ne(!0,Ee))},Qe=Ee=>{Ne(!1,Ee)},Et=b.Children.toArray(p),De=Ee=>{const Ye=Et.find(ut=>ut.props.value===Ee.target.value);Ye!==void 0&&(ie(Ye.props.value),M&&M(Ee,Ye))},rt=Ee=>Ye=>{let ut;if(Ye.currentTarget.hasAttribute("tabindex")){if(_){ut=Array.isArray(Y)?Y.slice():[];const hn=Y.indexOf(Ee.props.value);hn===-1?ut.push(Ee.props.value):ut.splice(hn,1)}else ut=Ee.props.value;if(Ee.props.onClick&&Ee.props.onClick(Ye),Y!==ut&&(ie(ut),M)){const hn=Ye.nativeEvent||Ye,Fn=new hn.constructor(hn.type,hn);Object.defineProperty(Fn,"target",{writable:!0,value:{value:ut,name:T}}),M(Fn,Ee)}_||Ne(!1,Ye)}},_t=Ee=>{v||[" ","ArrowUp","ArrowDown","Enter"].includes(Ee.key)&&(Ee.preventDefault(),Ne(!0,Ee))},lt=ne!==null&&z,qe=Ee=>{!lt&&R&&(Object.defineProperty(Ee,"target",{writable:!0,value:{value:Y,name:T}}),R(Ee))};delete U["aria-invalid"];let Ce,Ut;const St=[];let se=!1;(Wl({value:Y})||k)&&(G?Ce=G(Y):se=!0);const de=Et.map(Ee=>{if(!b.isValidElement(Ee))return null;let Ye;if(_){if(!Array.isArray(Y))throw new Error(fr(2));Ye=Y.some(ut=>ih(ut,Ee.props.value)),Ye&&se&&St.push(Ee.props.children)}else Ye=ih(Y,Ee.props.value),Ye&&se&&(Ut=Ee.props.children);return b.cloneElement(Ee,{"aria-selected":Ye?"true":"false",onClick:rt(Ee),onKeyUp:ut=>{ut.key===" "&&ut.preventDefault(),Ee.props.onKeyUp&&Ee.props.onKeyUp(ut)},role:"option",selected:Ye,value:void 0,"data-value":Ee.props.value})});se&&(_?St.length===0?Ce=null:Ce=St.reduce((Ee,Ye,ut)=>(Ee.push(Ye),ut<St.length-1&&Ee.push(", "),Ee),[]):Ce=Ut);let ke=ge;!d&&fe&&ne&&(ke=Me.clientWidth);let je;typeof O<"u"?je=O:je=x?null:0;const Be=K.id||(T?`mui-component-select-${T}`:void 0),we={...r,variant:Q,value:Y,open:lt,error:E},_e=T2(we),pt={...$.PaperProps,...(Nt=$.slotProps)==null?void 0:Nt.paper},tt=ns();return y.jsxs(b.Fragment,{children:[y.jsx(k2,{as:"div",ref:Ae,tabIndex:je,role:"combobox","aria-controls":lt?tt:void 0,"aria-disabled":x?"true":void 0,"aria-expanded":lt?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[P,Be].filter(Boolean).join(" ")||void 0,"aria-describedby":s,"aria-required":Z?"true":void 0,"aria-invalid":E?"true":void 0,onKeyDown:_t,onMouseDown:x||v?null:Te,onBlur:qe,onFocus:A,...K,ownerState:we,className:Re(K.className,_e.select,m),id:Be,children:P2(Ce)?oh||(oh=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ce}),y.jsx(R2,{"aria-invalid":E,value:Array.isArray(Y)?Y.join(","):Y,name:T,ref:ce,"aria-hidden":!0,onChange:De,tabIndex:-1,disabled:x,className:_e.nativeInput,autoFocus:u,required:Z,...U,ownerState:we}),y.jsx(E2,{as:C,className:_e.icon,ownerState:we}),y.jsx(pg,{id:`menu-${T||""}`,anchorEl:Me,open:lt,onClose:Qe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...$,MenuListProps:{"aria-labelledby":P,role:"listbox","aria-multiselectable":_?"true":void 0,disableListWrap:!0,id:tt,...$.MenuListProps},slotProps:{...$.slotProps,paper:{...pt,style:{minWidth:ke,...pt!=null?pt.style:null}}},children:de})]})}),I2=t=>{const{classes:r}=t,s=Ue({root:["root"]},gg,r);return{...r,...s}},fd={name:"MuiSelect",overridesResolver:(t,r)=>r.root,shouldForwardProp:t=>$n(t)&&t!=="variant",slot:"Root"},M2=ue(ud,fd)(""),_2=ue(dd,fd)(""),z2=ue(ad,fd)(""),yg=b.forwardRef(function(r,i){const s=He({name:"MuiSelect",props:r}),{autoWidth:a=!1,children:u,classes:d={},className:p,defaultOpen:m=!1,displayEmpty:h=!1,IconComponent:w=pw,id:x,input:k,inputProps:E,label:C,labelId:S,MenuProps:P,multiple:$=!1,native:_=!1,onClose:T,onOpen:R,open:M,renderValue:L,SelectDisplayProps:A,variant:V="outlined",...ee}=s,v=_?g2:$2,G=Jo(),Z=Xo({props:s,muiFormControl:G,states:["variant","error"]}),K=Z.variant||V,O={...s,variant:K,classes:d},F=I2(O),{root:B,...Q}=F,U=k||{standard:y.jsx(M2,{ownerState:O}),outlined:y.jsx(_2,{label:C,ownerState:O}),filled:y.jsx(z2,{ownerState:O})}[K],Y=At(i,rs(U));return y.jsx(b.Fragment,{children:b.cloneElement(U,{inputComponent:v,inputProps:{children:u,error:Z.error,IconComponent:w,variant:K,type:void 0,multiple:$,..._?{id:x}:{autoWidth:a,defaultOpen:m,displayEmpty:h,labelId:S,MenuProps:P,onClose:T,onOpen:R,open:M,renderValue:L,SelectDisplayProps:{id:x,...A}},...E,classes:E?qt(Q,E.classes):Q,...k?k.props.inputProps:{}},...($&&_||h)&&K==="outlined"?{notched:!0}:{},ref:Y,className:Re(U.props.className,p,F.root),...!k&&{variant:K},...ee})})});yg.muiName="Select";function j2(t,r,i=(s,a)=>s===a){return t.length===r.length&&t.every((s,a)=>i(s,r[a]))}const A2=2;function Bo(t,r,i,s,a){return i===1?Math.min(t+r,a):Math.max(t-r,s)}function vg(t,r){return t-r}function sh(t,r){const{index:i}=t.reduce((s,a,u)=>{const d=Math.abs(r-a);return s===null||d<s.distance||d===s.distance?{distance:d,index:u}:s},null)??{};return i}function Rl(t,r){if(r.current!==void 0&&t.changedTouches){const i=t;for(let s=0;s<i.changedTouches.length;s+=1){const a=i.changedTouches[s];if(a.identifier===r.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:t.clientX,y:t.clientY}}function Ul(t,r,i){return(t-r)*100/(i-r)}function N2(t,r,i){return(i-r)*t+r}function L2(t){if(Math.abs(t)<1){const i=t.toExponential().split("e-"),s=i[0].split(".")[1];return(s?s.length:0)+parseInt(i[1],10)}const r=t.toString().split(".")[1];return r?r.length:0}function O2(t,r,i){const s=Math.round((t-i)/r)*r+i;return Number(s.toFixed(L2(r)))}function lh({values:t,newValue:r,index:i}){const s=t.slice();return s[i]=r,s.sort(vg)}function Pl({sliderRef:t,activeIndex:r,setActive:i}){var a,u,d;const s=Zt(t.current);(!((a=t.current)!=null&&a.contains(s.activeElement))||Number((u=s==null?void 0:s.activeElement)==null?void 0:u.getAttribute("data-index"))!==r)&&((d=t.current)==null||d.querySelector(`[type="range"][data-index="${r}"]`).focus()),i&&i(r)}function Tl(t,r){return typeof t=="number"&&typeof r=="number"?t===r:typeof t=="object"&&typeof r=="object"?j2(t,r):!1}const F2={horizontal:{offset:t=>({left:`${t}%`}),leap:t=>({width:`${t}%`})},"horizontal-reverse":{offset:t=>({right:`${t}%`}),leap:t=>({width:`${t}%`})},vertical:{offset:t=>({bottom:`${t}%`}),leap:t=>({height:`${t}%`})}},B2=t=>t;let $l;function ah(){return $l===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?$l=CSS.supports("touch-action","none"):$l=!0),$l}function D2(t){const{"aria-labelledby":r,defaultValue:i,disabled:s=!1,disableSwap:a=!1,isRtl:u=!1,marks:d=!1,max:p=100,min:m=0,name:h,onChange:w,onChangeCommitted:x,orientation:k="horizontal",rootRef:E,scale:C=B2,step:S=1,shiftStep:P=10,tabIndex:$,value:_}=t,T=b.useRef(void 0),[R,M]=b.useState(-1),[L,A]=b.useState(-1),[V,ee]=b.useState(!1),v=b.useRef(0),G=b.useRef(null),[Z,K]=gc({controlled:_,default:i??m,name:"Slider"}),O=w&&((se,de,ke)=>{const je=se.nativeEvent||se,Be=new je.constructor(je.type,je);Object.defineProperty(Be,"target",{writable:!0,value:{value:de,name:h}}),G.current=de,w(Be,de,ke)}),F=Array.isArray(Z);let B=F?Z.slice().sort(vg):[Z];B=B.map(se=>se==null?m:Do(se,m,p));const Q=d===!0&&S!==null?[...Array(Math.floor((p-m)/S)+1)].map((se,de)=>({value:m+S*de})):d||[],U=Q.map(se=>se.value),[Y,ie]=b.useState(-1),z=b.useRef(null),q=At(E,z),ce=se=>de=>{var je;const ke=Number(de.currentTarget.getAttribute("data-index"));Nl(de.target)&&ie(ke),A(ke),(je=se==null?void 0:se.onFocus)==null||je.call(se,de)},X=se=>de=>{var ke;Nl(de.target)||ie(-1),A(-1),(ke=se==null?void 0:se.onBlur)==null||ke.call(se,de)},ne=(se,de)=>{const ke=Number(se.currentTarget.getAttribute("data-index")),je=B[ke],Be=U.indexOf(je);let we=de;if(Q&&S==null){const _e=U[U.length-1];we>_e?we=_e:we<U[0]?we=U[0]:we=we<je?U[Be-1]:U[Be+1]}if(we=Do(we,m,p),F){a&&(we=Do(we,B[ke-1]||-1/0,B[ke+1]||1/0));const _e=we;we=lh({values:B,newValue:we,index:ke});let pt=ke;a||(pt=we.indexOf(_e)),Pl({sliderRef:z,activeIndex:pt})}K(we),ie(ke),O&&!Tl(we,Z)&&O(se,we,ke),x&&x(se,G.current??we)},te=se=>de=>{var ke;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(de.key)){de.preventDefault();const je=Number(de.currentTarget.getAttribute("data-index")),Be=B[je];let we=null;if(S!=null){const _e=de.shiftKey?P:S;switch(de.key){case"ArrowUp":we=Bo(Be,_e,1,m,p);break;case"ArrowRight":we=Bo(Be,_e,u?-1:1,m,p);break;case"ArrowDown":we=Bo(Be,_e,-1,m,p);break;case"ArrowLeft":we=Bo(Be,_e,u?1:-1,m,p);break;case"PageUp":we=Bo(Be,P,1,m,p);break;case"PageDown":we=Bo(Be,P,-1,m,p);break;case"Home":we=m;break;case"End":we=p;break}}else if(Q){const _e=U[U.length-1],pt=U.indexOf(Be),tt=[u?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Nt=[u?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];tt.includes(de.key)?pt===0?we=U[0]:we=U[pt-1]:Nt.includes(de.key)&&(pt===U.length-1?we=_e:we=U[pt+1])}we!=null&&ne(de,we)}(ke=se==null?void 0:se.onKeyDown)==null||ke.call(se,de)};Zn(()=>{var se;s&&z.current.contains(document.activeElement)&&((se=document.activeElement)==null||se.blur())},[s]),s&&R!==-1&&M(-1),s&&Y!==-1&&ie(-1);const fe=se=>de=>{var ke;(ke=se.onChange)==null||ke.call(se,de),ne(de,de.target.valueAsNumber)},ge=b.useRef(void 0);let xe=k;u&&k==="horizontal"&&(xe+="-reverse");const ye=({finger:se,move:de=!1})=>{const{current:ke}=z,{width:je,height:Be,bottom:we,left:_e}=ke.getBoundingClientRect();let pt;xe.startsWith("vertical")?pt=(we-se.y)/Be:pt=(se.x-_e)/je,xe.includes("-reverse")&&(pt=1-pt);let tt;if(tt=N2(pt,m,p),S)tt=O2(tt,S,m);else{const Ee=sh(U,tt);tt=U[Ee]}tt=Do(tt,m,p);let Nt=0;if(F){de?Nt=ge.current:Nt=sh(B,tt),a&&(tt=Do(tt,B[Nt-1]||-1/0,B[Nt+1]||1/0));const Ee=tt;tt=lh({values:B,newValue:tt,index:Nt}),a&&de||(Nt=tt.indexOf(Ee),ge.current=Nt)}return{newValue:tt,activeIndex:Nt}},Ae=dr(se=>{const de=Rl(se,T);if(!de)return;if(v.current+=1,se.type==="mousemove"&&se.buttons===0){Me(se);return}const{newValue:ke,activeIndex:je}=ye({finger:de,move:!0});Pl({sliderRef:z,activeIndex:je,setActive:M}),K(ke),!V&&v.current>A2&&ee(!0),O&&!Tl(ke,Z)&&O(se,ke,je)}),Me=dr(se=>{const de=Rl(se,T);if(ee(!1),!de)return;const{newValue:ke}=ye({finger:de,move:!0});M(-1),se.type==="touchend"&&A(-1),x&&x(se,G.current??ke),T.current=void 0,Te()}),Ne=dr(se=>{if(s)return;ah()||se.preventDefault();const de=se.changedTouches[0];de!=null&&(T.current=de.identifier);const ke=Rl(se,T);if(ke!==!1){const{newValue:Be,activeIndex:we}=ye({finger:ke});Pl({sliderRef:z,activeIndex:we,setActive:M}),K(Be),O&&!Tl(Be,Z)&&O(se,Be,we)}v.current=0;const je=Zt(z.current);je.addEventListener("touchmove",Ae,{passive:!0}),je.addEventListener("touchend",Me,{passive:!0})}),Te=b.useCallback(()=>{const se=Zt(z.current);se.removeEventListener("mousemove",Ae),se.removeEventListener("mouseup",Me),se.removeEventListener("touchmove",Ae),se.removeEventListener("touchend",Me)},[Me,Ae]);b.useEffect(()=>{const{current:se}=z;return se.addEventListener("touchstart",Ne,{passive:ah()}),()=>{se.removeEventListener("touchstart",Ne),Te()}},[Te,Ne]),b.useEffect(()=>{s&&Te()},[s,Te]);const Qe=se=>de=>{var Be;if((Be=se.onMouseDown)==null||Be.call(se,de),s||de.defaultPrevented||de.button!==0)return;de.preventDefault();const ke=Rl(de,T);if(ke!==!1){const{newValue:we,activeIndex:_e}=ye({finger:ke});Pl({sliderRef:z,activeIndex:_e,setActive:M}),K(we),O&&!Tl(we,Z)&&O(de,we,_e)}v.current=0;const je=Zt(z.current);je.addEventListener("mousemove",Ae,{passive:!0}),je.addEventListener("mouseup",Me)},Et=Ul(F?B[0]:m,m,p),De=Ul(B[B.length-1],m,p)-Et,rt=(se={})=>{const de=Ki(se),ke={onMouseDown:Qe(de||{})},je={...de,...ke};return{...se,ref:q,...je}},_t=se=>de=>{var je;(je=se.onMouseOver)==null||je.call(se,de);const ke=Number(de.currentTarget.getAttribute("data-index"));A(ke)},lt=se=>de=>{var ke;(ke=se.onMouseLeave)==null||ke.call(se,de),A(-1)},qe=(se={})=>{const de=Ki(se),ke={onMouseOver:_t(de||{}),onMouseLeave:lt(de||{})};return{...se,...de,...ke}},Ce=se=>({pointerEvents:R!==-1&&R!==se?"none":void 0});let Ut;return k==="vertical"&&(Ut=u?"vertical-rl":"vertical-lr"),{active:R,axis:xe,axisProps:F2,dragging:V,focusedThumbIndex:Y,getHiddenInputProps:(se={})=>{const de=Ki(se),ke={onChange:fe(de||{}),onFocus:ce(de||{}),onBlur:X(de||{}),onKeyDown:te(de||{})},je={...de,...ke};return{tabIndex:$,"aria-labelledby":r,"aria-orientation":k,"aria-valuemax":C(p),"aria-valuemin":C(m),name:h,type:"range",min:t.min,max:t.max,step:t.step===null&&t.marks?"any":t.step??void 0,disabled:s,...se,...je,style:{...N0,direction:u?"rtl":"ltr",width:"100%",height:"100%",writingMode:Ut}}},getRootProps:rt,getThumbProps:qe,marks:Q,open:L,range:F,rootRef:q,trackLeap:De,trackOffset:Et,values:B,getThumbStyle:Ce}}const W2=t=>!t||!io(t);function U2(t){return Ve("MuiSlider",t)}const Rn=Oe("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),V2=t=>{const{open:r}=t;return{offset:Re(r&&Rn.valueLabelOpen),circle:Rn.valueLabelCircle,label:Rn.valueLabelLabel}};function H2(t){const{children:r,className:i,value:s}=t,a=V2(t);return r?b.cloneElement(r,{className:Re(r.props.className)},y.jsxs(b.Fragment,{children:[r.props.children,y.jsx("span",{className:Re(a.offset,i),"aria-hidden":!0,children:y.jsx("span",{className:a.circle,children:y.jsx("span",{className:a.label,children:s})})})]})):null}function uh(t){return t}const G2=ue("span",{name:"MuiSlider",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,r[`color${he(i.color)}`],i.size!=="medium"&&r[`size${he(i.size)}`],i.marked&&r.marked,i.orientation==="vertical"&&r.vertical,i.track==="inverted"&&r.trackInverted,i.track===!1&&r.trackFalse]}})(We(({theme:t})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Rn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${Rn.dragging}`]:{[`& .${Rn.thumb}, & .${Rn.track}`]:{transition:"none"}},variants:[...Object.entries(t.palette).filter(Yt()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),K2=ue("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(t,r)=>r.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Q2=ue("span",{name:"MuiSlider",slot:"Track",overridesResolver:(t,r)=>r.track})(We(({theme:t})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(t.palette).filter(Yt()).map(([r])=>({props:{color:r,track:"inverted"},style:{...t.vars?{backgroundColor:t.vars.palette.Slider[`${r}Track`],borderColor:t.vars.palette.Slider[`${r}Track`]}:{backgroundColor:ao(t.palette[r].main,.62),borderColor:ao(t.palette[r].main,.62),...t.applyStyles("dark",{backgroundColor:lo(t.palette[r].main,.5)}),...t.applyStyles("dark",{borderColor:lo(t.palette[r].main,.5)})}}}))]}))),q2=ue("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.thumb,r[`thumbColor${he(i.color)}`],i.size!=="medium"&&r[`thumbSize${he(i.size)}`]]}})(We(({theme:t})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Rn.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(t.palette).filter(Yt()).map(([r])=>({props:{color:r},style:{[`&:hover, &.${Rn.focusVisible}`]:{...t.vars?{boxShadow:`0px 0px 0px 8px rgba(${t.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${xt(t.palette[r].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${Rn.active}`]:{...t.vars?{boxShadow:`0px 0px 0px 14px rgba(${t.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${xt(t.palette[r].main,.16)}`}}}}))]}))),Y2=ue(H2,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(t,r)=>r.valueLabel})(We(({theme:t})=>({zIndex:1,whiteSpace:"nowrap",...t.typography.body2,fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Rn.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Rn.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),X2=ue("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:t=>ra(t)&&t!=="markActive",overridesResolver:(t,r)=>{const{markActive:i}=t;return[r.mark,i&&r.markActive]}})(We(({theme:t})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}))),J2=ue("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:t=>ra(t)&&t!=="markLabelActive",overridesResolver:(t,r)=>r.markLabel})(We(({theme:t})=>({...t.typography.body2,color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]}))),Z2=t=>{const{disabled:r,dragging:i,marked:s,orientation:a,track:u,classes:d,color:p,size:m}=t,h={root:["root",r&&"disabled",i&&"dragging",s&&"marked",a==="vertical"&&"vertical",u==="inverted"&&"trackInverted",u===!1&&"trackFalse",p&&`color${he(p)}`,m&&`size${he(m)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",r&&"disabled",m&&`thumbSize${he(m)}`,p&&`thumbColor${he(p)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ue(h,U2,d)},eb=({children:t})=>t,tb=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiSlider"}),a=Gh(),{"aria-label":u,"aria-valuetext":d,"aria-labelledby":p,component:m="span",components:h={},componentsProps:w={},color:x="primary",classes:k,className:E,disableSwap:C=!1,disabled:S=!1,getAriaLabel:P,getAriaValueText:$,marks:_=!1,max:T=100,min:R=0,name:M,onChange:L,onChangeCommitted:A,orientation:V="horizontal",shiftStep:ee=10,size:v="medium",step:G=1,scale:Z=uh,slotProps:K,slots:O,tabIndex:F,track:B="normal",value:Q,valueLabelDisplay:U="off",valueLabelFormat:Y=uh,...ie}=s,z={...s,isRtl:a,max:T,min:R,classes:k,disabled:S,disableSwap:C,orientation:V,marks:_,color:x,size:v,step:G,shiftStep:ee,scale:Z,track:B,valueLabelDisplay:U,valueLabelFormat:Y},{axisProps:q,getRootProps:ce,getHiddenInputProps:X,getThumbProps:ne,open:te,active:fe,axis:ge,focusedThumbIndex:xe,range:ye,dragging:Ae,marks:Me,values:Ne,trackOffset:Te,trackLeap:Qe,getThumbStyle:Et}=D2({...z,rootRef:i});z.marked=Me.length>0&&Me.some(ot=>ot.label),z.dragging=Ae,z.focusedThumbIndex=xe;const De=Z2(z),rt=(O==null?void 0:O.root)??h.Root??G2,_t=(O==null?void 0:O.rail)??h.Rail??K2,lt=(O==null?void 0:O.track)??h.Track??Q2,qe=(O==null?void 0:O.thumb)??h.Thumb??q2,Ce=(O==null?void 0:O.valueLabel)??h.ValueLabel??Y2,Ut=(O==null?void 0:O.mark)??h.Mark??X2,St=(O==null?void 0:O.markLabel)??h.MarkLabel??J2,se=(O==null?void 0:O.input)??h.Input??"input",de=(K==null?void 0:K.root)??w.root,ke=(K==null?void 0:K.rail)??w.rail,je=(K==null?void 0:K.track)??w.track,Be=(K==null?void 0:K.thumb)??w.thumb,we=(K==null?void 0:K.valueLabel)??w.valueLabel,_e=(K==null?void 0:K.mark)??w.mark,pt=(K==null?void 0:K.markLabel)??w.markLabel,tt=(K==null?void 0:K.input)??w.input,Nt=Kn({elementType:rt,getSlotProps:ce,externalSlotProps:de,externalForwardedProps:ie,additionalProps:{...W2(rt)&&{as:m}},ownerState:{...z,...de==null?void 0:de.ownerState},className:[De.root,E]}),Ee=Kn({elementType:_t,externalSlotProps:ke,ownerState:z,className:De.rail}),Ye=Kn({elementType:lt,externalSlotProps:je,additionalProps:{style:{...q[ge].offset(Te),...q[ge].leap(Qe)}},ownerState:{...z,...je==null?void 0:je.ownerState},className:De.track}),ut=Kn({elementType:qe,getSlotProps:ne,externalSlotProps:Be,ownerState:{...z,...Be==null?void 0:Be.ownerState},className:De.thumb}),hn=Kn({elementType:Ce,externalSlotProps:we,ownerState:{...z,...we==null?void 0:we.ownerState},className:De.valueLabel}),Fn=Kn({elementType:Ut,externalSlotProps:_e,ownerState:z,className:De.mark}),Lr=Kn({elementType:St,externalSlotProps:pt,ownerState:z,className:De.markLabel}),mr=Kn({elementType:se,getSlotProps:X,externalSlotProps:tt,ownerState:z});return y.jsxs(rt,{...Nt,children:[y.jsx(_t,{...Ee}),y.jsx(lt,{...Ye}),Me.filter(ot=>ot.value>=R&&ot.value<=T).map((ot,$t)=>{const co=Ul(ot.value,R,T),Or=q[ge].offset(co);let gn;return B===!1?gn=Ne.includes(ot.value):gn=B==="normal"&&(ye?ot.value>=Ne[0]&&ot.value<=Ne[Ne.length-1]:ot.value<=Ne[0])||B==="inverted"&&(ye?ot.value<=Ne[0]||ot.value>=Ne[Ne.length-1]:ot.value>=Ne[0]),y.jsxs(b.Fragment,{children:[y.jsx(Ut,{"data-index":$t,...Fn,...!io(Ut)&&{markActive:gn},style:{...Or,...Fn.style},className:Re(Fn.className,gn&&De.markActive)}),ot.label!=null?y.jsx(St,{"aria-hidden":!0,"data-index":$t,...Lr,...!io(St)&&{markLabelActive:gn},style:{...Or,...Lr.style},className:Re(De.markLabel,Lr.className,gn&&De.markLabelActive),children:ot.label}):null]},$t)}),Ne.map((ot,$t)=>{const co=Ul(ot,R,T),Or=q[ge].offset(co),gn=U==="off"?eb:Ce;return y.jsx(gn,{...!io(gn)&&{valueLabelFormat:Y,valueLabelDisplay:U,value:typeof Y=="function"?Y(Z(ot),$t):Y,index:$t,open:te===$t||fe===$t||U==="on",disabled:S},...hn,children:y.jsx(qe,{"data-index":$t,...ut,className:Re(De.thumb,ut.className,fe===$t&&De.active,xe===$t&&De.focusVisible),style:{...Or,...Et($t),...ut.style},children:y.jsx(se,{"data-index":$t,"aria-label":P?P($t):u,"aria-valuenow":Z(ot),"aria-labelledby":p,"aria-valuetext":$?$(Z(ot),$t):d,value:Ne[$t],...mr})})},$t)})]})});function nb(t){return Ve("MuiTextField",t)}Oe("MuiTextField",["root"]);const rb={standard:ud,filled:ad,outlined:dd},ob=t=>{const{classes:r}=t;return Ue({root:["root"]},nb,r)},ib=ue(hC,{name:"MuiTextField",slot:"Root",overridesResolver:(t,r)=>r.root})({}),Il=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiTextField"}),{autoComplete:a,autoFocus:u=!1,children:d,className:p,color:m="primary",defaultValue:h,disabled:w=!1,error:x=!1,FormHelperTextProps:k,fullWidth:E=!1,helperText:C,id:S,InputLabelProps:P,inputProps:$,InputProps:_,inputRef:T,label:R,maxRows:M,minRows:L,multiline:A=!1,name:V,onBlur:ee,onChange:v,onFocus:G,placeholder:Z,required:K=!1,rows:O,select:F=!1,SelectProps:B,slots:Q={},slotProps:U={},type:Y,value:ie,variant:z="outlined",...q}=s,ce={...s,autoFocus:u,color:m,disabled:w,error:x,fullWidth:E,multiline:A,required:K,select:F,variant:z},X=ob(ce),ne=ns(S),te=C&&ne?`${ne}-helper-text`:void 0,fe=R&&ne?`${ne}-label`:void 0,ge=rb[z],xe={slots:Q,slotProps:{input:_,inputLabel:P,htmlInput:$,formHelperText:k,select:B,...U}},ye={},Ae=xe.slotProps.inputLabel;z==="outlined"&&(Ae&&typeof Ae.shrink<"u"&&(ye.notched=Ae.shrink),ye.label=R),F&&((!B||!B.native)&&(ye.id=void 0),ye["aria-describedby"]=void 0);const[Me,Ne]=kt("input",{elementType:ge,externalForwardedProps:xe,additionalProps:ye,ownerState:ce}),[Te,Qe]=kt("inputLabel",{elementType:HC,externalForwardedProps:xe,ownerState:ce}),[Et,De]=kt("htmlInput",{elementType:"input",externalForwardedProps:xe,ownerState:ce}),[rt,_t]=kt("formHelperText",{elementType:xC,externalForwardedProps:xe,ownerState:ce}),[lt,qe]=kt("select",{elementType:yg,externalForwardedProps:xe,ownerState:ce}),Ce=y.jsx(Me,{"aria-describedby":te,autoComplete:a,autoFocus:u,defaultValue:h,fullWidth:E,multiline:A,name:V,rows:O,maxRows:M,minRows:L,type:Y,value:ie,id:ne,inputRef:T,onBlur:ee,onChange:v,onFocus:G,placeholder:Z,inputProps:De,slots:{input:Q.htmlInput?Et:void 0},...Ne});return y.jsxs(ib,{className:Re(X.root,p),disabled:w,error:x,fullWidth:E,ref:i,required:K,color:m,variant:z,ownerState:ce,...q,children:[R!=null&&R!==""&&y.jsx(Te,{htmlFor:ne,id:fe,...Qe,children:R}),F?y.jsx(lt,{"aria-describedby":te,id:ne,labelId:fe,value:ie,input:Ce,...qe,children:d}):Ce,C&&y.jsx(rt,{id:te,..._t,children:C})]})});function sb(t){return Ve("MuiToggleButton",t)}const oo=Oe("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),xg=b.createContext({}),Sg=b.createContext(void 0);function lb(t,r){return r===void 0||t===void 0?!1:Array.isArray(r)?r.includes(t):t===r}const ab=t=>{const{classes:r,fullWidth:i,selected:s,disabled:a,size:u,color:d}=t,p={root:["root",s&&"selected",a&&"disabled",i&&"fullWidth",`size${he(u)}`,d]};return Ue(p,sb,r)},ub=ue(oa,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[r.root,r[`size${he(i.size)}`]]}})(We(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${oo.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${oo.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.selectedOpacity})`:xt(t.palette.text.primary,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:xt(t.palette.text.primary,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.selectedOpacity})`:xt(t.palette.text.primary,t.palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(Yt()).map(([r])=>({props:{color:r},style:{[`&.${oo.selected}`]:{color:(t.vars||t).palette[r].main,backgroundColor:t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.selectedOpacity})`:xt(t.palette[r].main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[r].mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:xt(t.palette[r].main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.selectedOpacity})`:xt(t.palette[r].main,t.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),pc=b.forwardRef(function(r,i){const{value:s,...a}=b.useContext(xg),u=b.useContext(Sg),d=Ho({...a,selected:lb(r.value,s)},r),p=He({props:d,name:"MuiToggleButton"}),{children:m,className:h,color:w="standard",disabled:x=!1,disableFocusRipple:k=!1,fullWidth:E=!1,onChange:C,onClick:S,selected:P,size:$="medium",value:_,...T}=p,R={...p,color:w,disabled:x,disableFocusRipple:k,fullWidth:E,size:$},M=ab(R),L=V=>{S&&(S(V,_),V.defaultPrevented)||C&&C(V,_)},A=u||"";return y.jsx(ub,{className:Re(a.className,M.root,h,A),disabled:x,focusRipple:!k,ref:i,onClick:L,onChange:C,value:_,ownerState:R,"aria-pressed":P,...T,children:m})});function cb(t){return Ve("MuiToggleButtonGroup",t)}const ft=Oe("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),db=t=>{const{classes:r,orientation:i,fullWidth:s,disabled:a}=t,u={root:["root",i,s&&"fullWidth"],grouped:["grouped",`grouped${he(i)}`,a&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ue(u,cb,r)},fb=ue("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:i}=t;return[{[`& .${ft.grouped}`]:r.grouped},{[`& .${ft.grouped}`]:r[`grouped${he(i.orientation)}`]},{[`& .${ft.firstButton}`]:r.firstButton},{[`& .${ft.lastButton}`]:r.lastButton},{[`& .${ft.middleButton}`]:r.middleButton},r.root,i.orientation==="vertical"&&r.vertical,i.fullWidth&&r.fullWidth]}})(We(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${ft.grouped}`]:{[`&.${ft.selected} + .${ft.grouped}.${ft.selected}`]:{borderTop:0,marginTop:0}},[`& .${ft.firstButton},& .${ft.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${ft.lastButton},& .${ft.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${ft.lastButton}.${oo.disabled},& .${ft.middleButton}.${oo.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${ft.grouped}`]:{[`&.${ft.selected} + .${ft.grouped}.${ft.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${ft.firstButton},& .${ft.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${ft.lastButton},& .${ft.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${ft.lastButton}.${oo.disabled},& .${ft.middleButton}.${oo.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),pb=b.forwardRef(function(r,i){const s=He({props:r,name:"MuiToggleButtonGroup"}),{children:a,className:u,color:d="standard",disabled:p=!1,exclusive:m=!1,fullWidth:h=!1,onChange:w,orientation:x="horizontal",size:k="medium",value:E,...C}=s,S={...s,disabled:p,fullWidth:h,orientation:x,size:k},P=db(S),$=b.useCallback((A,V)=>{if(!w)return;const ee=E&&E.indexOf(V);let v;E&&ee>=0?(v=E.slice(),v.splice(ee,1)):v=E?E.concat(V):[V],w(A,v)},[w,E]),_=b.useCallback((A,V)=>{w&&w(A,E===V?null:V)},[w,E]),T=b.useMemo(()=>({className:P.grouped,onChange:m?_:$,value:E,size:k,fullWidth:h,color:d,disabled:p}),[P.grouped,m,_,$,E,k,h,d,p]),R=A0(a),M=R.length,L=A=>{const V=A===0,ee=A===M-1;return V&&ee?"":V?P.firstButton:ee?P.lastButton:P.middleButton};return y.jsx(fb,{role:"group",className:Re(P.root,u),ref:i,ownerState:S,...C,children:y.jsx(xg.Provider,{value:T,children:R.map((A,V)=>y.jsx(Sg.Provider,{value:L(V),children:A},V))})})});class ch{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},s=await fetch(`${this.baseUrl}/complete`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!s.ok)throw new Error(`API error: ${s.statusText}`)}getAudioUrl(){return`${this.baseUrl}/audio`}}class mb{async getCorrectionData(){throw new Error("Not supported in file-only mode")}async submitCorrections(r){throw new Error("Not supported in file-only mode")}getAudioUrl(){throw new Error("Not supported in file-only mode")}}const cr={anchor:"#e3f2fd",corrected:"#e8f5e9",uncorrectedGap:"#fff3e0",highlighted:"#ffeb3b",playing:"#1976d2"},hb=Yo`
170
- 0%, 100% {
171
- opacity: 1;
172
- background-color: inherit;
173
- }
174
- 50% {
175
- opacity: 0.6;
176
- background-color: ${cr.highlighted};
177
- }
178
- `;function mc({color:t,label:r,value:i,description:s,details:a,onClick:u}){return y.jsxs(Nr,{sx:{p:2,cursor:u?"pointer":"default","&:hover":u?{bgcolor:"action.hover"}:void 0},onClick:u,children:[y.jsxs(Pe,{sx:{display:"flex",alignItems:"center",mb:1},children:[t&&y.jsx(Pe,{sx:{width:16,height:16,borderRadius:1,bgcolor:t,mr:1}}),y.jsx(Le,{variant:"subtitle2",color:"text.secondary",children:r})]}),y.jsx(Le,{variant:"h6",children:i}),y.jsx(Le,{variant:"caption",color:"text.secondary",children:s}),a&&y.jsx(Pe,{sx:{mt:1,pt:1,borderTop:1,borderColor:"divider"},children:a.map((d,p)=>y.jsxs(Pe,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mt:.5},children:[y.jsx(Le,{variant:"caption",color:"text.secondary",children:d.label}),y.jsx(Le,{variant:"caption",children:d.value})]},p))})]})}function wg({anchorCount:t,multiSourceAnchors:r=0,singleSourceMatches:i={spotify:0,genius:0},correctedGapCount:s=0,uncorrectedGapCount:a=0,uncorrectedGaps:u=[],replacedCount:d=0,addedCount:p=0,deletedCount:m=0,onMetricClick:h}){const w=(x,k)=>k===1?`Position ${x}`:`Positions ${x}-${x+k-1}`;return y.jsxs(Ln,{container:!0,spacing:2,children:[y.jsx(Ln,{item:!0,xs:12,sm:6,md:4,children:y.jsx(mc,{color:cr.anchor,label:"Anchor Sequences",value:t??"-",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:h==null?void 0:h.anchor})}),y.jsx(Ln,{item:!0,xs:12,sm:6,md:4,children:y.jsx(mc,{color:cr.corrected,label:"Corrected Gaps",value:s??"-",description:"Successfully corrected sections",details:[{label:"Words Replaced",value:d},{label:"Words Added",value:p},{label:"Words Deleted",value:m}],onClick:h==null?void 0:h.corrected})}),y.jsx(Ln,{item:!0,xs:12,sm:6,md:4,children:y.jsx(mc,{color:cr.uncorrectedGap,label:"Uncorrected Gaps",value:a,description:"Sections that may need manual review",details:u.map(x=>({label:w(x.position,x.length),value:x.length})),onClick:h==null?void 0:h.uncorrected})})]})}const gb=gt(y.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"),pd=gt(y.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 yb({open:t,content:r,onClose:i}){if(!r)return null;const s=()=>r.type==="gap"?r.data.word:r.type==="anchor"?r.data.word??r.data.words[0]:"",a=()=>{switch(r.type){case"anchor":return y.jsxs(Ln,{container:!0,spacing:2,children:[y.jsx(eo,{title:"Selected Word",value:`"${s()}"`}),y.jsx(eo,{title:"Full Text",value:`"${r.data.text}"`}),y.jsx(eo,{title:"Position",value:r.data.position}),y.jsx(eo,{title:"Length",value:`${r.data.length} words`})]});case"gap":return y.jsxs(Ln,{container:!0,spacing:2,children:[y.jsx(eo,{title:"Selected Word",value:`"${s()}"`}),y.jsx(eo,{title:"Transcribed Text",value:`"${r.data.text}"`}),y.jsx(eo,{title:"Current Text",value:`"${r.data.words.map(u=>{const d=r.data.corrections.find(p=>p.original_word===u);return d?d.corrected_word:u}).join(" ")}"`})]});default:return null}};return y.jsxs(ua,{open:t,onClose:i,maxWidth:"sm",fullWidth:!0,children:[y.jsx(Jn,{onClick:i,sx:{position:"absolute",right:8,top:8},children:y.jsx(pd,{})}),y.jsxs(da,{children:[r.type.charAt(0).toUpperCase()+r.type.slice(1),' Details - "',s(),'"']}),y.jsx(ca,{dividers:!0,children:a()})]})}function eo({title:t,value:r}){return y.jsxs(y.Fragment,{children:[y.jsx(Ln,{item:!0,xs:4,children:y.jsx(Le,{variant:"subtitle1",fontWeight:"bold",children:t})}),y.jsx(Ln,{item:!0,xs:8,children:typeof r=="string"||typeof r=="number"?y.jsx(Le,{children:r}):r})]})}const vb=gt(y.jsx("path",{d:"m6 14 3 3v5h6v-5l3-3V9H6zm5-12h2v3h-2zM3.5 5.88l1.41-1.41 2.12 2.12L5.62 8zm13.46.71 2.12-2.12 1.41 1.41L18.38 8z"}),"Highlight"),xb=gt(y.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),Sb=gt(y.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");function wb({effectiveMode:t,onChange:r}){return y.jsxs(Pe,{sx:{display:"flex",alignItems:"center",gap:2},children:[y.jsx(Le,{variant:"body2",color:"text.secondary",children:"Click Mode:"}),y.jsxs(pb,{value:t,exclusive:!0,onChange:(i,s)=>s&&r(s),size:"small",children:[y.jsxs(pc,{value:"details",children:[y.jsx(xb,{sx:{mr:1}}),"Details"]}),y.jsxs(pc,{value:"highlight",children:[y.jsx(vb,{sx:{mr:1}}),"Highlight"]}),y.jsxs(pc,{value:"edit",children:[y.jsx(Sb,{sx:{mr:1}}),"Edit"]})]})]})}function Cb(t,r,i){const s=[];let a=0;const u=r.map(p=>{const m=p.reference_positions[i];return m===void 0?null:{referenceStart:m,referenceLength:p.length,transcriptionLine:t.findIndex((h,w)=>{const x=h.words;if(!x.length)return!1;let k=0;for(let S=0;S<w;S++)k+=t[S].words.length;const E=k,C=k+x.length-1;return E>=p.transcription_position&&C<p.transcription_position+p.length})}}).filter(p=>p!==null);u.sort((p,m)=>p.referenceStart-m.referenceStart);let d=0;for(u.forEach(p=>{for(;d<p.transcriptionLine;)s.push({position:a,lineNumber:d,isEmpty:!1}),a+=1,d++;s.push({position:p.referenceStart,lineNumber:d}),d++});d<t.length;)s.push({position:a,lineNumber:d,isEmpty:!1}),a+=1,d++;return{linePositions:s}}function bb({currentSource:t,onSourceChange:r}){return y.jsxs(Pe,{children:[y.jsx(pn,{size:"small",variant:t==="genius"?"contained":"outlined",onClick:()=>r("genius"),sx:{mr:1},children:"Genius"}),y.jsx(pn,{size:"small",variant:t==="spotify"?"contained":"outlined",onClick:()=>r("spotify"),children:"Spotify"})]})}const kb=Y1("span")(({shouldFlash:t})=>({display:"inline-block",marginRight:"0.25em",transition:"background-color 0.2s ease",...t&&{animation:`${hb} 0.4s ease-in-out 3`}})),dh=En.memo(function({word:r,shouldFlash:i,isAnchor:s,isCorrectedGap:a,isUncorrectedGap:u,isCurrentlyPlaying:d,padding:p="2px 4px",onClick:m}){if(/^\s+$/.test(r))return r;const h=d?cr.playing:i?cr.highlighted:s?cr.anchor:a?cr.corrected:u?cr.uncorrectedGap:"transparent";return y.jsx(kb,{shouldFlash:i,style:{backgroundColor:h,padding:p,cursor:"pointer",borderRadius:"3px",color:d?"#ffffff":"inherit"},sx:{"&:hover":{backgroundColor:"#e0e0e0"}},onClick:m,children:r})});function Eb({mode:t,onElementClick:r,onWordClick:i,isReference:s,currentSource:a}){return{handleWordClick:b.useCallback((d,p,m,h,w)=>{var E,C,S,P;console.log(JSON.stringify({debug:{clickedWord:d,position:p,isReference:s,currentSource:a,wordInfo:w==null?void 0:w.wordSplitInfo,nearbyAnchors:w==null?void 0:w.nearbyAnchors,anchorInfo:m&&{transcriptionPos:m.transcription_position,length:m.length,words:m.words,refPositions:m.reference_positions},gapInfo:h&&{transcriptionPos:h.transcription_position,length:h.length,words:h.words,corrections:h.corrections.map($=>({length:$.length,refPositions:$.reference_positions}))},belongsToAnchor:m&&(s?p>=(m.reference_positions[a]??-1)&&p<(m.reference_positions[a]??-1)+m.length:p>=m.transcription_position&&p<m.transcription_position+m.length),belongsToGap:h&&(s?((C=(E=h.corrections[0])==null?void 0:E.reference_positions)==null?void 0:C[a])!==void 0&&p>=h.corrections[0].reference_positions[a]&&p<h.corrections[0].reference_positions[a]+h.corrections[0].length:p>=h.transcription_position&&p<h.transcription_position+h.length)}},null,2));const x=m&&(s?p>=(m.reference_positions[a]??-1)&&p<(m.reference_positions[a]??-1)+m.length:p>=m.transcription_position&&p<m.transcription_position+m.length),k=h&&(s?((P=(S=h.corrections[0])==null?void 0:S.reference_positions)==null?void 0:P[a])!==void 0&&p>=h.corrections[0].reference_positions[a]&&p<h.corrections[0].reference_positions[a]+h.corrections[0].length:p>=h.transcription_position&&p<h.transcription_position+h.length);t==="highlight"||t==="edit"?i==null||i({wordIndex:p,type:x?"anchor":k?"gap":"other",anchor:x?m:void 0,gap:k?h:void 0}):t==="details"&&(x&&m?r({type:"anchor",data:{...m,position:p,word:d}}):k&&h?r({type:"gap",data:{...h,position:p,word:d}}):s||r({type:"gap",data:{...{text:d,words:[d],transcription_position:p,length:1,corrections:[],preceding_anchor:null,following_anchor:null,reference_words:{}},position:0,word:d}}))},[t,i,r,s,a])}}const Rb=gt(y.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");function Cg({text:t,wordPositions:r,anchors:i,highlightInfo:s,mode:a,onElementClick:u,onWordClick:d,flashingType:p,isReference:m,currentSource:h,preserveSegments:w=!1,linePositions:x=[],currentTime:k=0}){const{handleWordClick:E}=Eb({mode:a,onElementClick:u,onWordClick:d,isReference:m,currentSource:h}),C=_=>{var T,R,M,L;if(!p)return!1;if("type"in _){const A=_.type==="gap"&&!!((R=(T=_.sequence)==null?void 0:T.corrections)!=null&&R.length);return!!(p==="anchor"&&_.type==="anchor"||p==="corrected"&&A||p==="uncorrected"&&_.type==="gap"&&!A||p==="word"&&(s==null?void 0:s.type)==="anchor"&&_.type==="anchor"&&_.sequence&&(_.sequence.transcription_position===s.transcriptionIndex||m&&h&&_.sequence.reference_positions[h]===((M=s.referenceIndices)==null?void 0:M[h])))}else{const A=_.index,V=i.find(ee=>{const v=m?ee.reference_positions[h]:ee.transcription_position;return v===void 0?!1:A>=v&&A<v+ee.length});return!!(p==="anchor"&&V||p==="word"&&(s==null?void 0:s.type)==="anchor"&&V&&(V.transcription_position===s.transcriptionIndex||m&&h&&V.reference_positions[h]===((L=s.referenceIndices)==null?void 0:L[h])))}},S=_=>!k||!_.word.start_time||!_.word.end_time?!1:k>=_.word.start_time&&k<=_.word.end_time,P=_=>{navigator.clipboard.writeText(_)},$=()=>{if(r)return r.map((_,T)=>{var R,M,L,A;return y.jsxs(En.Fragment,{children:[y.jsx(dh,{word:_.word.text,shouldFlash:C(_),isCurrentlyPlaying:S(_),isAnchor:_.type==="anchor",isCorrectedGap:_.type==="gap"&&!!((M=(R=_.sequence)==null?void 0:R.corrections)!=null&&M.length),isUncorrectedGap:_.type==="gap"&&!((A=(L=_.sequence)==null?void 0:L.corrections)!=null&&A.length),onClick:()=>E(_.word.text,_.position,_.type==="anchor"?_.sequence:void 0,_.type==="gap"?_.sequence:void 0)}),T<r.length-1&&" "]},`${_.word.text}-${T}`)});if(t){const _=t.split(`
179
- `);let T=0;return _.map((R,M)=>{const L=x==null?void 0:x.find(V=>V.position===T);if(L!=null&&L.isEmpty)return T++,y.jsxs(Pe,{sx:{display:"flex",alignItems:"flex-start"},children:[y.jsx(Le,{component:"span",sx:{color:"text.secondary",width:"2em",minWidth:"2em",textAlign:"right",marginRight:1,userSelect:"none",fontFamily:"monospace",paddingTop:"4px"},children:L.lineNumber}),y.jsx(Pe,{sx:{width:"28px"}})," ",y.jsx(Pe,{sx:{flex:1,height:"1.5em"}})]},`empty-${M}`);const A=R.split(/(\s+)/);return y.jsxs(Pe,{sx:{display:"flex",alignItems:"flex-start"},children:[y.jsx(Le,{component:"span",sx:{color:"text.secondary",width:"2em",minWidth:"2em",textAlign:"right",marginRight:1,userSelect:"none",fontFamily:"monospace",paddingTop:"4px"},children:M}),y.jsx(Jn,{size:"small",onClick:()=>P(R),sx:{padding:"2px",marginRight:1,height:"24px",width:"24px"},children:y.jsx(Rb,{sx:{fontSize:"1rem"}})}),y.jsx(Pe,{sx:{flex:1},children:A.map((V,ee)=>{if(V==="")return null;if(/^\s+$/.test(V))return y.jsx("span",{children:" "},`space-${M}-${ee}`);const v=T++,G=i.find(K=>{const O=K.reference_positions[h];return O===void 0?!1:v>=O&&v<O+K.length}),Z={word:{text:V},position:v,type:G?"anchor":"other",sequence:G,isInRange:!0};return y.jsx(dh,{word:V,shouldFlash:C({word:V,index:v}),isCurrentlyPlaying:S(Z),isAnchor:!!G,isCorrectedGap:!1,isUncorrectedGap:!1,onClick:()=>E(V,v,G,void 0)},`${V}-${M}-${ee}`)})})]},`line-${M}`)})}return null};return y.jsx(Le,{component:"div",sx:{fontFamily:"monospace",whiteSpace:w?"normal":"pre-wrap",margin:0,lineHeight:1.5},children:$()})}function Pb({referenceTexts:t,anchors:r,gaps:i,onElementClick:s,onWordClick:a,flashingType:u,corrected_segments:d,currentSource:p,onSourceChange:m,highlightInfo:h,mode:w}){const{linePositions:x}=b.useMemo(()=>Cb(d,r,p),[d,r,p]);return y.jsxs(Nr,{sx:{p:2},children:[y.jsxs(Pe,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[y.jsx(Le,{variant:"h6",children:"Reference Text"}),y.jsx(bb,{currentSource:p,onSourceChange:m})]}),y.jsx(Pe,{sx:{display:"flex",flexDirection:"column"},children:y.jsx(Cg,{text:t[p],anchors:r,gaps:i,onElementClick:s,onWordClick:a,flashingType:u,highlightInfo:h,mode:w,isReference:!0,currentSource:p,linePositions:x})})]})}function Tb({open:t,onClose:r,segment:i,segmentIndex:s}){return!i||s===null?null:y.jsxs(ua,{open:t,onClose:r,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{position:"relative"}},children:[y.jsx(Jn,{onClick:r,sx:{position:"absolute",right:8,top:8},children:y.jsx(pd,{})}),y.jsxs(da,{children:["Segment ",s," Details"]}),y.jsx(ca,{dividers:!0,children:y.jsx(Pe,{component:"pre",sx:{margin:0,fontFamily:"monospace",fontSize:"0.875rem",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:JSON.stringify(i,null,2)})})]})}const bg=gt(y.jsx("path",{d:"m10 16.5 6-4.5-6-4.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"PlayCircleOutline"),$b=ue(Le)(({theme:t})=>({color:t.palette.text.secondary,width:"2em",minWidth:"2em",textAlign:"right",marginRight:t.spacing(1),userSelect:"none",fontFamily:"monospace",cursor:"pointer",paddingTop:"3px","&:hover":{textDecoration:"underline"}})),Ib=ue(Pe)({flex:1,minWidth:0}),Mb=ue(Pe)({display:"flex",alignItems:"center",gap:"4px",minWidth:"3em",paddingTop:"3px",paddingRight:"8px"});function _b({data:t,onElementClick:r,onWordClick:i,flashingType:s,highlightInfo:a,mode:u,onPlaySegment:d,currentTime:p=0}){const[m,h]=b.useState(null);let w=0;return y.jsxs(Nr,{sx:{p:2},children:[y.jsx(Le,{variant:"h6",gutterBottom:!0,children:"Corrected Transcription"}),y.jsx(Pe,{sx:{display:"flex",flexDirection:"column"},children:t.corrected_segments.map((x,k)=>{const E=x.words.map((C,S)=>{const P=w+S,$=t.anchor_sequences.find(T=>P>=T.transcription_position&&P<T.transcription_position+T.length),_=$?void 0:t.gap_sequences.find(T=>P>=T.transcription_position&&P<T.transcription_position+T.length);return{word:{text:C.text,start_time:C.start_time,end_time:C.end_time},position:P,type:$?"anchor":_?"gap":"other",sequence:$||_,isInRange:!0}});return w+=x.words.length,y.jsxs(Pe,{sx:{display:"flex",alignItems:"flex-start",width:"100%"},children:[y.jsxs(Mb,{children:[y.jsx($b,{variant:"body2",onClick:()=>h(k),children:k}),x.start_time!==void 0&&y.jsx(Jn,{size:"small",onClick:()=>d==null?void 0:d(x.start_time),sx:{padding:"2px"},children:y.jsx(bg,{fontSize:"small"})})]}),y.jsx(Ib,{children:y.jsx(Cg,{wordPositions:E,anchors:t.anchor_sequences,gaps:t.gap_sequences,onElementClick:r,onWordClick:i,flashingType:s,highlightInfo:a,mode:u,preserveSegments:!0,currentTime:p})})]},k)})}),y.jsx(Tb,{open:m!==null,onClose:()=>h(null),segment:m!==null?t.corrected_segments[m]:null,segmentIndex:m})]})}const zb=gt(y.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),fh=gt(y.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),jb=gt(y.jsx("path",{d:"M17 20.41 18.41 19 15 15.59 13.59 17zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5z"}),"CallMerge"),Ab=gt(y.jsx("path",{d:"m14 4 2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"}),"CallSplit"),Nb=gt(y.jsx("path",{d:"M19 4h-3.5l-1-1h-5l-1 1H5v2h14zM6 7v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7zm8 7v4h-4v-4H8l4-4 4 4z"}),"RestoreFromTrash"),Lb=gt(y.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),Ob=gt(y.jsx("path",{d:"M7.5 5.6 10 7 8.6 4.5 10 2 7.5 3.4 5 2l1.4 2.5L5 7zm12 9.8L17 14l1.4 2.5L17 19l2.5-1.4L22 19l-1.4-2.5L22 14zM22 2l-2.5 1.4L17 2l1.4 2.5L17 7l2.5-1.4L22 7l-1.4-2.5zm-7.63 5.29a.996.996 0 0 0-1.41 0L1.29 18.96c-.39.39-.39 1.02 0 1.41l2.34 2.34c.39.39 1.02.39 1.41 0L16.7 11.05c.39-.39.39-1.02 0-1.41zm-1.03 5.49-2.12-2.12 2.44-2.44 2.12 2.12z"}),"AutoFixHigh"),Fb=ue(Pe)(({theme:t})=>({position:"relative",height:"60px",backgroundColor:t.palette.grey[200],borderRadius:t.shape.borderRadius,margin:t.spacing(2,0),padding:t.spacing(0,1)})),Bb=ue(Pe)(({theme:t})=>({position:"absolute",top:0,left:0,right:0,height:"16px",borderBottom:`1px solid ${t.palette.grey[300]}`})),Db=ue(Pe)(({theme:t})=>({position:"absolute",top:"10px",width:"1px",height:"6px",backgroundColor:t.palette.grey[400]})),Wb=ue(Pe)(({theme:t})=>({position:"absolute",top:0,transform:"translateX(-50%)",fontSize:"0.6rem",color:t.palette.grey[600]})),Ub=ue(Pe)(({theme:t})=>({position:"absolute",height:"30px",top:"22px",backgroundColor:t.palette.primary.main,borderRadius:t.shape.borderRadius,color:t.palette.primary.contrastText,padding:t.spacing(.5,1),cursor:"move",userSelect:"none",display:"flex",alignItems:"center",fontSize:"0.875rem",transition:"background-color 0.1s ease","&.highlighted":{backgroundColor:t.palette.secondary.main}})),Vb=ue(Pe)(({theme:t})=>({position:"absolute",right:-4,top:0,width:8,height:"100%",cursor:"col-resize","&:hover":{backgroundColor:t.palette.primary.light}}));function Hb({words:t,startTime:r,endTime:i,onWordUpdate:s,currentTime:a=0}){const u=b.useRef(null),[d,p]=b.useState(null),m=.1,h=(P,$,_,T)=>{if(T){if(_===t.length-1)return!1;const R=t[_+1];if(!R)return!1;const M=$>R.start_time;return M&&console.log("Resize collision detected:",{proposedEnd:$,nextWordStart:R.start_time,word:t[_].text,nextWord:R.text}),M}return t.some((R,M)=>{if(M===_)return!1;const L=P>=R.start_time&&P<=R.end_time||$>=R.start_time&&$<=R.end_time||P<=R.start_time&&$>=R.end_time;return L&&console.log("Move collision detected:",{movingWord:t[_].text,collidingWord:R.text,proposedTimes:{start:P,end:$},collidingTimes:{start:R.start_time,end:R.end_time}}),L})},w=P=>{const $=i-r,_=(P-r)/$*100;return Math.max(0,Math.min(100,_))},x=()=>{const P=[],$=Math.floor(r),_=Math.ceil(i);for(let T=$;T<=_;T++)if(T>=r&&T<=i){const R=w(T);P.push(y.jsxs(Pe,{children:[y.jsx(Db,{sx:{left:`${R}%`}}),y.jsxs(Wb,{sx:{left:`${R}%`},children:[T,"s"]})]},T))}return P},k=(P,$,_)=>{var L;const T=(L=u.current)==null?void 0:L.getBoundingClientRect();if(!T)return;const R=P.clientX-T.left,M=R/T.width*(i-r);console.log("Mouse down:",{type:_,wordIndex:$,initialX:R,initialTime:M,word:t[$]}),p({wordIndex:$,type:_,initialX:R,initialTime:M,word:t[$]})},E=P=>{if(!d||!u.current)return;const $=u.current.getBoundingClientRect(),_=P.clientX-$.left,T=$.width;if(d.type==="resize"){const R=t[d.wordIndex],M=d.word.end_time-d.word.start_time,L=M/(i-r)*T,A=_-d.initialX,V=A/L,ee=M*V;console.log("Resize calculation:",{initialWordWidth:L,initialWordDuration:M,pixelDelta:A,percentageMoved:V,timeDelta:ee,currentDuration:R.end_time-R.start_time});const v=Math.max(R.start_time+m,d.word.end_time+ee);if(h(R.start_time,v,d.wordIndex,!0))return;s(d.wordIndex,{start_time:R.start_time,end_time:v})}else if(d.type==="move"){const R=T/(i-r),M=_-d.initialX,L=M/R,A=t[d.wordIndex],V=A.end_time-A.start_time;console.log("Move calculation:",{timelineWidth:T,timelineDuration:i-r,pixelsPerSecond:R,pixelDelta:M,timeDelta:L,currentDuration:V});const ee=d.word.start_time+L,v=ee+V;if(ee<r||v>i||h(ee,v,d.wordIndex,!1))return;s(d.wordIndex,{start_time:ee,end_time:v})}},C=()=>{p(null)},S=P=>!a||!P.start_time||!P.end_time?!1:a>=P.start_time&&a<=P.end_time;return y.jsxs(Fb,{ref:u,onMouseMove:E,onMouseUp:C,onMouseLeave:C,children:[y.jsx(Bb,{children:x()}),t.map((P,$)=>{const _=w(P.start_time),R=w(P.end_time)-_,L=Math.max(0,R-2);return y.jsxs(Ub,{className:S(P)?"highlighted":"",sx:{left:`${_}%`,width:`${L}%`,maxWidth:`calc(${100-_}% - 2px)`},onMouseDown:A=>{A.stopPropagation(),k(A,$,"move")},children:[P.text,y.jsx(Vb,{onMouseDown:A=>{A.stopPropagation(),k(A,$,"resize")}})]},$)})]})}function Gb({open:t,onClose:r,segment:i,segmentIndex:s,originalSegment:a,onSave:u,onPlaySegment:d,currentTime:p=0,onDelete:m}){const[h,w]=b.useState(i),[x,k]=b.useState(null),[E,C]=b.useState(null),[S,P]=b.useState("");if(b.useEffect(()=>{w(i)},[i]),!i||s===null||!h||!a)return null;const $=(O,F,B)=>{const Q=[...h.words];Q[O]={...Q[O],[F]:F==="start_time"||F==="end_time"?parseFloat(Number(B).toFixed(4)):B},_(Q)},_=O=>{const F=Math.min(...O.map(Q=>Q.start_time)),B=Math.max(...O.map(Q=>Q.end_time));w({...h,words:O,text:O.map(Q=>Q.text).join(" "),start_time:F,end_time:B})},T=O=>{const F=[...h.words];let B;if(O===void 0){const Q=F[F.length-1];B={text:"",start_time:Q.end_time,end_time:Q.end_time+.5,confidence:1},F.push(B)}else{const Q=F[O],U=F[O+1],Y=Q?U?(Q.end_time+U.start_time)/2:Q.end_time+.5:U?U.start_time-.5:0;B={text:"",start_time:Y-.25,end_time:Y+.25,confidence:1},F.splice(O+1,0,B)}_(F)},R=O=>{const F=h.words[O],B=(F.start_time+F.end_time)/2,Q=F.text.split(/\s+/);if(Q.length<=1){const Y=F.text.slice(0,Math.ceil(F.text.length/2)),ie=F.text.slice(Math.ceil(F.text.length/2));Q[0]=Y,Q[1]=ie}const U=[...h.words];U.splice(O,1,{text:Q[0],start_time:F.start_time,end_time:B,confidence:1},{text:Q[1],start_time:B,end_time:F.end_time,confidence:1}),_(U)},M=O=>{if(O>=h.words.length-1)return;const F=h.words[O],B=h.words[O+1],Q=[...h.words];Q.splice(O,2,{text:`${F.text} ${B.text}`.trim(),start_time:F.start_time,end_time:B.end_time,confidence:1}),_(Q)},L=O=>{const F=h.words.filter((B,Q)=>Q!==O);_(F)},A=()=>{w(JSON.parse(JSON.stringify(a)))},V=(O,F)=>{k(O.currentTarget),C(F)},ee=()=>{k(null),C(null)},v=()=>{h&&(console.log("EditModal - Saving segment:",{segmentIndex:s,originalText:i==null?void 0:i.text,editedText:h.text,wordCount:h.words.length,timeRange:`${h.start_time.toFixed(4)} - ${h.end_time.toFixed(4)}`}),u(h),r())},G=()=>{if(!h)return;const O=S.trim().split(/\s+/),F=h.end_time-h.start_time;let B;if(O.length===h.words.length)B=h.words.map((Q,U)=>({text:O[U],start_time:Q.start_time,end_time:Q.end_time,confidence:1}));else{const Q=F/O.length;B=O.map((U,Y)=>({text:U,start_time:h.start_time+Y*Q,end_time:h.start_time+(Y+1)*Q,confidence:1}))}_(B),P("")},Z=O=>{O.key==="Enter"&&!O.shiftKey&&(O.preventDefault(),v())},K=()=>{s!==null&&window.confirm("Are you sure you want to delete this segment?")&&(m==null||m(s),r())};return y.jsxs(ua,{open:t,onClose:r,maxWidth:"md",fullWidth:!0,onKeyDown:Z,children:[y.jsxs(da,{sx:{display:"flex",alignItems:"center",gap:1},children:[y.jsxs(Pe,{sx:{flex:1,display:"flex",alignItems:"center",gap:1},children:["Edit Segment ",s,(i==null?void 0:i.start_time)!==void 0&&d&&y.jsx(Jn,{size:"small",onClick:()=>d(i.start_time),sx:{padding:"4px"},children:y.jsx(bg,{})})]}),y.jsx(Jn,{onClick:r,sx:{ml:"auto"},children:y.jsx(pd,{})})]}),y.jsxs(ca,{dividers:!0,children:[y.jsx(Pe,{sx:{mb:2},children:y.jsx(Hb,{words:h.words,startTime:h.start_time,endTime:h.end_time,onWordUpdate:(O,F)=>{const B=[...h.words];B[O]={...B[O],...F},_(B)},currentTime:p})}),y.jsxs(Le,{variant:"body2",color:"text.secondary",sx:{mb:2},children:["Original Time Range: ",a.start_time.toFixed(2)," - ",a.end_time.toFixed(2),y.jsx("br",{}),"Current Time Range: ",h.start_time.toFixed(2)," - ",h.end_time.toFixed(2)]}),y.jsx(Pe,{sx:{display:"flex",flexDirection:"column",gap:1,mb:3},children:h.words.map((O,F)=>y.jsxs(Pe,{sx:{display:"flex",gap:2,alignItems:"center"},children:[y.jsx(Il,{label:`Word ${F}`,value:O.text,onChange:B=>$(F,"text",B.target.value),fullWidth:!0,size:"small"}),y.jsx(Il,{label:"Start Time",value:O.start_time.toFixed(2),onChange:B=>$(F,"start_time",parseFloat(B.target.value)),type:"number",inputProps:{step:.01},sx:{width:"150px"},size:"small"}),y.jsx(Il,{label:"End Time",value:O.end_time.toFixed(2),onChange:B=>$(F,"end_time",parseFloat(B.target.value)),type:"number",inputProps:{step:.01},sx:{width:"150px"},size:"small"}),y.jsx(Jn,{onClick:B=>V(B,F),children:y.jsx(Lb,{})})]},F))}),y.jsxs(Pe,{sx:{display:"flex",gap:2},children:[y.jsx(Il,{label:"Replace all words",value:S,onChange:O=>P(O.target.value),fullWidth:!0,placeholder:"Type or paste replacement words here",size:"small"}),y.jsx(pn,{variant:"contained",startIcon:y.jsx(Ob,{}),onClick:G,disabled:!S.trim(),children:"Replace All"})]})]}),y.jsxs(ug,{children:[y.jsx(pn,{startIcon:y.jsx(Nb,{}),onClick:A,color:"warning",children:"Reset"}),y.jsx(pn,{startIcon:y.jsx(fh,{}),onClick:K,color:"error",sx:{mr:"auto"},children:"Delete Segment"}),y.jsx(pn,{onClick:r,children:"Cancel"}),y.jsx(pn,{onClick:v,variant:"contained",children:"Save Changes"})]}),y.jsxs(pg,{anchorEl:x,open:!!x,onClose:ee,children:[y.jsxs(El,{onClick:()=>{T(E),ee()},children:[y.jsx(zb,{sx:{mr:1}})," Add Word After"]}),y.jsxs(El,{onClick:()=>{R(E),ee()},children:[y.jsx(Ab,{sx:{mr:1}})," Split Word"]}),y.jsxs(El,{onClick:()=>{M(E),ee()},disabled:E===h.words.length-1,children:[y.jsx(jb,{sx:{mr:1}})," Merge with Next"]}),y.jsxs(El,{onClick:()=>{L(E),ee()},disabled:h.words.length<=1,children:[y.jsx(fh,{sx:{mr:1},color:"error"})," Remove"]})]})]})}const Kb=gt(y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function Qb({open:t,onClose:r,originalData:i,updatedData:s,onSubmit:a}){const[u,d]=b.useState([]),p=b.useMemo(()=>{const w=[];return i.corrected_segments.forEach((x,k)=>{const E=s.corrected_segments[k];if(!E){w.push({type:"removed",path:`Segment ${k}`,segmentIndex:k,oldValue:x.text});return}const C=[];if(x.words.forEach((S,P)=>{const $=E.words[P];if(!$){C.push({type:"removed",path:`Word ${P}`,oldValue:`"${S.text}" (${S.start_time.toFixed(4)} - ${S.end_time.toFixed(4)})`});return}(S.text!==$.text||Math.abs(S.start_time-$.start_time)>1e-4||Math.abs(S.end_time-$.end_time)>1e-4)&&C.push({type:"modified",path:`Word ${P}`,oldValue:`"${S.text}" (${S.start_time.toFixed(4)} - ${S.end_time.toFixed(4)})`,newValue:`"${$.text}" (${$.start_time.toFixed(4)} - ${$.end_time.toFixed(4)})`})}),E.words.length>x.words.length)for(let S=x.words.length;S<E.words.length;S++){const P=E.words[S];C.push({type:"added",path:`Word ${S}`,newValue:`"${P.text}" (${P.start_time.toFixed(4)} - ${P.end_time.toFixed(4)})`})}(x.text!==E.text||x.start_time!==E.start_time||x.end_time!==E.end_time||C.length>0)&&w.push({type:"modified",path:`Segment ${k}`,segmentIndex:k,oldValue:`"${x.text}" (${x.start_time.toFixed(4)} - ${x.end_time.toFixed(4)})`,newValue:`"${E.text}" (${E.start_time.toFixed(4)} - ${E.end_time.toFixed(4)})`,wordChanges:C.length>0?C:void 0})}),w},[i,s]),m=w=>{d(x=>x.includes(w)?x.filter(k=>k!==w):[...x,w])},h=w=>{const x=()=>{switch(w.type){case"added":return"success.main";case"removed":return"error.main";case"modified":return"warning.main";default:return"text.primary"}},k=w.segmentIndex!==void 0&&u.includes(w.segmentIndex);return y.jsxs(Nr,{sx:{p:2,mb:1},children:[y.jsxs(Pe,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[y.jsxs(Pe,{children:[y.jsxs(Le,{color:x(),sx:{fontWeight:"bold"},children:[w.type.toUpperCase(),": ",w.path]}),w.oldValue&&y.jsxs(Le,{color:"error.main",sx:{ml:2},children:["- ",w.oldValue]}),w.newValue&&y.jsxs(Le,{color:"success.main",sx:{ml:2},children:["+ ",w.newValue]})]}),w.wordChanges&&y.jsx(Jn,{onClick:()=>m(w.segmentIndex),sx:{transform:k?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"},children:y.jsx(Kb,{})})]}),w.wordChanges&&y.jsx(Pc,{in:k,children:y.jsx(Pe,{sx:{mt:2,ml:4},children:w.wordChanges.map((E,C)=>y.jsxs(Pe,{children:[y.jsxs(Le,{color:x(),variant:"body2",children:[E.type.toUpperCase(),": ",E.path]}),E.oldValue&&y.jsxs(Le,{color:"error.main",variant:"body2",sx:{ml:2},children:["- ",E.oldValue]}),E.newValue&&y.jsxs(Le,{color:"success.main",variant:"body2",sx:{ml:2},children:["+ ",E.newValue]})]},C))})})]},w.path)};return y.jsxs(ua,{open:t,onClose:r,maxWidth:"md",fullWidth:!0,children:[y.jsx(da,{children:"Review Changes"}),y.jsx(ca,{dividers:!0,children:p.length===0?y.jsxs(Pe,{children:[y.jsx(Le,{color:"text.secondary",sx:{mb:2},children:"No changes detected. You can still submit to continue processing."}),y.jsxs(Le,{variant:"body2",color:"text.secondary",children:["Total segments: ",s.corrected_segments.length]})]}):y.jsxs(Pe,{children:[y.jsxs(Le,{variant:"body2",color:"text.secondary",sx:{mb:2},children:[p.length," change",p.length!==1?"s":""," detected:"]}),p.map(h)]})}),y.jsxs(ug,{children:[y.jsx(pn,{onClick:r,children:"Cancel"}),y.jsx(pn,{onClick:a,variant:"contained",children:"Submit to Server"})]})]})}const qb=gt(y.jsx("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),Yb=gt(y.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause");function Xb({apiClient:t,onTimeUpdate:r}){const[i,s]=b.useState(!1),[a,u]=b.useState(0),[d,p]=b.useState(0),m=b.useRef(null);b.useEffect(()=>{if(!t)return;const C=new Audio(t.getAudioUrl());m.current=C;let S;const P=()=>{const $=C.currentTime;u($),r==null||r($),S=requestAnimationFrame(P)};return C.addEventListener("play",()=>{P()}),C.addEventListener("pause",()=>{cancelAnimationFrame(S)}),C.addEventListener("ended",()=>{cancelAnimationFrame(S),s(!1),u(0)}),C.addEventListener("loadedmetadata",()=>{p(C.duration)}),()=>{cancelAnimationFrame(S),C.pause(),C.src="",m.current=null}},[t,r]);const h=()=>{m.current&&(i?m.current.pause():m.current.play(),s(!i))},w=(C,S)=>{if(!m.current)return;const P=S;m.current.currentTime=P,u(P)},x=C=>{const S=Math.floor(C/60),P=Math.floor(C%60);return`${S}:${P.toString().padStart(2,"0")}`},k=C=>{m.current&&(m.current.currentTime=C,u(C),m.current.play(),s(!0))},E=b.useCallback(()=>{m.current&&(i?m.current.pause():m.current.play(),s(!i))},[i]);return b.useEffect(()=>{if(!t)return;const C=window;return C.seekAndPlayAudio=k,C.toggleAudioPlayback=E,()=>{delete C.seekAndPlayAudio,delete C.toggleAudioPlayback}},[t,E]),t?y.jsxs(Pe,{sx:{display:"flex",alignItems:"center",gap:2,p:2,backgroundColor:"background.paper",borderRadius:1,boxShadow:1},children:[y.jsx(Jn,{onClick:h,size:"large",children:i?y.jsx(Yb,{}):y.jsx(qb,{})}),y.jsx(Le,{sx:{minWidth:45},children:x(a)}),y.jsx(tb,{value:a,min:0,max:d,onChange:w,sx:{mx:2}}),y.jsx(Le,{sx:{minWidth:45},children:x(d)})]}):null}function Jb(t){const r=JSON.parse(JSON.stringify(t)),i=s=>{for(const a in s){const u=s[a];if(typeof u=="number"){let d;Number.isInteger(u)?d=u.toFixed(1):d=u.toString(),s[a]=parseFloat(d)}else typeof u=="object"&&u!==null&&i(u)}};return i(r),r}function Zb({data:t,onFileLoad:r,apiClient:i,isReadOnly:s}){const[a,u]=b.useState(null),[d,p]=b.useState(null),[m,h]=b.useState(null),[w,x]=b.useState("genius"),[k,E]=b.useState(!1),[C,S]=b.useState(t),[P]=b.useState(()=>JSON.parse(JSON.stringify(t))),[$,_]=b.useState("details"),[T,R]=b.useState(!1),[M,L]=b.useState(!1),[A,V]=b.useState(null),[ee,v]=b.useState(!1),[G,Z]=b.useState(0),K=uo(),O=OC(K.breakpoints.down("md"));b.useEffect(()=>{const X=localStorage.getItem("lyrics_analyzer_data");if(X)try{const ne=JSON.parse(X);ne.transcribed_text===t.transcribed_text?(console.log("Restored saved progress from local storage"),S(ne)):localStorage.removeItem("lyrics_analyzer_data")}catch(ne){console.error("Failed to parse saved data:",ne),localStorage.removeItem("lyrics_analyzer_data")}},[t.transcribed_text]),b.useEffect(()=>{s||localStorage.setItem("lyrics_analyzer_data",JSON.stringify(C))},[C,s]),b.useEffect(()=>{const X=te=>{te.target instanceof HTMLInputElement||te.target instanceof HTMLTextAreaElement||(te.key==="Shift"?(R(!0),document.body.style.userSelect="none"):te.key==="Meta"?L(!0):(te.key===" "||te.code==="Space")&&(te.preventDefault(),window.toggleAudioPlayback&&window.toggleAudioPlayback()))},ne=te=>{te.key==="Shift"?(R(!1),document.body.style.userSelect=""):te.key==="Meta"&&L(!1)};return window.addEventListener("keydown",X),window.addEventListener("keyup",ne),()=>{window.removeEventListener("keydown",X),window.removeEventListener("keyup",ne),document.body.style.userSelect=""}},[]);const F=T?"highlight":M?"edit":$,B=b.useCallback((X,ne)=>{p(null),h(null),requestAnimationFrame(()=>{requestAnimationFrame(()=>{p(X),ne&&h(ne),setTimeout(()=>{p(null),h(null)},1200)})})},[]),Q=b.useCallback(X=>{if(F==="edit"){let ne=0;const te=C.corrected_segments.findIndex(fe=>X.wordIndex>=ne&&X.wordIndex<ne+fe.words.length?!0:(ne+=fe.words.length,!1));te!==-1&&V({segment:C.corrected_segments[te],index:te,originalSegment:P.corrected_segments[te]})}else X.type==="anchor"&&X.anchor?B("word",{type:"anchor",transcriptionIndex:X.anchor.transcription_position,transcriptionLength:X.anchor.length,referenceIndices:X.anchor.reference_positions,referenceLength:X.anchor.length}):X.type==="gap"&&X.gap&&B("word",{type:"gap",transcriptionIndex:X.gap.transcription_position,transcriptionLength:X.gap.length,referenceIndices:{},referenceLength:X.gap.length})},[F,C.corrected_segments,B,P.corrected_segments]),U=b.useCallback(X=>{if(console.log("LyricsAnalyzer - handleUpdateSegment called:",{editModalSegment:A,updatedSegment:X,currentSegmentsCount:C.corrected_segments.length}),!A){console.warn("LyricsAnalyzer - No editModalSegment found");return}const ne={...C};console.log("LyricsAnalyzer - Before update:",{segmentIndex:A.index,oldText:ne.corrected_segments[A.index].text,newText:X.text}),ne.corrected_segments[A.index]=X,ne.corrected_text=ne.corrected_segments.map(te=>te.text).join(`
180
- `),console.log("LyricsAnalyzer - After update:",{segmentsCount:ne.corrected_segments.length,updatedText:ne.corrected_text}),S(ne),V(null)},[C,A]),Y=b.useCallback(X=>{console.log("LyricsAnalyzer - handleDeleteSegment called:",{segmentIndex:X,currentSegmentsCount:C.corrected_segments.length});const ne={...C};ne.corrected_segments=ne.corrected_segments.filter((te,fe)=>fe!==X),ne.corrected_text=ne.corrected_segments.map(te=>te.text).join(`
181
- `),console.log("LyricsAnalyzer - After delete:",{segmentsCount:ne.corrected_segments.length,updatedText:ne.corrected_text}),S(ne)},[C]),ie=b.useCallback(()=>{v(!0)},[]),z=b.useCallback(async()=>{if(i)try{console.log("Submitting changes to server");const X=Jb(C);await i.submitCorrections(X),E(!0),v(!1),window.close()}catch(X){console.error("Failed to submit corrections:",X),alert("Failed to submit corrections. Please try again.")}},[i,C]),q=b.useCallback(X=>{window.seekAndPlayAudio&&window.seekAndPlayAudio(X)},[]),ce=b.useCallback(()=>{window.confirm("Are you sure you want to reset all corrections? This cannot be undone.")&&(localStorage.removeItem("lyrics_analyzer_data"),S(JSON.parse(JSON.stringify(t))))},[t]);return y.jsxs(Pe,{children:[s&&y.jsxs(Pe,{sx:{display:"flex",alignItems:"center",mb:2,color:"text.secondary"},children:[y.jsx(gb,{sx:{mr:1}}),y.jsx(Le,{variant:"body2",children:"View Only Mode"})]}),y.jsxs(Pe,{sx:{display:"flex",flexDirection:O?"column":"row",gap:2,justifyContent:"space-between",alignItems:O?"stretch":"center",mb:3},children:[y.jsx(Le,{variant:"h4",sx:{fontSize:O?"1.75rem":"2.125rem"},children:"Lyrics Correction Review"}),s&&y.jsx(pn,{variant:"outlined",startIcon:y.jsx(eg,{}),onClick:r,fullWidth:O,children:"Load File"})]}),y.jsx(Pe,{sx:{mb:3},children:y.jsx(Xb,{apiClient:i,onTimeUpdate:Z})}),y.jsx(Pe,{sx:{mb:3},children:y.jsx(wg,{anchorCount:C.metadata.anchor_sequences_count,multiSourceAnchors:C.anchor_sequences.filter(X=>Object.keys(X.reference_positions).length>1).length,singleSourceMatches:{spotify:C.anchor_sequences.filter(X=>Object.keys(X.reference_positions).length===1&&"spotify"in X.reference_positions).length,genius:C.anchor_sequences.filter(X=>Object.keys(X.reference_positions).length===1&&"genius"in X.reference_positions).length},correctedGapCount:C.gap_sequences.filter(X=>{var ne;return((ne=X.corrections)==null?void 0:ne.length)>0}).length,uncorrectedGapCount:C.gap_sequences.filter(X=>{var ne;return!((ne=X.corrections)!=null&&ne.length)}).length,uncorrectedGaps:C.gap_sequences.filter(X=>{var ne;return!((ne=X.corrections)!=null&&ne.length)}).map(X=>({position:X.transcription_position,length:X.length})),replacedCount:C.gap_sequences.reduce((X,ne)=>{var te;return X+(((te=ne.corrections)==null?void 0:te.filter(fe=>!fe.is_deletion&&!fe.split_total).length)??0)},0),addedCount:C.gap_sequences.reduce((X,ne)=>{var te;return X+(((te=ne.corrections)==null?void 0:te.filter(fe=>fe.split_total).length)??0)},0),deletedCount:C.gap_sequences.reduce((X,ne)=>{var te;return X+(((te=ne.corrections)==null?void 0:te.filter(fe=>fe.is_deletion).length)??0)},0),onMetricClick:{anchor:()=>B("anchor"),corrected:()=>B("corrected"),uncorrected:()=>B("uncorrected")}})}),y.jsx(Pe,{sx:{mb:3},children:y.jsx(wb,{effectiveMode:F,onChange:_})}),y.jsxs(Ln,{container:!0,spacing:2,direction:O?"column":"row",children:[y.jsx(Ln,{item:!0,xs:12,md:6,children:y.jsx(_b,{data:C,mode:F,onElementClick:u,onWordClick:Q,flashingType:d,highlightInfo:m,onPlaySegment:q,currentTime:G})}),y.jsx(Ln,{item:!0,xs:12,md:6,children:y.jsx(Pb,{referenceTexts:C.reference_texts,anchors:C.anchor_sequences,gaps:C.gap_sequences,mode:F,onElementClick:u,onWordClick:Q,flashingType:d,highlightInfo:m,currentSource:w,onSourceChange:x,corrected_segments:C.corrected_segments})})]}),y.jsx(yb,{open:a!==null,content:a,onClose:()=>u(null)}),y.jsx(Gb,{open:!!A,onClose:()=>V(null),segment:(A==null?void 0:A.segment)??null,segmentIndex:(A==null?void 0:A.index)??null,originalSegment:(A==null?void 0:A.originalSegment)??null,onSave:U,onDelete:Y,onPlaySegment:q,currentTime:G}),y.jsx(Qb,{open:ee,onClose:()=>v(!1),originalData:P,updatedData:C,onSubmit:z}),!s&&i&&y.jsxs(Pe,{sx:{mt:2,mb:3,display:"flex",gap:2},children:[y.jsx(pn,{variant:"contained",onClick:ie,disabled:k,children:k?"Review Complete":"Finish Review"}),y.jsx(pn,{variant:"outlined",color:"warning",onClick:ce,children:"Reset Corrections"})]})]})}function ek(){const[t,r]=b.useState(null),[i,s]=b.useState(!1),[a,u]=b.useState(null),[d,p]=b.useState(null),[m,h]=b.useState(!0);b.useEffect(()=>{const C=new URLSearchParams(window.location.search).get("baseApiUrl");if(C){const S=decodeURIComponent(C);p(new ch(S)),h(!1),w(S)}else p(new mb),h(!0)},[]);const w=async E=>{try{const S=await new ch(E).getCorrectionData();r(S)}catch(C){u(`Failed to fetch data: ${C.message}`)}},x=async()=>{const E=document.createElement("input");E.type="file",E.accept=".json",E.onchange=async C=>{var P;const S=(P=C.target.files)==null?void 0:P[0];if(S)try{const $=await S.text();console.log("File contents:",$.slice(0,500)+"...");const _=JSON.parse($);console.log("Parsed file data:",_),r(_)}catch($){u(`Error loading file: ${$.message}. Please make sure it is a valid JSON file.`)}},E.click()},k=()=>t?y.jsx(ld,{open:i,onClose:()=>s(!1),"aria-labelledby":"metadata-modal",children:y.jsxs(Pe,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",boxShadow:24,p:4,borderRadius:1},children:[y.jsx(Le,{variant:"h6",gutterBottom:!0,children:"Correction Process Details"}),y.jsxs(Pe,{sx:{mb:2},children:[y.jsx(Le,{variant:"subtitle2",color:"text.secondary",children:"Total Words"}),y.jsx(Le,{children:t.metadata.total_words})]}),y.jsxs(Pe,{sx:{mb:2},children:[y.jsx(Le,{variant:"subtitle2",color:"text.secondary",children:"Gap Sequences"}),y.jsx(Le,{children:t.metadata.gap_sequences_count})]}),y.jsxs(Pe,{sx:{mb:2},children:[y.jsx(Le,{variant:"subtitle2",color:"text.secondary",children:"Corrections Made"}),y.jsx(Le,{children:t.corrections_made})]}),y.jsxs(Pe,{sx:{mb:2},children:[y.jsx(Le,{variant:"subtitle2",color:"text.secondary",children:"Correction Ratio"}),y.jsxs(Le,{children:[(t.metadata.correction_ratio*100).toFixed(1),"%"]})]})]})}):null;return t?y.jsxs(Pe,{sx:{p:3,pb:6,maxWidth:"100%",overflowX:"hidden"},children:[a&&y.jsx(Cl,{severity:"error",sx:{mb:2},onClose:()=>u(null),children:a}),m&&y.jsx(Cl,{severity:"info",sx:{mb:2},children:"Running in read-only mode. Connect to an API to enable editing."}),y.jsx(Zb,{data:t,onFileLoad:x,onShowMetadata:()=>s(!0),apiClient:d,isReadOnly:m}),k()]}):y.jsxs(Pe,{sx:{p:3},children:[a&&y.jsx(Cl,{severity:"error",sx:{mb:2},onClose:()=>u(null),children:a}),m?y.jsxs(y.Fragment,{children:[y.jsx(Cl,{severity:"info",sx:{mb:2},children:"Running in read-only mode. Connect to an API to enable editing."}),y.jsxs(Pe,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[y.jsx(Le,{variant:"h4",children:"Lyrics Correction Review"}),y.jsx(pn,{variant:"outlined",startIcon:y.jsx(eg,{}),onClick:x,children:"Load File"})]}),y.jsx(Pe,{sx:{mb:3},children:y.jsx(wg,{})})]}):y.jsx(Pe,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"50vh"},children:y.jsx(Le,{variant:"h6",color:"text.secondary",children:"Loading Lyrics Correction Review..."})})]})}T0.createRoot(document.getElementById("root")).render(y.jsx(ek,{}));