function V7(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Cd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g5={exports:{}},bd={},y5={exports:{}},Be={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var zl=Symbol.for("react.element"),z7=Symbol.for("react.portal"),B7=Symbol.for("react.fragment"),W7=Symbol.for("react.strict_mode"),H7=Symbol.for("react.profiler"),U7=Symbol.for("react.provider"),Y7=Symbol.for("react.context"),G7=Symbol.for("react.forward_ref"),q7=Symbol.for("react.suspense"),K7=Symbol.for("react.memo"),Z7=Symbol.for("react.lazy"),_g=Symbol.iterator;function X7(e){return e===null||typeof e!="object"?null:(e=_g&&e[_g]||e["@@iterator"],typeof e=="function"?e:null)}var v5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x5=Object.assign,C5={};function Ks(e,t,n){this.props=e,this.context=t,this.refs=C5,this.updater=n||v5}Ks.prototype.isReactComponent={};Ks.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Ks.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function b5(){}b5.prototype=Ks.prototype;function c1(e,t,n){this.props=e,this.context=t,this.refs=C5,this.updater=n||v5}var u1=c1.prototype=new b5;u1.constructor=c1;x5(u1,Ks.prototype);u1.isPureReactComponent=!0;var Og=Array.isArray,w5=Object.prototype.hasOwnProperty,d1={current:null},S5={key:!0,ref:!0,__self:!0,__source:!0};function k5(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)w5.call(t,r)&&!S5.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,B=I[se];if(0>>1;seo(ne,W))ceo(q,ne)?(I[se]=q,I[ce]=W,se=ce):(I[se]=ne,I[z]=W,se=z);else if(ceo(q,W))I[se]=q,I[ce]=W,se=ce;else break e}}return F}function o(I,F){var W=I.sortIndex-F.sortIndex;return W!==0?W:I.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,p=3,x=!1,g=!1,h=!1,E=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(I){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=I)r(c),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(c)}}function w(I){if(h=!1,C(I),!g)if(n(l)!==null)g=!0,L(S);else{var F=n(c);F!==null&&V(w,F.startTime-I)}}function S(I,F){g=!1,h&&(h=!1,m(M),M=-1),x=!0;var W=p;try{for(C(F),d=n(l);d!==null&&(!(d.expirationTime>F)||I&&!_());){var se=d.callback;if(typeof se=="function"){d.callback=null,p=d.priorityLevel;var B=se(d.expirationTime<=F);F=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(l)&&r(l),C(F)}else r(l);d=n(l)}if(d!==null)var H=!0;else{var z=n(c);z!==null&&V(w,z.startTime-F),H=!1}return H}finally{d=null,p=W,x=!1}}var P=!1,k=null,M=-1,T=5,D=-1;function _(){return!(e.unstable_now()-DI||125se?(I.sortIndex=W,t(c,I),n(l)===null&&I===n(c)&&(h?(m(M),M=-1):h=!0,V(w,W-se))):(I.sortIndex=B,t(l,I),g||x||(g=!0,L(S))),I},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(I){var F=p;return function(){var W=p;p=F;try{return I.apply(this,arguments)}finally{p=W}}}})(T5);M5.exports=T5;var lC=M5.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var R5=v,Dn=lC;function ie(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sh=Object.prototype.hasOwnProperty,cC=/^[: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]*$/,$g={},Fg={};function uC(e){return Sh.call(Fg,e)?!0:Sh.call($g,e)?!1:cC.test(e)?Fg[e]=!0:($g[e]=!0,!1)}function dC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fC(e,t,n,r){if(t===null||typeof t>"u"||dC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dn(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Kt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Kt[e]=new dn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Kt[t]=new dn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Kt[e]=new dn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Kt[e]=new dn(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){Kt[e]=new dn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Kt[e]=new dn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Kt[e]=new dn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Kt[e]=new dn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Kt[e]=new dn(e,5,!1,e.toLowerCase(),null,!1,!1)});var p1=/[\-:]([a-z])/g;function h1(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(p1,h1);Kt[t]=new dn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(p1,h1);Kt[t]=new dn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(p1,h1);Kt[t]=new dn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Kt[e]=new dn(e,1,!1,e.toLowerCase(),null,!1,!1)});Kt.xlinkHref=new dn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Kt[e]=new dn(e,1,!1,e.toLowerCase(),null,!0,!0)});function m1(e,t,n,r){var o=Kt.hasOwnProperty(t)?Kt[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{mp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fa(e):""}function pC(e){switch(e.tag){case 5:return Fa(e.type);case 16:return Fa("Lazy");case 13:return Fa("Suspense");case 19:return Fa("SuspenseList");case 0:case 2:case 15:return e=gp(e.type,!1),e;case 11:return e=gp(e.type.render,!1),e;case 1:return e=gp(e.type,!0),e;default:return""}}function Mh(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 rs:return"Fragment";case ns:return"Portal";case kh:return"Profiler";case g1:return"StrictMode";case Eh:return"Suspense";case Ph:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case O5:return(e.displayName||"Context")+".Consumer";case _5:return(e._context.displayName||"Context")+".Provider";case y1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case v1:return t=e.displayName||null,t!==null?t:Mh(e.type)||"Memo";case wo:t=e._payload,e=e._init;try{return Mh(e(t))}catch{}}return null}function hC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Mh(t);case 8:return t===g1?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Vo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mC(e){var t=$5(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gc(e){e._valueTracker||(e._valueTracker=mC(e))}function F5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$5(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Tu(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 Th(e,t){var n=t.checked;return bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function A5(e,t){t=t.checked,t!=null&&m1(e,"checked",t,!1)}function Rh(e,t){A5(e,t);var n=Vo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Dh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dh(e,t.type,Vo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Dh(e,t,n){(t!=="number"||Tu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Aa=Array.isArray;function ys(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=yc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ll(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var za={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},gC=["Webkit","ms","Moz","O"];Object.keys(za).forEach(function(e){gC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),za[t]=za[e]})});function V5(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||za.hasOwnProperty(e)&&za[e]?(""+t).trim():t+"px"}function z5(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=V5(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var yC=bt({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 Ih(e,t){if(t){if(yC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ie(62))}}function $h(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fh=null;function x1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ah=null,vs=null,xs=null;function zg(e){if(e=Hl(e)){if(typeof Ah!="function")throw Error(ie(280));var t=e.stateNode;t&&(t=Pd(t),Ah(e.stateNode,e.type,t))}}function B5(e){vs?xs?xs.push(e):xs=[e]:vs=e}function W5(){if(vs){var e=vs,t=xs;if(xs=vs=null,zg(e),t)for(e=0;e>>=0,e===0?32:31-(TC(e)/RC|0)|0}var vc=64,xc=4194304;function La(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 Ou(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=La(a):(i&=s,i!==0&&(r=La(i)))}else s=n&~o,s!==0?r=La(s):i!==0&&(r=La(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Bl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dr(t),e[t]=n}function IC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Wa),Zg=" ",Xg=!1;function c8(e,t){switch(e){case"keyup":return ab.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function u8(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var os=!1;function cb(e,t){switch(e){case"compositionend":return u8(t);case"keypress":return t.which!==32?null:(Xg=!0,Zg);case"textInput":return e=t.data,e===Zg&&Xg?null:e;default:return null}}function ub(e,t){if(os)return e==="compositionend"||!M1&&c8(e,t)?(e=a8(),ru=k1=Po=null,os=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=t2(n)}}function h8(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?h8(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function m8(){for(var e=window,t=Tu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Tu(e.document)}return t}function T1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function xb(e){var t=m8(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&h8(n.ownerDocument.documentElement,n)){if(r!==null&&T1(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=n2(n,i);var s=n2(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,is=null,Bh=null,Ua=null,Wh=!1;function r2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wh||is==null||is!==Tu(r)||(r=is,"selectionStart"in r&&T1(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ua&&hl(Ua,r)||(Ua=r,r=Fu(Bh,"onSelect"),0ls||(e.current=Kh[ls],Kh[ls]=null,ls--)}function lt(e,t){ls++,Kh[ls]=e.current,e.current=t}var zo={},on=Yo(zo),yn=Yo(!1),bi=zo;function _s(e,t){var n=e.type.contextTypes;if(!n)return zo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vn(e){return e=e.childContextTypes,e!=null}function Lu(){ft(yn),ft(on)}function u2(e,t,n){if(on.current!==zo)throw Error(ie(168));lt(on,t),lt(yn,n)}function k8(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ie(108,hC(e)||"Unknown",o));return bt({},n,r)}function ju(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zo,bi=on.current,lt(on,e),lt(yn,yn.current),!0}function d2(e,t,n){var r=e.stateNode;if(!r)throw Error(ie(169));n?(e=k8(e,t,bi),r.__reactInternalMemoizedMergedChildContext=e,ft(yn),ft(on),lt(on,e)):ft(yn),lt(yn,n)}var Yr=null,Md=!1,Dp=!1;function E8(e){Yr===null?Yr=[e]:Yr.push(e)}function _b(e){Md=!0,E8(e)}function Go(){if(!Dp&&Yr!==null){Dp=!0;var e=0,t=nt;try{var n=Yr;for(nt=1;e>=s,o-=s,Kr=1<<32-dr(t)+o|n<M?(T=k,k=null):T=k.sibling;var D=p(m,k,C[M],w);if(D===null){k===null&&(k=T);break}e&&k&&D.alternate===null&&t(m,k),y=i(D,y,M),P===null?S=D:P.sibling=D,P=D,k=T}if(M===C.length)return n(m,k),yt&&ni(m,M),S;if(k===null){for(;MM?(T=k,k=null):T=k.sibling;var _=p(m,k,D.value,w);if(_===null){k===null&&(k=T);break}e&&k&&_.alternate===null&&t(m,k),y=i(_,y,M),P===null?S=_:P.sibling=_,P=_,k=T}if(D.done)return n(m,k),yt&&ni(m,M),S;if(k===null){for(;!D.done;M++,D=C.next())D=d(m,D.value,w),D!==null&&(y=i(D,y,M),P===null?S=D:P.sibling=D,P=D);return yt&&ni(m,M),S}for(k=r(m,k);!D.done;M++,D=C.next())D=x(k,m,M,D.value,w),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?M:D.key),y=i(D,y,M),P===null?S=D:P.sibling=D,P=D);return e&&k.forEach(function(A){return t(m,A)}),yt&&ni(m,M),S}function E(m,y,C,w){if(typeof C=="object"&&C!==null&&C.type===rs&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case mc:e:{for(var S=C.key,P=y;P!==null;){if(P.key===S){if(S=C.type,S===rs){if(P.tag===7){n(m,P.sibling),y=o(P,C.props.children),y.return=m,m=y;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===wo&&v2(S)===P.type){n(m,P.sibling),y=o(P,C.props),y.ref=pa(m,P,C),y.return=m,m=y;break e}n(m,P);break}else t(m,P);P=P.sibling}C.type===rs?(y=gi(C.props.children,m.mode,w,C.key),y.return=m,m=y):(w=du(C.type,C.key,C.props,null,m.mode,w),w.ref=pa(m,y,C),w.return=m,m=w)}return s(m);case ns:e:{for(P=C.key;y!==null;){if(y.key===P)if(y.tag===4&&y.stateNode.containerInfo===C.containerInfo&&y.stateNode.implementation===C.implementation){n(m,y.sibling),y=o(y,C.children||[]),y.return=m,m=y;break e}else{n(m,y);break}else t(m,y);y=y.sibling}y=jp(C,m.mode,w),y.return=m,m=y}return s(m);case wo:return P=C._init,E(m,y,P(C._payload),w)}if(Aa(C))return g(m,y,C,w);if(la(C))return h(m,y,C,w);Pc(m,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,y!==null&&y.tag===6?(n(m,y.sibling),y=o(y,C),y.return=m,m=y):(n(m,y),y=Lp(C,m.mode,w),y.return=m,m=y),s(m)):n(m,y)}return E}var Is=I8(!0),$8=I8(!1),Ul={},Rr=Yo(Ul),vl=Yo(Ul),xl=Yo(Ul);function fi(e){if(e===Ul)throw Error(ie(174));return e}function L1(e,t){switch(lt(xl,t),lt(vl,e),lt(Rr,Ul),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Oh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Oh(t,e)}ft(Rr),lt(Rr,t)}function $s(){ft(Rr),ft(vl),ft(xl)}function F8(e){fi(xl.current);var t=fi(Rr.current),n=Oh(t,e.type);t!==n&&(lt(vl,e),lt(Rr,n))}function j1(e){vl.current===e&&(ft(Rr),ft(vl))}var vt=Yo(0);function Hu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _p=[];function N1(){for(var e=0;e<_p.length;e++)_p[e]._workInProgressVersionPrimary=null;_p.length=0}var su=po.ReactCurrentDispatcher,Op=po.ReactCurrentBatchConfig,Si=0,Ct=null,$t=null,Vt=null,Uu=!1,Ya=!1,Cl=0,Ib=0;function Jt(){throw Error(ie(321))}function V1(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=Op.transition;Op.transition={};try{e(!1),t()}finally{nt=n,Op.transition=r}}function X8(){return Zn().memoizedState}function Fb(e,t,n){var r=Lo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},J8(e))Q8(t,n);else if(n=R8(e,t,n,r),n!==null){var o=cn();fr(n,e,r,o),e3(n,t,r)}}function Ab(e,t,n){var r=Lo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(J8(e))Q8(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,pr(a,s)){var l=t.interleaved;l===null?(o.next=o,F1(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=R8(e,t,o,r),n!==null&&(o=cn(),fr(n,e,r,o),e3(n,t,r))}}function J8(e){var t=e.alternate;return e===Ct||t!==null&&t===Ct}function Q8(e,t){Ya=Uu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function e3(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,b1(e,n)}}var Yu={readContext:Kn,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useInsertionEffect:Jt,useLayoutEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useMutableSource:Jt,useSyncExternalStore:Jt,useId:Jt,unstable_isNewReconciler:!1},Lb={readContext:Kn,useCallback:function(e,t){return Cr().memoizedState=[e,t===void 0?null:t],e},useContext:Kn,useEffect:C2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,au(4194308,4,Y8.bind(null,t,e),n)},useLayoutEffect:function(e,t){return au(4194308,4,e,t)},useInsertionEffect:function(e,t){return au(4,2,e,t)},useMemo:function(e,t){var n=Cr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fb.bind(null,Ct,e),[r.memoizedState,e]},useRef:function(e){var t=Cr();return e={current:e},t.memoizedState=e},useState:x2,useDebugValue:H1,useDeferredValue:function(e){return Cr().memoizedState=e},useTransition:function(){var e=x2(!1),t=e[0];return e=$b.bind(null,e[1]),Cr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ct,o=Cr();if(yt){if(n===void 0)throw Error(ie(407));n=n()}else{if(n=t(),Bt===null)throw Error(ie(349));Si&30||j8(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,C2(V8.bind(null,r,i,e),[e]),r.flags|=2048,wl(9,N8.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Cr(),t=Bt.identifierPrefix;if(yt){var n=Zr,r=Kr;n=(r&~(1<<32-dr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[kr]=t,e[yl]=r,c3(e,t,!1,!1),t.stateNode=e;e:{switch(s=$h(n,r),n){case"dialog":dt("cancel",e),dt("close",e),o=r;break;case"iframe":case"object":case"embed":dt("load",e),o=r;break;case"video":case"audio":for(o=0;oAs&&(t.flags|=128,r=!0,ha(i,!1),t.lanes=4194304)}else{if(!r)if(e=Hu(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ha(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!yt)return Qt(t),null}else 2*Tt()-i.renderingStartTime>As&&n!==1073741824&&(t.flags|=128,r=!0,ha(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Tt(),t.sibling=null,n=vt.current,lt(vt,r?n&1|2:n&1),t):(Qt(t),null);case 22:case 23:return Z1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?En&1073741824&&(Qt(t),t.subtreeFlags&6&&(t.flags|=8192)):Qt(t),null;case 24:return null;case 25:return null}throw Error(ie(156,t.tag))}function Ub(e,t){switch(D1(t),t.tag){case 1:return vn(t.type)&&Lu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $s(),ft(yn),ft(on),N1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return j1(t),null;case 13:if(ft(vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ie(340));Os()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ft(vt),null;case 4:return $s(),null;case 10:return $1(t.type._context),null;case 22:case 23:return Z1(),null;case 24:return null;default:return null}}var Tc=!1,tn=!1,Yb=typeof WeakSet=="function"?WeakSet:Set,be=null;function fs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Et(e,t,r)}else n.current=null}function a0(e,t,n){try{n()}catch(r){Et(e,t,r)}}var R2=!1;function Gb(e,t){if(Hh=Iu,e=m8(),T1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var x;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(x=d.firstChild)!==null;)p=d,d=x;for(;;){if(d===e)break t;if(p===n&&++c===o&&(a=s),p===i&&++u===r&&(l=s),(x=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=x}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uh={focusedElem:e,selectionRange:n},Iu=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var h=g.memoizedProps,E=g.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?h:ir(t.type,h),E);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ie(163))}}catch(w){Et(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,be=e;break}be=t.return}return g=R2,R2=!1,g}function Ga(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&a0(t,n,i)}o=o.next}while(o!==r)}}function Dd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function l0(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function f3(e){var t=e.alternate;t!==null&&(e.alternate=null,f3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kr],delete t[yl],delete t[qh],delete t[Rb],delete t[Db])),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 p3(e){return e.tag===5||e.tag===3||e.tag===4}function D2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||p3(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 c0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Au));else if(r!==4&&(e=e.child,e!==null))for(c0(e,t,n),e=e.sibling;e!==null;)c0(e,t,n),e=e.sibling}function u0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(u0(e,t,n),e=e.sibling;e!==null;)u0(e,t,n),e=e.sibling}var Ut=null,sr=!1;function xo(e,t,n){for(n=n.child;n!==null;)h3(e,t,n),n=n.sibling}function h3(e,t,n){if(Tr&&typeof Tr.onCommitFiberUnmount=="function")try{Tr.onCommitFiberUnmount(wd,n)}catch{}switch(n.tag){case 5:tn||fs(n,t);case 6:var r=Ut,o=sr;Ut=null,xo(e,t,n),Ut=r,sr=o,Ut!==null&&(sr?(e=Ut,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ut.removeChild(n.stateNode));break;case 18:Ut!==null&&(sr?(e=Ut,n=n.stateNode,e.nodeType===8?Rp(e.parentNode,n):e.nodeType===1&&Rp(e,n),fl(e)):Rp(Ut,n.stateNode));break;case 4:r=Ut,o=sr,Ut=n.stateNode.containerInfo,sr=!0,xo(e,t,n),Ut=r,sr=o;break;case 0:case 11:case 14:case 15:if(!tn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&a0(n,t,s),o=o.next}while(o!==r)}xo(e,t,n);break;case 1:if(!tn&&(fs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Et(n,t,a)}xo(e,t,n);break;case 21:xo(e,t,n);break;case 22:n.mode&1?(tn=(r=tn)||n.memoizedState!==null,xo(e,t,n),tn=r):xo(e,t,n);break;default:xo(e,t,n)}}function _2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yb),t.forEach(function(r){var o=nw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function or(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Tt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kb(r/1960))-r,10e?16:e,Mo===null)var r=!1;else{if(e=Mo,Mo=null,Ku=0,Ge&6)throw Error(ie(331));var o=Ge;for(Ge|=4,be=e.current;be!==null;){var i=be,s=i.child;if(be.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lTt()-q1?mi(e,0):G1|=n),xn(e,t)}function w3(e,t){t===0&&(e.mode&1?(t=xc,xc<<=1,!(xc&130023424)&&(xc=4194304)):t=1);var n=cn();e=ao(e,t),e!==null&&(Bl(e,t,n),xn(e,n))}function tw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),w3(e,n)}function nw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ie(314))}r!==null&&r.delete(t),w3(e,n)}var S3;S3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yn.current)gn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gn=!1,Wb(e,t,n);gn=!!(e.flags&131072)}else gn=!1,yt&&t.flags&1048576&&P8(t,Vu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;lu(e,t),e=t.pendingProps;var o=_s(t,on.current);bs(t,n),o=z1(null,t,r,e,o,n);var i=B1();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vn(r)?(i=!0,ju(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,A1(t),o.updater=Td,t.stateNode=o,o._reactInternals=t,e0(t,r,e,n),t=r0(null,t,r,!0,i,n)):(t.tag=0,yt&&i&&R1(t),ln(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(lu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ow(r),e=ir(r,e),o){case 0:t=n0(null,t,r,e,n);break e;case 1:t=P2(null,t,r,e,n);break e;case 11:t=k2(null,t,r,e,n);break e;case 14:t=E2(null,t,r,ir(r.type,e),n);break e}throw Error(ie(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ir(r,o),n0(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ir(r,o),P2(e,t,r,o,n);case 3:e:{if(s3(t),e===null)throw Error(ie(387));r=t.pendingProps,i=t.memoizedState,o=i.element,D8(e,t),Wu(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Fs(Error(ie(423)),t),t=M2(e,t,r,n,o);break e}else if(r!==o){o=Fs(Error(ie(424)),t),t=M2(e,t,r,n,o);break e}else for(Mn=$o(t.stateNode.containerInfo.firstChild),Tn=t,yt=!0,ar=null,n=$8(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Os(),r===o){t=lo(e,t,n);break e}ln(e,t,r,n)}t=t.child}return t;case 5:return F8(t),e===null&&Xh(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Yh(r,o)?s=null:i!==null&&Yh(r,i)&&(t.flags|=32),i3(e,t),ln(e,t,s,n),t.child;case 6:return e===null&&Xh(t),null;case 13:return a3(e,t,n);case 4:return L1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Is(t,null,r,n):ln(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ir(r,o),k2(e,t,r,o,n);case 7:return ln(e,t,t.pendingProps,n),t.child;case 8:return ln(e,t,t.pendingProps.children,n),t.child;case 12:return ln(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,lt(zu,r._currentValue),r._currentValue=s,i!==null)if(pr(i.value,s)){if(i.children===o.children&&!yn.current){t=lo(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=eo(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Jh(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(ie(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Jh(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}ln(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,bs(t,n),o=Kn(o),r=r(o),t.flags|=1,ln(e,t,r,n),t.child;case 14:return r=t.type,o=ir(r,t.pendingProps),o=ir(r.type,o),E2(e,t,r,o,n);case 15:return r3(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ir(r,o),lu(e,t),t.tag=1,vn(r)?(e=!0,ju(t)):e=!1,bs(t,n),O8(t,r,o),e0(t,r,o,n),r0(null,t,r,!0,e,n);case 19:return l3(e,t,n);case 22:return o3(e,t,n)}throw Error(ie(156,t.tag))};function k3(e,t){return Z5(e,t)}function rw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Un(e,t,n,r){return new rw(e,t,n,r)}function J1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ow(e){if(typeof e=="function")return J1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===y1)return 11;if(e===v1)return 14}return 2}function jo(e,t){var n=e.alternate;return n===null?(n=Un(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function du(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")J1(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case rs:return gi(n.children,o,i,t);case g1:s=8,o|=8;break;case kh:return e=Un(12,n,t,o|2),e.elementType=kh,e.lanes=i,e;case Eh:return e=Un(13,n,t,o),e.elementType=Eh,e.lanes=i,e;case Ph:return e=Un(19,n,t,o),e.elementType=Ph,e.lanes=i,e;case I5:return Od(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _5:s=10;break e;case O5:s=9;break e;case y1:s=11;break e;case v1:s=14;break e;case wo:s=16,r=null;break e}throw Error(ie(130,e==null?e:typeof e,""))}return t=Un(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function gi(e,t,n,r){return e=Un(7,e,r,t),e.lanes=n,e}function Od(e,t,n,r){return e=Un(22,e,r,t),e.elementType=I5,e.lanes=n,e.stateNode={isHidden:!1},e}function Lp(e,t,n){return e=Un(6,e,null,t),e.lanes=n,e}function jp(e,t,n){return t=Un(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iw(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vp(0),this.expirationTimes=vp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Q1(e,t,n,r,o,i,s,a,l){return e=new iw(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Un(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},A1(i),e}function sw(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(T3)}catch(e){console.error(e)}}T3(),P5.exports=$n;var Yl=P5.exports;const _c=Cd(Yl);var R3,N2=Yl;R3=N2.createRoot,N2.hydrateRoot;function dw(e){const t=e.items.map(r=>{const o=JSON.parse(r.c);return{description:r.desc,id:r.id,page:r.p,required:r.req,title:r.title,type:r.typ,content:o}}),n={fp:e.settings.fp,rep:e.settings.rep,name:e.settings.name,cfg:JSON.parse(e==null?void 0:e.settings.cfg),lim:e.settings.lim,due:e.settings.due,delay:e.settings.delay,pausable:e.settings.pausable};return{cnt:e.cnt,settings:n,questions:t}}function D3(e,t){return function(){return e.apply(t,arguments)}}const{toString:fw}=Object.prototype,{getPrototypeOf:rm}=Object,Ld=(e=>t=>{const n=fw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ar=e=>(e=e.toLowerCase(),t=>Ld(t)===e),jd=e=>t=>typeof t===e,{isArray:Js}=Array,kl=jd("undefined");function pw(e){return e!==null&&!kl(e)&&e.constructor!==null&&!kl(e.constructor)&&Gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _3=Ar("ArrayBuffer");function hw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_3(e.buffer),t}const mw=jd("string"),Gn=jd("function"),O3=jd("number"),Nd=e=>e!==null&&typeof e=="object",gw=e=>e===!0||e===!1,fu=e=>{if(Ld(e)!=="object")return!1;const t=rm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},yw=Ar("Date"),vw=Ar("File"),xw=Ar("Blob"),Cw=Ar("FileList"),bw=e=>Nd(e)&&Gn(e.pipe),ww=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gn(e.append)&&((t=Ld(e))==="formdata"||t==="object"&&Gn(e.toString)&&e.toString()==="[object FormData]"))},Sw=Ar("URLSearchParams"),kw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Js(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const $3=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,F3=e=>!kl(e)&&e!==$3;function m0(){const{caseless:e}=F3(this)&&this||{},t={},n=(r,o)=>{const i=e&&I3(t,o)||o;fu(t[i])&&fu(r)?t[i]=m0(t[i],r):fu(r)?t[i]=m0({},r):Js(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Gl(t,(o,i)=>{n&&Gn(o)?e[i]=D3(o,n):e[i]=o},{allOwnKeys:r}),e),Pw=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mw=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Tw=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&rm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Rw=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Dw=e=>{if(!e)return null;if(Js(e))return e;let t=e.length;if(!O3(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_w=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&rm(Uint8Array)),Ow=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Iw=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$w=Ar("HTMLFormElement"),Fw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),V2=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Aw=Ar("RegExp"),A3=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Gl(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},Lw=e=>{A3(e,(t,n)=>{if(Gn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Gn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},jw=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Js(e)?r(e):r(String(e).split(t)),n},Nw=()=>{},Vw=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Np="abcdefghijklmnopqrstuvwxyz",z2="0123456789",L3={DIGIT:z2,ALPHA:Np,ALPHA_DIGIT:Np+Np.toUpperCase()+z2},zw=(e=16,t=L3.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Bw(e){return!!(e&&Gn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ww=e=>{const t=new Array(10),n=(r,o)=>{if(Nd(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Js(r)?[]:{};return Gl(r,(s,a)=>{const l=n(s,o+1);!kl(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},Hw=Ar("AsyncFunction"),Uw=e=>e&&(Nd(e)||Gn(e))&&Gn(e.then)&&Gn(e.catch),K={isArray:Js,isArrayBuffer:_3,isBuffer:pw,isFormData:ww,isArrayBufferView:hw,isString:mw,isNumber:O3,isBoolean:gw,isObject:Nd,isPlainObject:fu,isUndefined:kl,isDate:yw,isFile:vw,isBlob:xw,isRegExp:Aw,isFunction:Gn,isStream:bw,isURLSearchParams:Sw,isTypedArray:_w,isFileList:Cw,forEach:Gl,merge:m0,extend:Ew,trim:kw,stripBOM:Pw,inherits:Mw,toFlatObject:Tw,kindOf:Ld,kindOfTest:Ar,endsWith:Rw,toArray:Dw,forEachEntry:Ow,matchAll:Iw,isHTMLForm:$w,hasOwnProperty:V2,hasOwnProp:V2,reduceDescriptors:A3,freezeMethods:Lw,toObjectSet:jw,toCamelCase:Fw,noop:Nw,toFiniteNumber:Vw,findKey:I3,global:$3,isContextDefined:F3,ALPHABET:L3,generateString:zw,isSpecCompliantForm:Bw,toJSONObject:Ww,isAsyncFn:Hw,isThenable:Uw};function Ue(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}K.inherits(Ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const j3=Ue.prototype,N3={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{N3[e]={value:e}});Object.defineProperties(Ue,N3);Object.defineProperty(j3,"isAxiosError",{value:!0});Ue.from=(e,t,n,r,o,i)=>{const s=Object.create(j3);return K.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Ue.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Yw=null;function g0(e){return K.isPlainObject(e)||K.isArray(e)}function V3(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function B2(e,t,n){return e?e.concat(t).map(function(o,i){return o=V3(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Gw(e){return K.isArray(e)&&!e.some(g0)}const qw=K.toFlatObject(K,{},null,function(t){return/^is[A-Z]/.test(t)});function Vd(e,t,n){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=K.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,E){return!K.isUndefined(E[h])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(o))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(K.isDate(g))return g.toISOString();if(!l&&K.isBlob(g))throw new Ue("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(g)||K.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,h,E){let m=g;if(g&&!E&&typeof g=="object"){if(K.endsWith(h,"{}"))h=r?h:h.slice(0,-2),g=JSON.stringify(g);else if(K.isArray(g)&&Gw(g)||(K.isFileList(g)||K.endsWith(h,"[]"))&&(m=K.toArray(g)))return h=V3(h),m.forEach(function(C,w){!(K.isUndefined(C)||C===null)&&t.append(s===!0?B2([h],w,i):s===null?h:h+"[]",c(C))}),!1}return g0(g)?!0:(t.append(B2(E,h,i),c(g)),!1)}const d=[],p=Object.assign(qw,{defaultVisitor:u,convertValue:c,isVisitable:g0});function x(g,h){if(!K.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(g),K.forEach(g,function(m,y){(!(K.isUndefined(m)||m===null)&&o.call(t,m,K.isString(y)?y.trim():y,h,p))===!0&&x(m,h?h.concat(y):[y])}),d.pop()}}if(!K.isObject(e))throw new TypeError("data must be an object");return x(e),t}function W2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function om(e,t){this._pairs=[],e&&Vd(e,this,t)}const z3=om.prototype;z3.append=function(t,n){this._pairs.push([t,n])};z3.toString=function(t){const n=t?function(r){return t.call(this,r,W2)}:W2;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Kw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function B3(e,t,n){if(!t)return e;const r=n&&n.encode||Kw,o=n&&n.serialize;let i;if(o?i=o(t,n):i=K.isURLSearchParams(t)?t.toString():new om(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class H2{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){K.forEach(this.handlers,function(r){r!==null&&t(r)})}}const W3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Zw=typeof URLSearchParams<"u"?URLSearchParams:om,Xw=typeof FormData<"u"?FormData:null,Jw=typeof Blob<"u"?Blob:null,Qw={isBrowser:!0,classes:{URLSearchParams:Zw,FormData:Xw,Blob:Jw},protocols:["http","https","file","blob","url","data"]},H3=typeof window<"u"&&typeof document<"u",e9=(e=>H3&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),t9=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",n9=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:H3,hasStandardBrowserEnv:e9,hasStandardBrowserWebWorkerEnv:t9},Symbol.toStringTag,{value:"Module"})),Pr={...n9,...Qw};function r9(e,t){return Vd(e,new Pr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Pr.isNode&&K.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function o9(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function i9(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&K.isArray(o)?o.length:s,l?(K.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!K.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&K.isArray(o[s])&&(o[s]=i9(o[s])),!a)}if(K.isFormData(e)&&K.isFunction(e.entries)){const n={};return K.forEachEntry(e,(r,o)=>{t(o9(r),o,n,0)}),n}return null}function s9(e,t,n){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const im={transitional:W3,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=K.isObject(t);if(i&&K.isHTMLForm(t)&&(t=new FormData(t)),K.isFormData(t))return o&&o?JSON.stringify(U3(t)):t;if(K.isArrayBuffer(t)||K.isBuffer(t)||K.isStream(t)||K.isFile(t)||K.isBlob(t))return t;if(K.isArrayBufferView(t))return t.buffer;if(K.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return r9(t,this.formSerializer).toString();if((a=K.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Vd(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),s9(t)):t}],transformResponse:[function(t){const n=this.transitional||im.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&K.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Ue.from(a,Ue.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pr.classes.FormData,Blob:Pr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],e=>{im.headers[e]={}});const sm=im,a9=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),l9=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&a9[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},U2=Symbol("internals");function ga(e){return e&&String(e).trim().toLowerCase()}function pu(e){return e===!1||e==null?e:K.isArray(e)?e.map(pu):String(e)}function c9(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const u9=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vp(e,t,n,r,o){if(K.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!K.isString(t)){if(K.isString(r))return t.indexOf(r)!==-1;if(K.isRegExp(r))return r.test(t)}}function d9(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function f9(e,t){const n=K.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class zd{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=ga(l);if(!u)throw new Error("header name must be a non-empty string");const d=K.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=pu(a))}const s=(a,l)=>K.forEach(a,(c,u)=>i(c,u,l));return K.isPlainObject(t)||t instanceof this.constructor?s(t,n):K.isString(t)&&(t=t.trim())&&!u9(t)?s(l9(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=ga(t),t){const r=K.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return c9(o);if(K.isFunction(n))return n.call(this,o,r);if(K.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ga(t),t){const r=K.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Vp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=ga(s),s){const a=K.findKey(r,s);a&&(!n||Vp(r,r[a],a,n))&&(delete r[a],o=!0)}}return K.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Vp(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return K.forEach(this,(o,i)=>{const s=K.findKey(r,i);if(s){n[s]=pu(o),delete n[i];return}const a=t?d9(i):String(i).trim();a!==i&&delete n[i],n[a]=pu(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return K.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&K.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[U2]=this[U2]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=ga(s);r[a]||(f9(o,s),r[a]=!0)}return K.isArray(t)?t.forEach(i):i(t),this}}zd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);K.reduceDescriptors(zd.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});K.freezeMethods(zd);const to=zd;function zp(e,t){const n=this||sm,r=t||n,o=to.from(r.headers);let i=r.data;return K.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Y3(e){return!!(e&&e.__CANCEL__)}function ql(e,t,n){Ue.call(this,e??"canceled",Ue.ERR_CANCELED,t,n),this.name="CanceledError"}K.inherits(ql,Ue,{__CANCEL__:!0});function p9(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ue("Request failed with status code "+n.status,[Ue.ERR_BAD_REQUEST,Ue.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const h9=Pr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];K.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),K.isString(r)&&s.push("path="+r),K.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function m9(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function g9(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function G3(e,t){return e&&!m9(t)?g9(e,t):t}const y9=Pr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=K.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function v9(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function x9(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let d=i,p=0;for(;d!==o;)p+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a),c=i<=s;n=i;const u={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-i)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const C9=typeof XMLHttpRequest<"u",b9=C9&&function(e){return new Promise(function(n,r){let o=e.data;const i=to.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;if(K.isFormData(o)){if(Pr.hasStandardBrowserEnv||Pr.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[h,...E]=u?u.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...E].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+E))}const p=G3(e.baseURL,e.url);d.open(e.method.toUpperCase(),B3(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function x(){if(!d)return;const h=to.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),m={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:e,request:d};p9(function(C){n(C),c()},function(C){r(C),c()},m),d=null}if("onloadend"in d?d.onloadend=x:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(x)},d.onabort=function(){d&&(r(new Ue("Request aborted",Ue.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new Ue("Network Error",Ue.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||W3;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),r(new Ue(E,m.clarifyTimeoutError?Ue.ETIMEDOUT:Ue.ECONNABORTED,e,d)),d=null},Pr.hasStandardBrowserEnv&&(a&&K.isFunction(a)&&(a=a(e)),a||a!==!1&&y9(p))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&h9.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}o===void 0&&i.setContentType(null),"setRequestHeader"in d&&K.forEach(i.toJSON(),function(E,m){d.setRequestHeader(m,E)}),K.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),s&&s!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Y2(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Y2(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=h=>{d&&(r(!h||h.type?new ql(null,e,d):h),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const g=v9(p);if(g&&Pr.protocols.indexOf(g)===-1){r(new Ue("Unsupported protocol "+g+":",Ue.ERR_BAD_REQUEST,e));return}d.send(o||null)})},y0={http:Yw,xhr:b9};K.forEach(y0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const G2=e=>`- ${e}`,w9=e=>K.isFunction(e)||e===null||e===!1,q3={getAdapter:e=>{e=K.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : `+i.map(G2).join(` `):" "+G2(i[0]):"as no adapter specified";throw new Ue("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:y0};function Bp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ql(null,e)}function q2(e){return Bp(e),e.headers=to.from(e.headers),e.data=zp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),q3.getAdapter(e.adapter||sm.adapter)(e).then(function(r){return Bp(e),r.data=zp.call(e,e.transformResponse,r),r.headers=to.from(r.headers),r},function(r){return Y3(r)||(Bp(e),r&&r.response&&(r.response.data=zp.call(e,e.transformResponse,r.response),r.response.headers=to.from(r.response.headers))),Promise.reject(r)})}const K2=e=>e instanceof to?e.toJSON():e;function Ls(e,t){t=t||{};const n={};function r(c,u,d){return K.isPlainObject(c)&&K.isPlainObject(u)?K.merge.call({caseless:d},c,u):K.isPlainObject(u)?K.merge({},u):K.isArray(u)?u.slice():u}function o(c,u,d){if(K.isUndefined(u)){if(!K.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function i(c,u){if(!K.isUndefined(u))return r(void 0,u)}function s(c,u){if(K.isUndefined(u)){if(!K.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u)=>o(K2(c),K2(u),!0)};return K.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,p=d(e[u],t[u],u);K.isUndefined(p)&&d!==a||(n[u]=p)}),n}const K3="1.6.5",am={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{am[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Z2={};am.transitional=function(t,n,r){function o(i,s){return"[Axios v"+K3+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new Ue(o(s," has been removed"+(n?" in "+n:"")),Ue.ERR_DEPRECATED);return n&&!Z2[s]&&(Z2[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function S9(e,t,n){if(typeof e!="object")throw new Ue("options must be an object",Ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new Ue("option "+i+" must be "+l,Ue.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ue("Unknown option "+i,Ue.ERR_BAD_OPTION)}}const v0={assertOptions:S9,validators:am},Co=v0.validators;class Ju{constructor(t){this.defaults=t,this.interceptors={request:new H2,response:new H2}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ls(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&v0.assertOptions(r,{silentJSONParsing:Co.transitional(Co.boolean),forcedJSONParsing:Co.transitional(Co.boolean),clarifyTimeoutError:Co.transitional(Co.boolean)},!1),o!=null&&(K.isFunction(o)?n.paramsSerializer={serialize:o}:v0.assertOptions(o,{encode:Co.function,serialize:Co.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&K.merge(i.common,i[n.method]);i&&K.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=to.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let u,d=0,p;if(!l){const g=[q2.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,c),p=g.length,u=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new ql(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new lm(function(o){t=o}),cancel:t}}}const k9=lm;function E9(e){return function(n){return e.apply(null,n)}}function P9(e){return K.isObject(e)&&e.isAxiosError===!0}const x0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(x0).forEach(([e,t])=>{x0[t]=e});const M9=x0;function Z3(e){const t=new hu(e),n=D3(hu.prototype.request,t);return K.extend(n,hu.prototype,t,{allOwnKeys:!0}),K.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Z3(Ls(e,o))},n}const Rt=Z3(sm);Rt.Axios=hu;Rt.CanceledError=ql;Rt.CancelToken=k9;Rt.isCancel=Y3;Rt.VERSION=K3;Rt.toFormData=Vd;Rt.AxiosError=Ue;Rt.Cancel=Rt.CanceledError;Rt.all=function(t){return Promise.all(t)};Rt.spread=E9;Rt.isAxiosError=P9;Rt.mergeConfig=Ls;Rt.AxiosHeaders=to;Rt.formToJSON=e=>U3(K.isHTMLForm(e)?new FormData(e):e);Rt.getAdapter=q3.getAdapter;Rt.HttpStatusCode=M9;Rt.default=Rt;const C0=e=>{if(Array.isArray(e))return e.map(C0);if(!e||typeof e!="object")return e;const t={};for(const[n,r]of Object.entries(e)){if(typeof r=="string"){t[n]=r.replace("squiz.pena.digital","storage.yandexcloud.net");continue}if(typeof r=="object"){t[n]=C0(r);continue}t[n]=r}return t};let mu="";const Bd=location.hostname==="localhost"?"https://s.hbpn.link":"",cm=({url:e,body:t})=>Rt(e,{data:t,headers:{"X-Sessionkey":mu,"Content-Type":"multipart/form-data"},method:"POST"});async function T9(e){try{const{data:t,headers:n}=await Rt(Bd+"/answer/settings",{method:"POST",headers:{"X-Sessionkey":mu,"Content-Type":"application/json"},data:{quiz_id:e,limit:100,page:0,need_config:!0}}),r=JSON.parse(localStorage.getItem("sessions")||"{}");return typeof r[e]=="number"&&Date.now()-r[e]<864e5?{data:t,isRecentlyCompleted:!0}:(mu=n["x-sessionkey"]?n["x-sessionkey"]:mu,{data:t,isRecentlyCompleted:!1})}catch(t){return{data:null,isRecentlyCompleted:!1,error:t.message}}}async function R9(e){const t=await T9(e),n=t.data;if(t.error)throw new Error(t.error);if(!n)throw new Error("Quiz not found");const r=C0(dw(n)),o=JSON.parse(JSON.stringify({data:r}).replaceAll(/\\" \\"/g,'""').replaceAll(/" "/g,'""')).data;return o.recentlyCompleted=t.isRecentlyCompleted,o}function qt({questionId:e,body:t,qid:n}){const r=new FormData,o=[{question_id:e,content:t}];return r.append("answers",JSON.stringify(o)),console.log("QID",n),r.append("qid",n),cm({url:Bd+"/answer/answer",body:r,method:"POST"})}function D9({questionId:e,body:t,qid:n}){const r=new FormData,o=[{question_id:e,content:"file:"+t.name}];return r.append("answers",JSON.stringify(o)),r.append(t.name,t.file),console.log("QID",n),r.append("qid",n),cm({url:Bd+"/answer/answer",body:r,method:"POST"})}function _9({questionId:e,body:t,qid:n}){const r=new FormData,o=[{question_id:e,content:JSON.stringify(t),result:!0,qid:n}];return r.append("answers",JSON.stringify(o)),r.append("qid",n),cm({url:Bd+"/answer/answer",body:r,method:"POST"})}const O9={black:"#000",white:"#fff"},El=O9,I9={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"},Bi=I9,$9={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"},Wi=$9,F9={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"},Hi=F9,A9={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"},Ui=A9,L9={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"},Yi=L9,j9={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"},ya=j9,N9={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"},V9=N9;function Bo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[o]=e[o]);return n}function X3(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var z9=/^((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|download|draggable|encType|enterKeyHint|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)-.*))$/,B9=X3(function(e){return z9.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function W9(e){if(e.sheet)return e.sheet;for(var t=0;t0?Yt(Qs,--Sn):0,js--,Ot===10&&(js=1,Hd--),Ot}function Rn(){return Ot=Sn2||Ml(Ot)>3?"":" "}function nS(e,t){for(;--t&&Rn()&&!(Ot<48||Ot>102||Ot>57&&Ot<65||Ot>70&&Ot<97););return Kl(e,gu()+(t<6&&Dr()==32&&Rn()==32))}function w0(e){for(;Rn();)switch(Ot){case e:return Sn;case 34:case 39:e!==34&&e!==39&&w0(Ot);break;case 40:e===41&&w0(e);break;case 92:Rn();break}return Sn}function rS(e,t){for(;Rn()&&e+Ot!==57;)if(e+Ot===84&&Dr()===47)break;return"/*"+Kl(t,Sn-1)+"*"+Wd(e===47?e:Rn())}function oS(e){for(;!Ml(Dr());)Rn();return Kl(e,Sn)}function iS(e){return rx(vu("",null,null,null,[""],e=nx(e),0,[0],e))}function vu(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,p=0,x=0,g=0,h=1,E=1,m=1,y=0,C="",w=o,S=i,P=r,k=C;E;)switch(g=y,y=Rn()){case 40:if(g!=108&&Yt(k,d-1)==58){b0(k+=et(yu(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:k+=yu(y);break;case 9:case 10:case 13:case 32:k+=tS(g);break;case 92:k+=nS(gu()-1,7);continue;case 47:switch(Dr()){case 42:case 47:Oc(sS(rS(Rn(),gu()),t,n),l);break;default:k+="/"}break;case 123*h:a[c++]=br(k)*m;case 125*h:case 59:case 0:switch(y){case 0:case 125:E=0;case 59+u:m==-1&&(k=et(k,/\f/g,"")),x>0&&br(k)-d&&Oc(x>32?J2(k+";",r,n,d-1):J2(et(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Oc(P=X2(k,t,n,c,u,o,a,C,w=[],S=[],d),i),y===123)if(u===0)vu(k,t,P,P,w,i,d,a,S);else switch(p===99&&Yt(k,3)===110?100:p){case 100:case 108:case 109:case 115:vu(e,P,P,r&&Oc(X2(e,P,P,0,0,o,a,C,o,w=[],d),S),o,S,d,a,r?w:S);break;default:vu(k,P,P,P,[""],S,0,a,S)}}c=u=x=0,h=m=1,C=k="",d=s;break;case 58:d=1+br(k),x=g;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&eS()==125)continue}switch(k+=Wd(y),y*h){case 38:m=u>0?1:(k+="\f",-1);break;case 44:a[c++]=(br(k)-1)*m,m=1;break;case 64:Dr()===45&&(k+=yu(Rn())),p=Dr(),u=d=br(C=k+=oS(gu())),y++;break;case 45:g===45&&br(k)==2&&(h=0)}}return i}function X2(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,p=o===0?i:[""],x=fm(p),g=0,h=0,E=0;g0?p[m]+" "+y:et(y,/&\f/g,p[m])))&&(l[E++]=C);return Ud(e,t,n,o===0?um:a,l,c,u)}function sS(e,t,n){return Ud(e,t,n,J3,Wd(Q9()),Pl(e,2,-2),0)}function J2(e,t,n,r){return Ud(e,t,n,dm,Pl(e,0,r),Pl(e,r+1,-1),r)}function Ss(e,t){for(var n="",r=fm(e),o=0;o6)switch(Yt(e,t+1)){case 109:if(Yt(e,t+4)!==45)break;case 102:return et(e,/(.+:)(.+)-([^]+)/,"$1"+Qe+"$2-$3$1"+Qu+(Yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~b0(e,"stretch")?ox(et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yt(e,t+1)!==115)break;case 6444:switch(Yt(e,br(e)-3-(~b0(e,"!important")&&10))){case 107:return et(e,":",":"+Qe)+e;case 101:return et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qe+(Yt(e,14)===45?"inline-":"")+"box$3$1"+Qe+"$2$3$1"+en+"$2box$3")+e}break;case 5936:switch(Yt(e,t+11)){case 114:return Qe+e+en+et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qe+e+en+et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qe+e+en+et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qe+e+en+e+e}return e}var mS=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case dm:t.return=ox(t.value,t.length);break;case Q3:return Ss([va(t,{value:et(t.value,"@","@"+Qe)})],o);case um:if(t.length)return J9(t.props,function(i){switch(X9(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ss([va(t,{props:[et(i,/:(read-\w+)/,":"+Qu+"$1")]})],o);case"::placeholder":return Ss([va(t,{props:[et(i,/:(plac\w+)/,":"+Qe+"input-$1")]}),va(t,{props:[et(i,/:(plac\w+)/,":"+Qu+"$1")]}),va(t,{props:[et(i,/:(plac\w+)/,en+"input-$1")]})],o)}return""})}},gS=[mS],yS=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var E=h.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||gS,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var E=h.getAttribute("data-emotion").split(" "),m=1;m=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var RS={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,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},DS=/[A-Z]|^ms/g,_S=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dx=function(t){return t.charCodeAt(1)===45},ey=function(t){return t!=null&&typeof t!="boolean"},Wp=X3(function(e){return dx(e)?e:e.replace(DS,"-$&").toLowerCase()}),ty=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(_S,function(r,o,i){return wr={name:o,styles:i,next:wr},o})}return RS[t]!==1&&!dx(t)&&typeof n=="number"&&n!==0?n+"px":n};function Tl(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return wr={name:n.name,styles:n.styles,next:wr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)wr={name:r.name,styles:r.styles,next:wr},r=r.next;var o=n.styles+";";return o}return OS(e,t,n)}case"function":{if(e!==void 0){var i=wr,s=n(e);return wr=i,Tl(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function OS(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?AS:LS},iy=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},jS=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return cx(n,r,o),$S(function(){return ux(n,r,o)}),null},NS=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=iy(t,n,r),l=a||oy(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,x=1;xt(YS(o)?n:o):t;return f.jsx(FS,{styles:r})}function vx(e,t){return k0(e,t)}const qS=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Gr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function xx(e){if(!Gr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=xx(e[n])}),t}function nn(e,t,n={clone:!0}){const r=n.clone?b({},e):e;return Gr(e)&&Gr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Gr(t[o])&&o in e&&Gr(e[o])?r[o]=nn(e[o],t[o],n):n.clone?r[o]=Gr(t[o])?xx(t[o]):t[o]:r[o]=t[o])}),r}const KS=N.oneOfType([N.func,N.object]),Cx=KS;function oe(e){if(typeof e!="string")throw new Error(Bo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function E0(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function bx(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function xu(e,t){var n,r;return v.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Pt(e){return e&&e.ownerDocument||document}function Mi(e){return Pt(e).defaultView||window}function P0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Lt=typeof window<"u"?v.useLayoutEffect:v.useEffect;let sy=0;function ZS(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(sy+=1,n(`mui-${sy}`))},[t]),r}const ay=wh.useId;function ho(e){if(ay!==void 0){const t=ay();return e??t}return ZS(e)}function kn({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=v.useRef(e!==void 0),[i,s]=v.useState(t),a=o?e:i,l=v.useCallback(c=>{o||s(c)},[]);return[a,l]}function Me(e){const t=v.useRef(e);return Lt(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function tt(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{P0(n,t)})},e)}let rf=!0,M0=!1,ly;const XS={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function JS(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&XS[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function QS(e){e.metaKey||e.altKey||e.ctrlKey||(rf=!0)}function Hp(){rf=!1}function ek(){this.visibilityState==="hidden"&&M0&&(rf=!0)}function tk(e){e.addEventListener("keydown",QS,!0),e.addEventListener("mousedown",Hp,!0),e.addEventListener("pointerdown",Hp,!0),e.addEventListener("touchstart",Hp,!0),e.addEventListener("visibilitychange",ek,!0)}function nk(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return rf||JS(t)}function of(){const e=v.useCallback(o=>{o!=null&&tk(o.ownerDocument)},[]),t=v.useRef(!1);function n(){return t.current?(M0=!0,window.clearTimeout(ly),ly=window.setTimeout(()=>{M0=!1},100),t.current=!1,!0):!1}function r(o){return nk(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function wx(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const rk={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Sx=rk;function ym(e,t){const n=b({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=b({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=b({},i),Object.keys(o).forEach(s=>{n[r][s]=ym(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function De(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const cy=e=>e,ok=()=>{let e=cy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=cy}}},ik=ok(),kx=ik,Ex={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 _e(e,t,n="Mui"){const r=Ex[t];return r?`${n}-${r}`:`${kx.generate(e)}-${t}`}function Pe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=_e(e,o,n)}),r}function li(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const sk=["values","unit","step"],ak=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>b({},n,{[r.key]:r.val}),{})};function lk(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=te(e,sk),i=ak(t),s=Object.keys(i);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,x){const g=s.indexOf(x);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:x)-r/100}${n})`}function u(p){return s.indexOf(p)+1`@media (min-width:${vm[e]}px)`};function hr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||uy;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||uy;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||vm).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function Px(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Mx(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function dk(e,...t){const n=Px(e),r=[n,...t].reduce((o,i)=>nn(o,i),{});return Mx(Object.keys(n),r)}function fk(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function Up({values:e,breakpoints:t,base:n}){const r=n||fk(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function Ns(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ed(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ns(e,n)||r,t&&(o=t(o,r,e)),o}function Dt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Ns(l,r)||{};return hr(s,a,d=>{let p=ed(c,o,d);return d===p&&typeof d=="string"&&(p=ed(c,o,`${t}${d==="default"?"":oe(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function pk(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const hk={m:"margin",p:"padding"},mk={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},dy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gk=pk(e=>{if(e.length>2)if(dy[e])e=dy[e];else return[e];const[t,n]=e.split(""),r=hk[t],o=mk[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),xm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Cm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...xm,...Cm];function Xl(e,t,n,r){var o;const i=(o=Ns(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function bm(e){return Xl(e,"spacing",8)}function Ti(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function yk(e,t){return n=>e.reduce((r,o)=>(r[o]=Ti(t,n),r),{})}function vk(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=gk(n),i=yk(o,r),s=e[n];return hr(e,s,i)}function Tx(e,t){const n=bm(e.theme);return Object.keys(e).map(r=>vk(e,t,r,n)).reduce(Za,{})}function St(e){return Tx(e,xm)}St.propTypes={};St.filterProps=xm;function kt(e){return Tx(e,Cm)}kt.propTypes={};kt.filterProps=Cm;function xk(e=8){if(e.mui)return e;const t=bm({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function sf(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Za(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Wn(e){return typeof e!="number"?e:`${e}px solid`}function er(e,t){return Dt({prop:e,themeKey:"borders",transform:t})}const Ck=er("border",Wn),bk=er("borderTop",Wn),wk=er("borderRight",Wn),Sk=er("borderBottom",Wn),kk=er("borderLeft",Wn),Ek=er("borderColor"),Pk=er("borderTopColor"),Mk=er("borderRightColor"),Tk=er("borderBottomColor"),Rk=er("borderLeftColor"),Dk=er("outline",Wn),_k=er("outlineColor"),af=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Xl(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ti(t,r)});return hr(e,e.borderRadius,n)}return null};af.propTypes={};af.filterProps=["borderRadius"];sf(Ck,bk,wk,Sk,kk,Ek,Pk,Mk,Tk,Rk,af,Dk,_k);const lf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Xl(e.theme,"spacing",8),n=r=>({gap:Ti(t,r)});return hr(e,e.gap,n)}return null};lf.propTypes={};lf.filterProps=["gap"];const cf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Xl(e.theme,"spacing",8),n=r=>({columnGap:Ti(t,r)});return hr(e,e.columnGap,n)}return null};cf.propTypes={};cf.filterProps=["columnGap"];const uf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Xl(e.theme,"spacing",8),n=r=>({rowGap:Ti(t,r)});return hr(e,e.rowGap,n)}return null};uf.propTypes={};uf.filterProps=["rowGap"];const Ok=Dt({prop:"gridColumn"}),Ik=Dt({prop:"gridRow"}),$k=Dt({prop:"gridAutoFlow"}),Fk=Dt({prop:"gridAutoColumns"}),Ak=Dt({prop:"gridAutoRows"}),Lk=Dt({prop:"gridTemplateColumns"}),jk=Dt({prop:"gridTemplateRows"}),Nk=Dt({prop:"gridTemplateAreas"}),Vk=Dt({prop:"gridArea"});sf(lf,cf,uf,Ok,Ik,$k,Fk,Ak,Lk,jk,Nk,Vk);function ks(e,t){return t==="grey"?t:e}const zk=Dt({prop:"color",themeKey:"palette",transform:ks}),Bk=Dt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ks}),Wk=Dt({prop:"backgroundColor",themeKey:"palette",transform:ks});sf(zk,Bk,Wk);function Pn(e){return e<=1&&e!==0?`${e*100}%`:e}const Hk=Dt({prop:"width",transform:Pn}),wm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||vm[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Pn(n)}};return hr(e,e.maxWidth,t)}return null};wm.filterProps=["maxWidth"];const Uk=Dt({prop:"minWidth",transform:Pn}),Yk=Dt({prop:"height",transform:Pn}),Gk=Dt({prop:"maxHeight",transform:Pn}),qk=Dt({prop:"minHeight",transform:Pn});Dt({prop:"size",cssProperty:"width",transform:Pn});Dt({prop:"size",cssProperty:"height",transform:Pn});const Kk=Dt({prop:"boxSizing"});sf(Hk,wm,Uk,Yk,Gk,qk,Kk);const Zk={border:{themeKey:"borders",transform:Wn},borderTop:{themeKey:"borders",transform:Wn},borderRight:{themeKey:"borders",transform:Wn},borderBottom:{themeKey:"borders",transform:Wn},borderLeft:{themeKey:"borders",transform:Wn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Wn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:af},color:{themeKey:"palette",transform:ks},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ks},backgroundColor:{themeKey:"palette",transform:ks},p:{style:kt},pt:{style:kt},pr:{style:kt},pb:{style:kt},pl:{style:kt},px:{style:kt},py:{style:kt},padding:{style:kt},paddingTop:{style:kt},paddingRight:{style:kt},paddingBottom:{style:kt},paddingLeft:{style:kt},paddingX:{style:kt},paddingY:{style:kt},paddingInline:{style:kt},paddingInlineStart:{style:kt},paddingInlineEnd:{style:kt},paddingBlock:{style:kt},paddingBlockStart:{style:kt},paddingBlockEnd:{style:kt},m:{style:St},mt:{style:St},mr:{style:St},mb:{style:St},ml:{style:St},mx:{style:St},my:{style:St},margin:{style:St},marginTop:{style:St},marginRight:{style:St},marginBottom:{style:St},marginLeft:{style:St},marginX:{style:St},marginY:{style:St},marginInline:{style:St},marginInlineStart:{style:St},marginInlineEnd:{style:St},marginBlock:{style:St},marginBlockStart:{style:St},marginBlockEnd:{style:St},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:lf},rowGap:{style:uf},columnGap:{style:cf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pn},maxWidth:{style:wm},minWidth:{transform:Pn},height:{transform:Pn},maxHeight:{transform:Pn},minHeight:{transform:Pn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},df=Zk;function Xk(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Jk(e,t){return typeof e=="function"?e(t):e}function Qk(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=Ns(o,c)||{};return d?d(s):hr(s,r,g=>{let h=ed(p,u,g);return g===h&&typeof g=="string"&&(h=ed(p,u,`${n}${g==="default"?"":oe(g)}`,g)),l===!1?h:{[l]:h}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:df;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=Px(i.breakpoints),d=Object.keys(u);let p=u;return Object.keys(c).forEach(x=>{const g=Jk(c[x],i);if(g!=null)if(typeof g=="object")if(s[x])p=Za(p,e(x,g,i,s));else{const h=hr({theme:i},g,E=>({[x]:E}));Xk(h,g)?p[x]=t({sx:g,theme:i}):p=Za(p,h)}else p=Za(p,e(x,g,i,s))}),Mx(d,p)}return Array.isArray(o)?o.map(a):a(o)}return t}const Jl=Qk();Jl.filterProps=["sx"];const eE=["breakpoints","palette","spacing","shape"];function ff(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=te(e,eE),a=lk(n),l=xk(o);let c=nn({breakpoints:a,direction:"ltr",components:{},palette:b({mode:"light"},r),spacing:l,shape:b({},uk,i)},s);return c=t.reduce((u,d)=>nn(u,d),c),c.unstable_sxConfig=b({},df,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return Jl({sx:d,theme:this})},c}function tE(e){return Object.keys(e).length===0}function pf(e=null){const t=v.useContext(nf);return!t||tE(t)?e:t}const nE=ff();function ea(e=nE){return pf(e)}function rE({styles:e,themeId:t,defaultTheme:n={}}){const r=ea(n),o=typeof e=="function"?e(t&&r[t]||r):e;return f.jsx(GS,{styles:o})}const oE=["sx"],iE=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:df;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Sm(e){const{sx:t}=e,n=te(e,oE),{systemProps:r,otherProps:o}=iE(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return Gr(a)?b({},r,a):r}:i=b({},r,t),b({},o,{sx:i})}function Rx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(Jl);return v.forwardRef(function(l,c){const u=ea(n),d=Sm(l),{className:p,component:x="div"}=d,g=te(d,sE);return f.jsx(i,b({as:x,ref:c,className:ue(p,o?o(r):r),theme:t&&u[t]||u},g))})}const lE=["variant"];function fy(e){return e.length===0}function Dx(e){const{variant:t}=e,n=te(e,lE);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=fy(r)?e[o]:oe(e[o]):r+=`${fy(r)?o:oe(o)}${oe(e[o].toString())}`}),r}const cE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function uE(e){return Object.keys(e).length===0}function dE(e){return typeof e=="string"&&e.charCodeAt(0)>96}const fE=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,td=e=>{let t=0;const n={};return e&&e.forEach(r=>{let o="";typeof r.props=="function"?(o=`callback${t}`,t+=1):o=Dx(r.props),n[o]=r.style}),n},pE=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),td(n)},nd=(e,t,n)=>{const{ownerState:r={}}=e,o=[];let i=0;return n&&n.forEach(s=>{let a=!0;if(typeof s.props=="function"){const l=b({},e,r);a=s.props(l)}else Object.keys(s.props).forEach(l=>{r[l]!==s.props[l]&&e[l]!==s.props[l]&&(a=!1)});a&&(typeof s.props=="function"?o.push(t[`callback${i}`]):o.push(t[Dx(s.props)])),typeof s.props=="function"&&(i+=1)}),o},hE=(e,t,n,r)=>{var o;const i=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return nd(e,t,i)};function Xa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mE=ff(),gE=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Cu({defaultTheme:e,theme:t,themeId:n}){return uE(t)?e:t[n]||t}function yE(e){return e?(t,n)=>n[e]:null}const py=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(b({},t,{theme:Cu(b({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){const s=nd(t,td(i),i);return[o,...s]}return o};function _x(e={}){const{themeId:t,defaultTheme:n=mE,rootShouldForwardProp:r=Xa,slotShouldForwardProp:o=Xa}=e,i=s=>Jl(b({},s,{theme:Cu(b({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{qS(s,w=>w.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:p=yE(gE(c))}=a,x=te(a,cE),g=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,h=d||!1;let E,m=Xa;c==="Root"||c==="root"?m=r:c?m=o:dE(s)&&(m=void 0);const y=vx(s,b({shouldForwardProp:m,label:E},x)),C=(w,...S)=>{const P=S?S.map(D=>{if(typeof D=="function"&&D.__emotion_real!==D)return _=>py({styledArg:D,props:_,defaultTheme:n,themeId:t});if(Gr(D)){let _=D,A;return D&&D.variants&&(A=D.variants,delete _.variants,_=$=>{let R=D;return nd($,td(A),A).forEach(L=>{R=nn(R,L)}),R}),_}return D}):[];let k=w;if(Gr(w)){let D;w&&w.variants&&(D=w.variants,delete k.variants,k=_=>{let A=w;return nd(_,td(D),D).forEach(R=>{A=nn(A,R)}),A})}else typeof w=="function"&&w.__emotion_real!==w&&(k=D=>py({styledArg:w,props:D,defaultTheme:n,themeId:t}));l&&p&&P.push(D=>{const _=Cu(b({},D,{defaultTheme:n,themeId:t})),A=fE(l,_);if(A){const $={};return Object.entries(A).forEach(([R,O])=>{$[R]=typeof O=="function"?O(b({},D,{theme:_})):O}),p(D,$)}return null}),l&&!g&&P.push(D=>{const _=Cu(b({},D,{defaultTheme:n,themeId:t}));return hE(D,pE(l,_),_,l)}),h||P.push(i);const M=P.length-S.length;if(Array.isArray(w)&&M>0){const D=new Array(M).fill("");k=[...w,...D],k.raw=[...w.raw,...D]}const T=y(k,...P);return s.muiName&&(T.muiName=s.muiName),T};return y.withConfig&&(C.withConfig=y.withConfig),C}}const vE=_x();function Ox(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ym(t.components[n].defaultProps,r)}function Ix({props:e,name:t,defaultTheme:n,themeId:r}){let o=ea(n);return r&&(o=o[r]||o),Ox({theme:o,name:t,props:e})}function km(e,t=0,n=1){return li(e,t,n)}function xE(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ri(e){if(e.type)return e;if(e.charAt(0)==="#")return Ri(xE(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Bo(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Bo(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function hf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function CE(e){e=Ri(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),hf({type:a,values:l})}function hy(e){e=Ri(e);let t=e.type==="hsl"||e.type==="hsla"?Ri(CE(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function bE(e,t){const n=hy(e),r=hy(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ne(e,t){return e=Ri(e),t=km(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,hf(e)}function $x(e,t){if(e=Ri(e),t=km(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return hf(e)}function Fx(e,t){if(e=Ri(e),t=km(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return hf(e)}const wE=v.createContext(null),Ax=wE;function Lx(){return v.useContext(Ax)}const SE=typeof Symbol=="function"&&Symbol.for,kE=SE?Symbol.for("mui.nested"):"__THEME_NESTED__";function EE(e,t){return typeof t=="function"?t(e):b({},e,t)}function PE(e){const{children:t,theme:n}=e,r=Lx(),o=v.useMemo(()=>{const i=r===null?n:EE(r,n);return i!=null&&(i[kE]=r!==null),i},[n,r]);return f.jsx(Ax.Provider,{value:o,children:t})}const my={};function gy(e,t,n,r=!1){return v.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?b({},t,{[e]:i}):i;return r?()=>s:s}return e?b({},t,{[e]:n}):b({},t,n)},[e,t,n,r])}function ME(e){const{children:t,theme:n,themeId:r}=e,o=pf(my),i=Lx()||my,s=gy(r,o,n),a=gy(r,i,n,!0);return f.jsx(PE,{theme:a,children:f.jsx(nf.Provider,{value:s,children:t})})}const TE=["component","direction","spacing","divider","children","className","useFlexGap"],RE=ff(),DE=vE("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function _E(e){return Ix({props:e,name:"MuiStack",defaultTheme:RE})}function OE(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],$E=({ownerState:e,theme:t})=>{let n=b({display:"flex",flexDirection:"column"},hr({theme:t},Up({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=bm(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=Up({values:e.direction,base:o}),s=Up({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const p=c>0?i[u[c-1]]:"column";i[l]=p}}),n=nn(n,hr({theme:t},s,(l,c)=>e.useFlexGap?{gap:Ti(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${IE(c?i[c]:e.direction)}`]:Ti(r,l)}}))}return n=dk(t.breakpoints,n),n};function FE(e={}){const{createStyledComponent:t=DE,useThemeProps:n=_E,componentName:r="MuiStack"}=e,o=()=>De({root:["root"]},l=>_e(r,l),{}),i=t($E);return v.forwardRef(function(l,c){const u=n(l),d=Sm(u),{component:p="div",direction:x="column",spacing:g=0,divider:h,children:E,className:m,useFlexGap:y=!1}=d,C=te(d,TE),w={direction:x,spacing:g,useFlexGap:y},S=o();return f.jsx(i,b({as:p,ownerState:w,ref:c,className:ue(S.root,m)},C,{children:h?OE(E,h):E}))})}function AE(e,t){return b({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const LE=["mode","contrastThreshold","tonalOffset"],yy={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:El.white,default:El.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}},Yp={text:{primary:El.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:El.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}};function vy(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Fx(e.main,o):t==="dark"&&(e.dark=$x(e.main,i)))}function jE(e="light"){return e==="dark"?{main:Hi[200],light:Hi[50],dark:Hi[400]}:{main:Hi[700],light:Hi[400],dark:Hi[800]}}function NE(e="light"){return e==="dark"?{main:Wi[200],light:Wi[50],dark:Wi[400]}:{main:Wi[500],light:Wi[300],dark:Wi[700]}}function VE(e="light"){return e==="dark"?{main:Bi[500],light:Bi[300],dark:Bi[700]}:{main:Bi[700],light:Bi[400],dark:Bi[800]}}function zE(e="light"){return e==="dark"?{main:Ui[400],light:Ui[300],dark:Ui[700]}:{main:Ui[700],light:Ui[500],dark:Ui[900]}}function BE(e="light"){return e==="dark"?{main:Yi[400],light:Yi[300],dark:Yi[700]}:{main:Yi[800],light:Yi[500],dark:Yi[900]}}function WE(e="light"){return e==="dark"?{main:ya[400],light:ya[300],dark:ya[700]}:{main:"#ed6c02",light:ya[500],dark:ya[900]}}function HE(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=te(e,LE),i=e.primary||jE(t),s=e.secondary||NE(t),a=e.error||VE(t),l=e.info||zE(t),c=e.success||BE(t),u=e.warning||WE(t);function d(h){return bE(h,Yp.text.primary)>=n?Yp.text.primary:yy.text.primary}const p=({color:h,name:E,mainShade:m=500,lightShade:y=300,darkShade:C=700})=>{if(h=b({},h),!h.main&&h[m]&&(h.main=h[m]),!h.hasOwnProperty("main"))throw new Error(Bo(11,E?` (${E})`:"",m));if(typeof h.main!="string")throw new Error(Bo(12,E?` (${E})`:"",JSON.stringify(h.main)));return vy(h,"light",y,r),vy(h,"dark",C,r),h.contrastText||(h.contrastText=d(h.main)),h},x={dark:Yp,light:yy};return nn(b({common:b({},El),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:V9,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},x[t]),o)}const UE=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function YE(e){return Math.round(e*1e5)/1e5}const xy={textTransform:"uppercase"},Cy='"Roboto", "Helvetica", "Arial", sans-serif';function GE(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Cy,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=te(n,UE),x=o/14,g=d||(m=>`${m/c*x}rem`),h=(m,y,C,w,S)=>b({fontFamily:r,fontWeight:m,fontSize:g(y),lineHeight:C},r===Cy?{letterSpacing:`${YE(w/y)}em`}:{},S,u),E={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(s,48,1.167,0),h4:h(s,34,1.235,.25),h5:h(s,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(s,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(s,16,1.5,.15),body2:h(s,14,1.43,.15),button:h(a,14,1.75,.4,xy),caption:h(s,12,1.66,.4),overline:h(s,12,2.66,1,xy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nn(b({htmlFontSize:c,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},E),p,{clone:!1})}const qE=.2,KE=.14,ZE=.12;function mt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${KE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ZE})`].join(",")}const XE=["none",mt(0,2,1,-1,0,1,1,0,0,1,3,0),mt(0,3,1,-2,0,2,2,0,0,1,5,0),mt(0,3,3,-2,0,3,4,0,0,1,8,0),mt(0,2,4,-1,0,4,5,0,0,1,10,0),mt(0,3,5,-1,0,5,8,0,0,1,14,0),mt(0,3,5,-1,0,6,10,0,0,1,18,0),mt(0,4,5,-2,0,7,10,1,0,2,16,1),mt(0,5,5,-3,0,8,10,1,0,3,14,2),mt(0,5,6,-3,0,9,12,1,0,3,16,2),mt(0,6,6,-3,0,10,14,1,0,4,18,3),mt(0,6,7,-4,0,11,15,1,0,4,20,3),mt(0,7,8,-4,0,12,17,2,0,5,22,4),mt(0,7,8,-4,0,13,19,2,0,5,24,4),mt(0,7,9,-4,0,14,21,2,0,5,26,4),mt(0,8,9,-5,0,15,22,2,0,6,28,5),mt(0,8,10,-5,0,16,24,2,0,6,30,5),mt(0,8,11,-5,0,17,26,2,0,6,32,5),mt(0,9,11,-5,0,18,28,2,0,7,34,6),mt(0,9,12,-6,0,19,29,2,0,7,36,6),mt(0,10,13,-6,0,20,31,3,0,8,38,7),mt(0,10,13,-6,0,21,33,3,0,8,40,7),mt(0,10,14,-6,0,22,35,3,0,8,42,7),mt(0,11,14,-7,0,23,36,3,0,9,44,8),mt(0,11,15,-7,0,24,38,3,0,9,46,8)],JE=["duration","easing","delay"],QE={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)"},eP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function by(e){return`${Math.round(e)}ms`}function tP(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function nP(e){const t=b({},QE,e.easing),n=b({},eP,e.duration);return b({getAutoHeightDuration:tP,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return te(i,JE),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:by(s)} ${a} ${typeof l=="string"?l:by(l)}`).join(",")}},e,{easing:t,duration:n})}const rP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},oP=rP,iP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function sn(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=te(e,iP);if(e.vars)throw new Error(Bo(18));const a=HE(r),l=ff(e);let c=nn(l,{mixins:AE(l.breakpoints,n),palette:a,shadows:XE.slice(),typography:GE(a,i),transitions:nP(o),zIndex:b({},oP)});return c=nn(c,s),c=t.reduce((u,d)=>nn(u,d),c),c.unstable_sxConfig=b({},df,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return Jl({sx:d,theme:this})},c}function sP(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function aP(e){return parseFloat(e)}const lP=sn(),mf=lP;function Le(){const e=ea(mf);return e[Pi]||e}function Re({props:e,name:t}){return Ix({props:e,name:t,defaultTheme:mf,themeId:Pi})}const an=e=>Xa(e)&&e!=="classes",gf=Xa,Y=_x({themeId:Pi,defaultTheme:mf,rootShouldForwardProp:an}),cP=["theme"];function jx(e){let{theme:t}=e,n=te(e,cP);const r=t[Pi];return f.jsx(ME,b({},n,{themeId:r?Pi:void 0,theme:r||t}))}const wy=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function uP(e){return _e("MuiSvgIcon",e)}Pe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dP=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],fP=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${oe(t)}`,`fontSize${oe(n)}`]};return De(o,uP,r)},pP=Y("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${oe(n.color)}`],t[`fontSize${oe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,l,c,u,d,p,x,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),T0=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,x=te(r,dP),g=v.isValidElement(o)&&o.type==="svg",h=b({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:g}),E={};u||(E.viewBox=p);const m=fP(h);return f.jsxs(pP,b({as:a,className:ue(m.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},E,x,g&&o.props,{ownerState:h,children:[g?o.props.children:o,d?f.jsx("title",{children:d}):null]}))});T0.muiName="SvgIcon";function Xt(e,t){function n(r,o){return f.jsx(T0,b({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=T0.muiName,v.memo(v.forwardRef(n))}var it={};/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Em=Symbol.for("react.element"),Pm=Symbol.for("react.portal"),yf=Symbol.for("react.fragment"),vf=Symbol.for("react.strict_mode"),xf=Symbol.for("react.profiler"),Cf=Symbol.for("react.provider"),bf=Symbol.for("react.context"),hP=Symbol.for("react.server_context"),wf=Symbol.for("react.forward_ref"),Sf=Symbol.for("react.suspense"),kf=Symbol.for("react.suspense_list"),Ef=Symbol.for("react.memo"),Pf=Symbol.for("react.lazy"),mP=Symbol.for("react.offscreen"),Nx;Nx=Symbol.for("react.module.reference");function tr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Em:switch(e=e.type,e){case yf:case xf:case vf:case Sf:case kf:return e;default:switch(e=e&&e.$$typeof,e){case hP:case bf:case wf:case Pf:case Ef:case Cf:return e;default:return t}}case Pm:return t}}}it.ContextConsumer=bf;it.ContextProvider=Cf;it.Element=Em;it.ForwardRef=wf;it.Fragment=yf;it.Lazy=Pf;it.Memo=Ef;it.Portal=Pm;it.Profiler=xf;it.StrictMode=vf;it.Suspense=Sf;it.SuspenseList=kf;it.isAsyncMode=function(){return!1};it.isConcurrentMode=function(){return!1};it.isContextConsumer=function(e){return tr(e)===bf};it.isContextProvider=function(e){return tr(e)===Cf};it.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Em};it.isForwardRef=function(e){return tr(e)===wf};it.isFragment=function(e){return tr(e)===yf};it.isLazy=function(e){return tr(e)===Pf};it.isMemo=function(e){return tr(e)===Ef};it.isPortal=function(e){return tr(e)===Pm};it.isProfiler=function(e){return tr(e)===xf};it.isStrictMode=function(e){return tr(e)===vf};it.isSuspense=function(e){return tr(e)===Sf};it.isSuspenseList=function(e){return tr(e)===kf};it.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===yf||e===xf||e===vf||e===Sf||e===kf||e===mP||typeof e=="object"&&e!==null&&(e.$$typeof===Pf||e.$$typeof===Ef||e.$$typeof===Cf||e.$$typeof===bf||e.$$typeof===wf||e.$$typeof===Nx||e.getModuleId!==void 0)};it.typeOf=tr;function R0(e,t){return R0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},R0(e,t)}function Mm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,R0(e,t)}function gP(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function yP(e,t){e.classList?e.classList.add(t):gP(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Sy(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function vP(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Sy(e.className,t):e.setAttribute("class",Sy(e.className&&e.className.baseVal||"",t))}const ky={disabled:!1},rd=Fe.createContext(null);var Vx=function(t){return t.scrollTop},Na="unmounted",oi="exited",ii="entering",Qi="entered",D0="exiting",mo=function(e){Mm(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=oi,i.appearStatus=ii):l=Qi:r.unmountOnExit||r.mountOnEnter?l=Na:l=oi,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Na?{status:oi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==ii&&s!==Qi&&(i=ii):(s===ii||s===Qi)&&(i=D0)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ii){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:_c.findDOMNode(this);s&&Vx(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===oi&&this.setState({status:Na})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[_c.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),p=a?d.appear:d.enter;if(!o&&!s||ky.disabled){this.safeSetState({status:Qi},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ii},function(){i.props.onEntering(c,u),i.onTransitionEnd(p,function(){i.safeSetState({status:Qi},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:_c.findDOMNode(this);if(!i||ky.disabled){this.safeSetState({status:oi},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:D0},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:oi},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:_c.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Na)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=te(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Fe.createElement(rd.Provider,{value:null},typeof s=="function"?s(o,a):Fe.cloneElement(Fe.Children.only(s),a))},t}(Fe.Component);mo.contextType=rd;mo.propTypes={};function Gi(){}mo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gi,onEntering:Gi,onEntered:Gi,onExit:Gi,onExiting:Gi,onExited:Gi};mo.UNMOUNTED=Na;mo.EXITED=oi;mo.ENTERING=ii;mo.ENTERED=Qi;mo.EXITING=D0;const Tm=mo;var xP=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return yP(t,r)})},Gp=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return vP(t,r)})},Rm=function(e){Mm(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),s=0;se.scrollTop;function od(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function MP(e){return _e("MuiPaper",e)}Pe("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 TP=["className","component","elevation","square","variant"],RP=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return De(i,MP,o)},DP=Y("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return b({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&b({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ne("#fff",wy(t.elevation))}, ${Ne("#fff",wy(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),_P=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=te(r,TP),u=b({},r,{component:i,elevation:s,square:a,variant:l}),d=RP(u);return f.jsx(DP,b({as:i,ownerState:u,className:ue(d.root,o),ref:n},c))}),Ql=_P;function _r(e){return typeof e=="string"}function OP(e,t,n){return e===void 0||_r(e)?t:b({},t,{ownerState:b({},t.ownerState,n)})}function IP(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const $P={disableDefaultClasses:!1},FP=v.createContext($P);function AP(e){const{disableDefaultClasses:t}=v.useContext(FP);return n=>t?"":e(n)}function Ja(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Im(e,t,n){return typeof e=="function"?e(t,n):e}function Ey(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function LP(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const x=ue(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=b({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=b({},n,o,r);return x.length>0&&(h.className=x),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:void 0}}const s=Ja(b({},o,r)),a=Ey(r),l=Ey(o),c=t(s),u=ue(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=b({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=b({},c,n,l,a);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}const jP=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function We(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=te(e,jP),a=i?{}:Im(r,o),{props:l,internalRef:c}=LP(b({},s,{externalSlotProps:a})),u=tt(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return OP(n,b({},l,{ref:u}),o)}function NP(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:c}=e,[u,d]=v.useState(!1),p=ue(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),x={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},g=ue(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&d(!0),v.useEffect(()=>{if(!a&&l!=null){const h=setTimeout(l,c);return()=>{clearTimeout(h)}}},[l,a,c]),f.jsx("span",{className:p,style:x,children:f.jsx("span",{className:g})})}const Vn=Pe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),VP=["center","classes","className"];let Mf=e=>e,Py,My,Ty,Ry;const _0=550,zP=80,BP=Zl(Py||(Py=Mf` 0% { transform: scale(0); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.3; } `)),WP=Zl(My||(My=Mf` 0% { opacity: 1; } 100% { opacity: 0; } `)),HP=Zl(Ty||(Ty=Mf` 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } `)),UP=Y("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),YP=Y(NP,{name:"MuiTouchRipple",slot:"Ripple"})(Ry||(Ry=Mf` opacity: 0; position: absolute; &.${0} { opacity: 0.3; transform: scale(1); animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } &.${0} { animation-duration: ${0}ms; } & .${0} { opacity: 1; display: block; width: 100%; height: 100%; border-radius: 50%; background-color: currentColor; } & .${0} { opacity: 0; animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } & .${0} { position: absolute; /* @noflip */ left: 0px; top: 0; animation-name: ${0}; animation-duration: 2500ms; animation-timing-function: ${0}; animation-iteration-count: infinite; animation-delay: 200ms; } `),Vn.rippleVisible,BP,_0,({theme:e})=>e.transitions.easing.easeInOut,Vn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Vn.child,Vn.childLeaving,WP,_0,({theme:e})=>e.transitions.easing.easeInOut,Vn.childPulsate,HP,({theme:e})=>e.transitions.easing.easeInOut),GP=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=te(r,VP),[l,c]=v.useState([]),u=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=v.useRef(!1),x=v.useRef(0),g=v.useRef(null),h=v.useRef(null);v.useEffect(()=>()=>{x.current&&clearTimeout(x.current)},[]);const E=v.useCallback(w=>{const{pulsate:S,rippleX:P,rippleY:k,rippleSize:M,cb:T}=w;c(D=>[...D,f.jsx(YP,{classes:{ripple:ue(i.ripple,Vn.ripple),rippleVisible:ue(i.rippleVisible,Vn.rippleVisible),ripplePulsate:ue(i.ripplePulsate,Vn.ripplePulsate),child:ue(i.child,Vn.child),childLeaving:ue(i.childLeaving,Vn.childLeaving),childPulsate:ue(i.childPulsate,Vn.childPulsate)},timeout:_0,pulsate:S,rippleX:P,rippleY:k,rippleSize:M},u.current)]),u.current+=1,d.current=T},[i]),m=v.useCallback((w={},S={},P=()=>{})=>{const{pulsate:k=!1,center:M=o||S.pulsate,fakeElement:T=!1}=S;if((w==null?void 0:w.type)==="mousedown"&&p.current){p.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(p.current=!0);const D=T?null:h.current,_=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,$,R;if(M||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)A=Math.round(_.width/2),$=Math.round(_.height/2);else{const{clientX:O,clientY:L}=w.touches&&w.touches.length>0?w.touches[0]:w;A=Math.round(O-_.left),$=Math.round(L-_.top)}if(M)R=Math.sqrt((2*_.width**2+_.height**2)/3),R%2===0&&(R+=1);else{const O=Math.max(Math.abs((D?D.clientWidth:0)-A),A)*2+2,L=Math.max(Math.abs((D?D.clientHeight:0)-$),$)*2+2;R=Math.sqrt(O**2+L**2)}w!=null&&w.touches?g.current===null&&(g.current=()=>{E({pulsate:k,rippleX:A,rippleY:$,rippleSize:R,cb:P})},x.current=setTimeout(()=>{g.current&&(g.current(),g.current=null)},zP)):E({pulsate:k,rippleX:A,rippleY:$,rippleSize:R,cb:P})},[o,E]),y=v.useCallback(()=>{m({},{pulsate:!0})},[m]),C=v.useCallback((w,S)=>{if(clearTimeout(x.current),(w==null?void 0:w.type)==="touchend"&&g.current){g.current(),g.current=null,x.current=setTimeout(()=>{C(w,S)});return}g.current=null,c(P=>P.length>0?P.slice(1):P),d.current=S},[]);return v.useImperativeHandle(n,()=>({pulsate:y,start:m,stop:C}),[y,m,C]),f.jsx(UP,b({className:ue(Vn.root,i.root,s),ref:h},a,{children:f.jsx(Om,{component:null,exit:!0,children:l})}))}),qP=GP;function KP(e){return _e("MuiButtonBase",e)}const ZP=Pe("MuiButtonBase",["root","disabled","focusVisible"]),XP=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],JP=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=De({root:["root",t&&"disabled",n&&"focusVisible"]},KP,o);return n&&r&&(s.root+=` ${r}`),s},QP=Y("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${ZP.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),eM=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:x="a",onBlur:g,onClick:h,onContextMenu:E,onDragLeave:m,onFocus:y,onFocusVisible:C,onKeyDown:w,onKeyUp:S,onMouseDown:P,onMouseLeave:k,onMouseUp:M,onTouchEnd:T,onTouchMove:D,onTouchStart:_,tabIndex:A=0,TouchRippleProps:$,touchRippleRef:R,type:O}=r,L=te(r,XP),V=v.useRef(null),I=v.useRef(null),F=tt(I,R),{isFocusVisibleRef:W,onFocus:se,onBlur:B,ref:H}=of(),[z,ne]=v.useState(!1);c&&z&&ne(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{ne(!0),V.current.focus()}}),[]);const[ce,q]=v.useState(!1);v.useEffect(()=>{q(!0)},[]);const me=ce&&!u&&!c;v.useEffect(()=>{z&&p&&!u&&ce&&I.current.pulsate()},[u,p,z,ce]);function Se(ye,qe,Ve=d){return Me(He=>(qe&&qe(He),!Ve&&I.current&&I.current[ye](He),!0))}const Ee=Se("start",P),re=Se("stop",E),ee=Se("stop",m),j=Se("stop",M),G=Se("stop",ye=>{z&&ye.preventDefault(),k&&k(ye)}),Z=Se("start",_),xe=Se("stop",T),Ie=Se("stop",D),le=Se("stop",ye=>{B(ye),W.current===!1&&ne(!1),g&&g(ye)},!1),pe=Me(ye=>{V.current||(V.current=ye.currentTarget),se(ye),W.current===!0&&(ne(!0),C&&C(ye)),y&&y(ye)}),U=()=>{const ye=V.current;return l&&l!=="button"&&!(ye.tagName==="A"&&ye.href)},Q=v.useRef(!1),we=Me(ye=>{p&&!Q.current&&z&&I.current&&ye.key===" "&&(Q.current=!0,I.current.stop(ye,()=>{I.current.start(ye)})),ye.target===ye.currentTarget&&U()&&ye.key===" "&&ye.preventDefault(),w&&w(ye),ye.target===ye.currentTarget&&U()&&ye.key==="Enter"&&!c&&(ye.preventDefault(),h&&h(ye))}),$e=Me(ye=>{p&&ye.key===" "&&I.current&&z&&!ye.defaultPrevented&&(Q.current=!1,I.current.stop(ye,()=>{I.current.pulsate(ye)})),S&&S(ye),h&&ye.target===ye.currentTarget&&U()&&ye.key===" "&&!ye.defaultPrevented&&h(ye)});let ke=l;ke==="button"&&(L.href||L.to)&&(ke=x);const X={};ke==="button"?(X.type=O===void 0?"button":O,X.disabled=c):(!L.href&&!L.to&&(X.role="button"),c&&(X["aria-disabled"]=c));const he=tt(n,H,V),ve=b({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:A,focusVisible:z}),ge=JP(ve);return f.jsxs(QP,b({as:ke,className:ue(ge.root,a),ownerState:ve,onBlur:le,onClick:h,onContextMenu:re,onFocus:pe,onKeyDown:we,onKeyUp:$e,onMouseDown:Ee,onMouseLeave:G,onMouseUp:j,onDragLeave:ee,onTouchEnd:xe,onTouchMove:Ie,onTouchStart:Z,ref:he,tabIndex:c?-1:A,type:O},X,L,{children:[s,me?f.jsx(qP,b({ref:F,center:i},$)):null]}))}),Ir=eM;function tM(e){return _e("MuiIconButton",e)}const nM=Pe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),rM=["edge","children","className","color","disabled","disableFocusRipple","size"],oM=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${oe(r)}`,o&&`edge${oe(o)}`,`size${oe(i)}`]};return De(s,tM,t)},iM=Y(Ir,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${oe(n.color)}`],n.edge&&t[`edge${oe(n.edge)}`],t[`size${oe(n.size)}`]]}})(({theme:e,ownerState:t})=>b({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return b({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&b({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":b({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${nM.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),sM=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,d=te(r,rM),p=b({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:u}),x=oM(p);return f.jsx(iM,b({className:ue(x.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},d,{children:i}))}),ta=sM;function aM(e){return _e("MuiTypography",e)}Pe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const lM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],cM=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${oe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return De(a,aM,s)},uM=Y("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${oe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>b({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Dy={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},fM=e=>dM[e]||e,pM=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTypography"}),o=fM(r.color),i=Sm(b({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:p="body1",variantMapping:x=Dy}=i,g=te(i,lM),h=b({},i,{align:s,color:o,className:a,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:p,variantMapping:x}),E=l||(d?"p":x[p]||Dy[p])||"span",m=cM(h);return f.jsx(uM,b({as:E,ref:n,ownerState:h,className:ue(m.root,a)},g))}),Te=pM,Bx="base";function hM(e){return`${Bx}--${e}`}function mM(e,t){return`${Bx}-${e}-${t}`}function Wx(e,t){const n=Ex[t];return n?hM(n):mM(e,t)}function gM(e,t){const n={};return t.forEach(r=>{n[r]=Wx(e,r)}),n}const yM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function vM(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function xM(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function CM(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||xM(e))}function bM(e){const t=[],n=[];return Array.from(e.querySelectorAll(yM)).forEach((r,o)=>{const i=vM(r);i===-1||!CM(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function wM(){return!0}function Hx(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=bM,isEnabled:s=wM,open:a}=e,l=v.useRef(!1),c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),p=v.useRef(null),x=v.useRef(!1),g=v.useRef(null),h=tt(t.ref,g),E=v.useRef(null);v.useEffect(()=>{!a||!g.current||(x.current=!n)},[n,a]),v.useEffect(()=>{if(!a||!g.current)return;const C=Pt(g.current);return g.current.contains(C.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),x.current&&g.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),v.useEffect(()=>{if(!a||!g.current)return;const C=Pt(g.current),w=k=>{E.current=k,!(r||!s()||k.key!=="Tab")&&C.activeElement===g.current&&k.shiftKey&&(l.current=!0,u.current&&u.current.focus())},S=()=>{const k=g.current;if(k===null)return;if(!C.hasFocus()||!s()||l.current){l.current=!1;return}if(k.contains(C.activeElement)||r&&C.activeElement!==c.current&&C.activeElement!==u.current)return;if(C.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!x.current)return;let M=[];if((C.activeElement===c.current||C.activeElement===u.current)&&(M=i(g.current)),M.length>0){var T,D;const _=!!((T=E.current)!=null&&T.shiftKey&&((D=E.current)==null?void 0:D.key)==="Tab"),A=M[0],$=M[M.length-1];typeof A!="string"&&typeof $!="string"&&(_?$.focus():A.focus())}else k.focus()};C.addEventListener("focusin",S),C.addEventListener("keydown",w,!0);const P=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(P),C.removeEventListener("focusin",S),C.removeEventListener("keydown",w,!0)}},[n,r,o,s,a,i]);const m=C=>{d.current===null&&(d.current=C.relatedTarget),x.current=!0,p.current=C.target;const w=t.props.onFocus;w&&w(C)},y=C=>{d.current===null&&(d.current=C.relatedTarget),x.current=!0};return f.jsxs(v.Fragment,{children:[f.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:h,onFocus:m}),f.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var Cn="top",Xn="bottom",Jn="right",bn="left",$m="auto",ec=[Cn,Xn,Jn,bn],Vs="start",Rl="end",SM="clippingParents",Ux="viewport",xa="popper",kM="reference",_y=ec.reduce(function(e,t){return e.concat([t+"-"+Vs,t+"-"+Rl])},[]),Yx=[].concat(ec,[$m]).reduce(function(e,t){return e.concat([t,t+"-"+Vs,t+"-"+Rl])},[]),EM="beforeRead",PM="read",MM="afterRead",TM="beforeMain",RM="main",DM="afterMain",_M="beforeWrite",OM="write",IM="afterWrite",$M=[EM,PM,MM,TM,RM,DM,_M,OM,IM];function $r(e){return e?(e.nodeName||"").toLowerCase():null}function _n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Di(e){var t=_n(e).Element;return e instanceof t||e instanceof Element}function qn(e){var t=_n(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fm(e){if(typeof ShadowRoot>"u")return!1;var t=_n(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function FM(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!qn(i)||!$r(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function AM(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!qn(o)||!$r(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const LM={name:"applyStyles",enabled:!0,phase:"write",fn:FM,effect:AM,requires:["computeStyles"]};function Or(e){return e.split("-")[0]}var yi=Math.max,id=Math.min,zs=Math.round;function O0(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Gx(){return!/^((?!chrome|android).)*safari/i.test(O0())}function Bs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&qn(e)&&(o=e.offsetWidth>0&&zs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zs(r.height)/e.offsetHeight||1);var s=Di(e)?_n(e):window,a=s.visualViewport,l=!Gx()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,p=r.height/i;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function Am(e){var t=Bs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function qx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function co(e){return _n(e).getComputedStyle(e)}function jM(e){return["table","td","th"].indexOf($r(e))>=0}function qo(e){return((Di(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tf(e){return $r(e)==="html"?e:e.assignedSlot||e.parentNode||(Fm(e)?e.host:null)||qo(e)}function Oy(e){return!qn(e)||co(e).position==="fixed"?null:e.offsetParent}function NM(e){var t=/firefox/i.test(O0()),n=/Trident/i.test(O0());if(n&&qn(e)){var r=co(e);if(r.position==="fixed")return null}var o=Tf(e);for(Fm(o)&&(o=o.host);qn(o)&&["html","body"].indexOf($r(o))<0;){var i=co(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function tc(e){for(var t=_n(e),n=Oy(e);n&&jM(n)&&co(n).position==="static";)n=Oy(n);return n&&($r(n)==="html"||$r(n)==="body"&&co(n).position==="static")?t:n||NM(e)||t}function Lm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qa(e,t,n){return yi(e,id(t,n))}function VM(e,t,n){var r=Qa(e,t,n);return r>n?n:r}function Kx(){return{top:0,right:0,bottom:0,left:0}}function Zx(e){return Object.assign({},Kx(),e)}function Xx(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var zM=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Zx(typeof t!="number"?t:Xx(t,ec))};function BM(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Or(n.placement),l=Lm(a),c=[bn,Jn].indexOf(a)>=0,u=c?"height":"width";if(!(!i||!s)){var d=zM(o.padding,n),p=Am(i),x=l==="y"?Cn:bn,g=l==="y"?Xn:Jn,h=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],E=s[l]-n.rects.reference[l],m=tc(i),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,C=h/2-E/2,w=d[x],S=y-p[u]-d[g],P=y/2-p[u]/2+C,k=Qa(w,P,S),M=l;n.modifiersData[r]=(t={},t[M]=k,t.centerOffset=k-P,t)}}function WM(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||qx(t.elements.popper,o)&&(t.elements.arrow=o))}const HM={name:"arrow",enabled:!0,phase:"main",fn:BM,effect:WM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ws(e){return e.split("-")[1]}var UM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function YM(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zs(n*o)/o||0,y:zs(r*o)/o||0}}function Iy(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,x=p===void 0?0:p,g=s.y,h=g===void 0?0:g,E=typeof u=="function"?u({x,y:h}):{x,y:h};x=E.x,h=E.y;var m=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),C=bn,w=Cn,S=window;if(c){var P=tc(n),k="clientHeight",M="clientWidth";if(P===_n(n)&&(P=qo(n),co(P).position!=="static"&&a==="absolute"&&(k="scrollHeight",M="scrollWidth")),P=P,o===Cn||(o===bn||o===Jn)&&i===Rl){w=Xn;var T=d&&P===S&&S.visualViewport?S.visualViewport.height:P[k];h-=T-r.height,h*=l?1:-1}if(o===bn||(o===Cn||o===Xn)&&i===Rl){C=Jn;var D=d&&P===S&&S.visualViewport?S.visualViewport.width:P[M];x-=D-r.width,x*=l?1:-1}}var _=Object.assign({position:a},c&&UM),A=u===!0?YM({x,y:h},_n(n)):{x,y:h};if(x=A.x,h=A.y,l){var $;return Object.assign({},_,($={},$[w]=y?"0":"",$[C]=m?"0":"",$.transform=(S.devicePixelRatio||1)<=1?"translate("+x+"px, "+h+"px)":"translate3d("+x+"px, "+h+"px, 0)",$))}return Object.assign({},_,(t={},t[w]=y?h+"px":"",t[C]=m?x+"px":"",t.transform="",t))}function GM(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Or(t.placement),variation:Ws(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Iy(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Iy(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const qM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:GM,data:{}};var Ic={passive:!0};function KM(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=_n(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,Ic)}),a&&l.addEventListener("resize",n.update,Ic),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Ic)}),a&&l.removeEventListener("resize",n.update,Ic)}}const ZM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:KM,data:{}};var XM={left:"right",right:"left",bottom:"top",top:"bottom"};function bu(e){return e.replace(/left|right|bottom|top/g,function(t){return XM[t]})}var JM={start:"end",end:"start"};function $y(e){return e.replace(/start|end/g,function(t){return JM[t]})}function jm(e){var t=_n(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Nm(e){return Bs(qo(e)).left+jm(e).scrollLeft}function QM(e,t){var n=_n(e),r=qo(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Gx();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Nm(e),y:l}}function eT(e){var t,n=qo(e),r=jm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=yi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=yi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Nm(e),l=-r.scrollTop;return co(o||n).direction==="rtl"&&(a+=yi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Vm(e){var t=co(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Jx(e){return["html","body","#document"].indexOf($r(e))>=0?e.ownerDocument.body:qn(e)&&Vm(e)?e:Jx(Tf(e))}function el(e,t){var n;t===void 0&&(t=[]);var r=Jx(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=_n(r),s=o?[i].concat(i.visualViewport||[],Vm(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(el(Tf(s)))}function I0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tT(e,t){var n=Bs(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Fy(e,t,n){return t===Ux?I0(QM(e,n)):Di(t)?tT(t,n):I0(eT(qo(e)))}function nT(e){var t=el(Tf(e)),n=["absolute","fixed"].indexOf(co(e).position)>=0,r=n&&qn(e)?tc(e):e;return Di(r)?t.filter(function(o){return Di(o)&&qx(o,r)&&$r(o)!=="body"}):[]}function rT(e,t,n,r){var o=t==="clippingParents"?nT(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var u=Fy(e,c,r);return l.top=yi(u.top,l.top),l.right=id(u.right,l.right),l.bottom=id(u.bottom,l.bottom),l.left=yi(u.left,l.left),l},Fy(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Qx(e){var t=e.reference,n=e.element,r=e.placement,o=r?Or(r):null,i=r?Ws(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Cn:l={x:s,y:t.y-n.height};break;case Xn:l={x:s,y:t.y+t.height};break;case Jn:l={x:t.x+t.width,y:a};break;case bn:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?Lm(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Vs:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Rl:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Dl(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?SM:a,c=n.rootBoundary,u=c===void 0?Ux:c,d=n.elementContext,p=d===void 0?xa:d,x=n.altBoundary,g=x===void 0?!1:x,h=n.padding,E=h===void 0?0:h,m=Zx(typeof E!="number"?E:Xx(E,ec)),y=p===xa?kM:xa,C=e.rects.popper,w=e.elements[g?y:p],S=rT(Di(w)?w:w.contextElement||qo(e.elements.popper),l,u,s),P=Bs(e.elements.reference),k=Qx({reference:P,element:C,strategy:"absolute",placement:o}),M=I0(Object.assign({},C,k)),T=p===xa?M:P,D={top:S.top-T.top+m.top,bottom:T.bottom-S.bottom+m.bottom,left:S.left-T.left+m.left,right:T.right-S.right+m.right},_=e.modifiersData.offset;if(p===xa&&_){var A=_[o];Object.keys(D).forEach(function($){var R=[Jn,Xn].indexOf($)>=0?1:-1,O=[Cn,Xn].indexOf($)>=0?"y":"x";D[$]+=A[O]*R})}return D}function oT(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Yx:l,u=Ws(r),d=u?a?_y:_y.filter(function(g){return Ws(g)===u}):ec,p=d.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=d);var x=p.reduce(function(g,h){return g[h]=Dl(e,{placement:h,boundary:o,rootBoundary:i,padding:s})[Or(h)],g},{});return Object.keys(x).sort(function(g,h){return x[g]-x[h]})}function iT(e){if(Or(e)===$m)return[];var t=bu(e);return[$y(e),t,$y(t)]}function sT(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,x=n.flipVariations,g=x===void 0?!0:x,h=n.allowedAutoPlacements,E=t.options.placement,m=Or(E),y=m===E,C=l||(y||!g?[bu(E)]:iT(E)),w=[E].concat(C).reduce(function(z,ne){return z.concat(Or(ne)===$m?oT(t,{placement:ne,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:h}):ne)},[]),S=t.rects.reference,P=t.rects.popper,k=new Map,M=!0,T=w[0],D=0;D=0,O=R?"width":"height",L=Dl(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),V=R?$?Jn:bn:$?Xn:Cn;S[O]>P[O]&&(V=bu(V));var I=bu(V),F=[];if(i&&F.push(L[A]<=0),a&&F.push(L[V]<=0,L[I]<=0),F.every(function(z){return z})){T=_,M=!1;break}k.set(_,F)}if(M)for(var W=g?3:1,se=function(ne){var ce=w.find(function(q){var me=k.get(q);if(me)return me.slice(0,ne).every(function(Se){return Se})});if(ce)return T=ce,"break"},B=W;B>0;B--){var H=se(B);if(H==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const aT={name:"flip",enabled:!0,phase:"main",fn:sT,requiresIfExists:["offset"],data:{_skip:!1}};function Ay(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ly(e){return[Cn,Jn,Xn,bn].some(function(t){return e[t]>=0})}function lT(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Dl(t,{elementContext:"reference"}),a=Dl(t,{altBoundary:!0}),l=Ay(s,r),c=Ay(a,o,i),u=Ly(l),d=Ly(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const cT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lT};function uT(e,t,n){var r=Or(e),o=[bn,Cn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[bn,Jn].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function dT(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Yx.reduce(function(u,d){return u[d]=uT(d,t.rects,i),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const fT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dT};function pT(e){var t=e.state,n=e.name;t.modifiersData[n]=Qx({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const hT={name:"popperOffsets",enabled:!0,phase:"read",fn:pT,data:{}};function mT(e){return e==="x"?"y":"x"}function gT(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,x=p===void 0?!0:p,g=n.tetherOffset,h=g===void 0?0:g,E=Dl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),m=Or(t.placement),y=Ws(t.placement),C=!y,w=Lm(m),S=mT(w),P=t.modifiersData.popperOffsets,k=t.rects.reference,M=t.rects.popper,T=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,D=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(P){if(i){var $,R=w==="y"?Cn:bn,O=w==="y"?Xn:Jn,L=w==="y"?"height":"width",V=P[w],I=V+E[R],F=V-E[O],W=x?-M[L]/2:0,se=y===Vs?k[L]:M[L],B=y===Vs?-M[L]:-k[L],H=t.elements.arrow,z=x&&H?Am(H):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Kx(),ce=ne[R],q=ne[O],me=Qa(0,k[L],z[L]),Se=C?k[L]/2-W-me-ce-D.mainAxis:se-me-ce-D.mainAxis,Ee=C?-k[L]/2+W+me+q+D.mainAxis:B+me+q+D.mainAxis,re=t.elements.arrow&&tc(t.elements.arrow),ee=re?w==="y"?re.clientTop||0:re.clientLeft||0:0,j=($=_==null?void 0:_[w])!=null?$:0,G=V+Se-j-ee,Z=V+Ee-j,xe=Qa(x?id(I,G):I,V,x?yi(F,Z):F);P[w]=xe,A[w]=xe-V}if(a){var Ie,le=w==="x"?Cn:bn,pe=w==="x"?Xn:Jn,U=P[S],Q=S==="y"?"height":"width",we=U+E[le],$e=U-E[pe],ke=[Cn,bn].indexOf(m)!==-1,X=(Ie=_==null?void 0:_[S])!=null?Ie:0,he=ke?we:U-k[Q]-M[Q]-X+D.altAxis,ve=ke?U+k[Q]+M[Q]-X-D.altAxis:$e,ge=x&&ke?VM(he,U,ve):Qa(x?he:we,U,x?ve:$e);P[S]=ge,A[S]=ge-U}t.modifiersData[r]=A}}const yT={name:"preventOverflow",enabled:!0,phase:"main",fn:gT,requiresIfExists:["offset"]};function vT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xT(e){return e===_n(e)||!qn(e)?jm(e):vT(e)}function CT(e){var t=e.getBoundingClientRect(),n=zs(t.width)/e.offsetWidth||1,r=zs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function bT(e,t,n){n===void 0&&(n=!1);var r=qn(t),o=qn(t)&&CT(t),i=qo(t),s=Bs(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(($r(t)!=="body"||Vm(i))&&(a=xT(t)),qn(t)?(l=Bs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Nm(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function wT(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function ST(e){var t=wT(e);return $M.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function kT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ET(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var jy={placement:"bottom",modifiers:[],strategy:"absolute"};function Ny(){for(var e=arguments.length,t=new Array(e),n=0;n{i||a(RT(o)||document.body)},[o,i]),Lt(()=>{if(s&&!i)return P0(n,s),()=>{P0(n,null)}},[n,s,i]),i){if(v.isValidElement(r)){const c={ref:l};return v.cloneElement(r,c)}return f.jsx(v.Fragment,{children:r})}return f.jsx(v.Fragment,{children:s&&Yl.createPortal(r,s)})}),t6="Popper";function DT(e){return Wx(t6,e)}gM(t6,["root"]);const _T=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],OT=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function IT(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function $0(e){return typeof e=="function"?e():e}function $T(e){return e.nodeType!==void 0}const FT=()=>De({root:["root"]},AP(DT)),AT={},LT=v.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:x={},slots:g={},TransitionProps:h}=t,E=te(t,_T),m=v.useRef(null),y=tt(m,n),C=v.useRef(null),w=tt(C,p),S=v.useRef(w);Lt(()=>{S.current=w},[w]),v.useImperativeHandle(p,()=>C.current,[]);const P=IT(u,s),[k,M]=v.useState(P),[T,D]=v.useState($0(o));v.useEffect(()=>{C.current&&C.current.forceUpdate()}),v.useEffect(()=>{o&&D($0(o))},[o]),Lt(()=>{if(!T||!c)return;const O=I=>{M(I.placement)};let L=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{O(I)}}];l!=null&&(L=L.concat(l)),d&&d.modifiers!=null&&(L=L.concat(d.modifiers));const V=TT(T,m.current,b({placement:P},d,{modifiers:L}));return S.current(V),()=>{V.destroy(),S.current(null)}},[T,a,l,c,d,P]);const _={placement:k};h!==null&&(_.TransitionProps=h);const A=FT(),$=(r=g.root)!=null?r:"div",R=We({elementType:$,externalSlotProps:x.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:A.root});return f.jsx($,b({},R,{children:typeof i=="function"?i(_):i}))}),jT=v.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=AT,popperRef:x,style:g,transition:h=!1,slotProps:E={},slots:m={}}=t,y=te(t,OT),[C,w]=v.useState(!0),S=()=>{w(!1)},P=()=>{w(!0)};if(!l&&!u&&(!h||C))return null;let k;if(i)k=i;else if(r){const D=$0(r);k=D&&$T(D)?Pt(D).body:Pt(null).body}const M=!u&&l&&(!h||C)?"none":void 0,T=h?{in:u,onEnter:S,onExited:P}:void 0;return f.jsx(e6,{disablePortal:a,container:k,children:f.jsx(LT,b({anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:h?!C:u,placement:d,popperOptions:p,popperRef:x,slotProps:E,slots:m},y,{style:b({position:"fixed",top:0,left:0,display:M},g),TransitionProps:T,children:o}))})});function NT(e){const t=Pt(e);return t.body===e?Mi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function tl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Vy(e){return parseInt(Mi(e).getComputedStyle(e).paddingRight,10)||0}function VT(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function zy(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!VT(s);a&&l&&tl(s,o)})}function qp(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function zT(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(NT(r)){const s=wx(Pt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Vy(r)+s}px`;const a=Pt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Vy(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Pt(r).body;else{const s=r.parentElement,a=Mi(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function BT(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class WT{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&tl(t.modalRef,!1);const o=BT(n);zy(n,t.mount,t.modalRef,o,!0);const i=qp(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=qp(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=zT(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=qp(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&tl(t.modalRef,n),zy(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&tl(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function HT(e){return typeof e=="function"?e():e}function UT(e){return e?e.props.hasOwnProperty("in"):!1}const YT=new WT;function GT(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=YT,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,p=v.useRef({}),x=v.useRef(null),g=v.useRef(null),h=tt(g,d),[E,m]=v.useState(!u),y=UT(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>Pt(x.current),S=()=>(p.current.modalRef=g.current,p.current.mount=x.current,p.current),P=()=>{o.mount(S(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},k=Me(()=>{const L=HT(t)||w().body;o.add(S(),L),g.current&&P()}),M=v.useCallback(()=>o.isTopModal(S()),[o]),T=Me(L=>{x.current=L,L&&(u&&M()?P():g.current&&tl(g.current,C))}),D=v.useCallback(()=>{o.remove(S(),C)},[C,o]);v.useEffect(()=>()=>{D()},[D]),v.useEffect(()=>{u?k():(!y||!i)&&D()},[u,D,y,i,k]);const _=L=>V=>{var I;(I=L.onKeyDown)==null||I.call(L,V),!(V.key!=="Escape"||V.which===229||!M())&&(n||(V.stopPropagation(),c&&c(V,"escapeKeyDown")))},A=L=>V=>{var I;(I=L.onClick)==null||I.call(L,V),V.target===V.currentTarget&&c&&c(V,"backdropClick")};return{getRootProps:(L={})=>{const V=Ja(e);delete V.onTransitionEnter,delete V.onTransitionExited;const I=b({},V,L);return b({role:"presentation"},I,{onKeyDown:_(I),ref:h})},getBackdropProps:(L={})=>{const V=L;return b({"aria-hidden":!0},V,{onClick:A(V),open:u})},getTransitionProps:()=>{const L=()=>{m(!1),s&&s()},V=()=>{m(!0),a&&a(),i&&D()};return{onEnter:E0(L,l==null?void 0:l.props.onEnter),onExited:E0(V,l==null?void 0:l.props.onExited)}},rootRef:h,portalRef:T,isTopModal:M,exited:E,hasTransition:y}}const qT=2;function n6(e,t){return e-t}function By(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},QT=e=>e;let Lc;function Hy(){return Lc===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Lc=CSS.supports("touch-action","none"):Lc=!0),Lc}function eR(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:p="horizontal",rootRef:x,scale:g=QT,step:h=1,tabIndex:E,value:m}=e,y=v.useRef(),[C,w]=v.useState(-1),[S,P]=v.useState(-1),[k,M]=v.useState(!1),T=v.useRef(0),[D,_]=kn({controlled:m,default:n??l,name:"Slider"}),A=u&&((X,he,ve)=>{const ge=X.nativeEvent||X,ye=new ge.constructor(ge.type,ge);Object.defineProperty(ye,"target",{writable:!0,value:{value:he,name:c}}),u(ye,he,ve)}),$=Array.isArray(D);let R=$?D.slice().sort(n6):[D];R=R.map(X=>X==null?l:li(X,l,a));const O=s===!0&&h!==null?[...Array(Math.floor((a-l)/h)+1)].map((X,he)=>({value:l+h*he})):s||[],L=O.map(X=>X.value),{isFocusVisibleRef:V,onBlur:I,onFocus:F,ref:W}=of(),[se,B]=v.useState(-1),H=v.useRef(),z=tt(W,H),ne=tt(x,z),ce=X=>he=>{var ve;const ge=Number(he.currentTarget.getAttribute("data-index"));F(he),V.current===!0&&B(ge),P(ge),X==null||(ve=X.onFocus)==null||ve.call(X,he)},q=X=>he=>{var ve;I(he),V.current===!1&&B(-1),P(-1),X==null||(ve=X.onBlur)==null||ve.call(X,he)};Lt(()=>{if(r&&H.current.contains(document.activeElement)){var X;(X=document.activeElement)==null||X.blur()}},[r]),r&&C!==-1&&w(-1),r&&se!==-1&&B(-1);const me=X=>he=>{var ve;(ve=X.onChange)==null||ve.call(X,he);const ge=Number(he.currentTarget.getAttribute("data-index")),ye=R[ge],qe=L.indexOf(ye);let Ve=he.target.valueAsNumber;if(O&&h==null){const He=L[L.length-1];Ve>He?Ve=He:Ve{const{current:ve}=H,{width:ge,height:ye,bottom:qe,left:Ve}=ve.getBoundingClientRect();let He;Ee.indexOf("vertical")===0?He=(qe-X.y)/ye:He=(X.x-Ve)/ge,Ee.indexOf("-reverse")!==-1&&(He=1-He);let fe;if(fe=KT(He,l,a),h)fe=XT(fe,h,l);else{const ut=By(L,fe);fe=L[ut]}fe=li(fe,l,a);let je=0;if($){he?je=Se.current:je=By(R,fe),o&&(fe=li(fe,R[je-1]||-1/0,R[je+1]||1/0));const ut=fe;fe=Wy({values:R,newValue:fe,index:je}),o&&he||(je=fe.indexOf(ut),Se.current=je)}return{newValue:fe,activeIndex:je}},ee=Me(X=>{const he=$c(X,y);if(!he)return;if(T.current+=1,X.type==="mousemove"&&X.buttons===0){j(X);return}const{newValue:ve,activeIndex:ge}=re({finger:he,move:!0});Fc({sliderRef:H,activeIndex:ge,setActive:w}),_(ve),!k&&T.current>qT&&M(!0),A&&!Ac(ve,D)&&A(X,ve,ge)}),j=Me(X=>{const he=$c(X,y);if(M(!1),!he)return;const{newValue:ve}=re({finger:he,move:!0});w(-1),X.type==="touchend"&&P(-1),d&&d(X,ve),y.current=void 0,Z()}),G=Me(X=>{if(r)return;Hy()||X.preventDefault();const he=X.changedTouches[0];he!=null&&(y.current=he.identifier);const ve=$c(X,y);if(ve!==!1){const{newValue:ye,activeIndex:qe}=re({finger:ve});Fc({sliderRef:H,activeIndex:qe,setActive:w}),_(ye),A&&!Ac(ye,D)&&A(X,ye,qe)}T.current=0;const ge=Pt(H.current);ge.addEventListener("touchmove",ee,{passive:!0}),ge.addEventListener("touchend",j,{passive:!0})}),Z=v.useCallback(()=>{const X=Pt(H.current);X.removeEventListener("mousemove",ee),X.removeEventListener("mouseup",j),X.removeEventListener("touchmove",ee),X.removeEventListener("touchend",j)},[j,ee]);v.useEffect(()=>{const{current:X}=H;return X.addEventListener("touchstart",G,{passive:Hy()}),()=>{X.removeEventListener("touchstart",G),Z()}},[Z,G]),v.useEffect(()=>{r&&Z()},[r,Z]);const xe=X=>he=>{var ve;if((ve=X.onMouseDown)==null||ve.call(X,he),r||he.defaultPrevented||he.button!==0)return;he.preventDefault();const ge=$c(he,y);if(ge!==!1){const{newValue:qe,activeIndex:Ve}=re({finger:ge});Fc({sliderRef:H,activeIndex:Ve,setActive:w}),_(qe),A&&!Ac(qe,D)&&A(he,qe,Ve)}T.current=0;const ye=Pt(H.current);ye.addEventListener("mousemove",ee,{passive:!0}),ye.addEventListener("mouseup",j)},Ie=sd($?R[0]:l,l,a),le=sd(R[R.length-1],l,a)-Ie,pe=(X={})=>{const he=Ja(X),ve={onMouseDown:xe(he||{})},ge=b({},he,ve);return b({},X,{ref:ne},ge)},U=X=>he=>{var ve;(ve=X.onMouseOver)==null||ve.call(X,he);const ge=Number(he.currentTarget.getAttribute("data-index"));P(ge)},Q=X=>he=>{var ve;(ve=X.onMouseLeave)==null||ve.call(X,he),P(-1)};return{active:C,axis:Ee,axisProps:JT,dragging:k,focusedThumbIndex:se,getHiddenInputProps:(X={})=>{var he;const ve=Ja(X),ge={onChange:me(ve||{}),onFocus:ce(ve||{}),onBlur:q(ve||{})},ye=b({},ve,ge);return b({tabIndex:E,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":g(a),"aria-valuemin":g(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(he=e.step)!=null?he:void 0,disabled:r},X,ye,{style:b({},Sx,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:pe,getThumbProps:(X={})=>{const he=Ja(X),ve={onMouseOver:U(he||{}),onMouseLeave:Q(he||{})};return b({},X,he,ve)},marks:O,open:S,range:$,rootRef:ne,trackLeap:le,trackOffset:Ie,values:R,getThumbStyle:X=>({pointerEvents:C!==-1&&C!==X?"none":void 0})}}const tR=["onChange","maxRows","minRows","style","value"];function jc(e){return parseInt(e,10)||0}const nR={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Uy(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const rR=v.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,l=te(t,tR),{current:c}=v.useRef(a!=null),u=v.useRef(null),d=tt(n,u),p=v.useRef(null),x=v.useRef(0),[g,h]=v.useState({outerHeightStyle:0}),E=v.useCallback(()=>{const w=u.current,P=Mi(w).getComputedStyle(w);if(P.width==="0px")return{outerHeightStyle:0};const k=p.current;k.style.width=P.width,k.value=w.value||t.placeholder||"x",k.value.slice(-1)===` `&&(k.value+=" ");const M=P.boxSizing,T=jc(P.paddingBottom)+jc(P.paddingTop),D=jc(P.borderBottomWidth)+jc(P.borderTopWidth),_=k.scrollHeight;k.value="x";const A=k.scrollHeight;let $=_;i&&($=Math.max(Number(i)*A,$)),o&&($=Math.min(Number(o)*A,$)),$=Math.max($,A);const R=$+(M==="border-box"?T+D:0),O=Math.abs($-_)<=1;return{outerHeightStyle:R,overflow:O}},[o,i,t.placeholder]),m=(w,S)=>{const{outerHeightStyle:P,overflow:k}=S;return x.current<20&&(P>0&&Math.abs((w.outerHeightStyle||0)-P)>1||w.overflow!==k)?(x.current+=1,{overflow:k,outerHeightStyle:P}):w},y=v.useCallback(()=>{const w=E();Uy(w)||h(S=>m(S,w))},[E]);Lt(()=>{const w=()=>{const _=E();Uy(_)||Yl.flushSync(()=>{h(A=>m(A,_))})},S=()=>{x.current=0,w()};let P;const k=bx(S),M=u.current,T=Mi(M);T.addEventListener("resize",k);let D;return typeof ResizeObserver<"u"&&(D=new ResizeObserver(S),D.observe(M)),()=>{k.clear(),cancelAnimationFrame(P),T.removeEventListener("resize",k),D&&D.disconnect()}},[E]),Lt(()=>{y()}),v.useEffect(()=>{x.current=0},[a]);const C=w=>{x.current=0,c||y(),r&&r(w)};return f.jsxs(v.Fragment,{children:[f.jsx("textarea",b({value:a,onChange:C,ref:d,rows:i,style:b({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},s)},l)),f.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:b({},nR.shadow,s,{paddingTop:0,paddingBottom:0})})]})}),oR=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],iR=Y(jT,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sR=v.forwardRef(function(t,n){var r;const o=pf(),i=Re({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:x,open:g,placement:h,popperOptions:E,popperRef:m,transition:y,slots:C,slotProps:w}=i,S=te(i,oR),P=(r=C==null?void 0:C.root)!=null?r:l==null?void 0:l.Root,k=b({anchorEl:s,container:u,disablePortal:d,keepMounted:p,modifiers:x,open:g,placement:h,popperOptions:E,popperRef:m,transition:y},S);return f.jsx(iR,b({as:a,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:w??c},k,{ref:n}))}),aR=sR,lR=Xt(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function cR(e){return _e("MuiChip",e)}const uR=Pe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Ke=uR,dR=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],fR=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${oe(r)}`,`color${oe(o)}`,a&&"clickable",a&&`clickableColor${oe(o)}`,s&&"deletable",s&&`deletableColor${oe(o)}`,`${l}${oe(o)}`],label:["label",`label${oe(r)}`],avatar:["avatar",`avatar${oe(r)}`,`avatarColor${oe(o)}`],icon:["icon",`icon${oe(r)}`,`iconColor${oe(i)}`],deleteIcon:["deleteIcon",`deleteIcon${oe(r)}`,`deleteIconColor${oe(o)}`,`deleteIcon${oe(l)}Color${oe(o)}`]};return De(c,cR,t)},pR=Y("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${Ke.avatar}`]:t.avatar},{[`& .${Ke.avatar}`]:t[`avatar${oe(a)}`]},{[`& .${Ke.avatar}`]:t[`avatarColor${oe(r)}`]},{[`& .${Ke.icon}`]:t.icon},{[`& .${Ke.icon}`]:t[`icon${oe(a)}`]},{[`& .${Ke.icon}`]:t[`iconColor${oe(o)}`]},{[`& .${Ke.deleteIcon}`]:t.deleteIcon},{[`& .${Ke.deleteIcon}`]:t[`deleteIcon${oe(a)}`]},{[`& .${Ke.deleteIcon}`]:t[`deleteIconColor${oe(r)}`]},{[`& .${Ke.deleteIcon}`]:t[`deleteIcon${oe(l)}Color${oe(r)}`]},t.root,t[`size${oe(a)}`],t[`color${oe(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${oe(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${oe(r)}`],t[l],t[`${l}${oe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return b({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ke.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ke.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Ke.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ke.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ke.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ke.icon}`]:b({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&b({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Ke.deleteIcon}`]:b({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ne(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ne(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ne(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>b({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>b({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ke.avatar}`]:{marginLeft:4},[`& .${Ke.avatarSmall}`]:{marginLeft:2},[`& .${Ke.icon}`]:{marginLeft:4},[`& .${Ke.iconSmall}`]:{marginLeft:2},[`& .${Ke.deleteIcon}`]:{marginRight:5},[`& .${Ke.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ne(e.palette[t.color].main,.7)}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ne(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Ke.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ne(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),hR=Y("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${oe(r)}`]]}})(({ownerState:e})=>b({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Yy(e){return e.key==="Backspace"||e.key==="Delete"}const mR=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:x,onDelete:g,onKeyDown:h,onKeyUp:E,size:m="medium",variant:y="filled",tabIndex:C,skipFocusWhenDisabled:w=!1}=r,S=te(r,dR),P=v.useRef(null),k=tt(P,n),M=F=>{F.stopPropagation(),g&&g(F)},T=F=>{F.currentTarget===F.target&&Yy(F)&&F.preventDefault(),h&&h(F)},D=F=>{F.currentTarget===F.target&&(g&&Yy(F)?g(F):F.key==="Escape"&&P.current&&P.current.blur()),E&&E(F)},_=s!==!1&&x?!0:s,A=_||g?Ir:l||"div",$=b({},r,{component:A,disabled:u,size:m,color:a,iconColor:v.isValidElement(d)&&d.props.color||a,onDelete:!!g,clickable:_,variant:y}),R=fR($),O=A===Ir?b({component:l||"div",focusVisibleClassName:R.focusVisible},g&&{disableRipple:!0}):{};let L=null;g&&(L=c&&v.isValidElement(c)?v.cloneElement(c,{className:ue(c.props.className,R.deleteIcon),onClick:M}):f.jsx(lR,{className:ue(R.deleteIcon),onClick:M}));let V=null;o&&v.isValidElement(o)&&(V=v.cloneElement(o,{className:ue(R.avatar,o.props.className)}));let I=null;return d&&v.isValidElement(d)&&(I=v.cloneElement(d,{className:ue(R.icon,d.props.className)})),f.jsxs(pR,b({as:A,className:ue(R.root,i),disabled:_&&u?!0:void 0,onClick:x,onKeyDown:T,onKeyUp:D,ref:k,tabIndex:w&&u?-1:C,ownerState:$},O,S,{children:[V||I,f.jsx(hR,{className:ue(R.label),ownerState:$,children:p}),L]}))}),gR=mR;function Ko({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const yR=v.createContext(void 0),Rf=yR;function Lr(){return v.useContext(Rf)}function r6(e){return f.jsx(rE,b({},e,{defaultTheme:mf,themeId:Pi}))}function Gy(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ad(e,t=!1){return e&&(Gy(e.value)&&e.value!==""||t&&Gy(e.defaultValue)&&e.defaultValue!=="")}function vR(e){return e.startAdornment}function xR(e){return _e("MuiInputBase",e)}const CR=Pe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Hs=CR,bR=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Df=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${oe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},_f=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},wR=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:x,type:g}=e,h={root:["root",`color${oe(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",p&&p!=="medium"&&`size${oe(p)}`,u&&"multiline",x&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",x&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return De(h,xR,t)},Of=Y("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Df})(({theme:e,ownerState:t})=>b({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&b({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),If=Y("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_f})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=b({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return b({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Hs.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Hs.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),SR=f.jsx(r6,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),kR=v.forwardRef(function(t,n){var r;const o=Re({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:x,endAdornment:g,fullWidth:h=!1,id:E,inputComponent:m="input",inputProps:y={},inputRef:C,maxRows:w,minRows:S,multiline:P=!1,name:k,onBlur:M,onChange:T,onClick:D,onFocus:_,onKeyDown:A,onKeyUp:$,placeholder:R,readOnly:O,renderSuffix:L,rows:V,slotProps:I={},slots:F={},startAdornment:W,type:se="text",value:B}=o,H=te(o,bR),z=y.value!=null?y.value:B,{current:ne}=v.useRef(z!=null),ce=v.useRef(),q=v.useCallback(ge=>{},[]),me=tt(ce,C,y.ref,q),[Se,Ee]=v.useState(!1),re=Lr(),ee=Ko({props:o,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ee.focused=re?re.focused:Se,v.useEffect(()=>{!re&&p&&Se&&(Ee(!1),M&&M())},[re,p,Se,M]);const j=re&&re.onFilled,G=re&&re.onEmpty,Z=v.useCallback(ge=>{ad(ge)?j&&j():G&&G()},[j,G]);Lt(()=>{ne&&Z({value:z})},[z,Z,ne]);const xe=ge=>{if(ee.disabled){ge.stopPropagation();return}_&&_(ge),y.onFocus&&y.onFocus(ge),re&&re.onFocus?re.onFocus(ge):Ee(!0)},Ie=ge=>{M&&M(ge),y.onBlur&&y.onBlur(ge),re&&re.onBlur?re.onBlur(ge):Ee(!1)},le=(ge,...ye)=>{if(!ne){const qe=ge.target||ce.current;if(qe==null)throw new Error(Bo(1));Z({value:qe.value})}y.onChange&&y.onChange(ge,...ye),T&&T(ge,...ye)};v.useEffect(()=>{Z(ce.current)},[]);const pe=ge=>{ce.current&&ge.currentTarget===ge.target&&ce.current.focus(),D&&D(ge)};let U=m,Q=y;P&&U==="input"&&(V?Q=b({type:void 0,minRows:V,maxRows:V},Q):Q=b({type:void 0,maxRows:w,minRows:S},Q),U=rR);const we=ge=>{Z(ge.animationName==="mui-auto-fill-cancel"?ce.current:{value:"x"})};v.useEffect(()=>{re&&re.setAdornedStart(!!W)},[re,W]);const $e=b({},o,{color:ee.color||"primary",disabled:ee.disabled,endAdornment:g,error:ee.error,focused:ee.focused,formControl:re,fullWidth:h,hiddenLabel:ee.hiddenLabel,multiline:P,size:ee.size,startAdornment:W,type:se}),ke=wR($e),X=F.root||c.Root||Of,he=I.root||u.root||{},ve=F.input||c.Input||If;return Q=b({},Q,(r=I.input)!=null?r:u.input),f.jsxs(v.Fragment,{children:[!x&&SR,f.jsxs(X,b({},he,!_r(X)&&{ownerState:b({},$e,he.ownerState)},{ref:n,onClick:pe},H,{className:ue(ke.root,he.className,l,O&&"MuiInputBase-readOnly"),children:[W,f.jsx(Rf.Provider,{value:null,children:f.jsx(ve,b({ownerState:$e,"aria-invalid":ee.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:d,disabled:ee.disabled,id:E,onAnimationStart:we,name:k,placeholder:R,readOnly:O,required:ee.required,rows:V,value:z,onKeyDown:A,onKeyUp:$,type:se},Q,!_r(ve)&&{as:U,ownerState:b({},$e,Q.ownerState)},{ref:me,className:ue(ke.input,Q.className,O&&"MuiInputBase-readOnly"),onBlur:Ie,onChange:le,onFocus:xe}))}),g,L?L(b({},ee,{startAdornment:W})):null]}))]})}),zm=kR;function ER(e){return _e("MuiInput",e)}const PR=b({},Hs,Pe("MuiInput",["root","underline","input"])),Ca=PR;function MR(e){return _e("MuiOutlinedInput",e)}const TR=b({},Hs,Pe("MuiOutlinedInput",["root","notchedOutline","input"])),bo=TR;function RR(e){return _e("MuiFilledInput",e)}const DR=b({},Hs,Pe("MuiFilledInput",["root","underline","input"])),Qo=DR,_R=Xt(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),OR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],IR={entering:{opacity:1},entered:{opacity:1}},$R=v.forwardRef(function(t,n){const r=Le(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:x,onExited:g,onExiting:h,style:E,timeout:m=o,TransitionComponent:y=Tm}=t,C=te(t,OR),w=v.useRef(null),S=tt(w,a.ref,n),P=R=>O=>{if(R){const L=w.current;O===void 0?R(L):R(L,O)}},k=P(p),M=P((R,O)=>{zx(R);const L=od({style:E,timeout:m,easing:l},{mode:"enter"});R.style.webkitTransition=r.transitions.create("opacity",L),R.style.transition=r.transitions.create("opacity",L),u&&u(R,O)}),T=P(d),D=P(h),_=P(R=>{const O=od({style:E,timeout:m,easing:l},{mode:"exit"});R.style.webkitTransition=r.transitions.create("opacity",O),R.style.transition=r.transitions.create("opacity",O),x&&x(R)}),A=P(g),$=R=>{i&&i(w.current,R)};return f.jsx(y,b({appear:s,in:c,nodeRef:w,onEnter:M,onEntered:T,onEntering:k,onExit:_,onExited:A,onExiting:D,addEndListener:$,timeout:m},C,{children:(R,O)=>v.cloneElement(a,b({style:b({opacity:0,visibility:R==="exited"&&!c?"hidden":void 0},IR[R],E,a.props.style),ref:S},O))}))}),na=$R;function FR(e){return _e("MuiBackdrop",e)}Pe("MuiBackdrop",["root","invisible"]);const AR=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],LR=e=>{const{classes:t,invisible:n}=e;return De({root:["root",n&&"invisible"]},FR,t)},jR=Y("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>b({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"},e.invisible&&{backgroundColor:"transparent"})),NR=v.forwardRef(function(t,n){var r,o,i;const s=Re({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:u={},componentsProps:d={},invisible:p=!1,open:x,slotProps:g={},slots:h={},TransitionComponent:E=na,transitionDuration:m}=s,y=te(s,AR),C=b({},s,{component:c,invisible:p}),w=LR(C),S=(r=g.root)!=null?r:d.root;return f.jsx(E,b({in:x,timeout:m},y,{children:f.jsx(jR,b({"aria-hidden":!0},S,{as:(o=(i=h.root)!=null?i:u.Root)!=null?o:c,className:ue(w.root,l,S==null?void 0:S.className),ownerState:b({},C,S==null?void 0:S.ownerState),classes:w,ref:n,children:a}))}))}),o6=NR,VR=Pe("MuiBox",["root"]),zR=VR,BR=sn(),WR=aE({themeId:Pi,defaultTheme:BR,defaultClassName:zR.root,generateClassName:kx.generate}),J=WR;function HR(e){return _e("MuiButton",e)}const UR=Pe("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Nc=UR,YR=v.createContext({}),GR=YR,qR=v.createContext(void 0),KR=qR,ZR=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],XR=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${oe(t)}`,`size${oe(o)}`,`${i}Size${oe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${oe(o)}`],endIcon:["endIcon",`iconSize${oe(o)}`]},l=De(a,HR,s);return b({},s,l)},i6=e=>b({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),JR=Y(Ir,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${oe(n.color)}`],t[`size${oe(n.size)}`],t[`${n.variant}Size${oe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return b({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":b({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":b({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Nc.focusVisible}`]:b({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Nc.disabled}`]:b({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ne(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Nc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Nc.disabled}`]:{boxShadow:"none"}}),QR=Y("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${oe(n.size)}`]]}})(({ownerState:e})=>b({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},i6(e))),eD=Y("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${oe(n.size)}`]]}})(({ownerState:e})=>b({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},i6(e))),tD=v.forwardRef(function(t,n){const r=v.useContext(GR),o=v.useContext(KR),i=ym(r,t),s=Re({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:x=!1,endIcon:g,focusVisibleClassName:h,fullWidth:E=!1,size:m="medium",startIcon:y,type:C,variant:w="text"}=s,S=te(s,ZR),P=b({},s,{color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:x,fullWidth:E,size:m,type:C,variant:w}),k=XR(P),M=y&&f.jsx(QR,{className:k.startIcon,ownerState:P,children:y}),T=g&&f.jsx(eD,{className:k.endIcon,ownerState:P,children:g}),D=o||"";return f.jsxs(JR,b({ownerState:P,className:ue(r.className,k.root,u,D),component:c,disabled:d,focusRipple:!x,focusVisibleClassName:ue(k.focusVisible,h),ref:n,type:C},S,{classes:k,children:[M,a,T]}))}),Mr=tD;function nD(e){return _e("PrivateSwitchBase",e)}Pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const rD=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],oD=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${oe(o)}`],input:["input"]};return De(i,nD,t)},iD=Y(Ir)(({ownerState:e})=>b({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),sD=Y("input",{shouldForwardProp:an})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),aD=v.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:x,inputRef:g,name:h,onBlur:E,onChange:m,onFocus:y,readOnly:C,required:w=!1,tabIndex:S,type:P,value:k}=t,M=te(t,rD),[T,D]=kn({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),_=Lr(),A=F=>{y&&y(F),_&&_.onFocus&&_.onFocus(F)},$=F=>{E&&E(F),_&&_.onBlur&&_.onBlur(F)},R=F=>{if(F.nativeEvent.defaultPrevented)return;const W=F.target.checked;D(W),m&&m(F,W)};let O=l;_&&typeof O>"u"&&(O=_.disabled);const L=P==="checkbox"||P==="radio",V=b({},t,{checked:T,disabled:O,disableFocusRipple:c,edge:u}),I=oD(V);return f.jsxs(iD,b({component:"span",className:ue(I.root,s),centerRipple:!0,focusRipple:!c,disabled:O,tabIndex:null,role:void 0,onFocus:A,onBlur:$,ownerState:V,ref:n},M,{children:[f.jsx(sD,b({autoFocus:r,checked:o,defaultChecked:a,className:I.input,disabled:O,id:L?p:void 0,name:h,onChange:R,readOnly:C,ref:g,required:w,ownerState:V,tabIndex:S,type:P},P==="checkbox"&&k===void 0?{}:{value:k},x)),T?i:d]}))}),s6=aD,lD=Xt(f.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),cD=Xt(f.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),uD=Xt(f.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function dD(e){return _e("MuiCheckbox",e)}const fD=Pe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Kp=fD,pD=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],hD=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${oe(r)}`,`size${oe(o)}`]},s=De(i,dD,t);return b({},t,s)},mD=Y(s6,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${oe(n.size)}`],n.color!=="default"&&t[`color${oe(n.color)}`]]}})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Kp.checked}, &.${Kp.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Kp.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),gD=f.jsx(cD,{}),yD=f.jsx(lD,{}),vD=f.jsx(uD,{}),xD=v.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiCheckbox"}),{checkedIcon:s=gD,color:a="primary",icon:l=yD,indeterminate:c=!1,indeterminateIcon:u=vD,inputProps:d,size:p="medium",className:x}=i,g=te(i,pD),h=c?u:l,E=c?u:s,m=b({},i,{color:a,indeterminate:c,size:p}),y=hD(m);return f.jsx(mD,b({type:"checkbox",inputProps:b({"data-indeterminate":c},d),icon:v.cloneElement(h,{fontSize:(r=h.props.fontSize)!=null?r:p}),checkedIcon:v.cloneElement(E,{fontSize:(o=E.props.fontSize)!=null?o:p}),ownerState:m,ref:n,className:ue(y.root,x)},g,{classes:y}))}),a6=xD,CD=(e,t)=>b({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),bD=e=>b({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),wD=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let o=b({html:CD(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:b({margin:0},bD(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function SD(e){const t=Re({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return f.jsxs(v.Fragment,{children:[f.jsx(r6,{styles:o=>wD(o,r)}),n]})}function kD(e){return _e("MuiModal",e)}Pe("MuiModal",["root","hidden","backdrop"]);const ED=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],PD=e=>{const{open:t,exited:n,classes:r}=e;return De({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},kD,r)},MD=Y("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>b({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),TD=Y(o6,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),RD=v.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Re({name:"MuiModal",props:t}),{BackdropComponent:u=TD,BackdropProps:d,className:p,closeAfterTransition:x=!1,children:g,container:h,component:E,components:m={},componentsProps:y={},disableAutoFocus:C=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:P=!1,disableRestoreFocus:k=!1,disableScrollLock:M=!1,hideBackdrop:T=!1,keepMounted:D=!1,onBackdropClick:_,open:A,slotProps:$,slots:R}=c,O=te(c,ED),L=b({},c,{closeAfterTransition:x,disableAutoFocus:C,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:P,disableRestoreFocus:k,disableScrollLock:M,hideBackdrop:T,keepMounted:D}),{getRootProps:V,getBackdropProps:I,getTransitionProps:F,portalRef:W,isTopModal:se,exited:B,hasTransition:H}=GT(b({},L,{rootRef:n})),z=b({},L,{exited:B}),ne=PD(z),ce={};if(g.props.tabIndex===void 0&&(ce.tabIndex="-1"),H){const{onEnter:j,onExited:G}=F();ce.onEnter=j,ce.onExited=G}const q=(r=(o=R==null?void 0:R.root)!=null?o:m.Root)!=null?r:MD,me=(i=(s=R==null?void 0:R.backdrop)!=null?s:m.Backdrop)!=null?i:u,Se=(a=$==null?void 0:$.root)!=null?a:y.root,Ee=(l=$==null?void 0:$.backdrop)!=null?l:y.backdrop,re=We({elementType:q,externalSlotProps:Se,externalForwardedProps:O,getSlotProps:V,additionalProps:{ref:n,as:E},ownerState:z,className:ue(p,Se==null?void 0:Se.className,ne==null?void 0:ne.root,!z.open&&z.exited&&(ne==null?void 0:ne.hidden))}),ee=We({elementType:me,externalSlotProps:Ee,additionalProps:d,getSlotProps:j=>I(b({},j,{onClick:G=>{_&&_(G),j!=null&&j.onClick&&j.onClick(G)}})),className:ue(Ee==null?void 0:Ee.className,d==null?void 0:d.className,ne==null?void 0:ne.backdrop),ownerState:z});return!D&&!A&&(!H||B)?null:f.jsx(e6,{ref:W,container:h,disablePortal:P,children:f.jsxs(q,b({},re,{children:[!T&&u?f.jsx(me,b({},ee)):null,f.jsx(Hx,{disableEnforceFocus:w,disableAutoFocus:C,disableRestoreFocus:k,isEnabled:se,open:A,children:v.cloneElement(g,ce)})]}))})}),Bm=RD;function DD(e){return _e("MuiDialog",e)}const nl=Pe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),_D=v.createContext({}),OD=_D,ID=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],$D=Y(o6,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),FD=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${oe(n)}`],paper:["paper",`paperScroll${oe(n)}`,`paperWidth${oe(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return De(s,DD,t)},AD=Y(Bm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),LD=Y("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${oe(n.scroll)}`]]}})(({ownerState:e})=>b({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),jD=Y(Ql,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${oe(n.scroll)}`],t[`paperWidth${oe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>b({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${nl.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${nl.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${nl.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),ND=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialog"}),o=Le(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:x=!1,fullWidth:g=!1,maxWidth:h="sm",onBackdropClick:E,onClose:m,open:y,PaperComponent:C=Ql,PaperProps:w={},scroll:S="paper",TransitionComponent:P=na,transitionDuration:k=i,TransitionProps:M}=r,T=te(r,ID),D=b({},r,{disableEscapeKeyDown:p,fullScreen:x,fullWidth:g,maxWidth:h,scroll:S}),_=FD(D),A=v.useRef(),$=V=>{A.current=V.target===V.currentTarget},R=V=>{A.current&&(A.current=null,E&&E(V),m&&m(V,"backdropClick"))},O=ho(a),L=v.useMemo(()=>({titleId:O}),[O]);return f.jsx(AD,b({className:ue(_.root,d),closeAfterTransition:!0,components:{Backdrop:$D},componentsProps:{backdrop:b({transitionDuration:k,as:l},c)},disableEscapeKeyDown:p,onClose:m,open:y,ref:n,onClick:R,ownerState:D},T,{children:f.jsx(P,b({appear:!0,in:y,timeout:k,role:"presentation"},M,{children:f.jsx(LD,{className:ue(_.container),onMouseDown:$,ownerState:D,children:f.jsx(jD,b({as:C,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":O},w,{className:ue(_.paper,w.className),ownerState:D,children:f.jsx(OD.Provider,{value:L,children:u})}))})}))}))}),VD=ND;function zD(e){return _e("MuiDialogActions",e)}Pe("MuiDialogActions",["root","spacing"]);const BD=["className","disableSpacing"],WD=e=>{const{classes:t,disableSpacing:n}=e;return De({root:["root",!n&&"spacing"]},zD,t)},HD=Y("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>b({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),UD=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=te(r,BD),a=b({},r,{disableSpacing:i}),l=WD(a);return f.jsx(HD,b({className:ue(l.root,o),ownerState:a,ref:n},s))}),YD=UD;function GD(e){return _e("MuiDialogContent",e)}Pe("MuiDialogContent",["root","dividers"]);const qD=Pe("MuiDialogTitle",["root"]),KD=qD,ZD=["className","dividers"],XD=e=>{const{classes:t,dividers:n}=e;return De({root:["root",n&&"dividers"]},GD,t)},JD=Y("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>b({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${KD.root} + &`]:{paddingTop:0}})),QD=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=te(r,ZD),a=b({},r,{dividers:i}),l=XD(a);return f.jsx(JD,b({className:ue(l.root,o),ownerState:a,ref:n},s))}),e_=QD,t_=Pe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),qy=t_,n_=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],r_=e=>{const{classes:t,disableUnderline:n}=e,o=De({root:["root",!n&&"underline"],input:["input"]},RR,t);return b({},t,o)},o_=Y(Of,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Df(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return b({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Qo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Qo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qo.disabled}, .${Qo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Qo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&b({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),i_=Y(If,{name:"MuiFilledInput",slot:"Input",overridesResolver:_f})(({theme:e,ownerState:t})=>b({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),l6=v.forwardRef(function(t,n){var r,o,i,s;const a=Re({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:x,slots:g={},type:h="text"}=a,E=te(a,n_),m=b({},a,{fullWidth:u,inputComponent:d,multiline:p,type:h}),y=r_(a),C={root:{ownerState:m},input:{ownerState:m}},w=x??c?nn(C,x??c):C,S=(r=(o=g.root)!=null?o:l.Root)!=null?r:o_,P=(i=(s=g.input)!=null?s:l.Input)!=null?i:i_;return f.jsx(zm,b({slots:{root:S,input:P},componentsProps:w,fullWidth:u,inputComponent:d,multiline:p,ref:n,type:h},E,{classes:y}))});l6.muiName="Input";const c6=l6;function s_(e){return _e("MuiFormControl",e)}Pe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const a_=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],l_=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${oe(n)}`,r&&"fullWidth"]};return De(o,s_,t)},c_=Y("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>b({},t.root,t[`margin${oe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>b({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),u_=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:x="none",required:g=!1,size:h="medium",variant:E="outlined"}=r,m=te(r,a_),y=b({},r,{color:s,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:x,required:g,size:h,variant:E}),C=l_(y),[w,S]=v.useState(()=>{let $=!1;return o&&v.Children.forEach(o,R=>{if(!xu(R,["Input","Select"]))return;const O=xu(R,["Select"])?R.props.input:R;O&&vR(O.props)&&($=!0)}),$}),[P,k]=v.useState(()=>{let $=!1;return o&&v.Children.forEach(o,R=>{xu(R,["Input","Select"])&&(ad(R.props,!0)||ad(R.props.inputProps,!0))&&($=!0)}),$}),[M,T]=v.useState(!1);l&&M&&T(!1);const D=u!==void 0&&!l?u:M;let _;const A=v.useMemo(()=>({adornedStart:w,setAdornedStart:S,color:s,disabled:l,error:c,filled:P,focused:D,fullWidth:d,hiddenLabel:p,size:h,onBlur:()=>{T(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{T(!0)},registerEffect:_,required:g,variant:E}),[w,s,l,c,P,D,d,p,_,g,h,E]);return f.jsx(Rf.Provider,{value:A,children:f.jsx(c_,b({as:a,ownerState:y,className:ue(C.root,i),ref:n},m,{children:o}))})}),$f=u_,d_=FE({createStyledComponent:Y("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Re({props:e,name:"MuiStack"})}),f_=d_;function p_(e){return _e("MuiFormControlLabel",e)}const h_=Pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Va=h_,m_=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],g_=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${oe(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return De(s,p_,t)},y_=Y("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Va.label}`]:t.label},t.root,t[`labelPlacement${oe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>b({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Va.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Va.label}`]:{[`&.${Va.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),v_=Y("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),x_=v.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",required:x,slotProps:g={}}=i,h=te(i,m_),E=Lr(),m=(r=c??l.props.disabled)!=null?r:E==null?void 0:E.disabled,y=x??l.props.required,C={disabled:m,required:y};["checked","name","onChange","value","inputRef"].forEach(T=>{typeof l.props[T]>"u"&&typeof i[T]<"u"&&(C[T]=i[T])});const w=Ko({props:i,muiFormControl:E,states:["error"]}),S=b({},i,{disabled:m,labelPlacement:p,required:y,error:w.error}),P=g_(S),k=(o=g.typography)!=null?o:a.typography;let M=d;return M!=null&&M.type!==Te&&!u&&(M=f.jsx(Te,b({component:"span"},k,{className:ue(P.label,k==null?void 0:k.className),children:M}))),f.jsxs(y_,b({className:ue(P.root,s),ownerState:S,ref:n},h,{children:[v.cloneElement(l,C),y?f.jsxs(f_,{display:"block",children:[M,f.jsxs(v_,{ownerState:S,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):M]}))}),nc=x_;function C_(e){return _e("MuiFormGroup",e)}Pe("MuiFormGroup",["root","row","error"]);const b_=["className","row"],w_=e=>{const{classes:t,row:n,error:r}=e;return De({root:["root",n&&"row",r&&"error"]},C_,t)},S_=Y("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>b({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),k_=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=te(r,b_),a=Lr(),l=Ko({props:r,muiFormControl:a,states:["error"]}),c=b({},r,{row:i,error:l.error}),u=w_(c);return f.jsx(S_,b({className:ue(u.root,o),ownerState:c,ref:n},s))}),u6=k_;function E_(e){return _e("MuiFormHelperText",e)}const P_=Pe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Ky=P_;var Zy;const M_=["children","className","component","disabled","error","filled","focused","margin","required","variant"],T_=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${oe(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return De(c,E_,t)},R_=Y("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${oe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ky.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ky.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),D_=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=te(r,M_),l=Lr(),c=Ko({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=b({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=T_(u);return f.jsx(R_,b({as:s,ownerState:u,className:ue(d.root,i),ref:n},a,{children:o===" "?Zy||(Zy=f.jsx("span",{className:"notranslate",children:"​"})):o}))}),__=D_;function O_(e){return _e("MuiFormLabel",e)}const I_=Pe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),rl=I_,$_=["children","className","color","component","disabled","error","filled","focused","required"],F_=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${oe(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return De(l,O_,t)},A_=Y("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>b({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${rl.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${rl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rl.error}`]:{color:(e.vars||e).palette.error.main}})),L_=Y("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${rl.error}`]:{color:(e.vars||e).palette.error.main}})),j_=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=te(r,$_),l=Lr(),c=Ko({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=b({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=F_(u);return f.jsxs(A_,b({as:s,ownerState:u,className:ue(d.root,i),ref:n},a,{children:[o,c.required&&f.jsxs(L_,{ownerState:u,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),N_=j_,V_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function F0(e){return`scale(${e}, ${e**2})`}const z_={entering:{opacity:1,transform:F0(1)},entered:{opacity:1,transform:"none"}},Zp=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),d6=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:x,style:g,timeout:h="auto",TransitionComponent:E=Tm}=t,m=te(t,V_),y=v.useRef(),C=v.useRef(),w=Le(),S=v.useRef(null),P=tt(S,i.ref,n),k=O=>L=>{if(O){const V=S.current;L===void 0?O(V):O(V,L)}},M=k(u),T=k((O,L)=>{zx(O);const{duration:V,delay:I,easing:F}=od({style:g,timeout:h,easing:s},{mode:"enter"});let W;h==="auto"?(W=w.transitions.getAutoHeightDuration(O.clientHeight),C.current=W):W=V,O.style.transition=[w.transitions.create("opacity",{duration:W,delay:I}),w.transitions.create("transform",{duration:Zp?W:W*.666,delay:I,easing:F})].join(","),l&&l(O,L)}),D=k(c),_=k(x),A=k(O=>{const{duration:L,delay:V,easing:I}=od({style:g,timeout:h,easing:s},{mode:"exit"});let F;h==="auto"?(F=w.transitions.getAutoHeightDuration(O.clientHeight),C.current=F):F=L,O.style.transition=[w.transitions.create("opacity",{duration:F,delay:V}),w.transitions.create("transform",{duration:Zp?F:F*.666,delay:Zp?V:V||F*.333,easing:I})].join(","),O.style.opacity=0,O.style.transform=F0(.75),d&&d(O)}),$=k(p),R=O=>{h==="auto"&&(y.current=setTimeout(O,C.current||0)),r&&r(S.current,O)};return v.useEffect(()=>()=>{clearTimeout(y.current)},[]),f.jsx(E,b({appear:o,in:a,nodeRef:S,onEnter:T,onEntered:D,onEntering:M,onExit:A,onExited:$,onExiting:_,addEndListener:R,timeout:h==="auto"?null:h},m,{children:(O,L)=>v.cloneElement(i,b({style:b({opacity:0,transform:F0(.75),visibility:O==="exited"&&!a?"hidden":void 0},z_[O],g,i.props.style),ref:P},L))}))});d6.muiSupportAuto=!0;const f6=d6;function B_(e,t,n,r,o){const[i,s]=v.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Lt(()=>{let a=!0;if(!n)return;const l=n(e),c=()=>{a&&s(l.matches)};return c(),l.addListener(c),()=>{a=!1,l.removeListener(c)}},[e,n]),i}const p6=v.useSyncExternalStore;function W_(e,t,n,r,o){const i=v.useCallback(()=>t,[t]),s=v.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[a,l]=v.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addListener(d),()=>{u.removeListener(d)})]},[i,n,e]);return p6(l,a,s)}function h6(e,t={}){const n=pf(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=Ox({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(p6!==void 0?W_:B_)(l,o,i,s,a)}const H_=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],U_=e=>{const{classes:t,disableUnderline:n}=e,o=De({root:["root",!n&&"underline"],input:["input"]},ER,t);return b({},t,o)},Y_=Y(Of,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Df(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),b({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ca.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ca.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ca.disabled}, .${Ca.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ca.disabled}:before`]:{borderBottomStyle:"dotted"}})}),G_=Y(If,{name:"MuiInput",slot:"Input",overridesResolver:_f})({}),m6=v.forwardRef(function(t,n){var r,o,i,s;const a=Re({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:p="input",multiline:x=!1,slotProps:g,slots:h={},type:E="text"}=a,m=te(a,H_),y=U_(a),w={root:{ownerState:{disableUnderline:l}}},S=g??u?nn(g??u,w):w,P=(r=(o=h.root)!=null?o:c.Root)!=null?r:Y_,k=(i=(s=h.input)!=null?s:c.Input)!=null?i:G_;return f.jsx(zm,b({slots:{root:P,input:k},slotProps:S,fullWidth:d,inputComponent:p,multiline:x,ref:n,type:E},m,{classes:y}))});m6.muiName="Input";const g6=m6;function q_(e){return _e("MuiInputAdornment",e)}const K_=Pe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Xy=K_;var Jy;const Z_=["children","className","component","disablePointerEvents","disableTypography","position","variant"],X_=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${oe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},J_=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${oe(o)}`,s,r&&"hiddenLabel",i&&`size${oe(i)}`]};return De(a,q_,t)},Q_=Y("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:X_})(({theme:e,ownerState:t})=>b({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${Xy.positionStart}&:not(.${Xy.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),eO=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u}=r,d=te(r,Z_),p=Lr()||{};let x=u;u&&p.variant,p&&!x&&(x=p.variant);const g=b({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:a,position:c,variant:x}),h=J_(g);return f.jsx(Rf.Provider,{value:null,children:f.jsx(Q_,b({as:s,ownerState:g,className:ue(h.root,i),ref:n},d,{children:typeof o=="string"&&!l?f.jsx(Te,{color:"text.secondary",children:o}):f.jsxs(v.Fragment,{children:[c==="start"?Jy||(Jy=f.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Wm=eO;function tO(e){return _e("MuiInputLabel",e)}Pe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const nO=["disableAnimation","margin","shrink","variant","className"],rO=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${oe(r)}`,s],asterisk:[a&&"asterisk"]},c=De(l,tO,t);return b({},t,c)},oO=Y(N_,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rl.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>b({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&b({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&b({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&b({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),iO=v.forwardRef(function(t,n){const r=Re({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=te(r,nO),l=Lr();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=Ko({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=b({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),p=rO(d);return f.jsx(oO,b({"data-shrink":c,ownerState:d,ref:n,className:ue(p.root,s)},a,{classes:p}))}),sO=iO;function aO(e){return _e("MuiLink",e)}const lO=Pe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),cO=lO,y6={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},uO=e=>y6[e]||e,dO=({theme:e,ownerState:t})=>{const n=uO(t.color),r=Ns(e,`palette.${n}`,!1)||t.color,o=Ns(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ne(r,.4)},fO=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],pO=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${oe(o)}`,n==="button"&&"button",r&&"focusVisible"]};return De(i,aO,t)},hO=Y(Te,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${oe(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>b({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&b({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:dO({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${cO.focusVisible}`]:{outline:"auto"}})),mO=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:s="a",onBlur:a,onFocus:l,TypographyClasses:c,underline:u="always",variant:d="inherit",sx:p}=r,x=te(r,fO),{isFocusVisibleRef:g,onBlur:h,onFocus:E,ref:m}=of(),[y,C]=v.useState(!1),w=tt(n,m),S=T=>{h(T),g.current===!1&&C(!1),a&&a(T)},P=T=>{E(T),g.current===!0&&C(!0),l&&l(T)},k=b({},r,{color:i,component:s,focusVisible:y,underline:u,variant:d}),M=pO(k);return f.jsx(hO,b({color:i,className:ue(M.root,o),classes:c,component:s,onBlur:S,onFocus:P,ref:w,ownerState:k,variant:d,sx:[...Object.keys(y6).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},x))}),no=mO,gO=v.createContext({}),vi=gO;function yO(e){return _e("MuiList",e)}Pe("MuiList",["root","padding","dense","subheader"]);const vO=["children","className","component","dense","disablePadding","subheader"],xO=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return De({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},yO,t)},CO=Y("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>b({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),bO=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,u=te(r,vO),d=v.useMemo(()=>({dense:a}),[a]),p=b({},r,{component:s,dense:a,disablePadding:l}),x=xO(p);return f.jsx(vi.Provider,{value:d,children:f.jsxs(CO,b({as:s,className:ue(x.root,i),ref:n,ownerState:p},u,{children:[c,o]}))})}),v6=bO;function wO(e){return _e("MuiListItem",e)}const SO=Pe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),es=SO,kO=Pe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),EO=kO;function PO(e){return _e("MuiListItemSecondaryAction",e)}Pe("MuiListItemSecondaryAction",["root","disableGutters"]);const MO=["className"],TO=e=>{const{disableGutters:t,classes:n}=e;return De({root:["root",t&&"disableGutters"]},PO,n)},RO=Y("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>b({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),x6=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=te(r,MO),s=v.useContext(vi),a=b({},r,{disableGutters:s.disableGutters}),l=TO(a);return f.jsx(RO,b({className:ue(l.root,o),ownerState:a,ref:n},i))});x6.muiName="ListItemSecondaryAction";const DO=x6,_O=["className"],OO=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],IO=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},$O=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:c,selected:u}=e;return De({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},wO,r)},FO=Y("div",{name:"MuiListItem",slot:"Root",overridesResolver:IO})(({theme:e,ownerState:t})=>b({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&b({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${EO.root}`]:{paddingRight:48}},{[`&.${es.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${es.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${es.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${es.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${es.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),AO=Y("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),LO=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:x}={},dense:g=!1,disabled:h=!1,disableGutters:E=!1,disablePadding:m=!1,divider:y=!1,focusVisibleClassName:C,secondaryAction:w,selected:S=!1,slotProps:P={},slots:k={}}=r,M=te(r.ContainerProps,_O),T=te(r,OO),D=v.useContext(vi),_=v.useMemo(()=>({dense:g||D.dense||!1,alignItems:o,disableGutters:E}),[o,D.dense,g,E]),A=v.useRef(null);Lt(()=>{i&&A.current&&A.current.focus()},[i]);const $=v.Children.toArray(a),R=$.length&&xu($[$.length-1],["ListItemSecondaryAction"]),O=b({},r,{alignItems:o,autoFocus:i,button:s,dense:_.dense,disabled:h,disableGutters:E,disablePadding:m,divider:y,hasSecondaryAction:R,selected:S}),L=$O(O),V=tt(A,n),I=k.root||u.Root||FO,F=P.root||d.root||{},W=b({className:ue(L.root,F.className,l),disabled:h},T);let se=c||"li";return s&&(W.component=c||"div",W.focusVisibleClassName=ue(es.focusVisible,C),se=Ir),R?(se=!W.component&&!c?"div":se,p==="li"&&(se==="li"?se="div":W.component==="li"&&(W.component="div")),f.jsx(vi.Provider,{value:_,children:f.jsxs(AO,b({as:p,className:ue(L.container,x),ref:V,ownerState:O},M,{children:[f.jsx(I,b({},F,!_r(I)&&{as:se,ownerState:b({},O,F.ownerState)},W,{children:$})),$.pop()]}))})):f.jsx(vi.Provider,{value:_,children:f.jsxs(I,b({},F,{as:se,ref:V},!_r(I)&&{ownerState:b({},O,F.ownerState)},W,{children:[$,w&&f.jsx(DO,{children:w})]}))})}),jO=LO,NO=Pe("MuiListItemIcon",["root","alignItemsFlexStart"]),Qy=NO,VO=Pe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ev=VO,zO=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Xp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function tv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function C6(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ba(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!C6(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const BO=v.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=t,p=te(t,zO),x=v.useRef(null),g=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Lt(()=>{o&&x.current.focus()},[o]),v.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,w)=>{const S=!x.current.style.width;if(C.clientHeight{const w=x.current,S=C.key,P=Pt(w).activeElement;if(S==="ArrowDown")C.preventDefault(),ba(w,P,c,l,Xp);else if(S==="ArrowUp")C.preventDefault(),ba(w,P,c,l,tv);else if(S==="Home")C.preventDefault(),ba(w,null,c,l,Xp);else if(S==="End")C.preventDefault(),ba(w,null,c,l,tv);else if(S.length===1){const k=g.current,M=S.toLowerCase(),T=performance.now();k.keys.length>0&&(T-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&M!==k.keys[0]&&(k.repeating=!1)),k.lastTime=T,k.keys.push(M);const D=P&&!k.repeating&&C6(P,k);k.previousKeyMatched&&(D||ba(w,P,!1,l,Xp,k))?C.preventDefault():k.previousKeyMatched=!1}u&&u(C)},E=tt(x,n);let m=-1;v.Children.forEach(s,(C,w)=>{if(!v.isValidElement(C)){m===w&&(m+=1,m>=s.length&&(m=-1));return}C.props.disabled||(d==="selectedMenu"&&C.props.selected||m===-1)&&(m=w),m===w&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(m+=1,m>=s.length&&(m=-1))});const y=v.Children.map(s,(C,w)=>{if(w===m){const S={};return i&&(S.autoFocus=!0),C.props.tabIndex===void 0&&d==="selectedMenu"&&(S.tabIndex=0),v.cloneElement(C,S)}return C});return f.jsx(v6,b({role:"menu",ref:E,className:a,onKeyDown:h,tabIndex:o?0:-1},p,{children:y}))}),WO=BO;function HO(e){return _e("MuiPopover",e)}Pe("MuiPopover",["root","paper"]);const UO=["onEntering"],YO=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],GO=["slotProps"];function nv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function rv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ov(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Jp(e){return typeof e=="function"?e():e}const qO=e=>{const{classes:t}=e;return De({root:["root"],paper:["paper"]},HO,t)},KO=Y(Bm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),b6=Y(Ql,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ZO=v.forwardRef(function(t,n){var r,o,i;const s=Re({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:x,container:g,elevation:h=8,marginThreshold:E=16,open:m,PaperProps:y={},slots:C,slotProps:w,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:P=f6,transitionDuration:k="auto",TransitionProps:{onEntering:M}={},disableScrollLock:T=!1}=s,D=te(s.TransitionProps,UO),_=te(s,YO),A=(r=w==null?void 0:w.paper)!=null?r:y,$=v.useRef(),R=tt($,A.ref),O=b({},s,{anchorOrigin:c,anchorReference:d,elevation:h,marginThreshold:E,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:P,transitionDuration:k,TransitionProps:D}),L=qO(O),V=v.useCallback(()=>{if(d==="anchorPosition")return u;const j=Jp(l),Z=(j&&j.nodeType===1?j:Pt($.current).body).getBoundingClientRect();return{top:Z.top+nv(Z,c.vertical),left:Z.left+rv(Z,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),I=v.useCallback(j=>({vertical:nv(j,S.vertical),horizontal:rv(j,S.horizontal)}),[S.horizontal,S.vertical]),F=v.useCallback(j=>{const G={width:j.offsetWidth,height:j.offsetHeight},Z=I(G);if(d==="none")return{top:null,left:null,transformOrigin:ov(Z)};const xe=V();let Ie=xe.top-Z.vertical,le=xe.left-Z.horizontal;const pe=Ie+G.height,U=le+G.width,Q=Mi(Jp(l)),we=Q.innerHeight-E,$e=Q.innerWidth-E;if(E!==null&&Iewe){const ke=pe-we;Ie-=ke,Z.vertical+=ke}if(E!==null&&le$e){const ke=U-$e;le-=ke,Z.horizontal+=ke}return{top:`${Math.round(Ie)}px`,left:`${Math.round(le)}px`,transformOrigin:ov(Z)}},[l,d,V,I,E]),[W,se]=v.useState(m),B=v.useCallback(()=>{const j=$.current;if(!j)return;const G=F(j);G.top!==null&&(j.style.top=G.top),G.left!==null&&(j.style.left=G.left),j.style.transformOrigin=G.transformOrigin,se(!0)},[F]);v.useEffect(()=>(T&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[l,T,B]);const H=(j,G)=>{M&&M(j,G),B()},z=()=>{se(!1)};v.useEffect(()=>{m&&B()}),v.useImperativeHandle(a,()=>m?{updatePosition:()=>{B()}}:null,[m,B]),v.useEffect(()=>{if(!m)return;const j=bx(()=>{B()}),G=Mi(l);return G.addEventListener("resize",j),()=>{j.clear(),G.removeEventListener("resize",j)}},[l,m,B]);let ne=k;k==="auto"&&!P.muiSupportAuto&&(ne=void 0);const ce=g||(l?Pt(Jp(l)).body:void 0),q=(o=C==null?void 0:C.root)!=null?o:KO,me=(i=C==null?void 0:C.paper)!=null?i:b6,Se=We({elementType:me,externalSlotProps:b({},A,{style:W?A.style:b({},A.style,{opacity:0})}),additionalProps:{elevation:h,ref:R},ownerState:O,className:ue(L.paper,A==null?void 0:A.className)}),Ee=We({elementType:q,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:_,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ce,open:m},ownerState:O,className:ue(L.root,x)}),{slotProps:re}=Ee,ee=te(Ee,GO);return f.jsx(q,b({},ee,!_r(q)&&{slotProps:re,disableScrollLock:T},{children:f.jsx(P,b({appear:!0,in:m,onEntering:H,onExited:z,timeout:ne},D,{children:f.jsx(me,b({},Se,{children:p}))}))}))}),XO=ZO;function JO(e){return _e("MuiMenu",e)}Pe("MuiMenu",["root","paper","list"]);const QO=["onEntering"],eI=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],tI={vertical:"top",horizontal:"right"},nI={vertical:"top",horizontal:"left"},rI=e=>{const{classes:t}=e;return De({root:["root"],paper:["paper"],list:["list"]},JO,t)},oI=Y(XO,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iI=Y(b6,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sI=Y(WO,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),aI=v.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:x={},PopoverClasses:g,transitionDuration:h="auto",TransitionProps:{onEntering:E}={},variant:m="selectedMenu",slots:y={},slotProps:C={}}=i,w=te(i.TransitionProps,QO),S=te(i,eI),P=Le(),k=P.direction==="rtl",M=b({},i,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:E,PaperProps:x,transitionDuration:h,TransitionProps:w,variant:m}),T=rI(M),D=s&&!c&&p,_=v.useRef(null),A=(F,W)=>{_.current&&_.current.adjustStyleForScrollbar(F,P),E&&E(F,W)},$=F=>{F.key==="Tab"&&(F.preventDefault(),d&&d(F,"tabKeyDown"))};let R=-1;v.Children.map(a,(F,W)=>{v.isValidElement(F)&&(F.props.disabled||(m==="selectedMenu"&&F.props.selected||R===-1)&&(R=W))});const O=(r=y.paper)!=null?r:iI,L=(o=C.paper)!=null?o:x,V=We({elementType:y.root,externalSlotProps:C.root,ownerState:M,className:[T.root,l]}),I=We({elementType:O,externalSlotProps:L,ownerState:M,className:T.paper});return f.jsx(oI,b({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?tI:nI,slots:{paper:O,root:y.root},slotProps:{root:V,paper:I},open:p,ref:n,transitionDuration:h,TransitionProps:b({onEntering:A},w),ownerState:M},S,{classes:g,children:f.jsx(sI,b({onKeyDown:$,actions:_,autoFocus:s&&(R===-1||c),autoFocusItem:D,variant:m},u,{className:ue(T.list,u.className),children:a}))}))}),lI=aI;function cI(e){return _e("MuiMenuItem",e)}const uI=Pe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wa=uI,dI=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],fI=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},pI=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=De({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},cI,s);return b({},s,l)},hI=Y(Ir,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:fI})(({theme:e,ownerState:t})=>b({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${qy.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${qy.inset}`]:{marginLeft:52},[`& .${ev.root}`]:{marginTop:0,marginBottom:0},[`& .${ev.inset}`]:{paddingLeft:36},[`& .${Qy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&b({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Qy.root} svg`]:{fontSize:"1.25rem"}}))),mI=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p}=r,x=te(r,dI),g=v.useContext(vi),h=v.useMemo(()=>({dense:s||g.dense||!1,disableGutters:l}),[g.dense,s,l]),E=v.useRef(null);Lt(()=>{o&&E.current&&E.current.focus()},[o]);const m=b({},r,{dense:h.dense,divider:a,disableGutters:l}),y=pI(r),C=tt(E,n);let w;return r.disabled||(w=d!==void 0?d:-1),f.jsx(vi.Provider,{value:h,children:f.jsx(hI,b({ref:C,role:u,tabIndex:w,component:i,focusVisibleClassName:ue(y.focusVisible,c),className:ue(y.root,p)},x,{ownerState:m,classes:y}))})}),gI=mI;function yI(e){return _e("MuiNativeSelect",e)}const vI=Pe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Hm=vI,xI=["className","disabled","error","IconComponent","inputRef","variant"],CI=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${oe(n)}`,i&&"iconOpen",r&&"disabled"]};return De(a,yI,t)},w6=({ownerState:e,theme:t})=>b({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":b({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Hm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),bI=Y("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:an,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Hm.multiple}`]:t.multiple}]}})(w6),S6=({ownerState:e,theme:t})=>b({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Hm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),wI=Y("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${oe(n.variant)}`],n.open&&t.iconOpen]}})(S6),SI=v.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,c=te(t,xI),u=b({},t,{disabled:o,variant:l,error:i}),d=CI(u);return f.jsxs(v.Fragment,{children:[f.jsx(bI,b({ownerState:u,className:ue(d.select,r),disabled:o,ref:a||n},c)),t.multiple?null:f.jsx(wI,{as:s,ownerState:u,className:d.icon})]})}),kI=SI;var iv;const EI=["children","classes","className","label","notched"],PI=Y("fieldset",{shouldForwardProp:an})({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%"}),MI=Y("legend",{shouldForwardProp:an})(({ownerState:e,theme:t})=>b({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&b({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"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function TI(e){const{className:t,label:n,notched:r}=e,o=te(e,EI),i=n!=null&&n!=="",s=b({},e,{notched:r,withLabel:i});return f.jsx(PI,b({"aria-hidden":!0,className:t,ownerState:s},o,{children:f.jsx(MI,{ownerState:s,children:i?f.jsx("span",{children:n}):iv||(iv=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const RI=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],DI=e=>{const{classes:t}=e,r=De({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},MR,t);return b({},t,r)},_I=Y(Of,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Df})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return b({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${bo.focused} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${bo.error} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bo.disabled} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&b({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),OI=Y(TI,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),II=Y(If,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_f})(({theme:e,ownerState:t})=>b({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),k6=v.forwardRef(function(t,n){var r,o,i,s,a;const l=Re({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:x=!1,notched:g,slots:h={},type:E="text"}=l,m=te(l,RI),y=DI(l),C=Lr(),w=Ko({props:l,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=b({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:C,fullWidth:u,hiddenLabel:w.hiddenLabel,multiline:x,size:w.size,type:E}),P=(r=(o=h.root)!=null?o:c.Root)!=null?r:_I,k=(i=(s=h.input)!=null?s:c.Input)!=null?i:II;return f.jsx(zm,b({slots:{root:P,input:k},renderSuffix:M=>f.jsx(OI,{ownerState:S,className:y.notchedOutline,label:p!=null&&p!==""&&w.required?a||(a=f.jsxs(v.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:u,inputComponent:d,multiline:x,ref:n,type:E},m,{classes:b({},y,{notchedOutline:null})}))});k6.muiName="Input";const E6=k6,$I=Xt(f.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),FI=Xt(f.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),AI=Y("span",{shouldForwardProp:an})({position:"relative",display:"flex"}),LI=Y($I)({transform:"scale(1)"}),jI=Y(FI)(({theme:e,ownerState:t})=>b({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function P6(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=b({},e,{checked:t});return f.jsxs(AI,{className:n.root,ownerState:o,children:[f.jsx(LI,{fontSize:r,className:n.background,ownerState:o}),f.jsx(jI,{fontSize:r,className:n.dot,ownerState:o})]})}const NI=v.createContext(void 0),M6=NI;function VI(){return v.useContext(M6)}function zI(e){return _e("MuiRadio",e)}const sv=Pe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),BI=["checked","checkedIcon","color","icon","name","onChange","size","className"],WI=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${oe(n)}`,r!=="medium"&&`size${oe(r)}`]};return b({},t,De(o,zI,t))},HI=Y(s6,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${oe(n.size)}`],t[`color${oe(n.color)}`]]}})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${sv.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${sv.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function UI(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const av=f.jsx(P6,{checked:!0}),lv=f.jsx(P6,{}),YI=v.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:a=av,color:l="primary",icon:c=lv,name:u,onChange:d,size:p="medium",className:x}=i,g=te(i,BI),h=b({},i,{color:l,size:p}),E=WI(h),m=VI();let y=s;const C=E0(d,m&&m.onChange);let w=u;return m&&(typeof y>"u"&&(y=UI(m.value,i.value)),typeof w>"u"&&(w=m.name)),f.jsx(HI,b({type:"radio",icon:v.cloneElement(c,{fontSize:(r=lv.props.fontSize)!=null?r:p}),checkedIcon:v.cloneElement(a,{fontSize:(o=av.props.fontSize)!=null?o:p}),ownerState:h,classes:E,name:w,checked:y,onChange:C,ref:n,className:ue(E.root,x)},g))}),Ff=YI,GI=["actions","children","defaultValue","name","onChange","value"],qI=v.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:i,name:s,onChange:a,value:l}=t,c=te(t,GI),u=v.useRef(null),[d,p]=kn({controlled:l,default:i,name:"RadioGroup"});v.useImperativeHandle(r,()=>({focus:()=>{let E=u.current.querySelector("input:not(:disabled):checked");E||(E=u.current.querySelector("input:not(:disabled)")),E&&E.focus()}}),[]);const x=tt(n,u),g=ho(s),h=v.useMemo(()=>({name:g,onChange(E){p(E.target.value),a&&a(E,E.target.value)},value:d}),[g,a,p,d]);return f.jsx(M6.Provider,{value:h,children:f.jsx(u6,b({role:"radiogroup",ref:x},c,{children:o}))})}),Af=qI,KI=Xt(f.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),ZI=Xt(f.jsx("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function XI(e){return _e("MuiRating",e)}const JI=Pe("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]),Sa=JI,QI=["value"],e$=["className","defaultValue","disabled","emptyIcon","emptyLabelText","getLabelText","highlightSelectedOnly","icon","IconContainerComponent","max","name","onChange","onChangeActive","onMouseLeave","onMouseMove","precision","readOnly","size","value"];function t$(e){const t=e.toString().split(".")[1];return t?t.length:0}function Qp(e,t){if(e==null)return e;const n=Math.round(e/t)*t;return Number(n.toFixed(t$(t)))}const n$=e=>{const{classes:t,size:n,readOnly:r,disabled:o,emptyValueFocused:i,focusVisible:s}=e,a={root:["root",`size${oe(n)}`,o&&"disabled",s&&"focusVisible",r&&"readOnly"],label:["label","pristine"],labelEmptyValue:[i&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return De(a,XI,t)},r$=Y("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Sa.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${oe(n.size)}`],n.readOnly&&t.readOnly]}})(({theme:e,ownerState:t})=>b({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",WebkitTapHighlightColor:"transparent",[`&.${Sa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Sa.focusVisible} .${Sa.iconActive}`]:{outline:"1px solid #999"},[`& .${Sa.visuallyHidden}`]:Sx},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(30)},t.readOnly&&{pointerEvents:"none"})),T6=Y("label",{name:"MuiRating",slot:"Label",overridesResolver:({ownerState:e},t)=>[t.label,e.emptyValueFocused&&t.labelEmptyValueActive]})(({ownerState:e})=>b({cursor:"inherit"},e.emptyValueFocused&&{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"})),o$=Y("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.iconEmpty&&t.iconEmpty,n.iconFilled&&t.iconFilled,n.iconHover&&t.iconHover,n.iconFocus&&t.iconFocus,n.iconActive&&t.iconActive]}})(({theme:e,ownerState:t})=>b({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none"},t.iconActive&&{transform:"scale(1.2)"},t.iconEmpty&&{color:(e.vars||e).palette.action.disabled})),i$=Y("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>gf(e)&&e!=="iconActive",overridesResolver:(e,t)=>{const{iconActive:n}=e;return[t.decimal,n&&t.iconActive]}})(({iconActive:e})=>b({position:"relative"},e&&{transform:"scale(1.2)"}));function s$(e){const t=te(e,QI);return f.jsx("span",b({},t))}function cv(e){const{classes:t,disabled:n,emptyIcon:r,focus:o,getLabelText:i,highlightSelectedOnly:s,hover:a,icon:l,IconContainerComponent:c,isActive:u,itemValue:d,labelProps:p,name:x,onBlur:g,onChange:h,onClick:E,onFocus:m,readOnly:y,ownerState:C,ratingValue:w,ratingValueRounded:S}=e,P=s?d===w:d<=w,k=d<=a,M=d<=o,T=d===S,D=ho(),_=f.jsx(o$,{as:c,value:d,className:ue(t.icon,P?t.iconFilled:t.iconEmpty,k&&t.iconHover,M&&t.iconFocus,u&&t.iconActive),ownerState:b({},C,{iconEmpty:!P,iconFilled:P,iconHover:k,iconFocus:M,iconActive:u}),children:r&&!P?r:l});return y?f.jsx("span",b({},p,{children:_})):f.jsxs(v.Fragment,{children:[f.jsxs(T6,b({ownerState:b({},C,{emptyValueFocused:void 0}),htmlFor:D},p,{children:[_,f.jsx("span",{className:t.visuallyHidden,children:i(d)})]})),f.jsx("input",{className:t.visuallyHidden,onFocus:m,onBlur:g,onChange:h,onClick:E,disabled:n,value:d,id:D,type:"radio",name:x,checked:T})]})}const a$=f.jsx(KI,{fontSize:"inherit"}),l$=f.jsx(ZI,{fontSize:"inherit"});function c$(e){return`${e} Star${e!==1?"s":""}`}const u$=v.forwardRef(function(t,n){const r=Re({name:"MuiRating",props:t}),{className:o,defaultValue:i=null,disabled:s=!1,emptyIcon:a=l$,emptyLabelText:l="Empty",getLabelText:c=c$,highlightSelectedOnly:u=!1,icon:d=a$,IconContainerComponent:p=s$,max:x=5,name:g,onChange:h,onChangeActive:E,onMouseLeave:m,onMouseMove:y,precision:C=1,readOnly:w=!1,size:S="medium",value:P}=r,k=te(r,e$),M=ho(g),[T,D]=kn({controlled:P,default:i,name:"Rating"}),_=Qp(T,C),A=Le(),[{hover:$,focus:R},O]=v.useState({hover:-1,focus:-1});let L=_;$!==-1&&(L=$),R!==-1&&(L=R);const{isFocusVisibleRef:V,onBlur:I,onFocus:F,ref:W}=of(),[se,B]=v.useState(!1),H=v.useRef(),z=tt(W,H,n),ne=Z=>{y&&y(Z);const xe=H.current,{right:Ie,left:le,width:pe}=xe.getBoundingClientRect();let U;A.direction==="rtl"?U=(Ie-Z.clientX)/pe:U=(Z.clientX-le)/pe;let Q=Qp(x*U+C/2,C);Q=li(Q,C,x),O(we=>we.hover===Q&&we.focus===Q?we:{hover:Q,focus:Q}),B(!1),E&&$!==Q&&E(Z,Q)},ce=Z=>{m&&m(Z);const xe=-1;O({hover:xe,focus:xe}),E&&$!==xe&&E(Z,xe)},q=Z=>{let xe=Z.target.value===""?null:parseFloat(Z.target.value);$!==-1&&(xe=$),D(xe),h&&h(Z,xe)},me=Z=>{Z.clientX===0&&Z.clientY===0||(O({hover:-1,focus:-1}),D(null),h&&parseFloat(Z.target.value)===_&&h(Z,null))},Se=Z=>{F(Z),V.current===!0&&B(!0);const xe=parseFloat(Z.target.value);O(Ie=>({hover:Ie.hover,focus:xe}))},Ee=Z=>{if($!==-1)return;I(Z),V.current===!1&&B(!1);const xe=-1;O(Ie=>({hover:Ie.hover,focus:xe}))},[re,ee]=v.useState(!1),j=b({},r,{defaultValue:i,disabled:s,emptyIcon:a,emptyLabelText:l,emptyValueFocused:re,focusVisible:se,getLabelText:c,icon:d,IconContainerComponent:p,max:x,precision:C,readOnly:w,size:S}),G=n$(j);return f.jsxs(r$,b({ref:z,onMouseMove:ne,onMouseLeave:ce,className:ue(G.root,o,w&&"MuiRating-readOnly"),ownerState:j,role:w?"img":null,"aria-label":w?c(L):null},k,{children:[Array.from(new Array(x)).map((Z,xe)=>{const Ie=xe+1,le={classes:G,disabled:s,emptyIcon:a,focus:R,getLabelText:c,highlightSelectedOnly:u,hover:$,icon:d,IconContainerComponent:p,name:M,onBlur:Ee,onChange:q,onClick:me,onFocus:Se,ratingValue:L,ratingValueRounded:_,readOnly:w,ownerState:j},pe=Ie===Math.ceil(L)&&($!==-1||R!==-1);if(C<1){const U=Array.from(new Array(1/C));return f.jsx(i$,{className:ue(G.decimal,pe&&G.iconActive),ownerState:j,iconActive:pe,children:U.map((Q,we)=>{const $e=Qp(Ie-1+(we+1)*C,C);return f.jsx(cv,b({},le,{isActive:!1,itemValue:$e,labelProps:{style:U.length-1===we?{}:{width:$e===L?`${(we+1)*C*100}%`:"0%",overflow:"hidden",position:"absolute"}}}),$e)})},Ie)}return f.jsx(cv,b({},le,{isActive:pe,itemValue:Ie}),Ie)}),!w&&!s&&f.jsxs(T6,{className:ue(G.label,G.labelEmptyValue),ownerState:j,children:[f.jsx("input",{className:G.visuallyHidden,value:"",id:`${M}-empty`,type:"radio",name:M,checked:_==null,onFocus:()=>ee(!0),onBlur:()=>ee(!1),onChange:q}),f.jsx("span",{className:G.visuallyHidden,children:l})]})]}))}),d$=u$;function f$(e){return _e("MuiSelect",e)}const ka=Pe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var uv;const p$=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],h$=Y("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ka.select}`]:t.select},{[`&.${ka.select}`]:t[n.variant]},{[`&.${ka.error}`]:t.error},{[`&.${ka.multiple}`]:t.multiple}]}})(w6,{[`&.${ka.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),m$=Y("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${oe(n.variant)}`],n.open&&t.iconOpen]}})(S6),g$=Y("input",{shouldForwardProp:e=>gf(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function dv(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function y$(e){return e==null||typeof e=="string"&&!e.trim()}const v$=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${oe(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return De(a,f$,t)},x$=v.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:x,error:g=!1,IconComponent:h,inputRef:E,labelId:m,MenuProps:y={},multiple:C,name:w,onBlur:S,onChange:P,onClose:k,onFocus:M,onOpen:T,open:D,readOnly:_,renderValue:A,SelectDisplayProps:$={},tabIndex:R,value:O,variant:L="standard"}=t,V=te(t,p$),[I,F]=kn({controlled:O,default:d,name:"Select"}),[W,se]=kn({controlled:D,default:u,name:"Select"}),B=v.useRef(null),H=v.useRef(null),[z,ne]=v.useState(null),{current:ce}=v.useRef(D!=null),[q,me]=v.useState(),Se=tt(n,E),Ee=v.useCallback(fe=>{H.current=fe,fe&&ne(fe)},[]),re=z==null?void 0:z.parentNode;v.useImperativeHandle(Se,()=>({focus:()=>{H.current.focus()},node:B.current,value:I}),[I]),v.useEffect(()=>{u&&W&&z&&!ce&&(me(a?null:re.clientWidth),H.current.focus())},[z,a]),v.useEffect(()=>{s&&H.current.focus()},[s]),v.useEffect(()=>{if(!m)return;const fe=Pt(H.current).getElementById(m);if(fe){const je=()=>{getSelection().isCollapsed&&H.current.focus()};return fe.addEventListener("click",je),()=>{fe.removeEventListener("click",je)}}},[m]);const ee=(fe,je)=>{fe?T&&T(je):k&&k(je),ce||(me(a?null:re.clientWidth),se(fe))},j=fe=>{fe.button===0&&(fe.preventDefault(),H.current.focus(),ee(!0,fe))},G=fe=>{ee(!1,fe)},Z=v.Children.toArray(l),xe=fe=>{const je=Z.find(ut=>ut.props.value===fe.target.value);je!==void 0&&(F(je.props.value),P&&P(fe,je))},Ie=fe=>je=>{let ut;if(je.currentTarget.hasAttribute("tabindex")){if(C){ut=Array.isArray(I)?I.slice():[];const wt=I.indexOf(fe.props.value);wt===-1?ut.push(fe.props.value):ut.splice(wt,1)}else ut=fe.props.value;if(fe.props.onClick&&fe.props.onClick(je),I!==ut&&(F(ut),P)){const wt=je.nativeEvent||je,vo=new wt.constructor(wt.type,wt);Object.defineProperty(vo,"target",{writable:!0,value:{value:ut,name:w}}),P(vo,fe)}C||ee(!1,je)}},le=fe=>{_||[" ","ArrowUp","ArrowDown","Enter"].indexOf(fe.key)!==-1&&(fe.preventDefault(),ee(!0,fe))},pe=z!==null&&W,U=fe=>{!pe&&S&&(Object.defineProperty(fe,"target",{writable:!0,value:{value:I,name:w}}),S(fe))};delete V["aria-invalid"];let Q,we;const $e=[];let ke=!1;(ad({value:I})||x)&&(A?Q=A(I):ke=!0);const X=Z.map(fe=>{if(!v.isValidElement(fe))return null;let je;if(C){if(!Array.isArray(I))throw new Error(Bo(2));je=I.some(ut=>dv(ut,fe.props.value)),je&&ke&&$e.push(fe.props.children)}else je=dv(I,fe.props.value),je&&ke&&(we=fe.props.children);return v.cloneElement(fe,{"aria-selected":je?"true":"false",onClick:Ie(fe),onKeyUp:ut=>{ut.key===" "&&ut.preventDefault(),fe.props.onKeyUp&&fe.props.onKeyUp(ut)},role:"option",selected:je,value:void 0,"data-value":fe.props.value})});ke&&(C?$e.length===0?Q=null:Q=$e.reduce((fe,je,ut)=>(fe.push(je),ut<$e.length-1&&fe.push(", "),fe),[]):Q=we);let he=q;!a&&ce&&z&&(he=re.clientWidth);let ve;typeof R<"u"?ve=R:ve=p?null:0;const ge=$.id||(w?`mui-component-select-${w}`:void 0),ye=b({},t,{variant:L,value:I,open:pe,error:g}),qe=v$(ye),Ve=b({},y.PaperProps,(r=y.slotProps)==null?void 0:r.paper),He=ho();return f.jsxs(v.Fragment,{children:[f.jsx(h$,b({ref:Ee,tabIndex:ve,role:"combobox","aria-controls":He,"aria-disabled":p?"true":void 0,"aria-expanded":pe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[m,ge].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:le,onMouseDown:p||_?null:j,onBlur:U,onFocus:M},$,{ownerState:ye,className:ue($.className,qe.select,c),id:ge,children:y$(Q)?uv||(uv=f.jsx("span",{className:"notranslate",children:"​"})):Q})),f.jsx(g$,b({"aria-invalid":g,value:Array.isArray(I)?I.join(","):I,name:w,ref:B,"aria-hidden":!0,onChange:xe,tabIndex:-1,disabled:p,className:qe.nativeInput,autoFocus:s,ownerState:ye},V)),f.jsx(m$,{as:h,className:qe.icon,ownerState:ye}),f.jsx(lI,b({id:`menu-${w||""}`,anchorEl:re,open:pe,onClose:G,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:b({"aria-labelledby":m,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:He},y.MenuListProps),slotProps:b({},y.slotProps,{paper:b({},Ve,{style:b({minWidth:he},Ve!=null?Ve.style:null)})}),children:X}))]})}),C$=x$,b$=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],w$=["root"],S$=e=>{const{classes:t}=e;return t},Um={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>an(e)&&e!=="variant",slot:"Root"},k$=Y(g6,Um)(""),E$=Y(E6,Um)(""),P$=Y(c6,Um)(""),R6=v.forwardRef(function(t,n){const r=Re({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=_R,id:d,input:p,inputProps:x,label:g,labelId:h,MenuProps:E,multiple:m=!1,native:y=!1,onClose:C,onOpen:w,open:S,renderValue:P,SelectDisplayProps:k,variant:M="outlined"}=r,T=te(r,b$),D=y?kI:C$,_=Lr(),A=Ko({props:r,muiFormControl:_,states:["variant","error"]}),$=A.variant||M,R=b({},r,{variant:$,classes:s}),O=S$(R),L=te(O,w$),V=p||{standard:f.jsx(k$,{ownerState:R}),outlined:f.jsx(E$,{label:g,ownerState:R}),filled:f.jsx(P$,{ownerState:R})}[$],I=tt(n,V.ref);return f.jsx(v.Fragment,{children:v.cloneElement(V,b({inputComponent:D,inputProps:b({children:i,error:A.error,IconComponent:u,variant:$,type:void 0,multiple:m},y?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:h,MenuProps:E,onClose:C,onOpen:w,open:S,renderValue:P,SelectDisplayProps:b({id:d},k)},x,{classes:x?nn(L,x.classes):L},p?p.props.inputProps:{})},m&&y&&$==="outlined"?{notched:!0}:{},{ref:I,className:ue(V.props.className,a,O.root)},!p&&{variant:$},T))})});R6.muiName="Select";const D6=R6;function M$(e){return _e("MuiSkeleton",e)}Pe("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const T$=["animation","className","component","height","style","variant","width"];let ld=e=>e,fv,pv,hv,mv;const R$=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:s}=e;return De({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!s&&"heightAuto"]},M$,t)},D$=Zl(fv||(fv=ld` 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } `)),_$=Zl(pv||(pv=ld` 0% { transform: translateX(-100%); } 50% { /* +0.5s of delay between each loop */ transform: translateX(100%); } 100% { transform: translateX(100%); } `)),O$=Y("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=sP(e.shape.borderRadius)||"px",r=aP(e.shape.borderRadius);return b({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Ne(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&S0(hv||(hv=ld` animation: ${0} 2s ease-in-out 0.5s infinite; `),D$),({ownerState:e,theme:t})=>e.animation==="wave"&&S0(mv||(mv=ld` position: relative; overflow: hidden; /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ -webkit-mask-image: -webkit-radial-gradient(white, black); &::after { animation: ${0} 2s linear 0.5s infinite; background: linear-gradient( 90deg, transparent, ${0}, transparent ); content: ''; position: absolute; transform: translateX(-100%); /* Avoid flash during server-side hydration */ bottom: 0; left: 0; right: 0; top: 0; } `),_$,(t.vars||t).palette.action.hover)),I$=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:s="span",height:a,style:l,variant:c="text",width:u}=r,d=te(r,T$),p=b({},r,{animation:o,component:s,variant:c,hasChildren:!!d.children}),x=R$(p);return f.jsx(O$,b({as:s,ref:n,className:ue(x.root,i),ownerState:p},d,{style:b({width:u,height:a},l)}))}),_6=I$,$$=e=>!e||!_r(e);function F$(e){return _e("MuiSlider",e)}const cr=Pe("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"]),A$=e=>{const{open:t}=e;return{offset:ue(t&&cr.valueLabelOpen),circle:cr.valueLabelCircle,label:cr.valueLabelLabel}};function L$(e){const{children:t,className:n,value:r}=e,o=A$(e);return t?v.cloneElement(t,{className:ue(t.props.className)},f.jsxs(v.Fragment,{children:[t.props.children,f.jsx("span",{className:ue(o.offset,n),"aria-hidden":!0,children:f.jsx("span",{className:o.circle,children:f.jsx("span",{className:o.label,children:r})})})]})):null}const j$=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function gv(e){return e}const N$=Y("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${oe(n.color)}`],n.size!=="medium"&&t[`size${oe(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>b({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&b({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&b({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${cr.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${cr.dragging}`]:{[`& .${cr.thumb}, & .${cr.track}`]:{transition:"none"}}})),V$=Y("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>b({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),z$=Y("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Fx(e.palette[t.color].main,.62):$x(e.palette[t.color].main,.5);return b({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),B$=Y("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${oe(n.color)}`],n.size!=="medium"&&t[`thumbSize${oe(n.size)}`]]}})(({theme:e,ownerState:t})=>b({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":b({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${cr.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Ne(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${cr.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Ne(e.palette[t.color].main,.16)}`},[`&.${cr.disabled}`]:{"&:hover":{boxShadow:"none"}}})),W$=Y(L$,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>b({[`&.${cr.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{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%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"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%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),H$=Y("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>gf(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>b({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),U$=Y("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>gf(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>b({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),Y$=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${oe(a)}`,l&&`size${oe(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${oe(l)}`,a&&`thumbColor${oe(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return De(c,F$,s)},G$=({children:e})=>e,q$=v.forwardRef(function(t,n){var r,o,i,s,a,l,c,u,d,p,x,g,h,E,m,y,C,w,S,P,k,M,T,D;const _=Re({props:t,name:"MuiSlider"}),$=Le().direction==="rtl",{"aria-label":R,"aria-valuetext":O,"aria-labelledby":L,component:V="span",components:I={},componentsProps:F={},color:W="primary",classes:se,className:B,disableSwap:H=!1,disabled:z=!1,getAriaLabel:ne,getAriaValueText:ce,marks:q=!1,max:me=100,min:Se=0,orientation:Ee="horizontal",size:re="medium",step:ee=1,scale:j=gv,slotProps:G,slots:Z,track:xe="normal",valueLabelDisplay:Ie="off",valueLabelFormat:le=gv}=_,pe=te(_,j$),U=b({},_,{isRtl:$,max:me,min:Se,classes:se,disabled:z,disableSwap:H,orientation:Ee,marks:q,color:W,size:re,step:ee,scale:j,track:xe,valueLabelDisplay:Ie,valueLabelFormat:le}),{axisProps:Q,getRootProps:we,getHiddenInputProps:$e,getThumbProps:ke,open:X,active:he,axis:ve,focusedThumbIndex:ge,range:ye,dragging:qe,marks:Ve,values:He,trackOffset:fe,trackLeap:je,getThumbStyle:ut}=eR(b({},U,{rootRef:n}));U.marked=Ve.length>0&&Ve.some(_t=>_t.label),U.dragging=qe,U.focusedThumbIndex=ge;const wt=Y$(U),vo=(r=(o=Z==null?void 0:Z.root)!=null?o:I.Root)!=null?r:N$,ji=(i=(s=Z==null?void 0:Z.rail)!=null?s:I.Rail)!=null?i:V$,sa=(a=(l=Z==null?void 0:Z.track)!=null?l:I.Track)!=null?a:z$,Ni=(c=(u=Z==null?void 0:Z.thumb)!=null?u:I.Thumb)!=null?c:B$,Vi=(d=(p=Z==null?void 0:Z.valueLabel)!=null?p:I.ValueLabel)!=null?d:W$,Xo=(x=(g=Z==null?void 0:Z.mark)!=null?g:I.Mark)!=null?x:H$,aa=(h=(E=Z==null?void 0:Z.markLabel)!=null?E:I.MarkLabel)!=null?h:U$,at=(m=(y=Z==null?void 0:Z.input)!=null?y:I.Input)!=null?m:"input",fn=(C=G==null?void 0:G.root)!=null?C:F.root,Jo=(w=G==null?void 0:G.rail)!=null?w:F.rail,jn=(S=G==null?void 0:G.track)!=null?S:F.track,ap=(P=G==null?void 0:G.thumb)!=null?P:F.thumb,lp=(k=G==null?void 0:G.valueLabel)!=null?k:F.valueLabel,O7=(M=G==null?void 0:G.mark)!=null?M:F.mark,I7=(T=G==null?void 0:G.markLabel)!=null?T:F.markLabel,$7=(D=G==null?void 0:G.input)!=null?D:F.input,F7=We({elementType:vo,getSlotProps:we,externalSlotProps:fn,externalForwardedProps:pe,additionalProps:b({},$$(vo)&&{as:V}),ownerState:b({},U,fn==null?void 0:fn.ownerState),className:[wt.root,B]}),A7=We({elementType:ji,externalSlotProps:Jo,ownerState:U,className:wt.rail}),L7=We({elementType:sa,externalSlotProps:jn,additionalProps:{style:b({},Q[ve].offset(fe),Q[ve].leap(je))},ownerState:b({},U,jn==null?void 0:jn.ownerState),className:wt.track}),cp=We({elementType:Ni,getSlotProps:ke,externalSlotProps:ap,ownerState:b({},U,ap==null?void 0:ap.ownerState),className:wt.thumb}),j7=We({elementType:Vi,externalSlotProps:lp,ownerState:b({},U,lp==null?void 0:lp.ownerState),className:wt.valueLabel}),up=We({elementType:Xo,externalSlotProps:O7,ownerState:U,className:wt.mark}),dp=We({elementType:aa,externalSlotProps:I7,ownerState:U,className:wt.markLabel}),N7=We({elementType:at,getSlotProps:$e,externalSlotProps:$7,ownerState:U});return f.jsxs(vo,b({},F7,{children:[f.jsx(ji,b({},A7)),f.jsx(sa,b({},L7)),Ve.filter(_t=>_t.value>=Se&&_t.value<=me).map((_t,Ht)=>{const fp=sd(_t.value,Se,me),pc=Q[ve].offset(fp);let Vr;return xe===!1?Vr=He.indexOf(_t.value)!==-1:Vr=xe==="normal"&&(ye?_t.value>=He[0]&&_t.value<=He[He.length-1]:_t.value<=He[0])||xe==="inverted"&&(ye?_t.value<=He[0]||_t.value>=He[He.length-1]:_t.value>=He[0]),f.jsxs(v.Fragment,{children:[f.jsx(Xo,b({"data-index":Ht},up,!_r(Xo)&&{markActive:Vr},{style:b({},pc,up.style),className:ue(up.className,Vr&&wt.markActive)})),_t.label!=null?f.jsx(aa,b({"aria-hidden":!0,"data-index":Ht},dp,!_r(aa)&&{markLabelActive:Vr},{style:b({},pc,dp.style),className:ue(wt.markLabel,dp.className,Vr&&wt.markLabelActive),children:_t.label})):null]},Ht)}),He.map((_t,Ht)=>{const fp=sd(_t,Se,me),pc=Q[ve].offset(fp),Vr=Ie==="off"?G$:Vi;return f.jsx(Vr,b({},!_r(Vr)&&{valueLabelFormat:le,valueLabelDisplay:Ie,value:typeof le=="function"?le(j(_t),Ht):le,index:Ht,open:X===Ht||he===Ht||Ie==="on",disabled:z},j7,{children:f.jsx(Ni,b({"data-index":Ht},cp,{className:ue(wt.thumb,cp.className,he===Ht&&wt.active,ge===Ht&&wt.focusVisible),style:b({},pc,ut(Ht),cp.style),children:f.jsx(at,b({"data-index":Ht,"aria-label":ne?ne(Ht):R,"aria-valuenow":j(_t),"aria-labelledby":L,"aria-valuetext":ce?ce(j(_t),Ht):O,value:He[Ht]},N7))}))}),Ht)})]}))}),K$=q$;function Z$(e){return _e("MuiTextField",e)}Pe("MuiTextField",["root"]);const X$=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],J$={standard:g6,filled:c6,outlined:E6},Q$=e=>{const{classes:t}=e;return De({root:["root"]},Z$,t)},eF=Y($f,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tF=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:x=!1,helperText:g,id:h,InputLabelProps:E,inputProps:m,InputProps:y,inputRef:C,label:w,maxRows:S,minRows:P,multiline:k=!1,name:M,onBlur:T,onChange:D,onFocus:_,placeholder:A,required:$=!1,rows:R,select:O=!1,SelectProps:L,type:V,value:I,variant:F="outlined"}=r,W=te(r,X$),se=b({},r,{autoFocus:i,color:l,disabled:u,error:d,fullWidth:x,multiline:k,required:$,select:O,variant:F}),B=Q$(se),H={};F==="outlined"&&(E&&typeof E.shrink<"u"&&(H.notched=E.shrink),H.label=w),O&&((!L||!L.native)&&(H.id=void 0),H["aria-describedby"]=void 0);const z=ho(h),ne=g&&z?`${z}-helper-text`:void 0,ce=w&&z?`${z}-label`:void 0,q=J$[F],me=f.jsx(q,b({"aria-describedby":ne,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:x,multiline:k,name:M,rows:R,maxRows:S,minRows:P,type:V,value:I,id:z,inputRef:C,onBlur:T,onChange:D,onFocus:_,placeholder:A,inputProps:m},H,y));return f.jsxs(eF,b({className:ue(B.root,a),disabled:u,error:d,fullWidth:x,ref:n,required:$,color:l,variant:F,ownerState:se},W,{children:[w!=null&&w!==""&&f.jsx(sO,b({htmlFor:z,id:ce},E,{children:w})),O?f.jsx(D6,b({"aria-describedby":ne,id:z,labelId:ce,value:I,input:me},L,{children:s})):me,g&&f.jsx(__,b({id:ne},p,{children:g}))]}))}),rc=tF;function nF(){return f.jsx(_6,{component:"div",variant:"rectangular",sx:{bgcolor:"grey",width:"100%",height:"100%"}})}var O6={exports:{}},I6={};/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Us=v;function rF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var oF=typeof Object.is=="function"?Object.is:rF,iF=Us.useState,sF=Us.useEffect,aF=Us.useLayoutEffect,lF=Us.useDebugValue;function cF(e,t){var n=t(),r=iF({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return aF(function(){o.value=n,o.getSnapshot=t,eh(o)&&i({inst:o})},[e,n,t]),sF(function(){return eh(o)&&i({inst:o}),e(function(){eh(o)&&i({inst:o})})},[e]),lF(n),n}function eh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!oF(e,n)}catch{return!0}}function uF(e,t){return t()}var dF=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?uF:cF;I6.useSyncExternalStore=Us.useSyncExternalStore!==void 0?Us.useSyncExternalStore:dF;O6.exports=I6;var $6=O6.exports;const To=()=>{},mn=To(),th=Object,Ze=e=>e===mn,Xr=e=>typeof e=="function",Wo=(e,t)=>({...e,...t}),fF=e=>Xr(e.then),Vc=new WeakMap;let pF=0;const _l=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(th(e)===e&&!r&&n!=RegExp){if(o=Vc.get(e),o)return o;if(o=++pF+"~",Vc.set(e,o),n==Array){for(o="@",i=0;iLf&&typeof window.requestAnimationFrame!=Ym,F6=(e,t)=>{const n=qr.get(e);return[()=>!Ze(t)&&e.get(t)||nh,r=>{if(!Ze(t)){const o=e.get(t);t in zc||(zc[t]=o),n[5](t,Wo(o,r),o||nh)}},n[6],()=>!Ze(t)&&t in zc?zc[t]:!Ze(t)&&e.get(t)||nh]};let L0=!0;const mF=()=>L0,[j0,N0]=Lf&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[To,To],gF=()=>{const e=A0&&document.visibilityState;return Ze(e)||e!=="hidden"},yF=e=>(A0&&document.addEventListener("visibilitychange",e),j0("focus",e),()=>{A0&&document.removeEventListener("visibilitychange",e),N0("focus",e)}),vF=e=>{const t=()=>{L0=!0,e()},n=()=>{L0=!1};return j0("online",t),j0("offline",n),()=>{N0("online",t),N0("offline",n)}},xF={isOnline:mF,isVisible:gF},CF={initFocus:yF,initReconnect:vF},yv=!Fe.useId,Ol=!Lf||"Deno"in window,bF=e=>hF()?window.requestAnimationFrame(e):setTimeout(e,1),rh=Ol?v.useEffect:v.useLayoutEffect,oh=typeof navigator<"u"&&navigator.connection,vv=!Ol&&oh&&(["slow-2g","2g"].includes(oh.effectiveType)||oh.saveData),Gm=e=>{if(Xr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?_l(e):"",[e,t]};let wF=0;const V0=()=>++wF,A6=0,L6=1,j6=2,SF=3;var Ea={__proto__:null,ERROR_REVALIDATE_EVENT:SF,FOCUS_EVENT:A6,MUTATE_EVENT:j6,RECONNECT_EVENT:L6};async function N6(...e){const[t,n,r,o]=e,i=Wo({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let s=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const c=i.revalidate!==!1,u=x=>typeof a=="function"?a(x):a!==!1,d=i.throwOnError;if(Xr(n)){const x=n,g=[],h=t.keys();for(const E of h)!/^\$(inf|sub)\$/.test(E)&&x(t.get(E)._k)&&g.push(E);return Promise.all(g.map(p))}return p(n);async function p(x){const[g]=Gm(x);if(!g)return;const[h,E]=F6(t,g),[m,y,C,w]=qr.get(t),S=()=>{const R=m[g];return c&&(delete C[g],delete w[g],R&&R[0])?R[0](j6).then(()=>h().data):h().data};if(e.length<3)return S();let P=r,k;const M=V0();y[g]=[M,0];const T=!Ze(l),D=h(),_=D.data,A=D._c,$=Ze(A)?_:A;if(T&&(l=Xr(l)?l($,_):l,E({data:l,_c:$})),Xr(P))try{P=P($)}catch(R){k=R}if(P&&fF(P))if(P=await P.catch(R=>{k=R}),M!==y[g][0]){if(k)throw k;return P}else k&&T&&u(k)&&(s=!0,E({data:$,_c:mn}));if(s&&!k)if(Xr(s)){const R=s(P,$);E({data:R,error:mn,_c:mn})}else E({data:P,error:mn,_c:mn});if(y[g][1]=V0(),Promise.resolve(S()).then(()=>{E({_c:mn})}),k){if(d)throw k;return}return P}}const xv=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},kF=(e,t)=>{if(!qr.has(e)){const n=Wo(CF,t),r={},o=N6.bind(mn,e);let i=To;const s={},a=(u,d)=>{const p=s[u]||[];return s[u]=p,p.push(d),()=>p.splice(p.indexOf(d),1)},l=(u,d,p)=>{e.set(u,d);const x=s[u];if(x)for(const g of x)g(d,p)},c=()=>{if(!qr.has(e)&&(qr.set(e,[r,{},{},{},o,l,a]),!Ol)){const u=n.initFocus(setTimeout.bind(mn,xv.bind(mn,r,A6))),d=n.initReconnect(setTimeout.bind(mn,xv.bind(mn,r,L6)));i=()=>{u&&u(),d&&d(),qr.delete(e)}}};return c(),[e,o,c,i]}return[e,qr.get(e)[4]]},EF=(e,t,n,r,o)=>{const i=n.errorRetryCount,s=o.retryCount,a=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!Ze(i)&&s>i||setTimeout(r,a,o)},PF=(e,t)=>_l(e)==_l(t),[V6,MF]=kF(new Map),TF=Wo({onLoadingSlow:To,onSuccess:To,onError:To,onErrorRetry:EF,onDiscarded:To,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:vv?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:vv?5e3:3e3,compare:PF,isPaused:()=>!1,cache:V6,mutate:MF,fallback:{}},xF),RF=(e,t)=>{const n=Wo(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:s}=t;r&&i&&(n.use=r.concat(i)),o&&s&&(n.fallback=Wo(o,s))}return n},DF=v.createContext({}),_F="$inf$",z6=Lf&&window.__SWR_DEVTOOLS_USE__,OF=z6?window.__SWR_DEVTOOLS_USE__:[],IF=()=>{z6&&(window.__SWR_DEVTOOLS_REACT__=Fe)},$F=e=>Xr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],FF=()=>Wo(TF,v.useContext(DF)),AF=e=>(t,n,r)=>e(t,n&&((...i)=>{const[s]=Gm(t),[,,,a]=qr.get(V6);if(s.startsWith(_F))return n(...i);const l=a[s];return Ze(l)?n(...i):(delete a[s],l)}),r),LF=OF.concat(AF),jF=e=>function(...n){const r=FF(),[o,i,s]=$F(n),a=RF(r,s);let l=e;const{use:c}=a,u=(c||[]).concat(LF);for(let d=u.length;d--;)l=u[d](l);return l(o,i||a.fetcher||null,a)},NF=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};IF();const Cv=Fe.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),ih={dedupe:!0},VF=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:s,revalidateOnMount:a,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:p}=n,[x,g,h,E]=qr.get(r),[m,y]=Gm(e),C=v.useRef(!1),w=v.useRef(!1),S=v.useRef(m),P=v.useRef(t),k=v.useRef(n),M=()=>k.current,T=()=>M().isVisible()&&M().isOnline(),[D,_,A,$]=F6(r,m),R=v.useRef({}).current,O=Ze(s)?n.fallback[m]:s,L=(ee,j)=>{for(const G in R){const Z=G;if(Z==="data"){if(!o(ee[Z],j[Z])&&(!Ze(ee[Z])||!o(ne,j[Z])))return!1}else if(j[Z]!==ee[Z])return!1}return!0},V=v.useMemo(()=>{const ee=!m||!t?!1:Ze(a)?M().isPaused()||i?!1:Ze(l)?!0:l:a,j=pe=>{const U=Wo(pe);return delete U._k,ee?{isValidating:!0,isLoading:!0,...U}:U},G=D(),Z=$(),xe=j(G),Ie=G===Z?xe:j(Z);let le=xe;return[()=>{const pe=j(D());return L(pe,le)?(le.data=pe.data,le.isLoading=pe.isLoading,le.isValidating=pe.isValidating,le.error=pe.error,le):(le=pe,pe)},()=>Ie]},[r,m]),I=$6.useSyncExternalStore(v.useCallback(ee=>A(m,(j,G)=>{L(G,j)||ee()}),[r,m]),V[0],V[1]),F=!C.current,W=x[m]&&x[m].length>0,se=I.data,B=Ze(se)?O:se,H=I.error,z=v.useRef(B),ne=p?Ze(se)?z.current:se:B,ce=W&&!Ze(H)?!1:F&&!Ze(a)?a:M().isPaused()?!1:i?Ze(B)?!1:l:Ze(B)||l,q=!!(m&&t&&F&&ce),me=Ze(I.isValidating)?q:I.isValidating,Se=Ze(I.isLoading)?q:I.isLoading,Ee=v.useCallback(async ee=>{const j=P.current;if(!m||!j||w.current||M().isPaused())return!1;let G,Z,xe=!0;const Ie=ee||{},le=!h[m]||!Ie.dedupe,pe=()=>yv?!w.current&&m===S.current&&C.current:m===S.current,U={isValidating:!1,isLoading:!1},Q=()=>{_(U)},we=()=>{const ke=h[m];ke&&ke[1]===Z&&delete h[m]},$e={isValidating:!0};Ze(D().data)&&($e.isLoading=!0);try{if(le&&(_($e),n.loadingTimeout&&Ze(D().data)&&setTimeout(()=>{xe&&pe()&&M().onLoadingSlow(m,n)},n.loadingTimeout),h[m]=[j(y),V0()]),[G,Z]=h[m],G=await G,le&&setTimeout(we,n.dedupingInterval),!h[m]||h[m][1]!==Z)return le&&pe()&&M().onDiscarded(m),!1;U.error=mn;const ke=g[m];if(!Ze(ke)&&(Z<=ke[0]||Z<=ke[1]||ke[1]===0))return Q(),le&&pe()&&M().onDiscarded(m),!1;const X=D().data;U.data=o(X,G)?X:G,le&&pe()&&M().onSuccess(G,m,n)}catch(ke){we();const X=M(),{shouldRetryOnError:he}=X;X.isPaused()||(U.error=ke,le&&pe()&&(X.onError(ke,m,X),(he===!0||Xr(he)&&he(ke))&&T()&&X.onErrorRetry(ke,m,X,ve=>{const ge=x[m];ge&&ge[0]&&ge[0](Ea.ERROR_REVALIDATE_EVENT,ve)},{retryCount:(Ie.retryCount||0)+1,dedupe:!0})))}return xe=!1,Q(),!0},[m,r]),re=v.useCallback((...ee)=>N6(r,S.current,...ee),[]);if(rh(()=>{P.current=t,k.current=n,Ze(se)||(z.current=se)}),rh(()=>{if(!m)return;const ee=Ee.bind(mn,ih);let j=0;const Z=NF(m,x,(xe,Ie={})=>{if(xe==Ea.FOCUS_EVENT){const le=Date.now();M().revalidateOnFocus&&le>j&&T()&&(j=le+M().focusThrottleInterval,ee())}else if(xe==Ea.RECONNECT_EVENT)M().revalidateOnReconnect&&T()&&ee();else{if(xe==Ea.MUTATE_EVENT)return Ee();if(xe==Ea.ERROR_REVALIDATE_EVENT)return Ee(Ie)}});return w.current=!1,S.current=m,C.current=!0,_({_k:y}),ce&&(Ze(B)||Ol?ee():bF(ee)),()=>{w.current=!0,Z()}},[m]),rh(()=>{let ee;function j(){const Z=Xr(c)?c(D().data):c;Z&&ee!==-1&&(ee=setTimeout(G,Z))}function G(){!D().error&&(u||M().isVisible())&&(d||M().isOnline())?Ee(ih).then(j):j()}return j(),()=>{ee&&(clearTimeout(ee),ee=-1)}},[c,u,d,m]),v.useDebugValue(ne),i&&Ze(B)&&m){if(!yv&&Ol)throw new Error("Fallback data is required when using suspense in SSR.");P.current=t,k.current=n,w.current=!1;const ee=E[m];if(!Ze(ee)){const j=re(ee);Cv(j)}if(Ze(H)){const j=Ee(ih);Ze(ne)||(j.status="fulfilled",j.value=!0),Cv(j)}else throw H}return{mutate:re,get data(){return R.data=!0,ne},get error(){return R.error=!0,H},get isValidating(){return R.isValidating=!0,me},get isLoading(){return R.isLoading=!0,Se}}},zF=jF(VF),B6=v.createContext(null),jt=()=>{const e=v.useContext(B6);if(e===null)throw new Error("QuizData context is null");return e},BF=["localeText"],z0=v.createContext(null),qm=function(t){var n;const{localeText:r}=t,o=te(t,BF),{utils:i,localeText:s}=(n=v.useContext(z0))!=null?n:{utils:void 0,localeText:void 0},a=Re({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:p,localeText:x}=a,g=v.useMemo(()=>b({},x,s,r),[x,s,r]),h=v.useMemo(()=>{if(!c)return i||null;const y=new c({locale:p,formats:u,instance:d});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` `));return y},[c,p,u,d,i]),E=v.useMemo(()=>h?{minDate:h.date("1900-01-01T00:00:00.000"),maxDate:h.date("2099-12-31T00:00:00.000")}:null,[h]),m=v.useMemo(()=>({utils:h,defaultDates:E,localeText:g}),[E,h,g]);return f.jsx(z0.Provider,{value:m,children:l})},W6=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:b({},e)}}}}),H6={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},WF=H6;W6(H6);const Fi=()=>{const e=v.useContext(z0);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` `));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` `));const t=v.useMemo(()=>b({},WF,e.localeText),[e.localeText]);return v.useMemo(()=>b({},e,{localeText:t}),[e,t])},ct=()=>Fi().utils,oc=()=>Fi().defaultDates,Zo=()=>Fi().localeText,ic=e=>{const t=ct(),n=v.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},HF=Xt(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),UF=Xt(f.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),YF=Xt(f.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),GF=Xt(f.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Xt(f.jsxs(v.Fragment,{children:[f.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");Xt(f.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");Xt(f.jsxs(v.Fragment,{children:[f.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const qF=Xt(f.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"}),"Clear");function KF(e){return _e("MuiPickersArrowSwitcher",e)}Pe("MuiPickersArrowSwitcher",["root","spacer","button"]);const ZF=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],XF=["ownerState"],JF=["ownerState"],QF=Y("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),eA=Y("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),bv=Y(ta,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>b({},e.hidden&&{visibility:"hidden"})),tA=e=>{const{classes:t}=e;return De({root:["root"],spacer:["spacer"],button:["button"]},KF,t)},nA=v.forwardRef(function(t,n){var r,o,i,s;const l=Le().direction==="rtl",c=Re({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:d,slots:p,slotProps:x,isNextDisabled:g,isNextHidden:h,onGoToNext:E,nextLabel:m,isPreviousDisabled:y,isPreviousHidden:C,onGoToPrevious:w,previousLabel:S}=c,P=te(c,ZF),k=c,M=tA(k),T={isDisabled:g,isHidden:h,goTo:E,label:m},D={isDisabled:y,isHidden:C,goTo:w,label:S},_=(r=p==null?void 0:p.previousIconButton)!=null?r:bv,A=We({elementType:_,externalSlotProps:x==null?void 0:x.previousIconButton,additionalProps:{size:"medium",title:D.label,"aria-label":D.label,disabled:D.isDisabled,edge:"end",onClick:D.goTo},ownerState:b({},k,{hidden:D.isHidden}),className:M.button}),$=(o=p==null?void 0:p.nextIconButton)!=null?o:bv,R=We({elementType:$,externalSlotProps:x==null?void 0:x.nextIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"start",onClick:T.goTo},ownerState:b({},k,{hidden:T.isHidden}),className:M.button}),O=(i=p==null?void 0:p.leftArrowIcon)!=null?i:UF,L=We({elementType:O,externalSlotProps:x==null?void 0:x.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),V=te(L,XF),I=(s=p==null?void 0:p.rightArrowIcon)!=null?s:YF,F=We({elementType:I,externalSlotProps:x==null?void 0:x.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),W=te(F,JF);return f.jsxs(QF,b({ref:n,className:ue(M.root,d),ownerState:k},P,{children:[f.jsx(_,b({},A,{children:l?f.jsx(I,b({},W)):f.jsx(O,b({},V))})),u?f.jsx(Te,{variant:"subtitle1",component:"span",children:u}):f.jsx(eA,{className:M.spacer,ownerState:k}),f.jsx($,b({},R,{children:l?f.jsx(O,b({},V)):f.jsx(I,b({},W))}))]}))}),Pa=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),rA=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:i}},oA=["hours","minutes","seconds"],iA=e=>oA.includes(e),wv=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),sA=(e,t)=>(n,r)=>e?t.isAfter(n,r):wv(n,t)>wv(r,t);function U6({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:s,onFocusedViewChange:a}){var l,c;const u=v.useRef(n),d=v.useRef(o),p=v.useRef(o.includes(n)?n:o[0]),[x,g]=kn({name:"useViews",state:"view",controlled:r,default:p.current}),h=v.useRef(i?x:null),[E,m]=kn({name:"useViews",state:"focusedView",controlled:s,default:h.current});v.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(T=>!o.includes(T)))&&(g(o.includes(n)?n:o[0]),d.current=o,u.current=n)},[n,g,x,o]);const y=o.indexOf(x),C=(l=o[y-1])!=null?l:null,w=(c=o[y+1])!=null?c:null,S=Me((T,D)=>{m(D?T:_=>T===_?null:_),a==null||a(T,D)}),P=Me(T=>{S(T,!0),T!==x&&(g(T),t&&t(T))}),k=Me(()=>{w&&P(w)}),M=Me((T,D,_)=>{const A=D==="finish",$=_?o.indexOf(_){const i=o.dateWithTimezone(void 0,r),s=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(s,e)},[t,n,e,o,r])}function lA(e,{disablePast:t,minDate:n,timezone:r}){const o=ct();return v.useMemo(()=>{const i=o.dateWithTimezone(void 0,r),s=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(s,e)},[t,n,e,o,r])}const Il=36,jf=2,Nf=320,cA=280,Km=334,uA=Y("div")({overflow:"hidden",width:Nf,maxHeight:Km,display:"flex",flexDirection:"column",margin:"0 auto"}),ol=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:s,timezone:a})=>{const l=s.startOfDay(s.dateWithTimezone(void 0,a));n&&s.isBefore(o,l)&&(o=l),t&&s.isAfter(r,l)&&(r=l);let c=e,u=e;for(s.isBefore(e,o)&&(c=o,u=null),s.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&s.isAfter(c,r)&&(c=null),u&&s.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=s.addDays(c,1)}if(u){if(!i(u))return u;u=s.addDays(u,-1)}}return null},dA=(e,t)=>t==null||!e.isValid(t)?null:t,Qn=(e,t,n)=>t==null||!e.isValid(t)?n:t,fA=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Zm=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},B0=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},Y6=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),pA=["year","month","day"],Sv=e=>pA.includes(e),Xm=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Pa(n,["year"])?o.year:Pa(n,["month"])?o.month:Pa(n,["day"])?o.dayOfMonth:Pa(n,["month","year"])?`${o.month} ${o.year}`:Pa(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},hA=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Jm=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var i,s;const a=ct(),l=v.useRef(n),c=(i=t??l.current)!=null?i:o.emptyValue,u=v.useMemo(()=>o.getTimezone(a,c),[a,o,c]),d=Me(h=>u==null?h:o.setTimezone(a,u,h)),p=(s=e??u)!=null?s:"default",x=v.useMemo(()=>o.setTimezone(a,p,c),[o,a,p,c]),g=Me((h,...E)=>{const m=d(h);r==null||r(m,...E)});return{value:x,handleValueChange:g,timezone:p}},Qm=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:i})=>{const[s,a]=kn({name:e,state:"value",controlled:n,default:r??i.emptyValue}),l=Me((c,...u)=>{a(c),o==null||o(c,...u)});return Jm({timezone:t,value:s,defaultValue:void 0,onChange:l,valueManager:i})},Sr={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},mA=e=>Math.max(...e.map(t=>{var n;return(n=Sr[t.type])!=null?n:1})),Ma=(e,t,n)=>{if(t===Sr.year)return e.startOfYear(n);if(t===Sr.month)return e.startOfMonth(n);if(t===Sr.day)return e.startOfDay(n);let r=n;return t{var i;let s=o?o():Ma(t,n,Y6(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=Ma(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=Ma(t,n,e.maxDate));const a=sA((i=e.disableIgnoringDatePartForTimeValidation)!=null?i:!1,t);return e.minTime!=null&&a(e.minTime,s)&&(s=Ma(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:B0(t,s,e.minTime))),e.maxTime!=null&&a(s,e.maxTime)&&(s=Ma(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:B0(t,s,e.maxTime))),s},G6=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},yA=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Vf=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),i=e.startOfWeek(o),s=e.endOfWeek(o);let a=i;for(;e.isBefore(a,s);)r.push(a),a=e.addDays(a,1);return r.map(l=>e.formatByString(l,n))},q6=(e,t,n,r)=>{switch(n){case"month":return Zm(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Vf(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},K6=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const s=e.setDate(r.longestMonth,n);return e.formatByString(s,o.format)}const i=n.toString();return o.hasLeadingZerosInInput?K6(e,i,o.maxLength):i},vA=(e,t,n,r,o,i,s)=>{const a=yA(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,d=()=>{const x=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),g=y=>Z6(e,t,y,x,n),h=n.type==="minutes"&&s!=null&&s.minutesStep?s.minutesStep:1;let m=parseInt(n.value,10)+a*h;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);a>0||l?m=x.minimum:m=x.maximum}return m%h!==0&&((a<0||l)&&(m+=h-(h+m)%h),(a>0||c)&&(m-=m%h)),m>x.maximum?g(x.minimum+(m-x.maximum-1)%(x.maximum-x.minimum+1)):m{const x=q6(e,t,n.type,n.format);if(x.length===0)return n.value;if(u)return a>0||l?x[0]:x[x.length-1];const h=(x.indexOf(n.value)+x.length+a)%x.length;return x[h]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?d():p()},eg=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},hs=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),X6=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let i=0;i{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length,format:o});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:o});case"day":return n.fieldDayPlaceholder({format:o});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:o});case"hours":return n.fieldHoursPlaceholder({format:o});case"minutes":return n.fieldMinutesPlaceholder({format:o});case"seconds":return n.fieldSecondsPlaceholder({format:o});case"meridiem":return n.fieldMeridiemPlaceholder({format:o});default:return o}},kv=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),J6=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,Q6=(e,t,n,r,o)=>{if(n!=="digit")return!1;const i=e.dateWithTimezone(void 0,t);switch(r){case"year":return J6(e,t,o)?e.formatByString(e.setYear(i,1),o)==="0001":e.formatByString(e.setYear(i,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(i),o).length>1;case"day":return e.formatByString(e.startOfMonth(i),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),o).length>1;case"hours":return e.formatByString(e.setHours(i,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(i,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(i,1),o).length>1;default:throw new Error("Invalid section type")}},CA=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let s=null;for(;s=i.exec(t);)n.push({start:s.index,end:i.lastIndex-1});return n},Ev=(e,t,n,r,o,i,s,a)=>{let l="";const c=[],u=e.date(),d=C=>{if(C==="")return null;const w=G6(e,C),S=Q6(e,t,w.contentType,w.type,C),P=s?S:w.contentType==="digit",k=o!=null&&e.isValid(o);let M=k?e.formatByString(o,C):"",T=null;if(P)if(S)T=M===""?e.formatByString(u,C).length:M.length;else{if(w.maxLength==null)throw new Error(`MUI: The token ${C} should have a 'maxDigitNumber' property on it's adapter`);T=w.maxLength,k&&(M=K6(e,M,T))}return c.push(b({},w,{format:C,maxLength:T,value:M,placeholder:xA(e,t,n,w,C),hasLeadingZeros:S,hasLeadingZerosInFormat:S,hasLeadingZerosInInput:P,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,x=r,g=e.expandFormat(r);for(;g!==x;)if(x=g,g=e.expandFormat(x),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const h=g,E=CA(e,h),m=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((C,w)=>w.length-C.length).join("|")})`,"g");let y="";for(let C=0;CT.start<=C&&T.end>=C),S=h[C],P=w!=null,k=`${y}${h.slice(C)}`,M=m.test(k);!P&&S.match(/([A-Za-z]+)/)&&M?(y=k.slice(0,m.lastIndex),C+=m.lastIndex-1):P&&(w==null?void 0:w.start)===C||(w==null?void 0:w.end)===C||(d(y),y="",c.length===0?l+=S:c[c.length-1].endSeparator+=S)}return d(y),c.map(C=>{const w=S=>{let P=S;return a&&P!==null&&P.includes(" ")&&(P=`⁩${P}⁦`),i==="spacious"&&["/",".","-"].includes(P)&&(P=` ${P} `),P};return C.startSeparator=w(C.startSeparator),C.endSeparator=w(C.endSeparator),C})},bA=(e,t)=>{const n=t.some(a=>a.type==="day"),r=[],o=[];for(let a=0;a{const r=e.map(o=>{const i=eg(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${i}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},SA=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:i,longestMonth:s}=Zm(e,n).reduce((a,l)=>{const c=e.getDaysInMonth(l);return c>a.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:a},{maxDaysInMonth:0,longestMonth:null});return{year:({format:a})=>({minimum:0,maximum:J6(e,t,a)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:a})=>({minimum:1,maximum:a!=null&&e.isValid(a)?e.getDaysInMonth(a):i,longestMonth:s}),weekDay:({format:a,contentType:l})=>{if(l==="digit"){const c=Vf(e,t,a).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:a})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),a)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),a))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},kA=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const i=Vf(e,t,n.format),s=e.formatByString(r,n.format),a=i.indexOf(s),c=i.indexOf(n.value)-a;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const i=e.getHours(r)<12,s=e.getHours(o);return i&&s>=12?e.addHours(o,-12):!i&&s<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},Pv={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},Mv=(e,t,n,r,o,i)=>[...r].sort((s,a)=>Pv[s.type]-Pv[a.type]).reduce((s,a)=>!i||a.modified?kA(e,t,a,n,s):s,o),EA=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,PA=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,s=0,a=e.length-1;for(;a>=0;){s=e.findIndex((l,c)=>{var u;return c>=i&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),s===-1&&(s=e.length-1);for(let l=s;l>=i;l-=1)o[l]=a,r[a]=l,a-=1;i=s+1}return e.forEach((l,c)=>{const u=o[c],d=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:d,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},MA=["value","referenceDate"],uo={emptyValue:null,getTodayValue:Y6,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=te(e,MA);return t!=null&&r.utils.isValid(t)?t:n??gA(r)},cleanValue:dA,areValuesEqual:fA,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},TA={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:X6(o(t),r),getValueStrFromSections:wA,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},e4=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>b({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function RA(e){return _e("MuiPickersDay",e)}const ei=Pe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),DA=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],_A=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:a,classes:l}=e,c=s&&!a;return De({root:["root",t&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},RA,l)},t4=({theme:e,ownerState:t})=>b({},e.typography.caption,{width:Il,height:Il,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ne(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${ei.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ei.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ei.disabled}:not(.${ei.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${ei.disabled}&.${ei.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${jf}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${ei.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),n4=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},OA=Y(Ir,{name:"MuiPickersDay",slot:"Root",overridesResolver:n4})(t4),IA=Y("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:n4})(({theme:e,ownerState:t})=>b({},t4({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Ta=()=>{},$A=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:s,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:p,onFocus:x=Ta,onBlur:g=Ta,onKeyDown:h=Ta,onMouseDown:E=Ta,onMouseEnter:m=Ta,outsideCurrentMonth:y,selected:C=!1,showDaysOutsideCurrentMonth:w=!1,children:S,today:P=!1}=r,k=te(r,DA),M=b({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:C,showDaysOutsideCurrentMonth:w,today:P}),T=_A(M),D=ct(),_=v.useRef(null),A=tt(_,n);Lt(()=>{o&&!a&&!u&&!y&&_.current.focus()},[o,a,u,y]);const $=O=>{E(O),y&&O.preventDefault()},R=O=>{a||p(s),y&&O.currentTarget.focus(),d&&d(O)};return y&&!w?f.jsx(IA,{className:ue(T.root,T.hiddenDaySpacingFiller,i),ownerState:M,role:k.role}):f.jsx(OA,b({className:ue(T.root,i),ref:A,centerRipple:!0,disabled:a,tabIndex:C?0:-1,onKeyDown:O=>h(O,s),onFocus:O=>x(O,s),onBlur:O=>g(O,s),onMouseEnter:O=>m(O,s),onClick:R,onMouseDown:$},k,{ownerState:M,children:S||D.format(s,"dayOfMonth")}))}),FA=v.memo($A),Tv={hours:"часы",minutes:"минуты",seconds:"секунды",meridiem:"меридием"},AA={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerToolbarTitle:"Выбрать дату",dateTimePickerToolbarTitle:"Выбрать дату и время",timePickerToolbarTitle:"Выбрать время",dateRangePickerToolbarTitle:"Выбрать период",clockLabelText:(e,t,n)=>`Выбрать ${Tv[e]}. ${t===null?"Время не выбрано":`Выбрано время ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,selectViewText:e=>`Выбрать ${Tv[e]}`,calendarWeekNumberHeaderLabel:"Номер недели",calendarWeekNumberHeaderText:"№",calendarWeekNumberAriaLabelText:e=>`Неделя ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",fieldClearLabel:"Очистить значение",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату",fieldYearPlaceholder:e=>"Г".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"ММММ":"ММ",fieldDayPlaceholder:()=>"ДД",fieldHoursPlaceholder:()=>"чч",fieldMinutesPlaceholder:()=>"мм",fieldSecondsPlaceholder:()=>"сс",fieldMeridiemPlaceholder:()=>"(д|п)п"},LA=W6(AA);function r4(e,t,n,r){const{value:o,onError:i}=e,s=Fi(),a=v.useRef(r),l=t({adapter:s,value:o,props:e});return v.useEffect(()=>{i&&!n(l,a.current)&&i(l,o),a.current=l},[n,i,a,l,o]),l}const jA=e=>{const t=ct(),n=Zo(),r=Fi(),i=Le().direction==="rtl",{valueManager:s,fieldValueManager:a,valueType:l,validator:c,internalProps:u,internalProps:{value:d,defaultValue:p,referenceDate:x,onChange:g,format:h,formatDensity:E="dense",selectedSections:m,onSelectedSectionsChange:y,shouldRespectLeadingZeros:C=!1,timezone:w}}=e,{timezone:S,value:P,handleValueChange:k}=Jm({timezone:w,value:d,defaultValue:p,onChange:g,valueManager:s}),M=v.useMemo(()=>SA(t,S),[t,S]),T=v.useCallback((z,ne=null)=>a.getSectionsFromValue(t,z,ne,i,ce=>Ev(t,S,n,h,ce,E,C,i)),[a,h,n,i,C,t,E,S]),D=v.useMemo(()=>a.getValueStrFromSections(T(s.emptyValue),i),[a,T,s.emptyValue,i]),[_,A]=v.useState(()=>{const z=T(P),ne={sections:z,value:P,referenceValue:s.emptyValue,tempValueStrAndroid:null},ce=mA(z),q=s.getInitialReferenceValue({referenceDate:x,value:P,utils:t,props:u,granularity:ce,timezone:S});return b({},ne,{referenceValue:q})}),[$,R]=kn({controlled:m,default:null,name:"useField",state:"selectedSectionIndexes"}),O=z=>{R(z),y==null||y(z),A(ne=>b({},ne,{selectedSectionQuery:null}))},L=v.useMemo(()=>{if($==null)return null;if($==="all")return{startIndex:0,endIndex:_.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof $=="number")return{startIndex:$,endIndex:$};if(typeof $=="string"){const z=_.sections.findIndex(ne=>ne.type===$);return{startIndex:z,endIndex:z}}return $},[$,_.sections]),V=({value:z,referenceValue:ne,sections:ce})=>{if(A(me=>b({},me,{sections:ce,value:z,referenceValue:ne,tempValueStrAndroid:null})),s.areValuesEqual(t,_.value,z))return;const q={validationError:c({adapter:r,value:z,props:b({},u,{value:z,timezone:S})})};k(z,q)},I=(z,ne)=>{const ce=[..._.sections];return ce[z]=b({},ce[z],{value:ne,modified:!0}),X6(ce,i)},F=()=>{V({value:s.emptyValue,referenceValue:_.referenceValue,sections:T(s.emptyValue)})},W=()=>{if(L==null)return;const z=_.sections[L.startIndex],ne=a.getActiveDateManager(t,_,z),q=ne.getSections(_.sections).filter(re=>re.value!=="").length===(z.value===""?0:1),me=I(L.startIndex,""),Se=q?null:t.date(new Date("")),Ee=ne.getNewValuesFromNewActiveDate(Se);(Se!=null&&!t.isValid(Se))!=(ne.date!=null&&!t.isValid(ne.date))?V(b({},Ee,{sections:me})):A(re=>b({},re,Ee,{sections:me,tempValueStrAndroid:null}))},se=z=>{const ne=(me,Se)=>{const Ee=t.parse(me,h);if(Ee==null||!t.isValid(Ee))return null;const re=Ev(t,S,n,h,Ee,E,C,i);return Mv(t,S,Ee,re,Se,!1)},ce=a.parseValueStr(z,_.referenceValue,ne),q=a.updateReferenceValue(t,ce,_.referenceValue);V({value:ce,referenceValue:q,sections:T(ce,_.sections)})},B=({activeSection:z,newSectionValue:ne,shouldGoToNextSection:ce})=>{ce&&L&&L.startIndex<_.sections.length-1?O(L.startIndex+1):L&&L.startIndex!==L.endIndex&&O(L.startIndex);const q=a.getActiveDateManager(t,_,z),me=I(L.startIndex,ne),Se=q.getSections(me),Ee=bA(t,Se);let re,ee;if(Ee!=null&&t.isValid(Ee)){const j=Mv(t,S,Ee,Se,q.referenceDate,!0);re=q.getNewValuesFromNewActiveDate(j),ee=!0}else re=q.getNewValuesFromNewActiveDate(Ee),ee=(Ee!=null&&!t.isValid(Ee))!=(q.date!=null&&!t.isValid(q.date));return ee?V(b({},re,{sections:me})):A(j=>b({},j,re,{sections:me,tempValueStrAndroid:null}))},H=z=>A(ne=>b({},ne,{tempValueStrAndroid:z}));return v.useEffect(()=>{const z=T(_.value);A(ne=>b({},ne,{sections:z}))},[h,t.locale]),v.useEffect(()=>{let z=!1;s.areValuesEqual(t,_.value,P)?z=s.getTimezone(t,_.value)!==s.getTimezone(t,P):z=!0,z&&A(ne=>b({},ne,{value:P,referenceValue:a.updateReferenceValue(t,P,ne.referenceValue),sections:T(P)}))},[P]),{state:_,selectedSectionIndexes:L,setSelectedSections:O,clearValue:F,clearActiveSection:W,updateSectionValue:B,updateValueFromValueStr:se,setTempAndroidValueStr:H,sectionsValueBoundaries:M,placeholder:D,timezone:S}},NA=5e3,qi=e=>e.saveQuery!=null,VA=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const i=ct(),[s,a]=v.useState(null),l=Me(()=>a(null));v.useEffect(()=>{var x;s!=null&&((x=e[s.sectionIndex])==null?void 0:x.type)!==s.sectionType&&l()},[e,s,l]),v.useEffect(()=>{if(s!=null){const x=setTimeout(()=>l(),NA);return()=>{window.clearTimeout(x)}}return()=>{}},[s,l]);const c=({keyPressed:x,sectionIndex:g},h,E)=>{const m=x.toLowerCase(),y=e[g];if(s!=null&&(!E||E(s.value))&&s.sectionIndex===g){const w=`${s.value}${m}`,S=h(w,y);if(!qi(S))return a({sectionIndex:g,value:w,sectionType:y.type}),S}const C=h(m,y);return qi(C)&&!C.saveQuery?(l(),null):(a({sectionIndex:g,value:m,sectionType:y.type}),qi(C)?null:C)},u=x=>{const g=(m,y,C)=>{const w=y.filter(S=>S.toLowerCase().startsWith(C));return w.length===0?{saveQuery:!1}:{sectionValue:w[0],shouldGoToNextSection:w.length===1}},h=(m,y,C,w)=>{const S=P=>q6(i,o,y.type,P);if(y.contentType==="letter")return g(y.format,S(y.format),m);if(C&&w!=null&&G6(i,C).contentType==="letter"){const P=S(C),k=g(C,P,m);return qi(k)?{saveQuery:!1}:b({},k,{sectionValue:w(k.sectionValue,P)})}return{saveQuery:!1}};return c(x,(m,y)=>{switch(y.type){case"month":{const C=w=>kv(i,w,i.formats.month,y.format);return h(m,y,i.formats.month,C)}case"weekDay":{const C=(w,S)=>S.indexOf(w).toString();return h(m,y,i.formats.weekday,C)}case"meridiem":return h(m,y);default:return{saveQuery:!1}}})},d=x=>{const g=(E,m)=>{const y=+`${E}`,C=n[m.type]({currentDate:null,format:m.format,contentType:m.contentType});if(y>C.maximum)return{saveQuery:!1};if(yC.maximum||E.length===C.maximum.toString().length;return{sectionValue:Z6(i,o,y,C,m),shouldGoToNextSection:w}};return c(x,(E,m)=>{if(m.contentType==="digit"||m.contentType==="digit-with-letter")return g(E,m);if(m.type==="month"){const y=Q6(i,o,"digit","month","MM"),C=g(E,{type:m.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(qi(C))return C;const w=kv(i,C.sectionValue,"MM",m.format);return b({},C,{sectionValue:w})}if(m.type==="weekDay"){const y=g(E,m);if(qi(y))return y;const C=Vf(i,o,m.format)[Number(y.sectionValue)-1];return b({},y,{sectionValue:C})}return{saveQuery:!1}},E=>!Number.isNaN(Number(E)))};return{applyCharacterEditing:Me(x=>{const g=e[x.sectionIndex],E=!Number.isNaN(Number(x.keyPressed))?d(x):u(x);E==null?r(null):t({activeSection:g,newSectionValue:E.sectionValue,shouldGoToNextSection:E.shouldGoToNextSection})}),resetCharacterQuery:l}};function zA(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const BA=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},cd=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?cd(t.shadowRoot):t:null},WA="@media (pointer: fine)",HA=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],UA=e=>{const t=ct(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:i,clearActiveSection:s,updateSectionValue:a,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:d,timezone:p}=jA(e),{inputRef:x,internalProps:g,internalProps:{readOnly:h=!1,unstableFieldRef:E,minutesStep:m},forwardedProps:{onClick:y,onKeyDown:C,onFocus:w,onBlur:S,onMouseUp:P,onPaste:k,error:M,clearable:T,onClear:D,disabled:_},fieldValueManager:A,valueManager:$,validator:R}=e,O=te(e.forwardedProps,HA),{applyCharacterEditing:L,resetCharacterQuery:V}=VA({sections:n.sections,updateSectionValue:a,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),I=v.useRef(null),F=tt(x,I),W=v.useRef(void 0),B=Le().direction==="rtl",H=v.useMemo(()=>PA(n.sections,B),[n.sections,B]),z=()=>{var U;if(h){o(null);return}const Q=(U=I.current.selectionStart)!=null?U:0;let we;Q<=n.sections[0].startInInput||Q>=n.sections[n.sections.length-1].endInInput?we=1:we=n.sections.findIndex(ke=>ke.startInInput-ke.startSeparator.length>Q);const $e=we===-1?n.sections.length-1:we-1;o($e)},ne=Me((U,...Q)=>{U.isDefaultPrevented()||(y==null||y(U,...Q),z())}),ce=Me(U=>{P==null||P(U),U.preventDefault()}),q=Me((...U)=>{w==null||w(...U);const Q=I.current;window.clearTimeout(W.current),W.current=setTimeout(()=>{!Q||Q!==I.current||r!=null||h||(Q.value.length&&Number(Q.selectionEnd)-Number(Q.selectionStart)===Q.value.length?o("all"):z())})}),me=Me((...U)=>{S==null||S(...U),o(null)}),Se=Me(U=>{if(k==null||k(U),h){U.preventDefault();return}const Q=U.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const we=n.sections[r.startIndex],$e=/^[a-zA-Z]+$/.test(Q),ke=/^[0-9]+$/.test(Q),X=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Q);if(we.contentType==="letter"&&$e||we.contentType==="digit"&&ke||we.contentType==="digit-with-letter"&&X){V(),a({activeSection:we,newSectionValue:Q,shouldGoToNextSection:!0}),U.preventDefault();return}if($e||ke){U.preventDefault();return}}U.preventDefault(),V(),l(Q)}),Ee=Me(U=>{if(h)return;const Q=U.target.value;if(Q===""){V(),i();return}const we=U.nativeEvent.data,$e=we&&we.length>1,ke=$e?we:Q,X=hs(ke);if(r==null||$e){l($e?we:X);return}let he;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&X.length===1)he=X;else{const ve=hs(A.getValueStrFromSections(n.sections,B));let ge=-1,ye=-1;for(let fe=0;feqe.end)return;const He=X.length-ve.length+qe.end-hs(qe.endSeparator||"").length;he=X.slice(qe.start+hs(qe.startSeparator||"").length,He)}if(he.length===0){EA()?c(ke):(V(),s());return}L({keyPressed:he,sectionIndex:r.startIndex})}),re=Me(U=>{switch(C==null||C(U),!0){case(U.key==="a"&&(U.ctrlKey||U.metaKey)):{U.preventDefault(),o("all");break}case U.key==="ArrowRight":{if(U.preventDefault(),r==null)o(H.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const Q=H.neighbors[r.startIndex].rightIndex;Q!==null&&o(Q)}break}case U.key==="ArrowLeft":{if(U.preventDefault(),r==null)o(H.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const Q=H.neighbors[r.startIndex].leftIndex;Q!==null&&o(Q)}break}case U.key==="Delete":{if(U.preventDefault(),h)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?i():s(),V();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(U.key):{if(U.preventDefault(),h||r==null)break;const Q=n.sections[r.startIndex],we=A.getActiveDateManager(t,n,Q),$e=vA(t,p,Q,U.key,u,we.date,{minutesStep:m});a({activeSection:Q,newSectionValue:$e,shouldGoToNextSection:!1});break}}});Lt(()=>{if(!I.current)return;if(r==null){I.current.scrollLeft&&(I.current.scrollLeft=0);return}const U=n.sections[r.startIndex],Q=n.sections[r.endIndex];let we=U.startInInput,$e=Q.endInInput;if(r.shouldSelectBoundarySelectors&&(we-=U.startSeparator.length,$e+=Q.endSeparator.length),we!==I.current.selectionStart||$e!==I.current.selectionEnd){const ke=I.current.scrollTop;I.current===cd(document)&&I.current.setSelectionRange(we,$e),I.current.scrollTop=ke}});const ee=r4(b({},g,{value:n.value,timezone:p}),R,$.isSameError,$.defaultErrorState),j=v.useMemo(()=>M!==void 0?M:$.hasError(ee),[$,ee,M]);v.useEffect(()=>{!j&&!r&&V()},[n.referenceValue,r,j]),v.useEffect(()=>(I.current&&I.current===document.activeElement&&o("all"),()=>window.clearTimeout(W.current)),[]),v.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(V(),s())},[n.tempValueStrAndroid]);const G=v.useMemo(()=>{var U;return(U=n.tempValueStrAndroid)!=null?U:A.getValueStrFromSections(n.sections,B)},[n.sections,A,n.tempValueStrAndroid,B]),Z=v.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),xe=I.current&&I.current===cd(document),Ie=$.areValuesEqual(t,n.value,$.emptyValue),le=!xe&&Ie;v.useImperativeHandle(E,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var U,Q;const we=(U=I.current.selectionStart)!=null?U:0,$e=(Q=I.current.selectionEnd)!=null?Q:0;if(we===0&&$e===0)return null;const ke=we<=n.sections[0].startInInput?1:n.sections.findIndex(X=>X.startInInput-X.startSeparator.length>we);return ke===-1?n.sections.length-1:ke-1},setSelectedSections:U=>o(U)}));const pe=Me((U,...Q)=>{var we;U.preventDefault(),D==null||D(U,...Q),i(),I==null||(we=I.current)==null||we.focus(),o(0)});return b({placeholder:d,autoComplete:"off",disabled:!!_},O,{value:le?"":G,inputMode:Z,readOnly:h,onClick:ne,onFocus:q,onBlur:me,onPaste:Se,onChange:Ee,onKeyDown:re,onMouseUp:ce,onClear:pe,error:j,ref:F,clearable:!!(T&&!Ie&&!h&&!_)})},zf=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:i,disablePast:s,disableFuture:a,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Qn(n.utils,e.minDate,n.defaultDates.minDate),d=Qn(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(a&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(s&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&n.utils.isAfterDay(t,d)):return"maxDate";default:return null}},W0=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],H0=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],o4=["minDateTime","maxDateTime"],YA=[...W0,...H0,...o4],i4=e=>YA.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),GA=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],qA=(e,t)=>{const n=b({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return GA.forEach(o),t==="date"?W0.forEach(o):t==="time"?H0.forEach(o):t==="date-time"&&(W0.forEach(o),H0.forEach(o),o4.forEach(o)),{forwardedProps:n,internalProps:r}},KA=e=>{var t,n,r;const o=ct(),i=oc();return b({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Qn(o,e.minDate,i.minDate),maxDate:Qn(o,e.maxDate,i.maxDate)})},ZA=({props:e,inputRef:t})=>{const n=KA(e),{forwardedProps:r,internalProps:o}=qA(n,"date");return UA({inputRef:t,forwardedProps:r,internalProps:o,valueManager:uo,fieldValueManager:TA,validator:zf,valueType:"date"})},XA=Y(VD)({[`& .${nl.container}`]:{outline:0},[`& .${nl.paper}`]:{outline:0,minWidth:Nf}}),JA=Y(e_)({"&:first-of-type":{padding:0}});function QA(e){var t,n;const{children:r,onDismiss:o,open:i,slots:s,slotProps:a}=e,l=(t=s==null?void 0:s.dialog)!=null?t:XA,c=(n=s==null?void 0:s.mobileTransition)!=null?n:na;return f.jsx(l,b({open:i,onClose:o},a==null?void 0:a.dialog,{TransitionComponent:c,TransitionProps:a==null?void 0:a.mobileTransition,PaperComponent:s==null?void 0:s.mobilePaper,PaperProps:a==null?void 0:a.mobilePaper,children:f.jsx(JA,{children:r})}))}function eL(e){return _e("MuiPickersPopper",e)}Pe("MuiPickersPopper",["root","paper"]);const tL="@media (prefers-reduced-motion: reduce)",Es=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Rv=Es&&Es[1]?parseInt(Es[1],10):null,Dv=Es&&Es[2]?parseInt(Es[2],10):null,nL=Rv&&Rv<10||Dv&&Dv<13||!1,s4=()=>h6(tL,{defaultMatches:!1})||nL,rL=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],oL=e=>{const{classes:t}=e;return De({root:["root"],paper:["paper"]},eL,t)},iL=Y(aR,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),sL=Y(Ql,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>b({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function aL(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const s=Me(l=>{if(!i.current)return;const c=r.current;r.current=!1;const u=Pt(o.current);if(!o.current||"clientX"in l&&aL(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!u.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!c&&t(l)}),a=()=>{r.current=!0};return v.useEffect(()=>{if(e){const l=Pt(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",c)}}},[e,s]),v.useEffect(()=>{if(e){const l=Pt(o.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),r.current=!1}}},[e,s]),[o,a,a]}const cL=v.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:s,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=te(e,rL),d=b({},o,{placement:r}),p=We({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:d});return f.jsx(n,b({},u,p,{onClick:x=>{var g;l(x),(g=p.onClick)==null||g.call(p,x)},onTouchStart:x=>{var g;c(x),(g=p.onTouchStart)==null||g.call(p,x)},ownerState:d,children:i}))});function uL(e){var t,n,r,o;const i=Re({props:e,name:"MuiPickersPopper"}),{anchorEl:s,children:a,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:d,open:p,role:x,placement:g,slots:h,slotProps:E,reduceAnimations:m}=i;v.useEffect(()=>{function F(W){p&&(W.key==="Escape"||W.key==="Esc")&&d()}return document.addEventListener("keydown",F),()=>{document.removeEventListener("keydown",F)}},[d,p]);const y=v.useRef(null);v.useEffect(()=>{x==="tooltip"||c&&!c()||(p?y.current=cd(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,x,c]);const[C,w,S]=lL(p,u??d),P=v.useRef(null),k=tt(P,l),M=tt(k,C),T=i,D=oL(T),_=s4(),A=m??_,$=F=>{F.key==="Escape"&&(F.stopPropagation(),d())},R=((t=h==null?void 0:h.desktopTransition)!=null?t:A)?na:f6,O=(n=h==null?void 0:h.desktopTrapFocus)!=null?n:Hx,L=(r=h==null?void 0:h.desktopPaper)!=null?r:sL,V=(o=h==null?void 0:h.popper)!=null?o:iL,I=We({elementType:V,externalSlotProps:E==null?void 0:E.popper,additionalProps:{transition:!0,role:x,open:p,anchorEl:s,placement:g,onKeyDown:$},className:D.root,ownerState:i});return f.jsx(V,b({},I,{children:({TransitionProps:F,placement:W})=>f.jsx(O,b({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:x==="tooltip",isEnabled:()=>!0},E==null?void 0:E.desktopTrapFocus,{children:f.jsx(R,b({},F,E==null?void 0:E.desktopTransition,{children:f.jsx(cL,{PaperComponent:L,ownerState:T,popperPlacement:W,ref:M,onPaperClick:w,onPaperTouchStart:S,paperClasses:D.paper,paperSlotProps:E==null?void 0:E.desktopPaper,children:a})}))}))}))}function dL(e){return _e("MuiPickersToolbar",e)}Pe("MuiPickersToolbar",["root","content"]);const fL=e=>{const{classes:t,isLandscape:n}=e;return De({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},dL,t)},pL=Y("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>b({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),hL=Y("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),mL=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:s,hidden:a,titleId:l}=r,c=r,u=fL(c);return a?null:f.jsxs(pL,{ref:n,className:ue(u.root,i),ownerState:c,children:[f.jsx(Te,{color:"text.secondary",variant:"overline",id:l,children:s}),f.jsx(hL,{className:u.content,ownerState:c,children:o})]})}),gL=({open:e,onOpen:t,onClose:n})=>{const r=v.useRef(typeof e=="boolean").current,[o,i]=v.useState(!1);v.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const s=v.useCallback(a=>{r||i(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:s}},yL=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},vL=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?s?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},xL=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},CL=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:s,value:a,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:d,timezone:p}=e,{current:x}=v.useRef(l),{current:g}=v.useRef(a!==void 0),h=ct(),E=Fi(),[m,y]=kn({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:C,setIsOpen:w}=gL(e),[S,P]=v.useState(()=>{let q;return a!==void 0?q=a:x!==void 0?q=x:q=t.emptyValue,{draft:q,lastPublishedValue:q,lastCommittedValue:q,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),{timezone:k,handleValueChange:M}=Jm({timezone:p,value:a,defaultValue:x,onChange:s,valueManager:t});r4(b({},e,{value:S.draft,timezone:k}),o,t.isSameError,t.defaultErrorState);const T=Me(q=>{const me={action:q,dateState:S,hasChanged:ee=>!t.areValuesEqual(h,q.value,ee),isControlled:g,closeOnSelect:c},Se=yL(me),Ee=vL(me),re=xL(me);if(P(ee=>b({},ee,{draft:q.value,lastPublishedValue:Se?q.value:ee.lastPublishedValue,lastCommittedValue:Ee?q.value:ee.lastCommittedValue,hasBeenModifiedSinceMount:!0})),Se){const j={validationError:q.name==="setValueFromField"?q.context.validationError:o({adapter:E,value:q.value,props:b({},e,{value:q.value,timezone:k})})};q.name==="setValueFromShortcut"&&q.shortcut!=null&&(j.shortcut=q.shortcut),M(q.value,j)}Ee&&i&&i(q.value),re&&w(!1)});if(a!==void 0&&(S.lastControlledValue===void 0||!t.areValuesEqual(h,S.lastControlledValue,a))){const q=t.areValuesEqual(h,S.draft,a);P(me=>b({},me,{lastControlledValue:a},q?{}:{lastCommittedValue:a,lastPublishedValue:a,draft:a,hasBeenModifiedSinceMount:!0}))}const D=Me(()=>{T({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),_=Me(()=>{T({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),A=Me(()=>{T({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Me(()=>{T({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),R=Me(()=>{T({value:t.getTodayValue(h,k,n),name:"setValueFromAction",pickerAction:"today"})}),O=Me(()=>w(!0)),L=Me(()=>w(!1)),V=Me((q,me="partial")=>T({name:"setValueFromView",value:q,selectionState:me})),I=Me((q,me,Se)=>T({name:"setValueFromShortcut",value:q,changeImportance:me??"accept",shortcut:Se})),F=Me((q,me)=>T({name:"setValueFromField",value:q,context:me})),W=Me(q=>{y(q),d==null||d(q)}),se={onClear:D,onAccept:_,onDismiss:A,onCancel:$,onSetToday:R,onOpen:O,onClose:L},B={value:S.draft,onChange:F,selectedSections:m,onSelectedSectionsChange:W},H=v.useMemo(()=>t.cleanValue(h,S.draft),[h,t,S.draft]),z={value:H,onChange:V,onClose:L,open:C,onSelectedSectionsChange:W},ce=b({},se,{value:H,onChange:V,onSelectShortcut:I,isValid:q=>{const me=o({adapter:E,value:q,props:b({},e,{value:q,timezone:k})});return!t.hasError(me)}});return{open:C,fieldProps:B,viewProps:z,layoutProps:ce,actions:se}},bL=["className","sx"],wL=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:i,open:s,onSelectedSectionsChange:a,onClose:l}=t,{views:c,openTo:u,onViewChange:d,disableOpenPicker:p,viewRenderers:x,timezone:g}=e,h=te(e,bL),{view:E,setView:m,defaultView:y,focusedView:C,setFocusedView:w,setValueAndGoToNextView:S}=U6({view:void 0,views:c,openTo:u,onChange:i,onViewChange:d,autoFocus:o}),{hasUIView:P,viewModeLookup:k}=v.useMemo(()=>c.reduce((R,O)=>{let L;return p?L="field":x[O]!=null?L="UI":L="field",R.viewModeLookup[O]=L,L==="UI"&&(R.hasUIView=!0),R},{hasUIView:!1,viewModeLookup:{}}),[p,x,c]),M=v.useMemo(()=>c.reduce((R,O)=>x[O]!=null&&iA(O)?R+1:R,0),[x,c]),T=k[E],D=Me(()=>T==="UI"),[_,A]=v.useState(T==="UI"?E:null);return _!==E&&k[E]==="UI"&&A(E),Lt(()=>{T==="field"&&s&&(l(),setTimeout(()=>{r==null||r.current.focus(),a(E)}))},[E]),Lt(()=>{if(!s)return;let R=E;T==="field"&&_!=null&&(R=_),R!==y&&k[R]==="UI"&&k[y]==="UI"&&(R=y),R!==E&&m(R),w(R,!0)},[s]),{hasUIView:P,shouldRestoreFocus:D,layoutProps:{views:c,view:_,onViewChange:m},renderCurrentView:()=>{if(_==null)return null;const R=x[_];return R==null?null:R(b({},h,n,t,{views:c,timezone:g,onChange:S,view:_,onViewChange:m,focusedView:C,onFocusedViewChange:w,showViewSwitcher:M>1,timeViewsCount:M}))}}};function _v(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const SL=(e,t)=>{const[n,r]=v.useState(_v);return Lt(()=>{const i=()=>{r(_v())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),zA(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},kL=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=SL(n.views,o);return{layoutProps:b({},n,t,{isLandscape:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},EL=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` `):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};EL(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const a4=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:i,validator:s,autoFocusView:a})=>{const l=CL({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),c=wL({props:e,inputRef:o,additionalViewProps:i,autoFocusView:a,propsFromPickerValue:l.viewProps}),u=kL({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function l4(e){return _e("MuiPickersLayout",e)}const sh=Pe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),PL=["onAccept","onClear","onCancel","onSetToday","actions"];function ML(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,s=te(e,PL),a=Zo();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(c=>{switch(c){case"clear":return f.jsx(Mr,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return f.jsx(Mr,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return f.jsx(Mr,{onClick:t,children:a.okButtonLabel},c);case"today":return f.jsx(Mr,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return f.jsx(YD,b({},s,{children:l}))}const TL=["items","changeImportance","isLandscape","onChange","isValid"],RL=["getValue"];function DL(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,i=te(e,TL);if(t==null||t.length===0)return null;const s=t.map(a=>{let{getValue:l}=a,c=te(a,RL);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return f.jsx(v6,b({dense:!0,sx:[{maxHeight:Km,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:s.map(a=>f.jsx(jO,{children:f.jsx(gR,b({},a))},a.label))}))}function _L(e){return e.view!==null}const OL=e=>{const{classes:t,isLandscape:n}=e;return De({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},l4,t)},IL=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:i,onCancel:s,onSetToday:a,view:l,views:c,onViewChange:u,value:d,onChange:p,onSelectShortcut:x,isValid:g,isLandscape:h,disabled:E,readOnly:m,children:y,components:C,componentsProps:w,slots:S,slotProps:P}=e,k=S??e4(C),M=P??w,T=OL(e),D=(t=k==null?void 0:k.actionBar)!=null?t:ML,_=We({elementType:D,externalSlotProps:M==null?void 0:M.actionBar,additionalProps:{onAccept:o,onClear:i,onCancel:s,onSetToday:a,actions:r==="desktop"?[]:["cancel","accept"],className:T.actionBar},ownerState:b({},e,{wrapperVariant:r})}),A=f.jsx(D,b({},_)),$=k==null?void 0:k.toolbar,R=We({elementType:$,externalSlotProps:M==null?void 0:M.toolbar,additionalProps:{isLandscape:h,onChange:p,value:d,view:l,onViewChange:u,views:c,disabled:E,readOnly:m,className:T.toolbar},ownerState:b({},e,{wrapperVariant:r})}),O=_L(R)&&$?f.jsx($,b({},R)):null,L=y,V=k==null?void 0:k.tabs,I=l&&V?f.jsx(V,b({view:l,onViewChange:u},M==null?void 0:M.tabs)):null,F=(n=k==null?void 0:k.shortcuts)!=null?n:DL,W=We({elementType:F,externalSlotProps:M==null?void 0:M.shortcuts,additionalProps:{isValid:g,isLandscape:h,onChange:x,className:T.shortcuts},ownerState:{isValid:g,isLandscape:h,onChange:x,className:T.shortcuts,wrapperVariant:r}}),se=l&&F?f.jsx(F,b({},W)):null;return{toolbar:O,content:L,tabs:I,actionBar:A,shortcuts:se}},$L=e=>{const{isLandscape:t,classes:n}=e;return De({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},l4,n)},c4=Y("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${sh.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${sh.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${sh.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));c4.propTypes={as:N.elementType,ownerState:N.shape({isLandscape:N.bool.isRequired}).isRequired,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object])};const FL=Y("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),u4=function(t){const n=Re({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:i,actionBar:s,shortcuts:a}=IL(n),{sx:l,className:c,isLandscape:u,ref:d,wrapperVariant:p}=n,x=n,g=$L(x);return f.jsxs(c4,{ref:d,sx:l,className:ue(c,g.root),ownerState:x,children:[u?a:r,u?r:a,f.jsx(FL,{className:g.contentWrapper,children:p==="desktop"?f.jsxs(v.Fragment,{children:[o,i]}):f.jsxs(v.Fragment,{children:[i,o]})}),s]})},AL=e=>_e("MuiPickersSlideTransition",e),Nn=Pe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),LL=["children","className","reduceAnimations","slideDirection","transKey","classes"],jL=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return De(r,AL,t)},NL=Y(Om,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Nn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Nn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Nn.slideEnterActive}`]:t.slideEnterActive},{[`.${Nn.slideExit}`]:t.slideExit},{[`.${Nn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Nn["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Nn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Nn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Nn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Nn.slideExit}`]:{transform:"translate(0%)"},[`& .${Nn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Nn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function VL(e){const t=Re({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,s=te(t,LL),a=jL(t),l=Le();if(o)return f.jsx("div",{className:ue(a.root,r),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return f.jsx(NL,{className:ue(a.root,r),childFactory:u=>v.cloneElement(u,{classNames:c}),role:"presentation",children:f.jsx(CP,b({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},s,{children:n}),i)})}const d4=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s,timezone:a})=>{const l=Fi();return v.useCallback(c=>zf({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s,timezone:a}})!==null,[l,e,t,n,r,o,i,s,a])},zL=e=>_e("MuiDayCalendar",e);Pe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const BL=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],WL=["ownerState"],HL=e=>{const{classes:t}=e;return De({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},zL,t)},f4=(Il+jf*2)*6,UL=Y("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YL=Y("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),GL=Y(Te,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),qL=Y(Te,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),KL=Y(Te,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>b({},e.typography.caption,{width:Il,height:Il,padding:0,margin:`0 ${jf}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),ZL=Y("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:f4}),XL=Y(VL,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:f4}),JL=Y("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),QL=Y("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${jf}px 0`,display:"flex",justifyContent:"center"});function ej(e){var t,n,r;let{parentProps:o,day:i,focusableDay:s,selectedDays:a,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,d=te(e,BL);const{disabled:p,disableHighlightToday:x,isMonthSwitchingAnimating:g,showDaysOutsideCurrentMonth:h,components:E,componentsProps:m,slots:y,slotProps:C,timezone:w}=o,S=ct(),P=ic(w),k=s!==null&&S.isSameDay(i,s),M=a.some(V=>S.isSameDay(V,i)),T=S.isSameDay(i,P),D=(t=(n=y==null?void 0:y.day)!=null?n:E==null?void 0:E.Day)!=null?t:FA,_=We({elementType:D,externalSlotProps:(r=C==null?void 0:C.day)!=null?r:m==null?void 0:m.day,additionalProps:b({disableHighlightToday:x,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:g,"data-timestamp":S.toJsDate(i).valueOf()},d),ownerState:b({},o,{day:i,selected:M})}),A=te(_,WL),$=v.useMemo(()=>p||l(i),[p,l,i]),R=v.useMemo(()=>S.getMonth(i)!==c,[S,i,c]),O=v.useMemo(()=>{const V=S.startOfMonth(S.setMonth(i,c));return h?S.isSameDay(i,S.startOfWeek(V)):S.isSameDay(i,V)},[c,i,h,S]),L=v.useMemo(()=>{const V=S.endOfMonth(S.setMonth(i,c));return h?S.isSameDay(i,S.endOfWeek(V)):S.isSameDay(i,V)},[c,i,h,S]);return f.jsx(D,b({},A,{day:i,disabled:$,autoFocus:u&&k,today:T,outsideCurrentMonth:R,isFirstVisibleCell:O,isLastVisibleCell:L,selected:M,tabIndex:k?0:-1,"aria-selected":M,"aria-current":T?"date":void 0}))}function tj(e){const t=Re({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:i,focusedDay:s,loading:a,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:d,renderLoading:p=()=>f.jsx("span",{children:"..."}),slideDirection:x,TransitionProps:g,disablePast:h,disableFuture:E,minDate:m,maxDate:y,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:S,dayOfWeekFormatter:P,hasFocus:k,onFocusedViewChange:M,gridLabelId:T,displayWeekNumber:D,fixedWeekNumber:_,autoFocus:A,timezone:$}=t,R=ic($),O=ct(),L=HL(t),I=Le().direction==="rtl",F=P||((le,pe)=>O.format(pe,"weekdayShort").charAt(0).toUpperCase()),W=d4({shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:S,minDate:m,maxDate:y,disablePast:h,disableFuture:E,timezone:$}),se=Zo(),[B,H]=kn({name:"DayCalendar",state:"hasFocus",controlled:k,default:A??!1}),[z,ne]=v.useState(()=>s||R),ce=Me(le=>{u||l(le)}),q=le=>{W(le)||(n(le),ne(le),M==null||M(!0),H(!0))},me=Me((le,pe)=>{switch(le.key){case"ArrowUp":q(O.addDays(pe,-7)),le.preventDefault();break;case"ArrowDown":q(O.addDays(pe,7)),le.preventDefault();break;case"ArrowLeft":{const U=O.addDays(pe,I?1:-1),Q=O.addMonths(pe,I?1:-1),we=ol({utils:O,date:U,minDate:I?U:O.startOfMonth(Q),maxDate:I?O.endOfMonth(Q):U,isDateDisabled:W,timezone:$});q(we||U),le.preventDefault();break}case"ArrowRight":{const U=O.addDays(pe,I?-1:1),Q=O.addMonths(pe,I?-1:1),we=ol({utils:O,date:U,minDate:I?O.startOfMonth(Q):U,maxDate:I?U:O.endOfMonth(Q),isDateDisabled:W,timezone:$});q(we||U),le.preventDefault();break}case"Home":q(O.startOfWeek(pe)),le.preventDefault();break;case"End":q(O.endOfWeek(pe)),le.preventDefault();break;case"PageUp":q(O.addMonths(pe,1)),le.preventDefault();break;case"PageDown":q(O.addMonths(pe,-1)),le.preventDefault();break}}),Se=Me((le,pe)=>q(pe)),Ee=Me((le,pe)=>{B&&O.isSameDay(z,pe)&&(M==null||M(!1))}),re=O.getMonth(o),ee=v.useMemo(()=>i.filter(le=>!!le).map(le=>O.startOfDay(le)),[O,i]),j=re,G=v.useMemo(()=>v.createRef(),[j]),Z=O.startOfWeek(R),xe=v.useMemo(()=>{const le=O.startOfMonth(o),pe=O.endOfMonth(o);return W(z)||O.isAfterDay(z,pe)||O.isBeforeDay(z,le)?ol({utils:O,date:z,minDate:le,maxDate:pe,disablePast:h,disableFuture:E,isDateDisabled:W,timezone:$}):z},[o,E,h,z,W,O,$]),Ie=v.useMemo(()=>{const le=O.setTimezone(o,$),pe=O.getWeekArray(le);let U=O.addMonths(le,1);for(;_&&pe.length<_;){const Q=O.getWeekArray(U),we=O.isSameDay(pe[pe.length-1][0],Q[0][0]);Q.slice(we?1:0).forEach($e=>{pe.length<_&&pe.push($e)}),U=O.addMonths(U,1)}return pe},[o,_,O,$]);return f.jsxs(UL,{role:"grid","aria-labelledby":T,className:L.root,children:[f.jsxs(YL,{role:"row",className:L.header,children:[D&&f.jsx(qL,{variant:"caption",role:"columnheader","aria-label":se.calendarWeekNumberHeaderLabel,className:L.weekNumberLabel,children:se.calendarWeekNumberHeaderText}),hA(O,R).map((le,pe)=>{var U;const Q=O.format(le,"weekdayShort");return f.jsx(GL,{variant:"caption",role:"columnheader","aria-label":O.format(O.addDays(Z,pe),"weekday"),className:L.weekDayLabel,children:(U=F==null?void 0:F(Q,le))!=null?U:Q},Q+pe.toString())})]}),a?f.jsx(ZL,{className:L.loadingContainer,children:p()}):f.jsx(XL,b({transKey:j,onExited:c,reduceAnimations:d,slideDirection:x,className:ue(r,L.slideTransition)},g,{nodeRef:G,children:f.jsx(JL,{ref:G,role:"rowgroup",className:L.monthContainer,children:Ie.map((le,pe)=>f.jsxs(QL,{role:"row",className:L.weekContainer,"aria-rowindex":pe+1,children:[D&&f.jsx(KL,{className:L.weekNumber,role:"rowheader","aria-label":se.calendarWeekNumberAriaLabelText(O.getWeekNumber(le[0])),children:se.calendarWeekNumberText(O.getWeekNumber(le[0]))}),le.map((U,Q)=>f.jsx(ej,{parentProps:t,day:U,selectedDays:ee,focusableDay:xe,onKeyDown:me,onFocus:Se,onBlur:Ee,onDaySelect:ce,isDateDisabled:W,currentMonthNumber:re,isViewFocused:B,"aria-colindex":Q+1},U.toString()))]},`week-${le[0]}`))})}))]})}const nj=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return b({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return b({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return b({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},rj=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:i,disableSwitchToMonthOnDayFocus:s=!1,maxDate:a,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:p}=e,x=ic(p),g=ct(),h=v.useRef(nj(!!u,s,g)).current,E=v.useMemo(()=>{let M=null;return n?M=n:r&&(M=g.startOfMonth(r)),uo.getInitialReferenceValue({value:t,utils:g,timezone:p,props:e,referenceDate:M,granularity:Sr.day})},[]),[m,y]=v.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:g.isValid(t)?t:x,currentMonth:g.startOfMonth(E),slideDirection:"left"}),C=v.useCallback(M=>{y(b({type:"changeMonth"},M)),c&&c(M.newMonth)},[c]),w=v.useCallback(M=>{const T=M;g.isSameMonth(T,m.currentMonth)||C({newMonth:g.startOfMonth(T),direction:g.isAfterDay(T,m.currentMonth)?"left":"right"})},[m.currentMonth,C,g]),S=d4({shouldDisableDate:d,minDate:l,maxDate:a,disableFuture:o,disablePast:i,timezone:p}),P=v.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),k=Me((M,T)=>{S(M)||y({type:"changeFocusedDay",focusedDay:M,withoutMonthSwitchingAnimation:T})});return{referenceDate:E,calendarState:m,changeMonth:w,changeFocusedDay:k,isDateDisabled:S,onMonthSwitchingAnimationEnd:P,handleChangeMonth:C}},oj=["ownerState"],ij=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:i,components:s,componentsProps:a})=>{var l,c,u,d,p,x;const g=Zo(),h=(l=(c=o==null?void 0:o.clearButton)!=null?c:s==null?void 0:s.ClearButton)!=null?l:ta,E=We({elementType:h,externalSlotProps:(u=i==null?void 0:i.clearButton)!=null?u:a==null?void 0:a.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:g.fieldClearLabel}}),m=te(E,oj),y=(d=(p=o==null?void 0:o.clearIcon)!=null?p:s==null?void 0:s.ClearIcon)!=null?d:qF,C=We({elementType:y,externalSlotProps:(x=i==null?void 0:i.clearIcon)!=null?x:a==null?void 0:a.clearIcon,ownerState:{}}),w=b({},n,{endAdornment:f.jsxs(v.Fragment,{children:[e&&f.jsx(Wm,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:f.jsx(h,b({},m,{onClick:r,children:f.jsx(y,b({fontSize:"small"},C))}))}),n==null?void 0:n.endAdornment]})}),S=b({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:w,fieldProps:S}},sj=["components","componentsProps","slots","slotProps","InputProps","inputProps"],aj=["inputRef"],lj=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],p4=v.forwardRef(function(t,n){var r,o,i;const s=Re({props:t,name:"MuiDateField"}),{components:a,componentsProps:l,slots:c,slotProps:u,InputProps:d,inputProps:p}=s,x=te(s,sj),g=s,h=(r=(o=c==null?void 0:c.textField)!=null?o:a==null?void 0:a.TextField)!=null?r:rc,E=We({elementType:h,externalSlotProps:(i=u==null?void 0:u.textField)!=null?i:l==null?void 0:l.textField,externalForwardedProps:x,ownerState:g}),{inputRef:m}=E,y=te(E,aj);y.inputProps=b({},p,y.inputProps),y.InputProps=b({},d,y.InputProps);const C=ZA({props:y,inputRef:m}),{ref:w,onPaste:S,onKeyDown:P,inputMode:k,readOnly:M,clearable:T,onClear:D}=C,_=te(C,lj),{InputProps:A,fieldProps:$}=ij({onClear:D,clearable:T,fieldProps:_,InputProps:_.InputProps,slots:c,slotProps:u,components:a,componentsProps:l});return f.jsx(h,b({ref:n},$,{InputProps:b({},A,{readOnly:M}),inputProps:b({},_.inputProps,{inputMode:k,onPaste:S,onKeyDown:P,ref:w})}))}),cj=e=>_e("MuiPickersFadeTransitionGroup",e);Pe("MuiPickersFadeTransitionGroup",["root"]);const uj=e=>{const{classes:t}=e;return De({root:["root"]},cj,t)},dj=Y(Om,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function h4(e){const t=Re({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,s=uj(t),a=Le();return o?n:f.jsx(dj,{className:ue(s.root,r),children:f.jsx(na,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},i)})}function fj(e){return _e("MuiPickersMonth",e)}const Bc=Pe("MuiPickersMonth",["root","monthButton","disabled","selected"]),pj=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],hj=e=>{const{disabled:t,selected:n,classes:r}=e;return De({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},fj,r)},mj=Y("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),gj=Y("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Bc.disabled}`]:t.disabled},{[`&.${Bc.selected}`]:t.selected}]})(({theme:e})=>b({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Bc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Bc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),yj=v.memo(function(t){const n=Re({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:i,selected:s,value:a,tabIndex:l,onClick:c,onKeyDown:u,onFocus:d,onBlur:p,"aria-current":x,"aria-label":g}=n,h=te(n,pj),E=v.useRef(null),m=hj(n);return Lt(()=>{if(r){var y;(y=E.current)==null||y.focus()}},[r]),f.jsx(mj,b({className:m.root,ownerState:n},h,{children:f.jsx(gj,{ref:E,disabled:i,type:"button",role:"radio",tabIndex:i?-1:l,"aria-current":x,"aria-checked":s,"aria-label":g,onClick:y=>c(y,a),onKeyDown:y=>u(y,a),onFocus:y=>d(y,a),onBlur:y=>p(y,a),className:m.monthButton,ownerState:n,children:o})}))});function vj(e){return _e("MuiMonthCalendar",e)}Pe("MuiMonthCalendar",["root"]);const xj=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],Cj=e=>{const{classes:t}=e;return De({root:["root"]},vj,t)};function bj(e,t){const n=ct(),r=oc(),o=Re({props:e,name:t});return b({disableFuture:!1,disablePast:!1},o,{minDate:Qn(n,o.minDate,r.minDate),maxDate:Qn(n,o.maxDate,r.maxDate)})}const wj=Y("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Nf,boxSizing:"border-box"}),Sj=v.forwardRef(function(t,n){const r=bj(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:s,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:p,onChange:x,shouldDisableMonth:g,readOnly:h,disableHighlightToday:E,autoFocus:m=!1,onMonthFocus:y,hasFocus:C,onFocusedViewChange:w,monthsPerRow:S=3,timezone:P,gridLabelId:k}=r,M=te(r,xj),{value:T,handleValueChange:D,timezone:_}=Qm({name:"MonthCalendar",timezone:P,value:i,defaultValue:s,onChange:x,valueManager:uo}),A=ic(_),$=ea(),R=ct(),O=v.useMemo(()=>uo.getInitialReferenceValue({value:T,utils:R,props:r,timezone:_,referenceDate:a,granularity:Sr.month}),[]),L=r,V=Cj(L),I=v.useMemo(()=>R.getMonth(A),[R,A]),F=v.useMemo(()=>T!=null?R.getMonth(T):E?null:R.getMonth(O),[T,R,E,O]),[W,se]=v.useState(()=>F||I),[B,H]=kn({name:"MonthCalendar",state:"hasFocus",controlled:C,default:m??!1}),z=Me(re=>{H(re),w&&w(re)}),ne=v.useCallback(re=>{const ee=R.startOfMonth(u&&R.isAfter(A,p)?A:p),j=R.startOfMonth(c&&R.isBefore(A,d)?A:d),G=R.startOfMonth(re);return R.isBefore(G,ee)||R.isAfter(G,j)?!0:g?g(G):!1},[c,u,d,p,A,g,R]),ce=Me((re,ee)=>{if(h)return;const j=R.setMonth(T??O,ee);D(j)}),q=Me(re=>{ne(R.setMonth(T??O,re))||(se(re),z(!0),y&&y(re))});v.useEffect(()=>{se(re=>F!==null&&re!==F?F:re)},[F]);const me=Me((re,ee)=>{switch(re.key){case"ArrowUp":q((12+ee-3)%12),re.preventDefault();break;case"ArrowDown":q((12+ee+3)%12),re.preventDefault();break;case"ArrowLeft":q((12+ee+($.direction==="ltr"?-1:1))%12),re.preventDefault();break;case"ArrowRight":q((12+ee+($.direction==="ltr"?1:-1))%12),re.preventDefault();break}}),Se=Me((re,ee)=>{q(ee)}),Ee=Me((re,ee)=>{W===ee&&z(!1)});return f.jsx(wj,b({ref:n,className:ue(V.root,o),ownerState:L,role:"radiogroup","aria-labelledby":k},M,{children:Zm(R,T??O).map(re=>{const ee=R.getMonth(re),j=R.format(re,"monthShort"),G=R.format(re,"month"),Z=ee===F,xe=l||ne(re);return f.jsx(yj,{selected:Z,value:ee,onClick:ce,onKeyDown:me,autoFocus:B&&ee===W,disabled:xe,tabIndex:ee===W?0:-1,onFocus:Se,onBlur:Ee,"aria-current":I===ee?"date":void 0,"aria-label":G,monthsPerRow:S,children:j},j)})}))});function kj(e){return _e("MuiPickersYear",e)}const Wc=Pe("MuiPickersYear",["root","yearButton","selected","disabled"]),Ej=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],Pj=e=>{const{disabled:t,selected:n,classes:r}=e;return De({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},kj,r)},Mj=Y("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),Tj=Y("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Wc.disabled}`]:t.disabled},{[`&.${Wc.selected}`]:t.selected}]})(({theme:e})=>b({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Ne(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Wc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Wc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Rj=v.memo(function(t){const n=Re({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:p,onBlur:x,"aria-current":g}=n,h=te(n,Ej),E=v.useRef(null),m=Pj(n);return v.useEffect(()=>{r&&E.current.focus()},[r]),f.jsx(Mj,b({className:ue(m.root,o),ownerState:n},h,{children:f.jsx(Tj,{ref:E,disabled:s,type:"button",role:"radio",tabIndex:s?-1:c,"aria-current":g,"aria-checked":a,onClick:y=>u(y,l),onKeyDown:y=>d(y,l),onFocus:y=>p(y,l),onBlur:y=>x(y,l),className:m.yearButton,ownerState:n,children:i})}))});function Dj(e){return _e("MuiYearCalendar",e)}Pe("MuiYearCalendar",["root"]);const _j=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],Oj=e=>{const{classes:t}=e;return De({root:["root"]},Dj,t)};function Ij(e,t){var n;const r=ct(),o=oc(),i=Re({props:e,name:t});return b({disablePast:!1,disableFuture:!1},i,{yearsPerRow:(n=i.yearsPerRow)!=null?n:3,minDate:Qn(r,i.minDate,o.minDate),maxDate:Qn(r,i.maxDate,o.maxDate)})}const $j=Y("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Nf,maxHeight:cA,boxSizing:"border-box",position:"relative"}),Fj=v.forwardRef(function(t,n){const r=Ij(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:s,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:p,minDate:x,onChange:g,readOnly:h,shouldDisableYear:E,disableHighlightToday:m,onYearFocus:y,hasFocus:C,onFocusedViewChange:w,yearsPerRow:S,timezone:P,gridLabelId:k}=r,M=te(r,_j),{value:T,handleValueChange:D,timezone:_}=Qm({name:"YearCalendar",timezone:P,value:s,defaultValue:a,onChange:g,valueManager:uo}),A=ic(_),$=ea(),R=ct(),O=v.useMemo(()=>uo.getInitialReferenceValue({value:T,utils:R,props:r,timezone:_,referenceDate:l,granularity:Sr.year}),[]),L=r,V=Oj(L),I=v.useMemo(()=>R.getYear(A),[R,A]),F=v.useMemo(()=>T!=null?R.getYear(T):m?null:R.getYear(O),[T,R,m,O]),[W,se]=v.useState(()=>F||I),[B,H]=kn({name:"YearCalendar",state:"hasFocus",controlled:C,default:o??!1}),z=Me(j=>{H(j),w&&w(j)}),ne=v.useCallback(j=>{if(d&&R.isBeforeYear(j,A)||u&&R.isAfterYear(j,A)||x&&R.isBeforeYear(j,x)||p&&R.isAfterYear(j,p))return!0;if(!E)return!1;const G=R.startOfYear(j);return E(G)},[u,d,p,x,A,E,R]),ce=Me((j,G)=>{if(h)return;const Z=R.setYear(T??O,G);D(Z)}),q=Me(j=>{ne(R.setYear(T??O,j))||(se(j),z(!0),y==null||y(j))});v.useEffect(()=>{se(j=>F!==null&&j!==F?F:j)},[F]);const me=Me((j,G)=>{switch(j.key){case"ArrowUp":q(G-S),j.preventDefault();break;case"ArrowDown":q(G+S),j.preventDefault();break;case"ArrowLeft":q(G+($.direction==="ltr"?-1:1)),j.preventDefault();break;case"ArrowRight":q(G+($.direction==="ltr"?1:-1)),j.preventDefault();break}}),Se=Me((j,G)=>{q(G)}),Ee=Me((j,G)=>{W===G&&z(!1)}),re=v.useRef(null),ee=tt(n,re);return v.useEffect(()=>{if(o||re.current===null)return;const j=re.current.querySelector('[tabindex="0"]');if(!j)return;const G=j.offsetHeight,Z=j.offsetTop,xe=re.current.clientHeight,Ie=re.current.scrollTop,le=Z+G;G>xe||Z{const G=R.getYear(j),Z=G===F,xe=c||ne(j);return f.jsx(Rj,{selected:Z,value:G,onClick:ce,onKeyDown:me,autoFocus:B&&G===W,disabled:xe,tabIndex:G===W?0:-1,onFocus:Se,onBlur:Ee,"aria-current":I===G?"date":void 0,yearsPerRow:S,children:R.format(j,"year")},R.format(j,"year"))})}))}),Aj=e=>_e("MuiPickersCalendarHeader",e),Lj=Pe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),jj=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],Nj=["ownerState"],Vj=e=>{const{classes:t}=e;return De({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Aj,t)},zj=Y("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Bj=Y("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>b({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Wj=Y("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Hj=Y(ta,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>b({marginRight:"auto"},e.view==="year"&&{[`.${Lj.switchViewIcon}`]:{transform:"rotate(180deg)"}})),Uj=Y(HF,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Yj=v.forwardRef(function(t,n){var r,o,i,s;const a=Zo(),l=ct(),c=Re({props:t,name:"MuiPickersCalendarHeader"}),{slots:u,slotProps:d,components:p,currentMonth:x,disabled:g,disableFuture:h,disablePast:E,maxDate:m,minDate:y,onMonthChange:C,onViewChange:w,view:S,reduceAnimations:P,views:k,labelId:M,className:T,timezone:D}=c,_=te(c,jj),A=c,$=Vj(c),R=(r=(o=u==null?void 0:u.switchViewButton)!=null?o:p==null?void 0:p.SwitchViewButton)!=null?r:Hj,O=We({elementType:R,externalSlotProps:d==null?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(S)},ownerState:A,className:$.switchViewButton}),L=(i=(s=u==null?void 0:u.switchViewIcon)!=null?s:p==null?void 0:p.SwitchViewIcon)!=null?i:Uj,V=We({elementType:L,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:void 0,className:$.switchViewIcon}),I=te(V,Nj),F=()=>C(l.addMonths(x,1),"left"),W=()=>C(l.addMonths(x,-1),"right"),se=aA(x,{disableFuture:h,maxDate:m,timezone:D}),B=lA(x,{disablePast:E,minDate:y,timezone:D}),H=()=>{if(!(k.length===1||!w||g))if(k.length===2)w(k.find(z=>z!==S)||k[0]);else{const z=k.indexOf(S)!==0?0:1;w(k[z])}};return k.length===1&&k[0]==="year"?null:f.jsxs(zj,b({},_,{ownerState:A,className:ue(T,$.root),ref:n,children:[f.jsxs(Bj,{role:"presentation",onClick:H,ownerState:A,"aria-live":"polite",className:$.labelContainer,children:[f.jsx(h4,{reduceAnimations:P,transKey:l.format(x,"monthAndYear"),children:f.jsx(Wj,{id:M,ownerState:A,className:$.label,children:l.format(x,"monthAndYear")})}),k.length>1&&!g&&f.jsx(R,b({},O,{children:f.jsx(L,b({},I))}))]}),f.jsx(na,{in:S==="day",children:f.jsx(nA,{slots:u,slotProps:d,onGoToPrevious:W,isPreviousDisabled:B,previousLabel:a.previousMonth,onGoToNext:F,isNextDisabled:se,nextLabel:a.nextMonth})})]}))}),Gj=e=>_e("MuiDateCalendar",e);Pe("MuiDateCalendar",["root","viewTransitionContainer"]);const qj=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],Kj=e=>{const{classes:t}=e;return De({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Gj,t)};function Zj(e,t){var n,r,o,i,s,a,l;const c=ct(),u=oc(),d=s4(),p=Re({props:e,name:t});return b({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(i=p.openTo)!=null?i:"day",views:(s=p.views)!=null?s:["year","day"],reduceAnimations:(a=p.reduceAnimations)!=null?a:d,renderLoading:(l=p.renderLoading)!=null?l:()=>f.jsx("span",{children:"..."}),minDate:Qn(c,p.minDate,u.minDate),maxDate:Qn(c,p.maxDate,u.maxDate)})}const Xj=Y(uA,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Km}),Jj=Y(h4,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Qj=v.forwardRef(function(t,n){var r,o,i;const s=ct(),a=ho(),l=Zj(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:d,defaultValue:p,referenceDate:x,disableFuture:g,disablePast:h,defaultCalendarMonth:E,onChange:m,onYearChange:y,onMonthChange:C,reduceAnimations:w,shouldDisableDate:S,shouldDisableMonth:P,shouldDisableYear:k,view:M,views:T,openTo:D,className:_,disabled:A,readOnly:$,minDate:R,maxDate:O,disableHighlightToday:L,focusedView:V,onFocusedViewChange:I,showDaysOutsideCurrentMonth:F,fixedWeekNumber:W,dayOfWeekFormatter:se,components:B,componentsProps:H,slots:z,slotProps:ne,loading:ce,renderLoading:q,displayWeekNumber:me,yearsPerRow:Se,monthsPerRow:Ee,timezone:re}=l,ee=te(l,qj),{value:j,handleValueChange:G,timezone:Z}=Qm({name:"DateCalendar",timezone:re,value:d,defaultValue:p,onChange:m,valueManager:uo}),{view:xe,setView:Ie,focusedView:le,setFocusedView:pe,goToNextView:U,setValueAndGoToNextView:Q}=U6({view:M,views:T,openTo:D,onChange:G,onViewChange:u,autoFocus:c,focusedView:V,onFocusedViewChange:I}),{referenceDate:we,calendarState:$e,changeFocusedDay:ke,changeMonth:X,handleChangeMonth:he,isDateDisabled:ve,onMonthSwitchingAnimationEnd:ge}=rj({value:j,defaultCalendarMonth:E,referenceDate:x,reduceAnimations:w,onMonthChange:C,minDate:R,maxDate:O,shouldDisableDate:S,disablePast:h,disableFuture:g,timezone:Z}),ye=A&&j||R,qe=A&&j||O,Ve=`${a}-grid-label`,He=le!==null,fe=(r=(o=z==null?void 0:z.calendarHeader)!=null?o:B==null?void 0:B.CalendarHeader)!=null?r:Yj,je=We({elementType:fe,externalSlotProps:(i=ne==null?void 0:ne.calendarHeader)!=null?i:H==null?void 0:H.calendarHeader,additionalProps:{views:T,view:xe,currentMonth:$e.currentMonth,onViewChange:Ie,onMonthChange:(at,fn)=>he({newMonth:at,direction:fn}),minDate:ye,maxDate:qe,disabled:A,disablePast:h,disableFuture:g,reduceAnimations:w,timezone:Z,labelId:Ve,slots:z,slotProps:ne},ownerState:l}),ut=Me(at=>{const fn=s.startOfMonth(at),Jo=s.endOfMonth(at),jn=ve(at)?ol({utils:s,date:at,minDate:s.isBefore(R,fn)?fn:R,maxDate:s.isAfter(O,Jo)?Jo:O,disablePast:h,disableFuture:g,isDateDisabled:ve,timezone:Z}):at;jn?(Q(jn,"finish"),C==null||C(fn)):(U(),X(fn)),ke(jn,!0)}),wt=Me(at=>{const fn=s.startOfYear(at),Jo=s.endOfYear(at),jn=ve(at)?ol({utils:s,date:at,minDate:s.isBefore(R,fn)?fn:R,maxDate:s.isAfter(O,Jo)?Jo:O,disablePast:h,disableFuture:g,isDateDisabled:ve,timezone:Z}):at;jn?(Q(jn,"finish"),y==null||y(jn)):(U(),X(fn)),ke(jn,!0)}),vo=Me(at=>G(at&&B0(s,at,j??we),"finish",xe));v.useEffect(()=>{j!=null&&s.isValid(j)&&X(j)},[j]);const ji=l,sa=Kj(ji),Ni={disablePast:h,disableFuture:g,maxDate:O,minDate:R},Vi={disableHighlightToday:L,readOnly:$,disabled:A,timezone:Z,gridLabelId:Ve},Xo=v.useRef(xe);v.useEffect(()=>{Xo.current!==xe&&(le===Xo.current&&pe(xe,!0),Xo.current=xe)},[le,pe,xe]);const aa=v.useMemo(()=>[j],[j]);return f.jsxs(Xj,b({ref:n,className:ue(sa.root,_),ownerState:ji},ee,{children:[f.jsx(fe,b({},je)),f.jsx(Jj,{reduceAnimations:w,className:sa.viewTransitionContainer,transKey:xe,ownerState:ji,children:f.jsxs("div",{children:[xe==="year"&&f.jsx(Fj,b({},Ni,Vi,{value:j,onChange:wt,shouldDisableYear:k,hasFocus:He,onFocusedViewChange:at=>pe("year",at),yearsPerRow:Se,referenceDate:we})),xe==="month"&&f.jsx(Sj,b({},Ni,Vi,{hasFocus:He,className:_,value:j,onChange:ut,shouldDisableMonth:P,onFocusedViewChange:at=>pe("month",at),monthsPerRow:Ee,referenceDate:we})),xe==="day"&&f.jsx(tj,b({},$e,Ni,Vi,{onMonthSwitchingAnimationEnd:ge,onFocusedDayChange:ke,reduceAnimations:w,selectedDays:aa,onSelectedDaysChange:vo,shouldDisableDate:S,shouldDisableMonth:P,shouldDisableYear:k,hasFocus:He,onFocusedViewChange:at=>pe("day",at),showDaysOutsideCurrentMonth:F,fixedWeekNumber:W,dayOfWeekFormatter:se,displayWeekNumber:me,components:B,componentsProps:H,slots:z,slotProps:ne,loading:ce,renderLoading:q}))]})})]}))});function eN(e){return _e("MuiDatePickerToolbar",e)}Pe("MuiDatePickerToolbar",["root","title"]);const tN=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],nN=e=>{const{classes:t}=e;return De({root:["root"],title:["title"]},eN,t)},rN=Y(mL,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oN=Y(Te,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>b({},e.isLandscape&&{margin:"auto 16px auto auto"})),iN=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:s,toolbarPlaceholder:a="––",views:l}=r,c=te(r,tN),u=ct(),d=Zo(),p=nN(r),x=v.useMemo(()=>{if(!o)return a;const h=Xm(u,{format:s,views:l},!0);return u.formatByString(o,h)},[o,s,a,u,l]),g=r;return f.jsx(rN,b({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:i,className:p.root},c,{children:f.jsx(oN,{variant:"h4",align:i?"left":"center",ownerState:g,className:p.title,children:x})}))});function m4(e,t){var n,r,o,i;const s=ct(),a=oc(),l=Re({props:e,name:t}),c=v.useMemo(()=>{var d;return((d=l.localeText)==null?void 0:d.toolbarTitle)==null?l.localeText:b({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:e4(l.components);return b({},l,{localeText:c},rA({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Qn(s,l.minDate,a.minDate),maxDate:Qn(s,l.maxDate,a.maxDate),slots:b({toolbar:iN},u),slotProps:(i=l.slotProps)!=null?i:l.componentsProps})}const sN=["props","getOpenDialogAriaText"],aN=["ownerState"],lN=["ownerState"],cN=e=>{var t,n,r,o,i;let{props:s,getOpenDialogAriaText:a}=e,l=te(e,sN);const{slots:c,slotProps:u,className:d,sx:p,format:x,formatDensity:g,timezone:h,name:E,label:m,inputRef:y,readOnly:C,disabled:w,autoFocus:S,localeText:P,reduceAnimations:k}=s,M=ct(),T=v.useRef(null),D=v.useRef(null),_=ho(),A=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:$,actions:R,hasUIView:O,layoutProps:L,renderCurrentView:V,shouldRestoreFocus:I,fieldProps:F}=a4(b({},l,{props:s,inputRef:T,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),W=(r=c.inputAdornment)!=null?r:Wm,se=We({elementType:W,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:s}),B=te(se,aN),H=(o=c.openPickerButton)!=null?o:ta,z=We({elementType:H,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||C,onClick:$?R.onClose:R.onOpen,"aria-label":a(F.value,M),edge:B.position},ownerState:s}),ne=te(z,lN),ce=c.openPickerIcon,q=c.field,me=We({elementType:q,externalSlotProps:u==null?void 0:u.field,additionalProps:b({},F,A&&{id:_},{readOnly:C,disabled:w,className:d,sx:p,format:x,formatDensity:g,timezone:h,label:m,name:E,autoFocus:S&&!s.open,focused:$?!0:void 0}),ownerState:s});O&&(me.InputProps=b({},me.InputProps,{ref:D,[`${B.position}Adornment`]:f.jsx(W,b({},B,{children:f.jsx(H,b({},ne,{children:f.jsx(ce,b({},u==null?void 0:u.openPickerIcon))}))}))}));const Se=b({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},me.slots),Ee=(i=c.layout)!=null?i:u4,re=tt(T,me.inputRef,y);let ee=_;A&&(m?ee=`${_}-label`:ee=void 0);const j=b({},u,{toolbar:b({},u==null?void 0:u.toolbar,{titleId:_}),popper:b({"aria-labelledby":ee},u==null?void 0:u.popper)});return{renderPicker:()=>f.jsxs(qm,{localeText:P,children:[f.jsx(q,b({},me,{slots:Se,slotProps:j,inputRef:re})),f.jsx(uL,b({role:"dialog",placement:"bottom-start",anchorEl:D.current},R,{open:$,slots:c,slotProps:j,shouldRestoreFocus:I,reduceAnimations:k,children:f.jsx(Ee,b({},L,j==null?void 0:j.layout,{slots:c,slotProps:j,children:V()}))}))]})}},Ps=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minDate:x,maxDate:g,shouldDisableDate:h,shouldDisableMonth:E,shouldDisableYear:m,reduceAnimations:y,onMonthChange:C,monthsPerRow:w,onYearChange:S,yearsPerRow:P,defaultCalendarMonth:k,components:M,componentsProps:T,slots:D,slotProps:_,loading:A,renderLoading:$,disableHighlightToday:R,readOnly:O,disabled:L,showDaysOutsideCurrentMonth:V,dayOfWeekFormatter:I,sx:F,autoFocus:W,fixedWeekNumber:se,displayWeekNumber:B,timezone:H})=>f.jsx(Qj,{view:e,onViewChange:t,views:n.filter(Sv),focusedView:r&&Sv(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minDate:x,maxDate:g,shouldDisableDate:h,shouldDisableMonth:E,shouldDisableYear:m,reduceAnimations:y,onMonthChange:C,monthsPerRow:w,onYearChange:S,yearsPerRow:P,defaultCalendarMonth:k,components:M,componentsProps:T,slots:D,slotProps:_,loading:A,renderLoading:$,disableHighlightToday:R,readOnly:O,disabled:L,showDaysOutsideCurrentMonth:V,dayOfWeekFormatter:I,sx:F,autoFocus:W,fixedWeekNumber:se,displayWeekNumber:B,timezone:H}),g4=v.forwardRef(function(t,n){var r,o,i,s;const a=Zo(),l=ct(),c=m4(t,"MuiDesktopDatePicker"),u=b({day:Ps,month:Ps,year:Ps},c.viewRenderers),d=b({},c,{viewRenderers:u,format:Xm(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:b({openPickerIcon:GF,field:p4},c.slots),slotProps:b({},c.slotProps,{field:x=>{var g;return b({},Im((g=c.slotProps)==null?void 0:g.field,x),i4(c),{ref:n})},toolbar:b({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=cN({props:d,valueManager:uo,valueType:"date",getOpenDialogAriaText:(i=(s=d.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:zf});return p()});g4.propTypes={autoFocus:N.bool,className:N.string,closeOnSelect:N.bool,components:N.object,componentsProps:N.object,dayOfWeekFormatter:N.func,defaultCalendarMonth:N.any,defaultValue:N.any,disabled:N.bool,disableFuture:N.bool,disableHighlightToday:N.bool,disableOpenPicker:N.bool,disablePast:N.bool,displayWeekNumber:N.bool,fixedWeekNumber:N.number,format:N.string,formatDensity:N.oneOf(["dense","spacious"]),inputRef:Cx,label:N.node,loading:N.bool,localeText:N.object,maxDate:N.any,minDate:N.any,monthsPerRow:N.oneOf([3,4]),name:N.string,onAccept:N.func,onChange:N.func,onClose:N.func,onError:N.func,onMonthChange:N.func,onOpen:N.func,onSelectedSectionsChange:N.func,onViewChange:N.func,onYearChange:N.func,open:N.bool,openTo:N.oneOf(["day","month","year"]),orientation:N.oneOf(["landscape","portrait"]),readOnly:N.bool,reduceAnimations:N.bool,referenceDate:N.any,renderLoading:N.func,selectedSections:N.oneOfType([N.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),N.number,N.shape({endIndex:N.number.isRequired,startIndex:N.number.isRequired})]),shouldDisableDate:N.func,shouldDisableMonth:N.func,shouldDisableYear:N.func,showDaysOutsideCurrentMonth:N.bool,slotProps:N.object,slots:N.object,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object]),timezone:N.string,value:N.any,view:N.oneOf(["day","month","year"]),viewRenderers:N.shape({day:N.func,month:N.func,year:N.func}),views:N.arrayOf(N.oneOf(["day","month","year"]).isRequired),yearsPerRow:N.oneOf([3,4])};const uN=["props","getOpenDialogAriaText"],dN=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:i}=e,s=te(e,uN);const{slots:a,slotProps:l,className:c,sx:u,format:d,formatDensity:p,timezone:x,name:g,label:h,inputRef:E,readOnly:m,disabled:y,localeText:C}=o,w=ct(),S=v.useRef(null),P=ho(),k=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:M,actions:T,layoutProps:D,renderCurrentView:_,fieldProps:A}=a4(b({},s,{props:o,inputRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),$=a.field,R=We({elementType:$,externalSlotProps:l==null?void 0:l.field,additionalProps:b({},A,k&&{id:P},!(y||m)&&{onClick:T.onOpen,onKeyDown:BA(T.onOpen)},{readOnly:m??!0,disabled:y,className:c,sx:u,format:d,formatDensity:p,timezone:x,label:h,name:g}),ownerState:o});R.inputProps=b({},R.inputProps,{"aria-label":i(A.value,w)});const O=b({textField:a.textField},R.slots),L=(r=a.layout)!=null?r:u4,V=tt(S,R.inputRef,E);let I=P;k&&(h?I=`${P}-label`:I=void 0);const F=b({},l,{toolbar:b({},l==null?void 0:l.toolbar,{titleId:P}),mobilePaper:b({"aria-labelledby":I},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>f.jsxs(qm,{localeText:C,children:[f.jsx($,b({},R,{slots:O,slotProps:F,inputRef:V})),f.jsx(QA,b({},T,{open:M,slots:a,slotProps:F,children:f.jsx(L,b({},D,F==null?void 0:F.layout,{slots:a,slotProps:F,children:_()}))}))]})}},y4=v.forwardRef(function(t,n){var r,o,i;const s=Zo(),a=ct(),l=m4(t,"MuiMobileDatePicker"),c=b({day:Ps,month:Ps,year:Ps},l.viewRenderers),u=b({},l,{viewRenderers:c,format:Xm(a,l,!1),slots:b({field:p4},l.slots),slotProps:b({},l.slotProps,{field:p=>{var x;return b({},Im((x=l.slotProps)==null?void 0:x.field,p),i4(l),{ref:n})},toolbar:b({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:d}=dN({props:u,valueManager:uo,valueType:"date",getOpenDialogAriaText:(o=(i=u.localeText)==null?void 0:i.openDatePickerDialogue)!=null?o:s.openDatePickerDialogue,validator:zf});return d()});y4.propTypes={autoFocus:N.bool,className:N.string,closeOnSelect:N.bool,components:N.object,componentsProps:N.object,dayOfWeekFormatter:N.func,defaultCalendarMonth:N.any,defaultValue:N.any,disabled:N.bool,disableFuture:N.bool,disableHighlightToday:N.bool,disableOpenPicker:N.bool,disablePast:N.bool,displayWeekNumber:N.bool,fixedWeekNumber:N.number,format:N.string,formatDensity:N.oneOf(["dense","spacious"]),inputRef:Cx,label:N.node,loading:N.bool,localeText:N.object,maxDate:N.any,minDate:N.any,monthsPerRow:N.oneOf([3,4]),name:N.string,onAccept:N.func,onChange:N.func,onClose:N.func,onError:N.func,onMonthChange:N.func,onOpen:N.func,onSelectedSectionsChange:N.func,onViewChange:N.func,onYearChange:N.func,open:N.bool,openTo:N.oneOf(["day","month","year"]),orientation:N.oneOf(["landscape","portrait"]),readOnly:N.bool,reduceAnimations:N.bool,referenceDate:N.any,renderLoading:N.func,selectedSections:N.oneOfType([N.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),N.number,N.shape({endIndex:N.number.isRequired,startIndex:N.number.isRequired})]),shouldDisableDate:N.func,shouldDisableMonth:N.func,shouldDisableYear:N.func,showDaysOutsideCurrentMonth:N.bool,slotProps:N.object,slots:N.object,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object]),timezone:N.string,value:N.any,view:N.oneOf(["day","month","year"]),viewRenderers:N.shape({day:N.func,month:N.func,year:N.func}),views:N.arrayOf(N.oneOf(["day","month","year"]).isRequired),yearsPerRow:N.oneOf([3,4])};const fN=["desktopModeMediaQuery"],pN=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=WA}=r,i=te(r,fN);return h6(o,{defaultMatches:!0})?f.jsx(g4,b({ref:n},i)):f.jsx(y4,b({ref:n},i))});//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com var v4;function de(){return v4.apply(null,arguments)}function hN(e){v4=e}function mr(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function xi(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Xe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function tg(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Xe(e,t))return!1;return!0}function pn(e){return e===void 0}function fo(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function sc(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function x4(e,t){var n=[],r,o=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var ig=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Hc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,lh={},Ms={};function Oe(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(Ms[e]=o),t&&(Ms[t[0]]=function(){return Fr(o.apply(this,arguments),t[1],t[2])}),n&&(Ms[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function xN(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function CN(e){var t=e.match(ig),n,r;for(n=0,r=t.length;n=0&&Hc.test(e);)e=e.replace(Hc,r),Hc.lastIndex=0,n-=1;return e}var bN={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function wN(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ig).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var SN="Invalid date";function kN(){return this._invalidDate}var EN="%d",PN=/\d{1,2}/;function MN(e){return this._ordinal.replace("%d",e)}var TN={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function RN(e,t,n,r){var o=this._relativeTime[n];return Nr(o)?o(e,t,n,r):o.replace(/%d/i,e)}function DN(e,t){var n=this._relativeTime[e>0?"future":"past"];return Nr(n)?n(t):n.replace(/%s/i,t)}var $v={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function rr(e){return typeof e=="string"?$v[e]||$v[e.toLowerCase()]:void 0}function sg(e){var t={},n,r;for(r in e)Xe(e,r)&&(n=rr(r),n&&(t[n]=e[r]));return t}var _N={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ON(e){var t=[],n;for(n in e)Xe(e,n)&&t.push({unit:n,priority:_N[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var S4=/\d/,Ln=/\d\d/,k4=/\d{3}/,ag=/\d{4}/,Wf=/[+-]?\d{6}/,ht=/\d\d?/,E4=/\d\d\d\d?/,P4=/\d\d\d\d\d\d?/,Hf=/\d{1,3}/,lg=/\d{1,4}/,Uf=/[+-]?\d{1,6}/,ra=/\d+/,Yf=/[+-]?\d+/,IN=/Z|[+-]\d\d:?\d\d/gi,Gf=/Z|[+-]\d\d(?::?\d\d)?/gi,$N=/[+-]?\d+(\.\d{1,3})?/,lc=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oa=/^[1-9]\d?/,cg=/^([1-9]\d|\d)/,ud;ud={};function Ce(e,t,n){ud[e]=Nr(t)?t:function(r,o){return r&&n?n:t}}function FN(e,t){return Xe(ud,e)?ud[e](t._strict,t._locale):new RegExp(AN(e))}function AN(e){return ro(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,i){return n||r||o||i}))}function ro(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Hn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ze(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Hn(t)),n}var q0={};function st(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),fo(t)&&(r=function(i,s){s[t]=ze(i)}),o=e.length,n=0;n68?1900:2e3)};var M4=ia("FullYear",!0);function VN(){return qf(this.year())}function ia(e,t){return function(n){return n!=null?(T4(this,e,n),de.updateOffset(this,t),this):$l(this,e)}}function $l(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function T4(e,t,n){var r,o,i,s,a;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,s=e.month(),a=e.date(),a=a===29&&s===1&&!qf(i)?28:a,o?r.setUTCFullYear(i,s,a):r.setFullYear(i,s,a)}}function zN(e){return e=rr(e),Nr(this[e])?this[e]():this}function BN(e,t){if(typeof e=="object"){e=sg(e);var n=ON(e),r,o=n.length;for(r=0;r=0?(a=new Date(e+400,t,n,r,o,i,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,o,i,s),a}function Fl(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function dd(e,t,n){var r=7+t-n,o=(7+Fl(e,0,r).getUTCDay()-t)%7;return-o+r-1}function $4(e,t,n,r,o){var i=(7+n-r)%7,s=dd(e,r,o),a=1+7*(t-1)+i+s,l,c;return a<=0?(l=e-1,c=il(l)+a):a>il(e)?(l=e+1,c=a-il(e)):(l=e,c=a),{year:l,dayOfYear:c}}function Al(e,t,n){var r=dd(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,s;return o<1?(s=e.year()-1,i=o+oo(s,t,n)):o>oo(e.year(),t,n)?(i=o-oo(e.year(),t,n),s=e.year()+1):(s=e.year(),i=o),{week:i,year:s}}function oo(e,t,n){var r=dd(e,t,n),o=dd(e+1,t,n);return(il(e)-r+o)/7}Oe("w",["ww",2],"wo","week");Oe("W",["WW",2],"Wo","isoWeek");Ce("w",ht,oa);Ce("ww",ht,Ln);Ce("W",ht,oa);Ce("WW",ht,Ln);cc(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ze(e)});function tV(e){return Al(e,this._week.dow,this._week.doy).week}var nV={dow:0,doy:6};function rV(){return this._week.dow}function oV(){return this._week.doy}function iV(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function sV(e){var t=Al(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Oe("d",0,"do","day");Oe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Oe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Oe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Oe("e",0,0,"weekday");Oe("E",0,0,"isoWeekday");Ce("d",ht);Ce("e",ht);Ce("E",ht);Ce("dd",function(e,t){return t.weekdaysMinRegex(e)});Ce("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ce("dddd",function(e,t){return t.weekdaysRegex(e)});cc(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:Ae(n).invalidWeekday=e});cc(["d","e","E"],function(e,t,n,r){t[r]=ze(e)});function aV(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function lV(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function dg(e,t){return e.slice(t,7).concat(e.slice(0,t))}var cV="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),F4="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),uV="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),dV=lc,fV=lc,pV=lc;function hV(e,t){var n=mr(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?dg(n,this._week.dow):e?n[e.day()]:n}function mV(e){return e===!0?dg(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function gV(e){return e===!0?dg(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function yV(e,t,n){var r,o,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=jr([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=Mt.call(this._weekdaysParse,s),o!==-1?o:null):t==="ddd"?(o=Mt.call(this._shortWeekdaysParse,s),o!==-1?o:null):(o=Mt.call(this._minWeekdaysParse,s),o!==-1?o:null):t==="dddd"?(o=Mt.call(this._weekdaysParse,s),o!==-1||(o=Mt.call(this._shortWeekdaysParse,s),o!==-1)?o:(o=Mt.call(this._minWeekdaysParse,s),o!==-1?o:null)):t==="ddd"?(o=Mt.call(this._shortWeekdaysParse,s),o!==-1||(o=Mt.call(this._weekdaysParse,s),o!==-1)?o:(o=Mt.call(this._minWeekdaysParse,s),o!==-1?o:null)):(o=Mt.call(this._minWeekdaysParse,s),o!==-1||(o=Mt.call(this._weekdaysParse,s),o!==-1)?o:(o=Mt.call(this._shortWeekdaysParse,s),o!==-1?o:null))}function vV(e,t,n){var r,o,i;if(this._weekdaysParseExact)return yV.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=jr([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function xV(e){if(!this.isValid())return e!=null?this:NaN;var t=$l(this,"Day");return e!=null?(e=aV(e,this.localeData()),this.add(e-t,"d")):t}function CV(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function bV(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=lV(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function wV(e){return this._weekdaysParseExact?(Xe(this,"_weekdaysRegex")||fg.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Xe(this,"_weekdaysRegex")||(this._weekdaysRegex=dV),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function SV(e){return this._weekdaysParseExact?(Xe(this,"_weekdaysRegex")||fg.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Xe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=fV),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function kV(e){return this._weekdaysParseExact?(Xe(this,"_weekdaysRegex")||fg.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Xe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=pV),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function fg(){function e(u,d){return d.length-u.length}var t=[],n=[],r=[],o=[],i,s,a,l,c;for(i=0;i<7;i++)s=jr([2e3,1]).day(i),a=ro(this.weekdaysMin(s,"")),l=ro(this.weekdaysShort(s,"")),c=ro(this.weekdays(s,"")),t.push(a),n.push(l),r.push(c),o.push(a),o.push(l),o.push(c);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function pg(){return this.hours()%12||12}function EV(){return this.hours()||24}Oe("H",["HH",2],0,"hour");Oe("h",["hh",2],0,pg);Oe("k",["kk",2],0,EV);Oe("hmm",0,0,function(){return""+pg.apply(this)+Fr(this.minutes(),2)});Oe("hmmss",0,0,function(){return""+pg.apply(this)+Fr(this.minutes(),2)+Fr(this.seconds(),2)});Oe("Hmm",0,0,function(){return""+this.hours()+Fr(this.minutes(),2)});Oe("Hmmss",0,0,function(){return""+this.hours()+Fr(this.minutes(),2)+Fr(this.seconds(),2)});function A4(e,t){Oe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}A4("a",!0);A4("A",!1);function L4(e,t){return t._meridiemParse}Ce("a",L4);Ce("A",L4);Ce("H",ht,cg);Ce("h",ht,oa);Ce("k",ht,oa);Ce("HH",ht,Ln);Ce("hh",ht,Ln);Ce("kk",ht,Ln);Ce("hmm",E4);Ce("hmmss",P4);Ce("Hmm",E4);Ce("Hmmss",P4);st(["H","HH"],At);st(["k","kk"],function(e,t,n){var r=ze(e);t[At]=r===24?0:r});st(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});st(["h","hh"],function(e,t,n){t[At]=ze(e),Ae(n).bigHour=!0});st("hmm",function(e,t,n){var r=e.length-2;t[At]=ze(e.substr(0,r)),t[ur]=ze(e.substr(r)),Ae(n).bigHour=!0});st("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[At]=ze(e.substr(0,r)),t[ur]=ze(e.substr(r,2)),t[Qr]=ze(e.substr(o)),Ae(n).bigHour=!0});st("Hmm",function(e,t,n){var r=e.length-2;t[At]=ze(e.substr(0,r)),t[ur]=ze(e.substr(r))});st("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[At]=ze(e.substr(0,r)),t[ur]=ze(e.substr(r,2)),t[Qr]=ze(e.substr(o))});function PV(e){return(e+"").toLowerCase().charAt(0)==="p"}var MV=/[ap]\.?m?\.?/i,TV=ia("Hours",!0);function RV(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var j4={calendar:yN,longDateFormat:bN,invalidDate:SN,ordinal:EN,dayOfMonthOrdinalParse:PN,relativeTime:TN,months:HN,monthsShort:R4,week:nV,weekdays:cV,weekdaysMin:uV,weekdaysShort:F4,meridiemParse:MV},gt={},Ra={},Ll;function DV(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(o=Kf(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&DV(i,r)>=n-1)break;n--}t++}return Ll}function OV(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Kf(e){var t=null,n;if(gt[e]===void 0&&typeof module<"u"&&module&&module.exports&&OV(e))try{t=Ll._abbr,n=require,n("./locale/"+e),No(t)}catch{gt[e]=null}return gt[e]}function No(e,t){var n;return e&&(pn(t)?n=go(e):n=hg(e,t),n?Ll=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ll._abbr}function hg(e,t){if(t!==null){var n,r=j4;if(t.abbr=e,gt[e]!=null)b4("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=gt[e]._config;else if(t.parentLocale!=null)if(gt[t.parentLocale]!=null)r=gt[t.parentLocale]._config;else if(n=Kf(t.parentLocale),n!=null)r=n._config;else return Ra[t.parentLocale]||(Ra[t.parentLocale]=[]),Ra[t.parentLocale].push({name:e,config:t}),null;return gt[e]=new og(Y0(r,t)),Ra[e]&&Ra[e].forEach(function(o){hg(o.name,o.config)}),No(e),gt[e]}else return delete gt[e],null}function IV(e,t){if(t!=null){var n,r,o=j4;gt[e]!=null&>[e].parentLocale!=null?gt[e].set(Y0(gt[e]._config,t)):(r=Kf(e),r!=null&&(o=r._config),t=Y0(o,t),r==null&&(t.abbr=e),n=new og(t),n.parentLocale=gt[e],gt[e]=n),No(e)}else gt[e]!=null&&(gt[e].parentLocale!=null?(gt[e]=gt[e].parentLocale,e===No()&&No(e)):gt[e]!=null&&delete gt[e]);return gt[e]}function go(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ll;if(!mr(e)){if(t=Kf(e),t)return t;e=[e]}return _V(e)}function $V(){return G0(gt)}function mg(e){var t,n=e._a;return n&&Ae(e).overflow===-2&&(t=n[Jr]<0||n[Jr]>11?Jr:n[Er]<1||n[Er]>ug(n[rn],n[Jr])?Er:n[At]<0||n[At]>24||n[At]===24&&(n[ur]!==0||n[Qr]!==0||n[hi]!==0)?At:n[ur]<0||n[ur]>59?ur:n[Qr]<0||n[Qr]>59?Qr:n[hi]<0||n[hi]>999?hi:-1,Ae(e)._overflowDayOfYear&&(tEr)&&(t=Er),Ae(e)._overflowWeeks&&t===-1&&(t=jN),Ae(e)._overflowWeekday&&t===-1&&(t=NN),Ae(e).overflow=t),e}var FV=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,AV=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,LV=/Z|[+-]\d\d(?::?\d\d)?/,Uc=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ch=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],jV=/^\/?Date\((-?\d+)/i,NV=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,VV={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function N4(e){var t,n,r=e._i,o=FV.exec(r)||AV.exec(r),i,s,a,l,c=Uc.length,u=ch.length;if(o){for(Ae(e).iso=!0,t=0,n=c;til(s)||e._dayOfYear===0)&&(Ae(e)._overflowDayOfYear=!0),n=Fl(s,0,e._dayOfYear),e._a[Jr]=n.getUTCMonth(),e._a[Er]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[At]===24&&e._a[ur]===0&&e._a[Qr]===0&&e._a[hi]===0&&(e._nextDay=!0,e._a[At]=0),e._d=(e._useUTC?Fl:eV).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[At]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Ae(e).weekdayMismatch=!0)}}function qV(e){var t,n,r,o,i,s,a,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,s=4,n=ts(t.GG,e._a[rn],Al(pt(),1,4).year),r=ts(t.W,1),o=ts(t.E,1),(o<1||o>7)&&(l=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,c=Al(pt(),i,s),n=ts(t.gg,e._a[rn],c.year),r=ts(t.w,c.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>oo(n,i,s)?Ae(e)._overflowWeeks=!0:l!=null?Ae(e)._overflowWeekday=!0:(a=$4(n,r,o,i,s),e._a[rn]=a.year,e._dayOfYear=a.dayOfYear)}de.ISO_8601=function(){};de.RFC_2822=function(){};function yg(e){if(e._f===de.ISO_8601){N4(e);return}if(e._f===de.RFC_2822){V4(e);return}e._a=[],Ae(e).empty=!0;var t=""+e._i,n,r,o,i,s,a=t.length,l=0,c,u;for(o=w4(e._f,e._locale).match(ig)||[],u=o.length,n=0;n0&&Ae(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Ms[i]?(r?Ae(e).empty=!1:Ae(e).unusedTokens.push(i),LN(i,r,e)):e._strict&&!r&&Ae(e).unusedTokens.push(i);Ae(e).charsLeftOver=a-l,t.length>0&&Ae(e).unusedInput.push(t),e._a[At]<=12&&Ae(e).bigHour===!0&&e._a[At]>0&&(Ae(e).bigHour=void 0),Ae(e).parsedDateParts=e._a.slice(0),Ae(e).meridiem=e._meridiem,e._a[At]=KV(e._locale,e._a[At],e._meridiem),c=Ae(e).era,c!==null&&(e._a[rn]=e._locale.erasConvertYear(c,e._a[rn])),gg(e),mg(e)}function KV(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function ZV(e){var t,n,r,o,i,s,a=!1,l=e._f.length;if(l===0){Ae(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;othis?this:e:Bf()});function W4(e,t){var n,r;if(t.length===1&&mr(t[0])&&(t=t[0]),!t.length)return pt();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function yz(){if(!pn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return rg(e,this),e=z4(e),e._a?(t=e._isUTC?jr(e._a):pt(e._a),this._isDSTShifted=this.isValid()&&lz(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function vz(){return this.isValid()?!this._isUTC:!1}function xz(){return this.isValid()?this._isUTC:!1}function U4(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Cz=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,bz=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function yr(e,t){var n=e,r=null,o,i,s;return Su(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:fo(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Cz.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:ze(r[Er])*o,h:ze(r[At])*o,m:ze(r[ur])*o,s:ze(r[Qr])*o,ms:ze(K0(r[hi]*1e3))*o}):(r=bz.exec(e))?(o=r[1]==="-"?-1:1,n={y:ti(r[2],o),M:ti(r[3],o),w:ti(r[4],o),d:ti(r[5],o),h:ti(r[6],o),m:ti(r[7],o),s:ti(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=wz(pt(n.from),pt(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),i=new Zf(n),Su(e)&&Xe(e,"_locale")&&(i._locale=e._locale),Su(e)&&Xe(e,"_isValid")&&(i._isValid=e._isValid),i}yr.fn=Zf.prototype;yr.invalid=az;function ti(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Av(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function wz(e,t){var n;return e.isValid()&&t.isValid()?(t=xg(t,e),e.isBefore(t)?n=Av(e,t):(n=Av(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Y4(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(b4(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),o=yr(n,r),G4(this,o,e),this}}function G4(e,t,n,r){var o=t._milliseconds,i=K0(t._days),s=K0(t._months);e.isValid()&&(r=r??!0,s&&_4(e,$l(e,"Month")+s*n),i&&T4(e,"Date",$l(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&de.updateOffset(e,i||s))}var Sz=Y4(1,"add"),kz=Y4(-1,"subtract");function q4(e){return typeof e=="string"||e instanceof String}function Ez(e){return gr(e)||sc(e)||q4(e)||fo(e)||Mz(e)||Pz(e)||e===null||e===void 0}function Pz(e){var t=xi(e)&&!tg(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,i,s=r.length;for(o=0;on.valueOf():n.valueOf()9999?wu(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Nr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",wu(n,"Z")):wu(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function zz(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function Bz(e){e||(e=this.isUtc()?de.defaultFormatUtc:de.defaultFormat);var t=wu(this,e);return this.localeData().postformat(t)}function Wz(e,t){return this.isValid()&&(gr(e)&&e.isValid()||pt(e).isValid())?yr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Hz(e){return this.from(pt(),e)}function Uz(e,t){return this.isValid()&&(gr(e)&&e.isValid()||pt(e).isValid())?yr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Yz(e){return this.to(pt(),e)}function K4(e){var t;return e===void 0?this._locale._abbr:(t=go(e),t!=null&&(this._locale=t),this)}var Z4=nr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function X4(){return this._locale}var fd=1e3,Ts=60*fd,pd=60*Ts,J4=(365*400+97)*24*pd;function Rs(e,t){return(e%t+t)%t}function Q4(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-J4:new Date(e,t,n).valueOf()}function e7(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-J4:Date.UTC(e,t,n)}function Gz(e){var t,n;if(e=rr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?e7:Q4,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Rs(t+(this._isUTC?0:this.utcOffset()*Ts),pd);break;case"minute":t=this._d.valueOf(),t-=Rs(t,Ts);break;case"second":t=this._d.valueOf(),t-=Rs(t,fd);break}return this._d.setTime(t),de.updateOffset(this,!0),this}function qz(e){var t,n;if(e=rr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?e7:Q4,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=pd-Rs(t+(this._isUTC?0:this.utcOffset()*Ts),pd)-1;break;case"minute":t=this._d.valueOf(),t+=Ts-Rs(t,Ts)-1;break;case"second":t=this._d.valueOf(),t+=fd-Rs(t,fd)-1;break}return this._d.setTime(t),de.updateOffset(this,!0),this}function Kz(){return this._d.valueOf()-(this._offset||0)*6e4}function Zz(){return Math.floor(this.valueOf()/1e3)}function Xz(){return new Date(this.valueOf())}function Jz(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Qz(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function eB(){return this.isValid()?this.toISOString():null}function tB(){return ng(this)}function nB(){return Ro({},Ae(this))}function rB(){return Ae(this).overflow}function oB(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Oe("N",0,0,"eraAbbr");Oe("NN",0,0,"eraAbbr");Oe("NNN",0,0,"eraAbbr");Oe("NNNN",0,0,"eraName");Oe("NNNNN",0,0,"eraNarrow");Oe("y",["y",1],"yo","eraYear");Oe("y",["yy",2],0,"eraYear");Oe("y",["yyy",3],0,"eraYear");Oe("y",["yyyy",4],0,"eraYear");Ce("N",Cg);Ce("NN",Cg);Ce("NNN",Cg);Ce("NNNN",mB);Ce("NNNNN",gB);st(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?Ae(n).era=o:Ae(n).invalidEra=e});Ce("y",ra);Ce("yy",ra);Ce("yyy",ra);Ce("yyyy",ra);Ce("yo",yB);st(["y","yy","yyy","yyyy"],rn);st(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[rn]=n._locale.eraYearOrdinalParse(e,o):t[rn]=parseInt(e,10)});function iB(e,t){var n,r,o,i=this._eras||go("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function aB(e,t){var n=e.since<=e.until?1:-1;return t===void 0?de(e.since).year():de(e.since).year()+(t-e.offset)*n}function lB(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ei&&(t=i),kB.call(this,e,t,n,r,o))}function kB(e,t,n,r,o){var i=$4(e,t,n,r,o),s=Fl(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Oe("Q",0,"Qo","quarter");Ce("Q",S4);st("Q",function(e,t){t[Jr]=(ze(e)-1)*3});function EB(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Oe("D",["DD",2],"Do","date");Ce("D",ht,oa);Ce("DD",ht,Ln);Ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});st(["D","DD"],Er);st("Do",function(e,t){t[Er]=ze(e.match(ht)[0])});var n7=ia("Date",!0);Oe("DDD",["DDDD",3],"DDDo","dayOfYear");Ce("DDD",Hf);Ce("DDDD",k4);st(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ze(e)});function PB(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Oe("m",["mm",2],0,"minute");Ce("m",ht,cg);Ce("mm",ht,Ln);st(["m","mm"],ur);var MB=ia("Minutes",!1);Oe("s",["ss",2],0,"second");Ce("s",ht,cg);Ce("ss",ht,Ln);st(["s","ss"],Qr);var TB=ia("Seconds",!1);Oe("S",0,0,function(){return~~(this.millisecond()/100)});Oe(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Oe(0,["SSS",3],0,"millisecond");Oe(0,["SSSS",4],0,function(){return this.millisecond()*10});Oe(0,["SSSSS",5],0,function(){return this.millisecond()*100});Oe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Oe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Oe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Oe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ce("S",Hf,S4);Ce("SS",Hf,Ln);Ce("SSS",Hf,k4);var Do,r7;for(Do="SSSS";Do.length<=9;Do+="S")Ce(Do,ra);function RB(e,t){t[hi]=ze(("0."+e)*1e3)}for(Do="S";Do.length<=9;Do+="S")st(Do,RB);r7=ia("Milliseconds",!1);Oe("z",0,0,"zoneAbbr");Oe("zz",0,0,"zoneName");function DB(){return this._isUTC?"UTC":""}function _B(){return this._isUTC?"Coordinated Universal Time":""}var ae=ac.prototype;ae.add=Sz;ae.calendar=Dz;ae.clone=_z;ae.diff=jz;ae.endOf=qz;ae.format=Bz;ae.from=Wz;ae.fromNow=Hz;ae.to=Uz;ae.toNow=Yz;ae.get=zN;ae.invalidAt=rB;ae.isAfter=Oz;ae.isBefore=Iz;ae.isBetween=$z;ae.isSame=Fz;ae.isSameOrAfter=Az;ae.isSameOrBefore=Lz;ae.isValid=tB;ae.lang=Z4;ae.locale=K4;ae.localeData=X4;ae.max=tz;ae.min=ez;ae.parsingFlags=nB;ae.set=BN;ae.startOf=Gz;ae.subtract=kz;ae.toArray=Jz;ae.toObject=Qz;ae.toDate=Xz;ae.toISOString=Vz;ae.inspect=zz;typeof Symbol<"u"&&Symbol.for!=null&&(ae[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ae.toJSON=eB;ae.toString=Nz;ae.unix=Zz;ae.valueOf=Kz;ae.creationData=oB;ae.eraName=lB;ae.eraNarrow=cB;ae.eraAbbr=uB;ae.eraYear=dB;ae.year=M4;ae.isLeapYear=VN;ae.weekYear=vB;ae.isoWeekYear=xB;ae.quarter=ae.quarters=EB;ae.month=O4;ae.daysInMonth=XN;ae.week=ae.weeks=iV;ae.isoWeek=ae.isoWeeks=sV;ae.weeksInYear=wB;ae.weeksInWeekYear=SB;ae.isoWeeksInYear=CB;ae.isoWeeksInISOWeekYear=bB;ae.date=n7;ae.day=ae.days=xV;ae.weekday=CV;ae.isoWeekday=bV;ae.dayOfYear=PB;ae.hour=ae.hours=TV;ae.minute=ae.minutes=MB;ae.second=ae.seconds=TB;ae.millisecond=ae.milliseconds=r7;ae.utcOffset=uz;ae.utc=fz;ae.local=pz;ae.parseZone=hz;ae.hasAlignedHourOffset=mz;ae.isDST=gz;ae.isLocal=vz;ae.isUtcOffset=xz;ae.isUtc=U4;ae.isUTC=U4;ae.zoneAbbr=DB;ae.zoneName=_B;ae.dates=nr("dates accessor is deprecated. Use date instead.",n7);ae.months=nr("months accessor is deprecated. Use month instead",O4);ae.years=nr("years accessor is deprecated. Use year instead",M4);ae.zone=nr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",dz);ae.isDSTShifted=nr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",yz);function OB(e){return pt(e*1e3)}function IB(){return pt.apply(null,arguments).parseZone()}function o7(e){return e}var Je=og.prototype;Je.calendar=vN;Je.longDateFormat=wN;Je.invalidDate=kN;Je.ordinal=MN;Je.preparse=o7;Je.postformat=o7;Je.relativeTime=RN;Je.pastFuture=DN;Je.set=gN;Je.eras=iB;Je.erasParse=sB;Je.erasConvertYear=aB;Je.erasAbbrRegex=pB;Je.erasNameRegex=fB;Je.erasNarrowRegex=hB;Je.months=GN;Je.monthsShort=qN;Je.monthsParse=ZN;Je.monthsRegex=QN;Je.monthsShortRegex=JN;Je.week=tV;Je.firstDayOfYear=oV;Je.firstDayOfWeek=rV;Je.weekdays=hV;Je.weekdaysMin=gV;Je.weekdaysShort=mV;Je.weekdaysParse=vV;Je.weekdaysRegex=wV;Je.weekdaysShortRegex=SV;Je.weekdaysMinRegex=kV;Je.isPM=PV;Je.meridiem=RV;function hd(e,t,n,r){var o=go(),i=jr().set(r,t);return o[n](i,e)}function i7(e,t,n){if(fo(e)&&(t=e,e=void 0),e=e||"",t!=null)return hd(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=hd(e,r,n,"month");return o}function wg(e,t,n,r){typeof e=="boolean"?(fo(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,fo(t)&&(n=t,t=void 0),t=t||"");var o=go(),i=e?o._week.dow:0,s,a=[];if(n!=null)return hd(t,(n+i)%7,r,"day");for(s=0;s<7;s++)a[s]=hd(t,(s+i)%7,r,"day");return a}function $B(e,t){return i7(e,t,"months")}function FB(e,t){return i7(e,t,"monthsShort")}function AB(e,t,n){return wg(e,t,n,"weekdays")}function LB(e,t,n){return wg(e,t,n,"weekdaysShort")}function jB(e,t,n){return wg(e,t,n,"weekdaysMin")}No("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=ze(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});de.lang=nr("moment.lang is deprecated. Use moment.locale instead.",No);de.langData=nr("moment.langData is deprecated. Use moment.localeData instead.",go);var zr=Math.abs;function NB(){var e=this._data;return this._milliseconds=zr(this._milliseconds),this._days=zr(this._days),this._months=zr(this._months),e.milliseconds=zr(e.milliseconds),e.seconds=zr(e.seconds),e.minutes=zr(e.minutes),e.hours=zr(e.hours),e.months=zr(e.months),e.years=zr(e.years),this}function s7(e,t,n,r){var o=yr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function VB(e,t){return s7(this,e,t,1)}function zB(e,t){return s7(this,e,t,-1)}function Lv(e){return e<0?Math.floor(e):Math.ceil(e)}function BB(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,s,a,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Lv(X0(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=Hn(e/1e3),r.seconds=o%60,i=Hn(o/60),r.minutes=i%60,s=Hn(i/60),r.hours=s%24,t+=Hn(s/24),l=Hn(a7(t)),n+=l,t-=Lv(X0(l)),a=Hn(n/12),n%=12,r.days=t,r.months=n,r.years=a,this}function a7(e){return e*4800/146097}function X0(e){return e*146097/4800}function WB(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=rr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+a7(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(X0(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function yo(e){return function(){return this.as(e)}}var l7=yo("ms"),HB=yo("s"),UB=yo("m"),YB=yo("h"),GB=yo("d"),qB=yo("w"),KB=yo("M"),ZB=yo("Q"),XB=yo("y"),JB=l7;function QB(){return yr(this)}function eW(e){return e=rr(e),this.isValid()?this[e+"s"]():NaN}function Ai(e){return function(){return this.isValid()?this._data[e]:NaN}}var tW=Ai("milliseconds"),nW=Ai("seconds"),rW=Ai("minutes"),oW=Ai("hours"),iW=Ai("days"),sW=Ai("months"),aW=Ai("years");function lW(){return Hn(this.days()/7)}var Ur=Math.round,ms={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function cW(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function uW(e,t,n,r){var o=yr(e).abs(),i=Ur(o.as("s")),s=Ur(o.as("m")),a=Ur(o.as("h")),l=Ur(o.as("d")),c=Ur(o.as("M")),u=Ur(o.as("w")),d=Ur(o.as("y")),p=i<=n.ss&&["s",i]||i0,p[4]=r,cW.apply(null,p)}function dW(e){return e===void 0?Ur:typeof e=="function"?(Ur=e,!0):!1}function fW(e,t){return ms[e]===void 0?!1:t===void 0?ms[e]:(ms[e]=t,e==="s"&&(ms.ss=t-1),!0)}function pW(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=ms,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},ms,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=uW(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var uh=Math.abs;function Ki(e){return(e>0)-(e<0)||+e}function Jf(){if(!this.isValid())return this.localeData().invalidDate();var e=uh(this._milliseconds)/1e3,t=uh(this._days),n=uh(this._months),r,o,i,s,a=this.asSeconds(),l,c,u,d;return a?(r=Hn(e/60),o=Hn(r/60),e%=60,r%=60,i=Hn(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",c=Ki(this._months)!==Ki(a)?"-":"",u=Ki(this._days)!==Ki(a)?"-":"",d=Ki(this._milliseconds)!==Ki(a)?"-":"",l+"P"+(i?c+i+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(o||r||e?"T":"")+(o?d+o+"H":"")+(r?d+r+"M":"")+(e?d+s+"S":"")):"P0D"}var Ye=Zf.prototype;Ye.isValid=sz;Ye.abs=NB;Ye.add=VB;Ye.subtract=zB;Ye.as=WB;Ye.asMilliseconds=l7;Ye.asSeconds=HB;Ye.asMinutes=UB;Ye.asHours=YB;Ye.asDays=GB;Ye.asWeeks=qB;Ye.asMonths=KB;Ye.asQuarters=ZB;Ye.asYears=XB;Ye.valueOf=JB;Ye._bubble=BB;Ye.clone=QB;Ye.get=eW;Ye.milliseconds=tW;Ye.seconds=nW;Ye.minutes=rW;Ye.hours=oW;Ye.days=iW;Ye.weeks=lW;Ye.months=sW;Ye.years=aW;Ye.humanize=pW;Ye.toISOString=Jf;Ye.toString=Jf;Ye.toJSON=Jf;Ye.locale=K4;Ye.localeData=X4;Ye.toIsoString=nr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Jf);Ye.lang=Z4;Oe("X",0,0,"unix");Oe("x",0,0,"valueOf");Ce("x",Yf);Ce("X",$N);st("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});st("x",function(e,t,n){n._d=new Date(ze(e))});//! moment.js de.version="2.30.1";hN(pt);de.fn=ae;de.min=nz;de.max=rz;de.now=oz;de.utc=jr;de.unix=OB;de.months=$B;de.isDate=sc;de.locale=No;de.invalid=Bf;de.duration=yr;de.isMoment=gr;de.weekdays=AB;de.parseZone=IB;de.localeData=go;de.isDuration=Su;de.monthsShort=FB;de.weekdaysMin=jB;de.defineLocale=hg;de.updateLocale=IV;de.locales=$V;de.weekdaysShort=LB;de.normalizeUnits=rr;de.relativeTimeRounding=dW;de.relativeTimeThreshold=fW;de.calendarFormat=Rz;de.prototype=ae;de.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const hW={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},mW={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},jv=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(` `);class gW{constructor({locale:t,formats:n,instance:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=hW,this.setLocaleToValue=o=>{const i=this.getCurrentLocaleCode();return i===o.locale()?o:o.locale(i)},this.syncMomentLocale=o=>{var i;const s=de.locale(),a=(i=this.locale)!=null?i:"en-us";if(s!==a){de.locale(a);const l=o();return de.locale(s),l}return o()},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=o=>{const i=this.moment(o).local();return this.locale===void 0?i:i.locale(this.locale)},this.createUTCDate=o=>{const i=this.moment.utc(o);return this.locale===void 0?i:i.locale(this.locale)},this.createTZDate=(o,i)=>{if(!this.hasTimezonePlugin())throw new Error(jv);const s=i==="default"?this.moment(o):this.moment.tz(o,i);return this.locale===void 0?s:s.locale(this.locale)},this.date=o=>{if(o===null)return null;const i=this.moment(o);return i.locale(this.getCurrentLocaleCode()),i},this.dateWithTimezone=(o,i)=>o===null?null:i==="UTC"?this.createUTCDate(o):i==="system"||i==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(o):this.createTZDate(o,i),this.getTimezone=o=>{var i,s,a;const l=(i=o._z)==null?void 0:i.name,c=o.isUTC()?"UTC":"system";return(s=l??((a=this.moment.defaultZone)==null?void 0:a.name))!=null?s:c},this.setTimezone=(o,i)=>{var s,a;if(this.getTimezone(o)===i)return o;if(i==="UTC")return o.clone().utc();if(i==="system")return o.clone().local();if(!this.hasTimezonePlugin()){if(i!=="default")throw new Error(jv);return o}const l=i==="default"?(s=(a=this.moment.defaultZone)==null?void 0:a.name)!=null?s:"system":i;if(l==="system")return o.clone().local();const c=o.clone();return c.tz(l),c},this.toJsDate=o=>o.toDate(),this.parseISO=o=>this.moment(o,!0),this.toISO=o=>o.toISOString(),this.parse=(o,i)=>o===""?null:this.locale?this.moment(o,i,this.locale,!0):this.moment(o,i,!0),this.getCurrentLocaleCode=()=>this.locale||de.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(de.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=o=>{const i=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return o.match(i).map(s=>{const a=s[0];return a==="L"||a===";"?de.localeData(this.getCurrentLocaleCode()).longDateFormat(s):s}).join("")},this.getFormatHelperText=o=>this.expandFormat(o).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=o=>o===null,this.isValid=o=>this.moment(o).isValid(),this.format=(o,i)=>this.formatByString(o,this.formats[i]),this.formatByString=(o,i)=>{const s=o.clone();return s.locale(this.getCurrentLocaleCode()),s.format(i)},this.formatNumber=o=>o,this.getDiff=(o,i,s)=>o.diff(i,s),this.isEqual=(o,i)=>o===null&&i===null?!0:this.moment(o).isSame(i),this.isSameYear=(o,i)=>o.isSame(i,"year"),this.isSameMonth=(o,i)=>o.isSame(i,"month"),this.isSameDay=(o,i)=>o.isSame(i,"day"),this.isSameHour=(o,i)=>o.isSame(i,"hour"),this.isAfter=(o,i)=>o.isAfter(i),this.isAfterYear=(o,i)=>o.isAfter(i,"year"),this.isAfterDay=(o,i)=>o.isAfter(i,"day"),this.isBefore=(o,i)=>o.isBefore(i),this.isBeforeYear=(o,i)=>o.isBefore(i,"year"),this.isBeforeDay=(o,i)=>o.isBefore(i,"day"),this.isWithinRange=(o,[i,s])=>o.isBetween(i,s,null,"[]"),this.startOfYear=o=>o.clone().startOf("year"),this.startOfMonth=o=>o.clone().startOf("month"),this.startOfWeek=o=>o.clone().startOf("week"),this.startOfDay=o=>o.clone().startOf("day"),this.endOfYear=o=>o.clone().endOf("year"),this.endOfMonth=o=>o.clone().endOf("month"),this.endOfWeek=o=>o.clone().endOf("week"),this.endOfDay=o=>o.clone().endOf("day"),this.addYears=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"years"):o.clone().add(i,"years"),this.addMonths=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"months"):o.clone().add(i,"months"),this.addWeeks=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"weeks"):o.clone().add(i,"weeks"),this.addDays=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"days"):o.clone().add(i,"days"),this.addHours=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"hours"):o.clone().add(i,"hours"),this.addMinutes=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"minutes"):o.clone().add(i,"minutes"),this.addSeconds=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"seconds"):o.clone().add(i,"seconds"),this.getYear=o=>o.get("year"),this.getMonth=o=>o.get("month"),this.getDate=o=>o.get("date"),this.getHours=o=>o.get("hours"),this.getMinutes=o=>o.get("minutes"),this.getSeconds=o=>o.get("seconds"),this.getMilliseconds=o=>o.get("milliseconds"),this.setYear=(o,i)=>o.clone().year(i),this.setMonth=(o,i)=>o.clone().month(i),this.setDate=(o,i)=>o.clone().date(i),this.setHours=(o,i)=>o.clone().hours(i),this.setMinutes=(o,i)=>o.clone().minutes(i),this.setSeconds=(o,i)=>o.clone().seconds(i),this.setMilliseconds=(o,i)=>o.clone().milliseconds(i),this.getDaysInMonth=o=>o.daysInMonth(),this.getNextMonth=o=>o.clone().add(1,"month"),this.getPreviousMonth=o=>o.clone().subtract(1,"month"),this.getMonthArray=o=>{const s=[this.startOfYear(o)];for(;s.length<12;){const a=s[s.length-1];s.push(this.getNextMonth(a))}return s},this.mergeDateAndTime=(o,i)=>o.clone().hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>this.syncMomentLocale(()=>de.weekdaysShort(!0)),this.getWeekArray=o=>{const i=this.setLocaleToValue(o),s=i.clone().startOf("month").startOf("week"),a=i.clone().endOf("month").endOf("week");let l=0,c=s;const u=[];for(;c.isBefore(a);){const d=Math.floor(l/7);u[d]=u[d]||[],u[d].push(c),c=c.clone().add(1,"day"),l+=1}return u},this.getWeekNumber=o=>o.week(),this.getYearRange=(o,i)=>{const s=this.moment(o).startOf("year"),a=this.moment(i).endOf("year"),l=[];let c=s;for(;c.isBefore(a);)l.push(c),c=c.clone().add(1,"year");return l},this.getMeridiemText=o=>this.is12HourCycleInCurrentLocale()?de.localeData(this.getCurrentLocaleCode()).meridiem(o==="am"?0:13,0,!1):o==="am"?"AM":"PM",this.moment=r||de,this.locale=t,this.formats=b({},mW,n)}}function yW(e,t){const n={timestamp:Math.floor(Date.now()/1e3),message:e.message,callStack:e.stack,componentStack:t.componentStack};vW(n)}let Eu=[],Nv;function vW(e){Eu.push(e),clearTimeout(Nv),Nv=setTimeout(()=>{xW()},1e3)}async function xW(){console.log(`Fake-sending ${Eu.length} errors to server`,Eu),Eu=[]}const Ho=sn({breakpoints:{values:{xs:0,sm:560,md:900,lg:1200,xl:1536}},components:{MuiTypography:{defaultProps:{variantMapping:{p1:"p"}}},MuiButton:{variants:[{props:{variant:"contained"},style:{backgroundColor:"#7E2AEA",padding:"13px 20px",borderRadius:"8px",color:"#ffffff",boxShadow:"none","&:hover":{backgroundColor:"#581CA7"}}},{props:{variant:"outlined"},style:{backgroundColor:"#F2F3F7",padding:"10px 20px",borderRadius:"8px",border:"1px solid #7E2AEA",color:"#9A9AAF","&:hover":{backgroundColor:"#581CA7",border:"1px solid #581CA7"}}}]}},typography:{h5:{fontSize:"24px",lineHeight:"28.44px",fontWeight:500},button:{fontSize:"18px",lineHeight:"24px",fontWeight:400,textTransform:"none"},body1:{fontSize:"18px",lineHeight:"21.33px",fontWeight:400},body2:{fontSize:"16px",lineHeight:"20px",fontWeight:500},p1:{fontSize:"20px",lineHeight:"24px",fontWeight:500},fontFamily:["Twemoji Country Flags","Rubik","-apple-system","BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(",")}});Ho.typography.h2={fontSize:"70px",lineHeight:"70px",fontWeight:500,[Ho.breakpoints.down("md")]:{fontSize:"42px",lineHeight:"50px"}};Ho.typography.h4={fontSize:"36px",lineHeight:"42.66px",fontWeight:500,[Ho.breakpoints.down("md")]:{fontSize:"24px",lineHeight:"28.44px"}};Ho.typography.infographic={fontSize:"80px",lineHeight:"94.8px",fontWeight:400,[Ho.breakpoints.down("md")]:{fontSize:"50px",lineHeight:"59px",fontWeight:400}};const Vv=sn({...Ho,palette:{mode:"light",primary:{main:"#000000"},secondary:{main:"#252734"},text:{primary:"#000000",secondary:"#7E2AEA"},background:{default:"#F2F3F7"},lightPurple:{main:"#333647"},darkPurple:{main:"#252734"},brightPurple:{main:"#7E2AEA"},fadePurple:{main:"#C19AF5"},grey1:{main:"#434657"},grey2:{main:"#9A9AAF"},grey3:{main:"#4D4D4D"},grey4:{main:"#333647"},orange:{main:"#FB5607"},navbarbg:{main:"#FFFFFF"}}});function c7(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||CW,wW=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,SW=/\/\*[^]*?\*\/| +/g,zv=/\n+/g,ci=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?ci(s,i):i+"{"+ci(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=ci(s,t?t.replace(/([^,])+/g,a=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=ci.p?ci.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Br={},u7=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+u7(e[n]);return t}return e},kW=(e,t,n,r,o)=>{let i=u7(e),s=Br[i]||(Br[i]=(l=>{let c=0,u=11;for(;c>>0;return"go"+u})(i));if(!Br[s]){let l=i!==e?e:(c=>{let u,d,p=[{}];for(;u=wW.exec(c.replace(SW,""));)u[4]?p.shift():u[3]?(d=u[3].replace(zv," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][u[1]]=u[2].replace(zv," ").trim();return p[0]})(e);Br[s]=ci(o?{["@keyframes "+s]:l}:l,n?"":"."+s)}let a=n&&Br.g?Br.g:null;return n&&(Br.g=Br[s]),((l,c,u,d)=>{d?c.data=c.data.replace(d,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(Br[s],t,r,a),s},EW=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":ci(a,""):a===!1?"":a}return r+o+(s??"")},"");function Sg(e){let t=this||{},n=e.call?e(t.p):e;return kW(n.unshift?n.raw?EW(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,bW(t.target),t.g,t.o,t.k)}Sg.bind({g:1});Sg.bind({k:1});function Bv(e,t){for(var n=0;n=0)&&(n[o]=e[o]);return n}function Wv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Hv=function(){return""},PW=Fe.createContext({enqueueSnackbar:Hv,closeSnackbar:Hv}),si={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},Uv=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},kg=function(t){return""+Uv(t.vertical)+Uv(t.horizontal)},Yc=function(t){return!!t||t===0},Gc="unmounted",Zi="exited",Xi="entering",_a="entered",Yv="exiting",Eg=function(e){f7(t,e);function t(r){var o;o=e.call(this,r)||this;var i=r.appear,s;return o.appearStatus=null,r.in?i?(s=Zi,o.appearStatus=Xi):s=_a:r.unmountOnExit||r.mountOnEnter?s=Gc:s=Zi,o.state={status:s},o.nextCallback=null,o}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Gc?{status:Zi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Xi&&s!==_a&&(i=Xi):(s===Xi||s===_a)&&(i=Yv)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i=o,s=o;return o!=null&&typeof o!="number"&&typeof o!="string"&&(s=o.exit,i=o.enter),{exit:s,enter:i}},n.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===Xi?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===Zi&&this.setState({status:Gc})},n.performEnter=function(o){var i=this,s=this.props.enter,a=o,l=this.getTimeouts();if(!o&&!s){this.safeSetState({status:_a},function(){i.props.onEntered&&i.props.onEntered(i.node,a)});return}this.props.onEnter&&this.props.onEnter(this.node,a),this.safeSetState({status:Xi},function(){i.props.onEntering&&i.props.onEntering(i.node,a),i.onTransitionEnd(l.enter,function(){i.safeSetState({status:_a},function(){i.props.onEntered&&i.props.onEntered(i.node,a)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts();if(!i){this.safeSetState({status:Zi},function(){o.props.onExited&&o.props.onExited(o.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:Yv},function(){o.props.onExiting&&o.props.onExiting(o.node),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Zi},function(){o.props.onExited&&o.props.onExited(o.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(){s&&(s=!1,i.nextCallback=null,o())},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=o==null&&!this.props.addEndListener;if(!this.node||s){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Gc)return null;var i=this.props,s=i.children,a=uc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return s(o,a)},d7(t,[{key:"node",get:function(){var o,i=(o=this.props.nodeRef)===null||o===void 0?void 0:o.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(Fe.Component);function Ji(){}Eg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ji,onEntering:Ji,onEntered:Ji,onExit:Ji,onExiting:Ji,onExited:Ji};function Gv(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function J0(e,t){return v.useMemo(function(){return e==null&&t==null?null:function(n){Gv(e,n),Gv(t,n)}},[e,t])}function md(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,o=e.mode;return{duration:typeof t=="object"?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var Q0={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)"},p7=function(t){t.scrollTop=t.scrollTop},qv=function(t){return Math.round(t)+"ms"};function gs(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,o=r===void 0?300:r,i=n.easing,s=i===void 0?Q0.easeInOut:i,a=n.delay,l=a===void 0?0:a,c=Array.isArray(e)?e:[e];return c.map(function(u){var d=typeof o=="string"?o:qv(o),p=typeof l=="string"?l:qv(l);return u+" "+d+" "+s+" "+p}).join(",")}function MW(e){return e&&e.ownerDocument||document}function h7(e){var t=MW(e);return t.defaultView||window}function TW(e,t){t===void 0&&(t=166);var n;function r(){for(var o=this,i=arguments.length,s=new Array(i),a=0;a-1,C=E.snacks.findIndex(m)>-1;if(y||C)return E}return o.handleDisplaySnack(ot({},E,{queue:[].concat(E.queue,[h])}))}),x},o.handleDisplaySnack=function(i){var s=i.snacks;return s.length>=o.maxSnack?o.handleDismissOldest(i):o.processQueue(i)},o.processQueue=function(i){var s=i.queue,a=i.snacks;return s.length>0?ot({},i,{snacks:[].concat(a,[s[0]]),queue:s.slice(1,s.length)}):i},o.handleDismissOldest=function(i){if(i.snacks.some(function(u){return!u.open||u.requestClose}))return i;var s=!1,a=!1,l=i.snacks.reduce(function(u,d){return u+(d.open&&d.persist?1:0)},0);l===o.maxSnack&&(a=!0);var c=i.snacks.map(function(u){return!s&&(!u.persist||a)?(s=!0,u.entered?(u.onClose&&u.onClose(null,"maxsnack",u.id),o.props.onClose&&o.props.onClose(null,"maxsnack",u.id),ot({},u,{open:!1})):ot({},u,{requestClose:!0})):ot({},u)});return ot({},i,{snacks:c})},o.handleEnteredSnack=function(i,s,a){if(!Yc(a))throw new Error("handleEnteredSnack Cannot be called with undefined key");o.setState(function(l){var c=l.snacks;return{snacks:c.map(function(u){return u.id===a?ot({},u,{entered:!0}):ot({},u)})}})},o.handleCloseSnack=function(i,s,a){o.props.onClose&&o.props.onClose(i,s,a);var l=a===void 0;o.setState(function(c){var u=c.snacks,d=c.queue;return{snacks:u.map(function(p){return!l&&p.id!==a?ot({},p):p.entered?ot({},p,{open:!1}):ot({},p,{requestClose:!0})}),queue:d.filter(function(p){return p.id!==a})}})},o.closeSnackbar=function(i){var s=o.state.snacks.find(function(a){return a.id===i});Yc(i)&&s&&s.onClose&&s.onClose(null,"instructed",i),o.handleCloseSnack(null,"instructed",i)},o.handleExitedSnack=function(i,s){if(!Yc(s))throw new Error("handleExitedSnack Cannot be called with undefined key");o.setState(function(a){var l=o.processQueue(ot({},a,{snacks:a.snacks.filter(function(c){return c.id!==s})}));return l.queue.length===0?l:o.handleDismissOldest(l)})},xt=o.enqueueSnackbar,o.closeSnackbar,o.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:o.enqueueSnackbar.bind(Wv(o)),closeSnackbar:o.closeSnackbar.bind(Wv(o))}},o}var n=t.prototype;return n.render=function(){var o=this,i=this.state.contextValue,s=this.props,a=s.domRoot,l=s.children,c=s.dense,u=c===void 0?!1:c,d=s.Components,p=d===void 0?{}:d,x=s.classes,g=this.state.snacks.reduce(function(E,m){var y,C=kg(m.anchorOrigin),w=E[C]||[];return ot({},E,(y={},y[C]=[].concat(w,[m]),y))},{}),h=Object.keys(g).map(function(E){var m=g[E],y=m[0];return Fe.createElement(qW,{key:E,dense:u,anchorOrigin:y.anchorOrigin,classes:x},m.map(function(C){return Fe.createElement(YW,{key:C.id,snack:C,classes:x,Component:p[C.variant],onClose:o.handleCloseSnack,onEnter:o.props.onEnter,onExit:o.props.onExit,onExited:sl([o.handleExitedSnack,o.props.onExited],C.id),onEntered:sl([o.handleEnteredSnack,o.props.onEntered],C.id)})}))});return Fe.createElement(PW.Provider,{value:i},l,a?Yl.createPortal(h,a):h)},d7(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Ci.maxSnack}}]),t}(v.Component);const ZW=v.createContext(null),yh={didCatch:!1,error:null};class XW extends v.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=yh}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,o=arguments.length,i=new Array(o),s=0;s0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}const C7=({error:e})=>{let t="Что-то пошло не так";return e.message==="No questions found"&&(t="Нет созданных вопросов"),e.message==="Quiz already completed"&&(t="Вы уже прошли этот опрос"),f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:f.jsx(Te,{sx:{textAlign:"center"},children:t})})};var b7=Symbol.for("immer-nothing"),t5=Symbol.for("immer-draftable"),On=Symbol.for("immer-state");function lr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Gs=Object.getPrototypeOf;function qs(e){return!!e&&!!e[On]}function _i(e){var t;return e?w7(e)||Array.isArray(e)||!!e[t5]||!!((t=e.constructor)!=null&&t[t5])||tp(e)||np(e):!1}var QW=Object.prototype.constructor.toString();function w7(e){if(!e||typeof e!="object")return!1;const t=Gs(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===QW}function jl(e,t){ep(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function ep(e){const t=e[On];return t?t.type_:Array.isArray(e)?1:tp(e)?2:np(e)?3:0}function e1(e,t){return ep(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function S7(e,t,n){const r=ep(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function eH(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function tp(e){return e instanceof Map}function np(e){return e instanceof Set}function ai(e){return e.copy_||e.base_}function t1(e,t){if(tp(e))return new Map(e);if(np(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&w7(e))return Gs(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[On];let r=Reflect.ownKeys(n);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=tH),Object.freeze(e),t&&jl(e,(n,r)=>Pg(r,!0))),e}function tH(){lr(2)}function rp(e){return Object.isFrozen(e)}var nH={};function Oi(e){const t=nH[e];return t||lr(0,e),t}var Nl;function k7(){return Nl}function rH(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function n5(e,t){t&&(Oi("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function n1(e){r1(e),e.drafts_.forEach(oH),e.drafts_=null}function r1(e){e===Nl&&(Nl=e.parent_)}function r5(e){return Nl=rH(Nl,e)}function oH(e){const t=e[On];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function o5(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[On].modified_&&(n1(t),lr(4)),_i(e)&&(e=gd(t,e),t.parent_||yd(t,e)),t.patches_&&Oi("Patches").generateReplacementPatches_(n[On].base_,e,t.patches_,t.inversePatches_)):e=gd(t,n,[]),n1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==b7?e:void 0}function gd(e,t,n){if(rp(t))return t;const r=t[On];if(!r)return jl(t,(o,i)=>i5(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return yd(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,s=!1;r.type_===3&&(i=new Set(o),o.clear(),s=!0),jl(i,(a,l)=>i5(e,r,o,a,l,n,s)),yd(e,o,!1),n&&e.patches_&&Oi("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function i5(e,t,n,r,o,i,s){if(qs(o)){const a=i&&t&&t.type_!==3&&!e1(t.assigned_,r)?i.concat(r):void 0,l=gd(e,o,a);if(S7(n,r,l),qs(l))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(_i(o)&&!rp(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;gd(e,o),(!t||!t.scope_.parent_)&&yd(e,o)}}function yd(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Pg(t,n)}function iH(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:k7(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Mg;n&&(o=[r],i=Vl);const{revoke:s,proxy:a}=Proxy.revocable(o,i);return r.draft_=a,r.revoke_=s,a}var Mg={get(e,t){if(t===On)return e;const n=ai(e);if(!e1(n,t))return sH(e,n,t);const r=n[t];return e.finalized_||!_i(r)?r:r===vh(e.base_,t)?(xh(e),e.copy_[t]=i1(r,e)):r},has(e,t){return t in ai(e)},ownKeys(e){return Reflect.ownKeys(ai(e))},set(e,t,n){const r=E7(ai(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=vh(ai(e),t),i=o==null?void 0:o[On];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(eH(n,o)&&(n!==void 0||e1(e.base_,t)))return!0;xh(e),o1(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return vh(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,xh(e),o1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ai(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){lr(11)},getPrototypeOf(e){return Gs(e.base_)},setPrototypeOf(){lr(12)}},Vl={};jl(Mg,(e,t)=>{Vl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Vl.deleteProperty=function(e,t){return Vl.set.call(this,e,t,void 0)};Vl.set=function(e,t,n){return Mg.set.call(this,e[0],t,n,e[0])};function vh(e,t){const n=e[On];return(n?ai(n):e)[t]}function sH(e,t,n){var o;const r=E7(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function E7(e,t){if(!(t in e))return;let n=Gs(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Gs(n)}}function o1(e){e.modified_||(e.modified_=!0,e.parent_&&o1(e.parent_))}function xh(e){e.copy_||(e.copy_=t1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var aH=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const s=this;return function(l=i,...c){return s.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&lr(6),r!==void 0&&typeof r!="function"&&lr(7);let o;if(_i(t)){const i=r5(this),s=i1(t,void 0);let a=!0;try{o=n(s),a=!1}finally{a?n1(i):r1(i)}return n5(i,r),o5(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===b7&&(o=void 0),this.autoFreeze_&&Pg(o,!0),r){const i=[],s=[];Oi("Patches").generateReplacementPatches_(t,o,i,s),r(i,s)}return o}else lr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,o;return[this.produce(t,n,(s,a)=>{r=s,o=a}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){_i(e)||lr(8),qs(e)&&(e=lH(e));const t=r5(this),n=i1(e,void 0);return n[On].isManual_=!0,r1(t),n}finishDraft(e,t){const n=e&&e[On];(!n||!n.isManual_)&&lr(9);const{scope_:r}=n;return n5(r,t),o5(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Oi("Patches").applyPatches_;return qs(e)?r(e,t):this.produce(e,o=>r(o,t))}};function i1(e,t){const n=tp(e)?Oi("MapSet").proxyMap_(e,t):np(e)?Oi("MapSet").proxySet_(e,t):iH(e,t);return(t?t.scope_:k7()).drafts_.push(n),n}function lH(e){return qs(e)||lr(10,e),P7(e)}function P7(e){if(!_i(e)||rp(e))return e;const t=e[On];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=t1(e,t.scope_.immer_.useStrictShallowCopy_)}else n=t1(e,!0);return jl(n,(r,o)=>{S7(n,r,P7(o))}),t&&(t.finalized_=!1),n}var In=new aH,cH=In.produce;In.produceWithPatches.bind(In);In.setAutoFreeze.bind(In);In.setUseStrictShallowCopy.bind(In);In.applyPatches.bind(In);In.createDraft.bind(In);In.finishDraft.bind(In);let uH=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var dH={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const s5=e=>{let t;const n=new Set,r=(u,d)=>{const p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){const x=t;t=d??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(g=>g(t,x))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(dH?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,o,l);return l},fH=e=>e?s5(e):s5;var M7={exports:{}},T7={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var op=v,pH=$6;function hH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mH=typeof Object.is=="function"?Object.is:hH,gH=pH.useSyncExternalStore,yH=op.useRef,vH=op.useEffect,xH=op.useMemo,CH=op.useDebugValue;T7.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=yH(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=xH(function(){function l(x){if(!c){if(c=!0,u=x,x=r(x),o!==void 0&&s.hasValue){var g=s.value;if(o(g,x))return d=g}return d=x}if(g=d,mH(u,x))return g;var h=r(x);return o!==void 0&&o(g,h)?g:(u=x,d=h)}var c=!1,u,d,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,o]);var a=gH(e,i[0],i[1]);return vH(function(){s.hasValue=!0,s.value=a},[a]),CH(a),a};M7.exports=T7;var bH=M7.exports;const wH=Cd(bH);var R7={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:SH}=Fe,{useSyncExternalStoreWithSelector:kH}=wH;let a5=!1;const EH=e=>e;function PH(e,t=EH,n){(R7?"production":void 0)!=="production"&&n&&!a5&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),a5=!0);const r=kH(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return SH(r),r}const l5=e=>{(R7?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?fH(e):e,n=(r,o)=>PH(t,r,o);return Object.assign(n,t),n},MH=e=>e?l5(e):l5;var Ch={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const s1=new Map,Jc=e=>{const t=s1.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},TH=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=s1.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return s1.set(n.name,o),{type:"tracked",store:e,...o}},RH=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:s,store:a,...l}=t;let c;try{c=(i??(Ch?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(Ch?"production":void 0)!=="production"&&i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:u,...d}=TH(a,c,l);let p=!0;o.setState=(h,E,m)=>{const y=n(h,E);if(!p)return y;const C=m===void 0?{type:s||"anonymous"}:typeof m=="string"?{type:m}:m;return a===void 0?(u==null||u.send(C,r()),y):(u==null||u.send({...C,type:`${a}/${C.type}`},{...Jc(l.name),[a]:o.getState()}),y)};const x=(...h)=>{const E=p;p=!1,n(...h),p=E},g=e(o.setState,r,o);if(d.type==="untracked"?u==null||u.init(g):(d.stores[d.store]=o,u==null||u.init(Object.fromEntries(Object.entries(d.stores).map(([h,E])=>[h,h===d.store?g:E.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let h=!1;const E=o.dispatch;o.dispatch=(...m)=>{(Ch?"production":void 0)!=="production"&&m[0].type==="__setState"&&!h&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),h=!0),E(...m)}}return u.subscribe(h=>{var E;switch(h.type){case"ACTION":if(typeof h.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return bh(h.payload,m=>{if(m.type==="__setState"){if(a===void 0){x(m.state);return}Object.keys(m.state).length!==1&&console.error(` [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } `);const y=m.state[a];if(y==null)return;JSON.stringify(o.getState())!==JSON.stringify(y)&&x(y);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(m)});case"DISPATCH":switch(h.payload.type){case"RESET":return x(g),a===void 0?u==null?void 0:u.init(o.getState()):u==null?void 0:u.init(Jc(l.name));case"COMMIT":if(a===void 0){u==null||u.init(o.getState());return}return u==null?void 0:u.init(Jc(l.name));case"ROLLBACK":return bh(h.state,m=>{if(a===void 0){x(m),u==null||u.init(o.getState());return}x(m[a]),u==null||u.init(Jc(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return bh(h.state,m=>{if(a===void 0){x(m);return}JSON.stringify(o.getState())!==JSON.stringify(m[a])&&x(m[a])});case"IMPORT_STATE":{const{nextLiftedState:m}=h.payload,y=(E=m.computedStates.slice(-1)[0])==null?void 0:E.state;if(!y)return;x(a===void 0?y:y[a]),u==null||u.send(null,m);return}case"PAUSE_RECORDING":return p=!p}return}}),g},DH=RH,bh=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},Nt=MH()(DH((e,t)=>({answers:[],ownVariants:[],points:{},pointsSum:0,currentQuizStep:"startpage"}),{name:"quizView",enabled:!1,trace:!1}));function D7(e,t){Nt.setState(n=>cH(n,e),!1,t)}const _H=()=>{const e=Nt.getState().points;let t=Object.values(e).reduce((n,r)=>n+r);console.log("сумма ",t),Nt.setState({pointsSum:t})},zt=(e,t,n)=>{D7(o=>{const i=o.answers.findIndex(s=>e===s.questionId);i<0?o.answers.push({questionId:e,answer:t}):o.answers[i]={questionId:e,answer:t}},{type:"updateAnswer",questionId:e,answer:t});const r=Nt.getState().points;Nt.setState({points:{...r,[e]:n}}),_H()},fc=e=>Nt.setState(t=>({answers:t.answers.filter(n=>e!==n.questionId)}),!1,{type:"deleteAnswer",questionId:e}),OH=(e,t)=>D7(n=>{const r=n.ownVariants.findIndex(o=>o.id===e);r<0?n.ownVariants.push({id:e,variant:{id:uH(),answer:t,extendedText:"",hints:"",originalImageUrl:""}}):n.ownVariants[r].variant.answer=t},{type:"updateOwnVariant",id:e,answer:t}),vd=e=>Nt.setState({currentQuizStep:e},!1,{type:"setCurrentQuizStep",currentQuizStep:e}),c5=e=>!(e.title.length>0&&e.title!==" "||e.description.length>0&&e.description!==" "||e.content.back.length>0&&e.content.back!==" "||e.content.originalBack.length>0&&e.content.originalBack!==" "||e.content.innerName.length>0&&e.content.innerName!==" "||e.content.text.length>0&&e.content.text!==" "||e.content.video.length>0&&e.content.video!==" "||e.content.hint.text.length>0&&e.content.hint.text!==" ");function IH(){const{settings:e,questions:t}=jt(),[n,r]=v.useState(a),{answers:o,pointsSum:i}=Nt(S=>S),s=t.every(({content:S})=>S.rule.parentId!=="root")?t.indexOf(n):null;function a(){if(t.length===0)throw new Error("No questions found");if(e.cfg.haveRoot){const S=t.find(P=>P.id===e.cfg.haveRoot||P.content.id===e.cfg.haveRoot);if(!S)throw new Error("Root question not found");return S}return t[0]}const l=()=>t.find(S=>S.type==="result"&&S.content.rule.parentId==="line"),c=()=>{var P;const S=o.find(({questionId:k})=>k===n.id);if(S&&!de.isMoment(S.answer)){const k=Array.isArray(S.answer)?S.answer:[S.answer];for(const M of n.content.rule.main)if(k.some(T=>M.rules[0].answers.includes(T)))return M.next}if(!n.required){const k=n.content.rule.default;if(k.length>1&&k!==" ")return k;if(["date","page","text","number"].includes(n.type)&&n.content.rule.children.length===1)return n.content.rule.children[0]}return(P=t.find(k=>k.type==="result"&&k.content.rule.parentId===n.content.id))==null?void 0:P.id},u=v.useMemo(()=>e.cfg.score?l():c(),[o,n,t]),d=s!==null?t[s-1]:t.find(S=>S.id===n.content.rule.parentId||S.content.id===n.content.rule.parentId),p=()=>{const S=t.filter(M=>M.type==="result"&&M.content.rule.minScore!==void 0&&M.content.rule.minScore<=i),P=S.map(M=>M.type==="result"&&M.content.rule.minScore!==void 0?M.content.rule.minScore:0),k=Math.max(...P);return console.log(S),console.log(P),console.log(k),S[P.indexOf(k)]},g=(()=>{let S;if(console.log(11111111111),e.cfg.score?(console.log(222222222),s!==null&&(console.log(33333333333),S=t[s+1],console.log(4444444),console.log("перед ифом",S),((S==null?void 0:S.type)==="result"||S==null)&&(S=p()),console.log(5555555555))):(console.log(6666666),s!==null?(console.log(777777777),S=t[s+1]??t.find(P=>P.type==="result"&&P.content.rule.parentId==="line")):(console.log(88888888888888),S=t.find(P=>P.id===u||P.content.id===u))),console.log("next",S),!S&&n.type!=="result")throw new Error("Не найден следующий вопрос");return S})(),h=v.useCallback(()=>{if((g==null?void 0:g.type)!=="result")throw new Error("Current question is not result");r(g),(e.cfg.resultInfo.showResultForm==="after"||c5(g))&&vd("contactform")},[g,e.cfg.resultInfo.showResultForm]),E=v.useCallback(()=>{if(n.type!=="result")throw new Error("Current question is not result");if(c5(n)){xt("Данные отправлены");return}vd("question")},[n]),m=v.useCallback(()=>{if(!d)throw new Error("Previous question not found");r(d)},[d]),y=v.useCallback(()=>{if(!g)throw new Error("Next question not found");if(g.type==="result")return h();r(g)},[g,h]),C=!!d,w=v.useMemo(()=>{const S=o.some(({questionId:P})=>P===n.id);return"required"in n.content&&n.content.required?S:!!g},[o,n.content,n.id,g]);return v.useDebugValue({linearQuestionIndex:s,currentQuestion:n,prevQuestion:d,nextQuestion:g}),{currentQuestion:n,currentQuestionStepNumber:s===null?null:s+1,isNextButtonEnabled:w,isPreviousButtonEnabled:C,moveToPrevQuestion:m,moveToNextQuestion:y,showResultAfterContactForm:E}}function Tg(e){throw new Error(`Shouldn't reach here: ${e}`)}const vr=sn({...Ho,components:{MuiButton:{variants:[{props:{variant:"contained"},style:{padding:"13px 20px",borderRadius:"8px",boxShadow:"none"}},{props:{variant:"outlined"},style:{padding:"10px 20px",borderRadius:"8px","&:hover":{backgroundColor:"#581CA7",border:"1px solid #581CA7"}}}]}}}),$H=sn({...vr,palette:{primary:{main:"#7E2AEA"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#7E2AEA"},background:{default:"#FFFFFF"}}}),FH=sn({...vr,palette:{primary:{main:"#7E2AEA"},secondary:{main:"#252734"},text:{primary:"#FFFFFF",secondary:"#7E2AEA"},background:{default:"#333647"}}}),AH=sn({...vr,palette:{primary:{main:"#D34085"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#D34085"},background:{default:"#FFF9FC"}}}),LH=sn({...vr,palette:{primary:{main:"#D34085"},secondary:{main:"#252734"},text:{primary:"#FFFFFF",secondary:"#D34085"},background:{default:"#333647"}}}),jH=sn({...vr,palette:{primary:{main:"#4E4D51"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#FFF9FC"},background:{default:"#FFFFFF"}}}),NH=sn({...vr,palette:{primary:{main:"#758E4F"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#758E4F"},background:{default:"#F9FBF1"}}}),VH=sn({...vr,palette:{primary:{main:"#7E2AEA"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#7E2AEA"},background:{default:"#FBF8FF"}}}),zH=sn({...vr,palette:{primary:{main:"#F2B133"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#F2B133"},background:{default:"#FFFCF6"}}}),BH=sn({...vr,palette:{primary:{main:"#E6AA37"},secondary:{main:"#FFFCF6"},text:{primary:"#FFFFFF",secondary:"#F2B133"},background:{default:"#333647"}}}),WH=sn({...vr,palette:{primary:{main:"#4964ED"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#4964ED"},background:{default:"#F5F7FF"}}}),HH=sn({...vr,palette:{primary:{main:"#07A0C3"},secondary:{main:"#252734"},text:{primary:"#FFFFFF",secondary:"#07A0C3"},background:{default:"#333647"}}}),wn={StandardTheme:{theme:$H,isLight:!0},StandardDarkTheme:{theme:FH,isLight:!1},PinkTheme:{theme:AH,isLight:!0},PinkDarkTheme:{theme:LH,isLight:!1},BlackWhiteTheme:{theme:jH,isLight:!0},OliveTheme:{theme:NH,isLight:!0},YellowTheme:{theme:zH,isLight:!0},GoldDarkTheme:{theme:BH,isLight:!1},PurpleTheme:{theme:VH,isLight:!0},BlueTheme:{theme:WH,isLight:!0},BlueDarkTheme:{theme:HH,isLight:!1}},_7=v.createContext(null),Zt=()=>{const e=v.useContext(_7);if(e===null)throw new Error("rootContainerSize context is null");return e};function UH({color:e}){return f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M7.5 7.96875C8.53553 7.96875 9.375 7.12928 9.375 6.09375C9.375 5.05822 8.53553 4.21875 7.5 4.21875C6.46447 4.21875 5.625 5.05822 5.625 6.09375C5.625 7.12928 6.46447 7.96875 7.5 7.96875Z",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M12.1875 6.09375C12.1875 10.3125 7.5 13.5938 7.5 13.5938C7.5 13.5938 2.8125 10.3125 2.8125 6.09375C2.8125 4.85055 3.30636 3.65826 4.18544 2.77919C5.06451 1.90011 6.2568 1.40625 7.5 1.40625C8.7432 1.40625 9.93549 1.90011 10.8146 2.77919C11.6936 3.65826 12.1875 4.85055 12.1875 6.09375V6.09375Z",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})]})})}function YH({color:e}){return f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M1.875 3.28125H13.125V11.25C13.125 11.3743 13.0756 11.4935 12.9877 11.5815C12.8998 11.6694 12.7806 11.7188 12.6562 11.7188H2.34375C2.21943 11.7188 2.1002 11.6694 2.01229 11.5815C1.92439 11.4935 1.875 11.3743 1.875 11.25V3.28125Z",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M13.125 3.28125L7.5 8.4375L1.875 3.28125",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})]})})}function GH({color:e}){return f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M6.5 8.375C8.57107 8.375 10.25 6.69607 10.25 4.625C10.25 2.55393 8.57107 0.875 6.5 0.875C4.42893 0.875 2.75 2.55393 2.75 4.625C2.75 6.69607 4.42893 8.375 6.5 8.375Z",stroke:e,strokeMiterlimit:"10"}),f.jsx("path",{d:"M0.8125 11.6568C1.38844 10.659 2.21689 9.83044 3.21458 9.25436C4.21227 8.67828 5.34403 8.375 6.49609 8.375C7.64816 8.375 8.77992 8.67828 9.77761 9.25436C10.7753 9.83044 11.6037 10.659 12.1797 11.6568",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M0.765625 11.6914H11.9866",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})]})})}function qH({color:e}){return f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M5.41992 7.31237C5.90228 8.30847 6.70774 9.11187 7.70508 9.59166C7.77865 9.6265 7.86002 9.64157 7.94118 9.63541C8.02235 9.62925 8.10051 9.60205 8.16797 9.55651L9.63281 8.57799C9.69753 8.5341 9.77232 8.50731 9.85019 8.50014C9.92806 8.49297 10.0065 8.50564 10.0781 8.53698L12.8203 9.71471C12.914 9.75372 12.9923 9.82245 13.0432 9.91033C13.094 9.9982 13.1145 10.1004 13.1016 10.201C13.0146 10.8794 12.6835 11.5029 12.1702 11.9547C11.6568 12.4066 10.9964 12.656 10.3125 12.6561C8.19906 12.6561 6.17217 11.8166 4.67774 10.3221C3.18331 8.82769 2.34375 6.80081 2.34375 4.68737C2.3439 4.00346 2.59325 3.34304 3.04513 2.82968C3.49701 2.31633 4.12047 1.98522 4.79883 1.8983C4.89951 1.88537 5.00166 1.90589 5.08954 1.95671C5.17741 2.00754 5.24615 2.08583 5.28516 2.17955L6.46289 4.9276C6.49352 4.99812 6.50633 5.07508 6.5002 5.15172C6.49407 5.22835 6.46918 5.3023 6.42773 5.36705L5.44922 6.85534C5.40565 6.92265 5.38009 7.00001 5.37496 7.08003C5.36983 7.16005 5.38531 7.24004 5.41992 7.31237V7.31237Z",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})})})}function KH({color:e}){return f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M8.67188 1.60156L8.67188 13.3838",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M10.6016 4.21875H13.7768C13.8534 4.21875 13.9268 4.26814 13.9809 4.35604C14.035 4.44395 14.0655 4.56318 14.0655 4.6875V10.3125C14.0655 10.4368 14.035 10.556 13.9809 10.644C13.9268 10.7319 13.8534 10.7812 13.7768 10.7812H10.6016",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M8.67081 10.7812H1.58194C1.41103 10.7812 1.24711 10.7319 1.12625 10.644C1.0054 10.556 0.9375 10.4368 0.9375 10.3125V4.6875C0.9375 4.56318 1.0054 4.44395 1.12625 4.35604C1.24711 4.26814 1.41103 4.21875 1.58194 4.21875H8.67081",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M3.98438 6.5625H5.625",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M7.85156 1.60156H9.49219",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M7.85156 13.3828H9.49219",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M4.80469 6.5625V8.67188",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})]})})}const xd=({checked:e=!1,color:t="#7E2AEA"})=>(Le(),f.jsx(J,{sx:{height:"24px",width:"24px",borderRadius:"6px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:e?t:"#F2F3F7",border:"1px solid #9A9AAF"},children:e&&f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 25 18",fill:"none",children:f.jsx("path",{d:"M2 9L10 16.5L22.5 1.5",stroke:"#ffffff",strokeWidth:"4",strokeLinecap:"round"})})}));function ZH({label:e,handleChange:t,checked:n,sx:r,dataCy:o,colorIcon:i}){return f.jsx(nc,{control:f.jsx(a6,{sx:{padding:"0px 13px 1px 11px"},disableRipple:!0,icon:f.jsx(xd,{}),checkedIcon:f.jsx(xd,{checked:!0,color:i}),onChange:t,checked:n,"data-cy":o}),label:e,sx:{color:"#9A9AAF",height:"26px",...r}})}const Rg=e=>f.jsxs("svg",{...e,height:"1em",viewBox:"0 0 89 81",fill:"none",children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.5604 0.0885217C24.3105 -1.09878 17.239 9.91147 10.6615 17.8703C4.88905 24.8549 0.590996 32.7441 0.0917664 41.7955C-0.439369 51.4255 1.3075 61.4545 7.86805 68.5172C14.6258 75.7923 24.7486 80.3889 34.5604 78.9028C43.5576 77.54 47.5388 67.6598 54.2372 61.4939C61.5105 54.799 75.061 51.6851 74.8731 41.7955C74.6848 31.8908 60.3836 29.952 53.5024 22.8328C46.3747 15.4585 44.7425 1.26797 34.5604 0.0885217Z",fill:"#7E2AEA"}),f.jsx("circle",{cx:"60.0543",cy:"75.1555",r:"5.65583",fill:"#7E2AEA"}),f.jsx("circle",{cx:"54.4046",cy:"12.3947",r:"2.1546",fill:"#7E2AEA"}),f.jsx("path",{d:"M88.866 39.4685C88.2378 33.3607 85.3643 27.7037 80.8025 23.594C76.2408 19.4843 70.3156 17.2146 64.1757 17.2248C63.3039 17.2252 62.4328 17.2708 61.5658 17.3614C55.4608 18.0025 49.8093 20.8814 45.7015 25.443C41.5937 30.0046 39.3205 35.9256 39.3203 42.0642V42.0642V77.549H49.9658V62.468C54.128 65.3636 59.0787 66.9119 64.1491 66.9036C65.0208 66.9033 65.8919 66.8577 66.759 66.767C70.0031 66.426 73.1483 65.4494 76.0151 63.8929C78.8818 62.3364 81.4138 60.2305 83.4667 57.6955C85.5195 55.1604 87.0529 52.2458 87.9793 49.1181C88.9058 45.9904 89.2071 42.7109 88.866 39.4667V39.4685ZM75.1937 51.0011C74.0243 52.4537 72.5783 53.6599 70.9395 54.5498C69.3007 55.4397 67.5017 55.9956 65.6465 56.1854C65.149 56.2371 64.6492 56.2631 64.1491 56.2635C60.9296 56.2605 57.8068 55.1631 55.2932 53.1515C52.7796 51.1398 51.0245 48.3334 50.3161 45.1929C49.6077 42.0523 49.988 38.7642 51.3945 35.8683C52.8011 32.9723 55.1504 30.6406 58.0568 29.2558C60.9632 27.871 64.2541 27.5154 67.3892 28.2473C70.5244 28.9793 73.3176 30.7553 75.3103 33.284C77.303 35.8126 78.3769 38.9436 78.3558 42.1629C78.3346 45.3823 77.2196 48.4989 75.1937 51.0011Z",fill:"#151515"})]}),XH=rc,a1=/^(([^<>()[\].,:\s@"]+(\.[^<>()[\].,:\s@"]+)*)|(".+"))@(([^<>()[\].,:\s@"]+\.)+[^<>()[\].,:\s@"]{2,})$/iu,JH=({currentQuestion:e,onShowResult:t})=>{var A;const n=Le(),{settings:r,questions:o,quizId:i}=jt(),[s,a]=v.useState(!1),[l,c]=v.useState(""),[u,d]=v.useState(""),[p,x]=v.useState(""),[g,h]=v.useState(""),[E,m]=v.useState(""),y=v.useRef(!0),[C,w]=v.useState(!1),S=Zt()<850;if(!(e.type==="result"?e:o.find($=>r!=null&&r.cfg.haveRoot?$.type==="result"&&$.content.rule.parentId===e.content.id:$.type==="result"&&$.content.rule.parentId==="line")))throw new Error("Result question not found");const k=async()=>{const $=r.cfg.formContact.fields||r.cfg.formContact,R={};if(l.length>0&&(R.name=l),u.length>0&&(R.email=u),p.length>0&&(R.phone=p),E.length>0&&(R.address=E),g.length>0&&(R.customs={[$.text.text||"Фамилия"]:g}),Object.keys(R).length>0)try{await _9({questionId:e.id,body:R,qid:i});const O=JSON.parse(localStorage.getItem("sessions")||"{}");localStorage.setItem("sessions",JSON.stringify({...O,[i]:new Date().getTime()}))}catch{xt("ответ не был засчитан")}},M=r.cfg.formContact.fields||r.cfg.formContact,T={};for(const $ in M){const R=M[$];R.used&&(T[$]=R)}const D=Object.keys(T).length>2;async function _(){if((r.cfg.formContact.fields||r.cfg.formContact).email.used!==a1.test(u))return xt("введена некорректная почта");if(y.current){if(l.length===0&&u.length===0&&p.length===0&&g.length===0&&E.length===0)return xt("Пожалуйста, заполните поля");w(!0);try{await k(),y.current=!1;const R=JSON.parse(localStorage.getItem("sessions")||"{}");R[i]=Date.now(),localStorage.setItem("sessions",JSON.stringify(R)),xt("Данные успешно отправлены")}catch{xt("повторите попытку позже")}t()}w(!1)}return f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n.palette.background.default,height:"100%",overflow:"auto","&::-webkit-scrollbar":{width:"0",display:"none",msOverflowStyle:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:f.jsxs(J,{sx:{width:D&&!S?"100%":S?void 0:"530px",borderRadius:"4px",height:"100%",display:D&&!S?"flex":void 0},children:[f.jsxs(J,{sx:{width:D&&!S?"100%":void 0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",borderRight:D&&!S?"1px solid gray":void 0},children:[f.jsx(Te,{sx:{textAlign:"center",m:"20px 0",fontSize:"28px",color:n.palette.text.primary,wordBreak:"break-word"},children:r.cfg.formContact.title||"Заполните форму, чтобы получить результаты теста"}),r.cfg.formContact.desc&&f.jsx(Te,{sx:{color:n.palette.text.primary,textAlign:"center",m:"20px 0",fontSize:"18px",wordBreak:"break-word"},children:r.cfg.formContact.desc})]}),f.jsxs(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",backgroundColor:n.palette.background.default,p:"30px"},children:[f.jsx(J,{sx:{display:"flex",flexDirection:"column",my:"20px"},children:f.jsx(QH,{name:l,setName:c,email:u,setEmail:d,phone:p,setPhone:x,text:g,setText:h,adress:E,setAdress:m})}),f.jsx(Mr,{disabled:!(s&&!C),variant:"contained",onClick:_,children:((A=r.cfg.formContact)==null?void 0:A.button)||"Получить результаты"}),f.jsxs(J,{sx:{display:"flex",mt:"20px",width:S?"300px":"450px"},children:[f.jsx(ZH,{label:"",handleChange:({target:$})=>{a($.checked)},checked:s,colorIcon:n.palette.primary.main}),f.jsxs(Te,{sx:{color:n.palette.text.primary},children:["С ",f.jsxs(no,{href:"https://shub.pena.digital/ppdd",target:"_blank",children:["Положением об обработке персональных данных"," "]})," и ",f.jsxs(no,{href:"https://shub.pena.digital/docs/privacy",target:"_blank",children:[" ","Политикой конфиденциальности"," "]})," ознакомлен"]})]}),f.jsxs(J,{component:no,target:"_blank",href:"https://quiz.pena.digital",sx:{display:"flex",alignItems:"center",mt:"20px",gap:"15px",textDecoration:"none"},children:[f.jsx(Rg,{style:{fontSize:"34px",color:wn[r.cfg.theme].isLight?"#151515":"#FFFFFF"}}),f.jsx(Te,{sx:{fontSize:"20px",color:wn[r.cfg.theme].isLight?"#4D4D4D":"#F5F7FF",whiteSpace:"nowrap"},children:"Сделано на PenaQuiz"})]})]})]})})},QH=({name:e,setName:t,email:n,setEmail:r,phone:o,setPhone:i,text:s,setText:a,adress:l,setAdress:c})=>{const{settings:u}=jt(),d=u.cfg.formContact.fields||u.cfg.formContact;if(!d)return null;const p=f.jsx($a,{onChange:({target:m})=>t(m.value),id:e,title:d.name.innerText||"Введите имя",desc:d.name.text||"имя",Icon:GH}),x=f.jsx($a,{error:!a1.test(n),label:a1.test(n)?"Некорректная почта":"",onChange:({target:m})=>r(m.value),id:n,title:d.email.innerText||"Введите Email",desc:d.email.text||"Email",Icon:YH}),g=f.jsx($a,{onChange:({target:m})=>i(m.value),id:o,title:d.phone.innerText||"Введите номер телефона",desc:d.phone.text||"номер телефона",Icon:qH}),h=f.jsx($a,{onChange:({target:m})=>a(m.value),id:s,title:d.text.text||"Введите фамилию",desc:d.text.innerText||"фамилию",Icon:KH}),E=f.jsx($a,{onChange:({target:m})=>c(m.value),id:l,title:d.address.innerText||"Введите адрес",desc:d.address.text||"адрес",Icon:UH});return Object.values(d).some(m=>m.used)?f.jsxs(f.Fragment,{children:[d.name.used?p:f.jsx(f.Fragment,{}),d.email.used?x:f.jsx(f.Fragment,{}),d.phone.used?g:f.jsx(f.Fragment,{}),d.text.used?h:f.jsx(f.Fragment,{}),d.address.used?E:f.jsx(f.Fragment,{})]}):f.jsxs(f.Fragment,{children:[p,x,g]})},$a=({title:e,desc:t,Icon:n,onChange:r})=>{const o=Le(),i=Zt()<600;return f.jsxs(J,{m:"15px 0",children:[f.jsx(Te,{mb:"7px",color:o.palette.text.primary,children:e}),f.jsx(XH,{onChange:r,sx:{width:i?"300px":"350px"},placeholder:t,InputProps:{startAdornment:f.jsx(Wm,{position:"start",children:f.jsx(n,{color:"gray"})})}})]})},eU=({stepNumber:e,nextButton:t,prevButton:n})=>{const r=Le(),{questions:o}=jt();return console.log(o),f.jsx(J,{sx:{position:"relative",padding:"15px 0",borderTop:`1px solid ${r.palette.grey[400]}`,height:"75px",display:"flex"},children:f.jsxs(J,{sx:{width:"100%",maxWidth:"1000px",padding:"0 10px",margin:"0 auto",display:"flex",alignItems:"center",gap:"10px"},children:[e!==null&&f.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:"10px",marginRight:"auto",color:r.palette.text.primary},children:[f.jsx(Te,{children:"Шаг"}),f.jsx(Te,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontWeight:"bold",borderRadius:"50%",width:"30px",height:"30px",color:"#FFF",background:r.palette.primary.main},children:e}),f.jsx(Te,{children:"Из"}),f.jsx(Te,{sx:{fontWeight:"bold"},children:o.filter(i=>i.type!=="result").length})]}),f.jsx(J,{sx:{display:"flex",alignItems:"center",gap:"10px",marginRight:"auto"}}),n,t]})})};function tU({sx:e}){return f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,"&:hover path":{stroke:"#581CA7"},"&:active path":{stroke:"#FB5607"},"&:hover rect":{stroke:"#581CA7"},"&:active rect":{stroke:"#FB5607"},...e},children:f.jsxs("svg",{width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("rect",{x:"1",y:"2.5",width:"18",height:"18",rx:"5",stroke:"#7E2AEA",strokeWidth:"1.5"}),f.jsx("path",{d:"M1 7.5H19",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinejoin:"round"}),f.jsx("path",{d:"M14.5 1L14.5 4",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M5.5 1L5.5 4",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M4.5 11.5H5.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M9.5 11.5H10.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M14.5 11.5H15.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M4.5 15.5H5.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M9.5 15.5H10.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M14.5 15.5H15.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})}const nU=({currentQuestion:e})=>{var c;const t=Le(),{settings:n,quizId:r}=jt(),{answers:o}=Nt(),i=(c=o.find(({questionId:u})=>u===e.id))==null?void 0:c.answer,s=de(i)||de(),[a,l]=v.useState(!1);return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:t.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsx(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px"},children:f.jsx(pN,{slots:{openPickerIcon:()=>f.jsx(tU,{sx:{"& path":{stroke:t.palette.primary.main},"& rect":{stroke:t.palette.primary.main}}})},value:s,onChange:async u=>{if(!(a||!u)){l(!0);try{await qt({questionId:e.id,body:de(u).format("YYYY.MM.DD"),qid:r}),zt(e.id,u,0)}catch{xt("ответ не был засчитан")}l(!1)}},slotProps:{openPickerButton:{sx:{p:0},"data-cy":"open-datepicker"},layout:{sx:{backgroundColor:t.palette.background.default}}},sx:{"& .MuiInputBase-root":{backgroundColor:wn[n.cfg.theme].isLight?"white":t.palette.background.default,borderRadius:"10px",maxWidth:"250px",pr:"22px","& input":{py:"11px",pl:"20px",lineHeight:"19px"},"& fieldset":{borderColor:"#9A9AAF"}}}})})]})};function ip({color:e="#7E2AEA"}){return Le(),f.jsx(J,{sx:{height:"26px",width:"26px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("rect",{x:"0.5",y:"0.5",width:"25",height:"25",rx:"12.5",fill:e,stroke:e}),f.jsx("rect",{x:"8",y:"8",width:"10",height:"10",rx:"5",fill:"white"})]})})}function sp(){return Le(),f.jsx(J,{sx:{height:"26px",width:"26px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("rect",{x:"0.5",y:"0.5",width:"25",height:"25",rx:"12.5",fill:"#F2F3F7",stroke:"#9A9AAF"})})})}const rU='"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif';function oU(){const e=document.createElement("canvas");e.width=e.height=1;const t=e.getContext("2d",{willReadFrequently:!0});return t.textBaseline="top",t.font=`100px ${rU}`,t.scale(.01,.01),t}function u5(e,t,n){return e.clearRect(0,0,100,100),e.fillStyle=n,e.fillText(t,0,0),e.getImageData(0,0,1,1).data.join(",")}function d5(e){const t=oU(),n=u5(t,e,"#fff"),r=u5(t,e,"#000");return r===n&&!r.startsWith("0,0,0,")}function iU(e="Twemoji Country Flags",t="https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2"){if(typeof window<"u"&&d5("😊")&&!d5("🇨🇭")){const n=document.createElement("style");return n.textContent=`@font-face { font-family: "${e}"; unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F; src: url('${t}') format('woff2'); font-display: swap; }`,document.head.appendChild(n),!0}return!1}iU();const sU=({currentQuestion:e})=>{const t=Le(),{quizId:n}=jt(),{answers:r}=Nt(),{answer:o}=r.find(({questionId:a})=>a===e.id)??{},[i,s]=v.useState(!1);return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:t.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsx(Af,{name:e.id,value:e.content.variants.findIndex(({id:a})=>o===a),onChange:({target:a})=>{zt(e.id,e.content.variants[Number(a.value)].answer,e.content.variants[Number(a.value)].points||0)},sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"space-between",marginTop:"20px"},children:f.jsx(J,{sx:{display:"flex",width:"100%",gap:"42px",flexWrap:"wrap"},children:e.content.variants.map((a,l)=>f.jsxs($f,{disabled:i,sx:{borderRadius:"12px",border:"1px solid",borderColor:o===a.id?t.palette.primary.main:"#9A9AAF",overflow:"hidden",maxWidth:"317px",width:"100%",height:"255px"},children:[f.jsx(J,{sx:{display:"flex",alignItems:"center",height:"193px",background:"#ffffff"},children:f.jsx(J,{sx:{width:"100%",display:"flex",justifyContent:"center"},children:a.extendedText&&f.jsx(Te,{fontSize:"100px",children:a.extendedText})})}),f.jsx(nc,{sx:{margin:0,padding:"15px",color:t.palette.text.primary,display:"flex",gap:"10px",alignItems:a.answer.length<=60?"center":"flex-start",position:"relative",height:"80px","& .MuiFormControlLabel-label":{wordBreak:"break-word",height:a.answer.length<=60?void 0:"60px",overflow:"auto",paddingLeft:"45px","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#b8babf"}}},value:l,onClick:async c=>{if(c.preventDefault(),!i){s(!0);try{await qt({questionId:e.id,body:e.content.variants[l].extendedText+" "+e.content.variants[l].answer,qid:n}),zt(e.id,e.content.variants[l].id,e.content.variants[l].points||0)}catch{xt("ответ не был засчитан")}if(o===e.content.variants[l].id){fc(e.id);try{await qt({questionId:e.id,body:"",qid:n})}catch{xt("ответ не был засчитан")}}s(!1)}},control:f.jsx(Ff,{checkedIcon:f.jsx(ip,{color:t.palette.primary.main}),icon:f.jsx(sp,{})}),label:f.jsx(J,{sx:{display:"flex",gap:"10px"},children:f.jsx(Te,{sx:{wordBreak:"break-word",lineHeight:"normal"},children:a.answer})})},a.id)]},a.id))})})]})};function aU({width:e}){return Le(),f.jsxs("svg",{width:"35",height:"33",viewBox:"0 0 35 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsxs("g",{id:"Close",children:[f.jsx("g",{id:"Rectangle 57",opacity:"0.3",filter:"url(#filter0_d_4080_12482)",children:f.jsx("rect",{x:"6",y:"4",width:"24",height:"24",rx:"12",fill:"#9A9AAF"})}),f.jsxs("g",{id:"Group 331",children:[f.jsx("path",{id:"Vector 586",d:"M22.8516 10.9517L12.9521 20.8512",stroke:"#FDFDFF",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{id:"Vector 587",d:"M22.8516 20.8462L12.9521 10.9467",stroke:"#FDFDFF",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),f.jsx("defs",{children:f.jsxs("filter",{id:"filter0_d_4080_12482",x:"0",y:"0",width:"36",height:"36",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[f.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),f.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),f.jsx("feMorphology",{radius:"1",operator:"dilate",in:"SourceAlpha",result:"effect1_dropShadow_4080_12482"}),f.jsx("feOffset",{dy:"2"}),f.jsx("feGaussianBlur",{stdDeviation:"2.5"}),f.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),f.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.416562 0 0 0 0 0.452406 0 0 0 0 0.775 0 0 0 0.18 0"}),f.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4080_12482"}),f.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4080_12482",result:"shape"})]})})]})}function lU({color:e="#9A9AAF"}){return Le(),f.jsx(J,{sx:{height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[f.jsx("path",{d:"M10.75 10.25L16 5L21.25 10.25",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M16 19V5",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M27 19V26C27 26.2652 26.8946 26.5196 26.7071 26.7071C26.5196 26.8946 26.2652 27 26 27H6C5.73478 27 5.48043 26.8946 5.29289 26.7071C5.10536 26.5196 5 26.2652 5 26V19",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function cU({width:e=20,height:t=20,sx:n,onClick:r,className:o,color:i="#7e2aea"}){return f.jsx(ta,{sx:n,className:o,onClick:r,children:f.jsxs("svg",{width:e,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M10 19C14.9706 19 19 14.9706 19 10C19 5.02944 14.9706 1 10 1C5.02944 1 1 5.02944 1 10C1 14.9706 5.02944 19 10 19Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M9.25 9.25H10V14.5H10.75",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M9.8125 7C10.4338 7 10.9375 6.49632 10.9375 5.875C10.9375 5.25368 10.4338 4.75 9.8125 4.75C9.19118 4.75 8.6875 5.25368 8.6875 5.875C8.6875 6.49632 9.19118 7 9.8125 7Z",fill:i})]})})}const f5=419430400,p5={picture:{title:"Добавить изображение",description:"Принимает изображения"},video:{title:"Добавить видео",description:"Принимает .mp4 и .mov формат — максимум 50мб"},audio:{title:"Добавить аудиофайл",description:"Принимает аудиофайлы"},document:{title:"Добавить документ",description:"Принимает документы"}},l1={picture:[".jpeg",".jpg",".png",".ico",".gif",".tiff",".webp",".eps",".svg"],video:[".mp4",".mov",".wmv",".avi",".avchd",".flv",".f4v",".swf",".mkv",".webm",".mpeg-2"],audio:[".aac",".aiff",".dsd",".flac",".mp3",".mqa",".ogg",".wav",".wma"],document:[".doc",".docx",".dotx",".rtf",".odt",".pdf",".txt",".xls",".ppt",".xlsx",".pptx",".pages"]},uU=({currentQuestion:e})=>{var g;const t=Le(),{answers:n}=Nt(),{quizId:r}=jt(),[o,i]=v.useState(null),[s,a]=v.useState(!1),[l,c]=v.useState(!1),u=Zt()<500,d=(g=n.find(({questionId:h})=>h===e.id))==null?void 0:g.answer,p=async h=>{if(s||!h)return;if(console.log(h.size),console.log(f5),h.size>f5)return i("errorSize");if(!l1[e.content.type].some(m=>h.name.toLowerCase().endsWith(m)))return i("errorType");a(!0);try{const m=await D9({questionId:e.id,body:{file:h,name:h.name},qid:r});console.log(m),await qt({questionId:e.id,body:`https://storage.yandexcloud.net/squizanswer/${r}/${e.id}/${m.data.fileIDMap[e.id]}`,qid:r}),zt(e.id,`${h.name}|${URL.createObjectURL(h)}`,0)}catch(m){console.log(m),xt("ответ не был засчитан")}a(!1)},x=h=>{h.preventDefault(),c(!1);const E=h.dataTransfer.files[0];p(E)};return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:t.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsxs(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px",maxWidth:d!=null&&d.split("|")[0]?"640px":"600px"},children:[d!=null&&d.split("|")[0]?f.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:"15px"},children:[f.jsx(Te,{color:t.palette.text.primary,children:"Вы загрузили:"}),f.jsxs(J,{sx:{padding:"5px 5px 5px 16px",backgroundColor:t.palette.primary.main,borderRadius:"8px",color:"#FFFFFF",display:"flex",alignItems:"center",overflow:"hidden",gap:"15px"},children:[f.jsx(Te,{sx:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},children:d==null?void 0:d.split("|")[0]}),f.jsx(ta,{sx:{p:0},onClick:async()=>{d.length>0&&(a(!0),await qt({questionId:e.id,body:"",qid:r})),console.log(d),zt(e.id,"",0),a(!1)},children:f.jsx(aU,{})})]})]}):f.jsxs(J,{sx:{display:"flex",alignItems:"center"},children:[s?f.jsx(_6,{variant:"rounded",sx:{width:"100%",height:"120px",maxWidth:"560px"}}):f.jsxs(Ir,{component:"label",sx:{justifyContent:"flex-start",width:"100%"},children:[f.jsx("input",{onChange:h=>{var E;return p((E=h.target.files)==null?void 0:E[0])},hidden:!0,accept:l1[e.content.type].join(","),multiple:!0,type:"file"}),f.jsxs(J,{onDragEnter:()=>!(d!=null&&d.split("|")[0])&&c(!0),onDragLeave:()=>c(!1),onDragOver:h=>h.preventDefault(),onDrop:x,sx:{width:"100%",height:u?void 0:"120px",display:"flex",gap:"50px",justifyContent:"flex-start",alignItems:"center",padding:"33px 44px 33px 55px",backgroundColor:t.palette.background.default,border:`1px solid ${l?"red":"#9A9AAF"}`,borderRadius:"8px"},children:[f.jsx(lU,{}),f.jsxs(J,{children:[f.jsx(Te,{sx:{color:"#9A9AAF",fontWeight:500},children:p5[e.content.type].title}),f.jsx(Te,{sx:{color:"#9A9AAF",fontSize:"16px",lineHeight:"19px"},children:p5[e.content.type].description})]})]})]}),f.jsx(cU,{sx:{width:"40px",height:"40px"},color:t.palette.primary.main,onClick:()=>i(e.content.type)})]}),d&&e.content.type==="picture"&&f.jsx("img",{src:d.split("|")[1],alt:"",style:{marginTop:"15px",maxWidth:"300px",maxHeight:"300px"}}),d&&e.content.type==="video"&&f.jsx("video",{src:d.split("|")[1],style:{marginTop:"15px",maxWidth:"300px",maxHeight:"300px",objectFit:"cover"}})]}),f.jsx(Bm,{open:o!==null,onClose:()=>i(null),children:f.jsx(J,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:u?300:400,bgcolor:"background.paper",borderRadius:3,boxShadow:24,p:4},children:f.jsx(dU,{status:o})})})]})},dU=({status:e})=>{switch(e){case null:return null;case"errorType":return f.jsx(Te,{children:"Выбран некорректный тип файла"});case"errorSize":return f.jsx(Te,{children:"Файл слишком большой. Максимальный размер 50 МБ"});default:return f.jsxs(f.Fragment,{children:[f.jsx(Te,{children:"Допустимые расширения файлов:"}),f.jsx(Te,{children:l1[e].join(" ")})]})}},fU=({currentQuestion:e})=>{var c;const{quizId:t}=jt(),{answers:n}=Nt(),r=Le(),o=(c=n.find(({questionId:u})=>u===e.id))==null?void 0:c.answer,[i,s]=v.useState(!1),a=Zt()<1e3,l=Zt()<500;return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:r.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsx(Af,{name:e.id,value:e.content.variants.findIndex(({id:u})=>o===u),sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"space-between",marginTop:"20px"},children:f.jsx(J,{sx:{display:"grid",gap:"15px",gridTemplateColumns:a?l?"repeat(1, 1fr)":"repeat(2, 1fr)":"repeat(3, 1fr)",width:"100%"},children:e.content.variants.map((u,d)=>f.jsxs(J,{sx:{cursor:"pointer",borderRadius:"5px",border:"1px solid",borderColor:o===u.id?r.palette.primary.main:"#9A9AAF",transition:"opacity 0.5s ease",opacity:i?.5:1,pointerEvents:i?"none":"auto"},onClick:async p=>{if(p.preventDefault(),!i){s(!0);try{await qt({questionId:e.id,body:`${e.content.variants[d].answer} `,qid:t}),zt(e.id,e.content.variants[d].id,e.content.variants[d].points||0)}catch{xt("ответ не был засчитан")}if(o===e.content.variants[d].id){fc(e.id);try{await qt({questionId:e.id,body:"",qid:t})}catch{xt("ответ не был засчитан")}}s(!1)}},children:[f.jsx(J,{sx:{display:"flex",alignItems:"center",gap:"10px"},children:f.jsx(J,{sx:{width:"100%",height:"300px"},children:u.extendedText&&f.jsx("img",{src:u.extendedText,alt:"",style:{display:"block",width:"100%",height:"100%",objectFit:"cover"}})})}),f.jsx(nc,{sx:{textAlign:"center",color:r.palette.text.primary,marginTop:"10px",marginLeft:0,padding:"10px",display:"flex",alignItems:u.answer.length<=60?"center":"flex-start",position:"relative",height:"80px","& .MuiFormControlLabel-label":{wordBreak:"break-word",height:u.answer.length<=60?void 0:"60px",overflow:"auto",lineHeight:"normal",paddingLeft:"45px","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#b8babf"}}},value:d,control:f.jsx(Ff,{checkedIcon:f.jsx(ip,{color:r.palette.primary.main}),icon:f.jsx(sp,{})}),label:u.answer},u.id)]},d))})})]})};function Pu(e,t,n){var r=this,o=v.useRef(null),i=v.useRef(0),s=v.useRef(null),a=v.useRef([]),l=v.useRef(),c=v.useRef(),u=v.useRef(e),d=v.useRef(!0);v.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var x=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,h="maxWait"in n,E=h?Math.max(+n.maxWait||0,t):null;v.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var m=v.useMemo(function(){var y=function(M){var T=a.current,D=l.current;return a.current=l.current=null,i.current=M,c.current=u.current.apply(D,T)},C=function(M,T){p&&cancelAnimationFrame(s.current),s.current=p?requestAnimationFrame(M):setTimeout(M,T)},w=function(M){if(!d.current)return!1;var T=M-o.current;return!o.current||T>=t||T<0||h&&M-i.current>=E},S=function(M){return s.current=null,g&&a.current?y(M):(a.current=l.current=null,c.current)},P=function M(){var T=Date.now();if(w(T))return S(T);if(d.current){var D=t-(T-o.current),_=h?Math.min(D,E-(T-i.current)):D;C(M,_)}},k=function(){var M=Date.now(),T=w(M);if(a.current=[].slice.call(arguments),l.current=r,o.current=M,T){if(!s.current&&d.current)return i.current=o.current,C(P,t),x?y(o.current):c.current;if(h)return C(P,t),y(o.current)}return s.current||C(P,t),c.current};return k.cancel=function(){s.current&&(p?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,a.current=o.current=l.current=s.current=null},k.isPending=function(){return!!s.current},k.flush=function(){return s.current?S(Date.now()):c.current},k},[x,h,t,E,g,p]);return m}const pU=({defaultValue:e,value:t,min:n=0,max:r=100,step:o,onChange:i,onChangeCommitted:s,valueLabelFormat:a,sx:l})=>(Le(),f.jsx(K$,{value:t,defaultValue:e,min:n,max:r,step:o,onChange:i,valueLabelDisplay:"on",onChangeCommitted:s,valueLabelFormat:a,onMouseDown:c=>c.stopPropagation(),"data-cy":"slider",sx:{color:"#7E2AEA",padding:"0",marginTop:"75px","& .MuiSlider-valueLabel":{background:"#7E2AEA",borderRadius:"8px",minWidth:"60px",width:"auto",whiteSpace:"nowrap",textAlign:"center",height:"36px"},"& .MuiSlider-valueLabel::before":{width:"6px",height:"2px",transform:"translate(-50%, 50%) rotate(90deg)",bottom:"-5px"},"& .MuiSlider-rail":{backgroundColor:"#F2F3F7",border:"1px solid #9A9AAF",height:"12px"},"& .MuiSlider-thumb":{border:"3px #f2f3f7 solid",height:"23px",width:"23px"},"& .MuiSlider-track":{height:"12px"},...l}})),hU=rc;function Mu({placeholder:e,value:t,text:n,sx:r,error:o,onChange:i,onKeyDown:s,onBlur:a,InputProps:l}){const c=Le();return f.jsx($f,{fullWidth:!0,variant:"standard",sx:{p:0},children:f.jsx(hU,{defaultValue:n,fullWidth:!0,value:t,placeholder:e,error:!!o,label:o,onChange:i,onKeyDown:s,onBlur:a,sx:{"& .MuiInputBase-root":{backgroundColor:c.palette.background.default,height:"48px",borderRadius:"10px"},"& .MuiInputLabel-root":{fontSize:"13.5px",marginTop:"3px"},...r},InputProps:l,inputProps:{sx:{borderRadius:"10px",fontSize:"18px",lineHeight:"21px",py:0}},"data-cy":"textfield"})})}const mU=({currentQuestion:e})=>{var se;const{settings:t,quizId:n}=jt(),[r,o]=v.useState("0"),[i,s]=v.useState("0"),[a,l]=v.useState("100000000000"),[c,u]=v.useState("0"),[d,p]=v.useState("0"),[x,g]=v.useState("100000000000"),h=Le(),{answers:E}=Nt(),[m,y]=v.useState(!1),C=Zt()<650,[w,S]=e.content.range.split("—").map(window.Number),P=wS;v.useEffect(()=>{console.log("reversed:",M)},[M]);const T=async(B,H=!1)=>{y(!0);try{await qt({questionId:e.id,body:B,qid:n}),H||zt(e.id,B,0)}catch{xt("ответ не был засчитан")}y(!1)},D=Pu(async B=>{if(M){const z=window.Number(B)window.Number(k)?String(k):B;u(z),zt(e.id,String(k+P-window.Number(z)),0),await T(String(window.Number(z)),!0);return}const H=window.Number(B)window.Number(a)?a:B;o(H),await T(H)},1e3),_=Pu(async(B,H=!1)=>{if(M){const ne=H?window.Number(B.split("—")[1]):k+P-window.Number(B.split("—")[0])k?String(k):B.split("—")[0];p(H?String(k+P-window.Number(ce)):ce),zt(e.id,`${ne}—${B.split("—")[1]}`,0),await T(`${ce}—${B.split("—")[1]}`,!0);return}const z=H?a:window.Number(B.split("—")[0]){if(M){const ne=H?window.Number(B.split("—")[1]):k+P-window.Number(B.split("—")[1])>k?k:k+P-window.Number(B.split("—")[1]),ce=window.Number(B.split("—")[1])k?String(k):B.split("—")[1];l(z),await T(`${B.split("—")[0]}—${z}`)},1e3),$=(se=E.find(({questionId:B})=>B===e.id))==null?void 0:se.answer,R=$||(M?k+P-e.content.start+"—"+k:e.content.start+"—"+k);v.useEffect(()=>{$&&($.includes("—")?M?(p(String(k+P-window.Number($.split("—")[0]))),g(String(k+P-window.Number($.split("—")[1])))):(s($.split("—")[0]),l($.split("—")[1])):M?u(String(k+P-window.Number($))):o($)),$||(s(String(e.content.start)),l(String(k)),e.content.chooseRange&&(p(String(e.content.start)),g(String(P))),u(String(e.content.start)),o(String(e.content.start)))},[]);const O=(B,H)=>{const z=Array.isArray(H)?`${H[0]}—${H[1]}`:String(H);zt(e.id,z,0)},L=async(B,H)=>{if(e.content.chooseRange&&Array.isArray(H)){if(M){const z=String(k+P-H[0]),ne=String(k+P-H[1]);s(String(H[0])),l(String(H[1])),p(z),g(ne),await T(`${z}—${ne}`,!0);return}s(String(H[0])),l(String(H[1])),await T(`${H[0]}—${H[1]}`);return}M?u(String(k+P-window.Number(H))):o(String(H)),await T(String(H))},V=B=>{if(!M)return B;const[H,z]=R.split("—").map(window.Number);return B===H?k+P-H:k+P-z},I=({target:B})=>{const H=B.value.replace(/\D/g,"");M?u(H):o(H),D(H)},F=({target:B})=>{const H=B.value.replace(/\D/g,"");if(M){if(p(H),window.Number(H)<=window.Number(x)){const z=k+P-window.Number(x);_(`${z}—${z}`,!0);return}_(`${H}—${k+P-window.Number(x)}`);return}if(s(H),window.Number(H)>=window.Number(a)){_(`${a}—${a}`,!0);return}_(`${H}—${a}`)},W=({target:B})=>{const H=B.value.replace(/\D/g,"");if(M){if(g(H),window.Number(H)>=window.Number(d)){const z=k+P-window.Number(d);A(`${z}—${z}`,!0);return}A(`${k+P-window.Number(d)}—${H}`);return}if(l(H),window.Number(H)<=window.Number(i)){A(`${i}—${i}`,!0);return}A(`${i}—${H}`)};return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:h.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsxs(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px",gap:"30px",paddingRight:C?"10px":void 0},children:[f.jsx(pU,{value:e.content.chooseRange?R.split("—").length||0>1?R.split("—").map(B=>window.Number(B)):[P,P+1]:window.Number(R.split("—")[0]),min:P,max:k,step:e.content.step||1,onChange:O,onChangeCommitted:L,valueLabelFormat:V,sx:{color:h.palette.primary.main,"& .MuiSlider-valueLabel":{background:h.palette.primary.main}}}),!e.content.chooseRange&&f.jsx(Mu,{placeholder:"0",value:M?c:r,onChange:I,sx:{maxWidth:"80px",borderColor:h.palette.text.primary,"& .MuiInputBase-input":{textAlign:"center",backgroundColor:wn[t.cfg.theme].isLight?"white":h.palette.background.default}}}),e.content.chooseRange&&f.jsxs(J,{sx:{display:"flex",gap:"15px",alignItems:"center","& .MuiFormControl-root":{width:"auto"}},children:[f.jsx(Mu,{placeholder:"0",value:M?String(d):i,onChange:F,sx:{maxWidth:"80px",borderColor:h.palette.text.primary,"& .MuiInputBase-input":{textAlign:"center",backgroundColor:wn[t.cfg.theme].isLight?"white":h.palette.background.default}}}),f.jsx(Te,{color:h.palette.text.primary,children:"до"}),f.jsx(Mu,{placeholder:"0",value:M?String(x):a,onChange:W,sx:{maxWidth:"80px",borderColor:h.palette.text.primary,"& .MuiInputBase-input":{textAlign:"center",backgroundColor:wn[t.cfg.theme].isLight?"white":h.palette.background.default}}})]})]})]})};function Dg({videoUrl:e,containerSX:t}){var r;return(r=/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/gi.exec(e))==null||r[1],f.jsx(J,{sx:{width:"100%",height:"100%",pointerEvents:"none","& iframe":{width:"100%",height:"100%"},...t},children:f.jsx(J,{component:"video",sx:{width:"100%",height:"100%"},autoPlay:!0,muted:!0,src:e})})}const gU=({currentQuestion:e})=>{const t=Le();return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",sx:{paddingBottom:"25px",color:t.palette.text.primary,wordBreak:"break-word"},children:e.title}),f.jsx(Te,{color:t.palette.text.primary,sx:{wordBreak:"break-word"},children:e.content.text}),f.jsx(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px"},children:e.content.useImage?f.jsx(J,{sx:{borderRadius:"12px",border:"1px solid #9A9AAF",overflow:"hidden"},children:f.jsx("img",{src:e.content.back,alt:"",style:{display:"block",width:"100%",height:"100%",objectFit:"contain"}},e.id)}):f.jsx(Dg,{containerSX:{width:"100%",height:"calc(100% - 270px)",maxHeight:"80%",objectFit:"contain"},videoUrl:e.content.video})})]})};function yU({color:e}){return f.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M5 27V6",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M5 21.0016C13 15.0016 19 27.0016 27 21.0016V6.00158C19 12.0016 13 0.00158215 5 6.00158",fill:e}),f.jsx("path",{d:"M5 21.0016C13 15.0016 19 27.0016 27 21.0016V6.00158C19 12.0016 13 0.00158203 5 6.00158",stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function vU({color:e,width:t=30,sx:n}){return f.jsx(J,{sx:{height:"50px",width:t+"px",display:"flex",alignItems:"center",justifyContent:"center",...n},children:f.jsx("svg",{width:t,height:t,viewBox:"0 0 28 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M14.551 21.8375L20.851 25.8375C21.6635 26.35 22.6635 25.5875 22.426 24.65L20.601 17.475C20.5516 17.2762 20.5595 17.0674 20.6236 16.8728C20.6877 16.6781 20.8056 16.5056 20.9635 16.375L26.6135 11.6625C27.351 11.05 26.976 9.81253 26.0135 9.75003L18.6385 9.27503C18.4372 9.26332 18.2438 9.19325 18.0817 9.07338C17.9197 8.95351 17.7961 8.78902 17.726 8.60003L14.976 1.67503C14.9032 1.47491 14.7706 1.30204 14.5961 1.17988C14.4217 1.05772 14.2139 0.992188 14.001 0.992188C13.788 0.992188 13.5802 1.05772 13.4058 1.17988C13.2314 1.30204 13.0988 1.47491 13.026 1.67503L10.276 8.60003C10.2059 8.78902 10.0823 8.95351 9.92021 9.07338C9.75816 9.19325 9.5647 9.26332 9.36347 9.27503L1.98847 9.75003C1.02597 9.81253 0.650971 11.05 1.38847 11.6625L7.03847 16.375C7.19639 16.5056 7.3142 16.6781 7.37834 16.8728C7.44247 17.0674 7.45032 17.2762 7.40097 17.475L5.71347 24.125C5.42597 25.25 6.62597 26.1625 7.58847 25.55L13.451 21.8375C13.6154 21.733 13.8062 21.6775 14.001 21.6775C14.1958 21.6775 14.3866 21.733 14.551 21.8375Z",fill:e,stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})})}function xU({color:e}){return f.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M3 11.3333H29M3 20.6667H29M13.6364 2L8.90909 30M23.0909 2L18.3636 30",stroke:e,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})})}function CU({color:e}){return f.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M16 27C16 27 3.5 20 3.5 11.5C3.5 9.99737 4.02062 8.54114 4.97328 7.37908C5.92593 6.21703 7.25178 5.42093 8.72525 5.12624C10.1987 4.83154 11.7288 5.05646 13.0551 5.76272C14.3814 6.46898 15.4221 7.61296 16 9.00001C16.5779 7.61296 17.6186 6.46898 18.9449 5.76272C20.2712 5.05646 21.8013 4.83154 23.2748 5.12624C24.7482 5.42093 26.0741 6.21703 27.0267 7.37908C27.9794 8.54114 28.5 9.99737 28.5 11.5C28.5 20 16 27 16 27Z",fill:e,stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})})}function bU({color:e}){return f.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M11 29H21",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M9.83761 20.8739C8.6471 19.9482 7.68288 18.7637 7.01801 17.4102C6.35313 16.0566 6.00504 14.5694 6.00011 13.0614C5.97511 7.6364 10.3376 3.1239 15.7626 2.9989C17.8622 2.94913 19.9242 3.56166 21.6561 4.74961C23.388 5.93756 24.7019 7.64064 25.4115 9.6173C26.1211 11.594 26.1904 13.7439 25.6094 15.7621C25.0285 17.7803 23.827 19.5644 22.1751 20.8614C21.8102 21.1435 21.5146 21.5052 21.311 21.919C21.1073 22.3328 21.001 22.7877 21.0001 23.2489V23.9989C21.0001 24.2641 20.8948 24.5185 20.7072 24.706C20.5197 24.8935 20.2653 24.9989 20.0001 24.9989H12.0001C11.7349 24.9989 11.4805 24.8935 11.293 24.706C11.1055 24.5185 11.0001 24.2641 11.0001 23.9989V23.2489C10.997 22.7912 10.8909 22.34 10.6896 21.9289C10.4884 21.5177 10.1972 21.1572 9.83761 20.8739V20.8739Z",stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.01801 17.4102C7.68288 18.7637 8.6471 19.9482 9.83761 20.8739C10.1972 21.1572 10.4884 21.5177 10.6896 21.9289C10.8909 22.34 10.997 22.7912 11.0001 23.2489V23.9989C11.0001 24.2641 11.1055 24.5185 11.293 24.706C11.4805 24.8935 11.7349 24.9989 12.0001 24.9989H20.0001C20.2653 24.9989 20.5197 24.8935 20.7072 24.706C20.8948 24.5185 21.0001 24.2641 21.0001 23.9989V23.2489C21.001 22.7877 21.1073 22.3328 21.311 21.919C21.5146 21.5052 21.8102 21.1435 22.1751 20.8614C23.827 19.5644 25.0285 17.7803 25.6094 15.7621C26.1904 13.7439 26.1211 11.594 25.4115 9.6173C24.7019 7.64064 23.388 5.93756 21.6561 4.74961C19.9242 3.56166 17.8622 2.94913 15.7626 2.9989C10.3376 3.1239 5.97511 7.6364 6.00011 13.0614C6.00504 14.5694 6.35313 16.0566 7.01801 17.4102ZM17.1464 6.31013C16.7108 6.23629 16.2978 6.52956 16.2239 6.96517C16.1501 7.40078 16.4434 7.81378 16.879 7.88762C17.9379 8.06713 18.915 8.57088 19.6754 9.32936C20.4358 10.0878 20.9421 11.0636 21.1243 12.1221C21.1992 12.5575 21.613 12.8497 22.0484 12.7748C22.4838 12.6998 22.7761 12.2861 22.7011 11.8507C22.4627 10.4657 21.8003 9.18896 20.8053 8.19655C19.8104 7.20413 18.5319 6.545 17.1464 6.31013Z",fill:e})]})})}function wU({color:e}){return f.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M8 17H14V30H8C7.73478 30 7.48043 29.8946 7.29289 29.7071C7.10536 29.5196 7 29.2652 7 29V18C7 17.7348 7.10536 17.4804 7.29289 17.2929C7.48043 17.1054 7.73478 17 8 17V17Z",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M14 17L19 7C20.0609 7 21.0783 7.42143 21.8284 8.17157C22.5786 8.92172 23 9.93913 23 11V14H30.7375C31.0211 13.9993 31.3015 14.0593 31.56 14.176C31.8185 14.2926 32.049 14.4632 32.2361 14.6764C32.4232 14.8895 32.5625 15.1402 32.6447 15.4116C32.7268 15.683 32.75 15.9689 32.7125 16.25L31.2125 28.25C31.1518 28.7317 30.918 29.1749 30.5546 29.4969C30.1912 29.8189 29.723 29.9977 29.2375 30H14",fill:e}),f.jsx("path",{d:"M14 17L19 7C20.0609 7 21.0783 7.42143 21.8284 8.17157C22.5786 8.92172 23 9.93913 23 11V14H30.7375C31.0211 13.9993 31.3015 14.0593 31.56 14.176C31.8185 14.2926 32.049 14.4632 32.2361 14.6764C32.4232 14.8895 32.5625 15.1402 32.6447 15.4116C32.7268 15.683 32.75 15.9689 32.7125 16.25L31.2125 28.25C31.1518 28.7317 30.918 29.1749 30.5546 29.4969C30.1912 29.8189 29.723 29.9977 29.2375 30H14",stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function SU({color:e}){return f.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M7 7V13.8875C7 18.85 10.975 22.9625 15.9375 23C17.1246 23.0082 18.3017 22.7815 19.4008 22.3329C20.5 21.8843 21.4995 21.2227 22.3419 20.3862C23.1843 19.5496 23.8528 18.5547 24.309 17.4586C24.7652 16.3626 25 15.1872 25 14V7C25 6.73478 24.8946 6.48043 24.7071 6.29289C24.5196 6.10536 24.2652 6 24 6H8C7.73478 6 7.48043 6.10536 7.29289 6.29289C7.10536 6.48043 7 6.73478 7 7Z",fill:e,stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M12 28H20",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M16 23V28",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M24.7754 16H26.0004C27.0613 16 28.0787 15.5786 28.8288 14.8284C29.579 14.0783 30.0004 13.0609 30.0004 12V10C30.0004 9.73478 29.895 9.48043 29.7075 9.29289C29.52 9.10536 29.2656 9 29.0004 9H25.0004",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M7.25078 16H5.98828C4.92742 16 3.91 15.5786 3.15985 14.8284C2.40971 14.0783 1.98828 13.0609 1.98828 12V10C1.98828 9.73478 2.09364 9.48043 2.28117 9.29289C2.46871 9.10536 2.72306 9 2.98828 9H6.98828",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}const kU=[{name:"star",icon:e=>f.jsx(vU,{width:50,color:e})},{name:"trophie",icon:e=>f.jsx(SU,{color:e})},{name:"flag",icon:e=>f.jsx(yU,{color:e})},{name:"heart",icon:e=>f.jsx(CU,{color:e})},{name:"like",icon:e=>f.jsx(wU,{color:e})},{name:"bubble",icon:e=>f.jsx(bU,{color:e})},{name:"hashtag",icon:e=>f.jsx(xU,{color:e})}],EU=({currentQuestion:e})=>{const{quizId:t}=jt(),{answers:n}=Nt(),r=Le(),o=Zt()<650,[i,s]=v.useState(!1),{answer:a}=n.find(({questionId:c})=>c===e.id)??{},l=kU.find(({name:c})=>c===e.content.form);return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:r.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsxs(J,{sx:{display:"inline-flex",alignItems:"center",gap:"20px",marginTop:"20px",flexDirection:"column",width:o?"100%":void 0},children:[f.jsx(J,{sx:{display:"inline-block",width:"100%"},children:f.jsx(d$,{disabled:i,value:Number(a||0),onChange:async(c,u)=>{s(!0);try{await qt({questionId:e.id,body:String(u)+" из "+e.content.steps,qid:t}),zt(e.id,String(u),0)}catch{xt("ответ не был засчитан")}s(!1)},sx:{height:"50px",gap:o?void 0:"15px",justifyContent:o?"space-between":void 0,width:o?"100%":void 0,transition:"opacity 0.5s ease"},max:e.content.steps,icon:l==null?void 0:l.icon(r.palette.primary.main),emptyIcon:l==null?void 0:l.icon("#9A9AAF")})}),f.jsxs(J,{sx:{display:"flex",justifyContent:"space-between",gap:2,width:"100%"},children:[f.jsx(Te,{sx:{color:"#9A9AAF"},children:e.content.ratingNegativeDescription}),f.jsx(Te,{sx:{color:"#9A9AAF"},children:e.content.ratingPositiveDescription})]})]})]})};function PU(e,{color:t="#7E2AEA"}){return Le(),f.jsx(J,{...e,sx:{top:"25% !important",height:"24px",width:"24px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:f.jsx("path",{d:"M19.5 9L12 16.5L4.5 9",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}const MU=({items:e,activeItemIndex:t=0,empty:n,onChange:r,sx:o,placeholder:i="",colorMain:s="#7E2AEA",colorPlaceholder:a="#9A9AAF",disabled:l=!1})=>{const[c,u]=v.useState(n?-1:t),d=Le();v.useEffect(()=>{u(t)},[t]);const p=x=>{const g=Number(x.target.value);if(g===c){u(-1),r==null||r("",-1);return}u(g),r==null||r(e[g],g)};return f.jsx($f,{disabled:l,fullWidth:!0,size:"small",sx:{width:"100%",height:"48px",...o},children:f.jsx(D6,{displayEmpty:!0,renderValue:x=>x?e[Number(x)]:f.jsx(Te,{sx:{color:a},children:i}),id:"display-select",variant:"outlined",value:c===-1?"":String(c),onChange:p,sx:{width:"100%",height:"48px",borderRadius:"8px","& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${s} !important`,height:"48px",borderRadius:"10px"}},MenuProps:{PaperProps:{sx:{mt:"8px",p:"4px",borderRadius:"8px",border:"1px solid #EEE4FC",boxShadow:"0px 8px 24px rgba(210, 208, 225, 0.4)"}},MenuListProps:{sx:{py:0,display:"flex",flexDirection:"column",gap:"8px","& .Mui-selected":{backgroundColor:d.palette.background.default,color:s}}}},inputProps:{sx:{color:s,display:"block",px:"9px",gap:"20px","& .MuiTypography-root":{overflow:"hidden",textOverflow:"ellipsis"}}},IconComponent:x=>f.jsx(PU,{...x}),children:e.map((x,g)=>f.jsx(gI,{value:g,sx:{display:"flex",alignItems:"center",gap:"20px",padding:"10px",borderRadius:"5px",color:a,whiteSpace:"normal",wordBreak:"break-word"},children:x},x+g))})})},TU=({currentQuestion:e})=>{const t=Le(),{quizId:n}=jt(),[r,o]=v.useState(!1),{answers:i}=Nt(),{answer:s}=i.find(({questionId:a})=>a===e.id)??{};return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:t.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsx(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px"},children:f.jsx(MU,{disabled:r,placeholder:e.content.default,activeItemIndex:s?Number(s):-1,items:e.content.variants.map(({answer:a})=>a),colorMain:t.palette.primary.main,onChange:async(a,l)=>{if(o(!0),l<0){fc(e.id);try{await qt({questionId:e.id,body:"",qid:n})}catch{xt("ответ не был засчитан")}return o(!1)}try{await qt({questionId:e.id,body:String(e.content.variants[Number(l)].answer),qid:n}),zt(e.id,String(l),0)}catch{xt("ответ не был засчитан")}o(!1)}})})]})},RU=[{horizontal:!0},{horizontal:!1},{horizontal:!0},{horizontal:!0},{horizontal:!1},{horizontal:!0},{horizontal:!0},{horizontal:!0},{horizontal:!0},{horizontal:!0},{horizontal:!0},{horizontal:!1},{horizontal:!0},{horizontal:!1},{horizontal:!0},{horizontal:!0},{horizontal:!0},{horizontal:!0},{horizontal:!1},{horizontal:!1},{horizontal:!0},{horizontal:!0},{horizontal:!0},{horizontal:!0}],DU=({currentQuestion:e,stepNumber:t})=>{Le();const{settings:n}=jt(),r=n.cfg.spec,{quizId:o}=jt(),{answers:i}=Nt();Zt()<650;const{answer:s}=i.find(({questionId:u})=>u===e.id)??{},[a,l]=v.useState(!1),c=Pu(async u=>{l(!0);try{await qt({questionId:e.id,body:u,qid:o})}catch{xt("ответ не был засчитан")}l(!1)},400);switch(v.useEffect(()=>()=>{c.flush()},[c]),r){case!0:return f.jsx(_U,{currentQuestion:e,answer:s,inputHC:c,stepNumber:t});case void 0:return f.jsx(h5,{currentQuestion:e,answer:s,inputHC:c});default:return f.jsx(h5,{currentQuestion:e,answer:s,inputHC:c})}},h5=({currentQuestion:e,answer:t,inputHC:n})=>{const r=Zt()<650,o=Le();return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:o.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsxs(J,{sx:{display:"flex",width:"100%",marginTop:"20px",flexDirection:r?"column-reverse":void 0,alignItems:"center"},children:[f.jsx(Mu,{placeholder:e.content.placeholder,value:t||"",onChange:async({target:i})=>{zt(e.id,i.value,0),n(i.value)},sx:{"&:focus-visible":{borderColor:o.palette.primary.main}}}),e.content.back&&e.content.back!==" "&&f.jsx(J,{sx:{maxWidth:"400px",width:"100%",height:"300px",margin:"15px"},children:f.jsx("img",{src:e.content.back,style:{width:"100%",height:"100%",objectFit:"cover"},alt:""},e.id)})]})]})},_U=({currentQuestion:e,answer:t,inputHC:n,stepNumber:r})=>{const o=Le(),i=Zt()<650,s=RU[Number(r)-1].horizontal;return f.jsxs(J,{sx:{display:"flex",flexDirection:i?"column":void 0,alignItems:i?"center":void 0},children:[f.jsxs(J,{sx:{display:"flex",width:"100%",marginTop:"20px",flexDirection:"column",alignItems:"center",gap:"20px"},children:[f.jsx(Te,{variant:"h5",color:o.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),s&&e.content.back&&e.content.back!==" "&&f.jsx(J,{sx:{margin:"15px",width:"50vw",maxHeight:"550px"},children:f.jsx("img",{src:e.content.back,style:{width:"100%",height:"100%",objectFit:"cover"},alt:""},e.id)}),f.jsx(rc,{autoFocus:!0,multiline:!0,maxRows:4,placeholder:e.content.placeholder,value:t||"",onChange:async({target:a})=>{zt(e.id,a.value,0),n(a.value)},inputProps:{maxLength:400},sx:{width:"100%","&:focus-visible":{borderColor:o.palette.primary.main}}})]}),!s&&e.content.back&&e.content.back!==" "&&f.jsx(J,{sx:{margin:"15px",width:"40vw"},children:f.jsx("img",{src:e.content.back,style:{width:"100%",height:"100%",objectFit:"cover"},alt:""},e.id)})]})},OU=rc,IU=({currentQuestion:e})=>{const t=Le(),n=Zt()<650,{answers:r,ownVariants:o}=Nt(),{answer:i}=r.find(({questionId:u})=>u===e.id)??{},s=o.find(u=>u.id===e.id),[a,l]=v.useState(!1),c=e.content.multi?u6:Af;return v.useEffect(()=>{s||OH(e.id,"")},[]),f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:t.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsxs(J,{sx:{display:"flex",gap:"20px",flexDirection:n?"column-reverse":void 0,alignItems:n?"center":void 0},children:[f.jsx(c,{name:e.id.toString(),value:e.content.variants.findIndex(({id:u})=>i===u),sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"space-between",flexBasis:"100%",marginTop:"20px",width:n?"100%":void 0},children:f.jsxs(J,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",width:"100%",gap:"20px"},children:[e.content.variants.map((u,d)=>f.jsx(m5,{currentQuestion:e,variant:u,answer:i,index:d,isSending:a,setIsSending:l},u.id)),e.content.own&&s&&f.jsx(m5,{own:!0,currentQuestion:e,variant:s.variant,answer:i,index:e.content.variants.length+2,isSending:a,setIsSending:l})]})}),e.content.back&&e.content.back!==" "&&f.jsx(J,{sx:{maxWidth:"400px",width:"100%",height:"300px"},children:f.jsx("img",{src:e.content.back,style:{width:"100%",height:"100%",objectFit:"cover"},alt:""},e.id)})]})]})},m5=({currentQuestion:e,variant:t,answer:n,index:r,own:o=!1,isSending:i,setIsSending:s})=>{const a=Le(),{settings:l,quizId:c}=jt();return f.jsx(nc,{disabled:i,sx:{margin:"0",borderRadius:"12px",color:a.palette.text.primary,padding:"15px",border:"1px solid",borderColor:n===t.id?a.palette.primary.main:"#9A9AAF",backgroundColor:wn[l.cfg.theme].isLight?"white":a.palette.background.default,display:"flex",maxWidth:"685px",maxHeight:"85px",justifyContent:"space-between",width:"100%","&.MuiFormControl-root":{width:"100%"},"& .MuiFormControlLabel-label":{wordBreak:"break-word",height:t.answer.length<=60?void 0:"60px",overflow:"auto",lineHeight:"normal","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#b8babf"}}},value:r,labelPlacement:"start",control:e.content.multi?f.jsx(a6,{checked:!!(n!=null&&n.includes(t.id)),checkedIcon:f.jsx(xd,{checked:!0,color:a.palette.primary.main}),icon:f.jsx(xd,{})}):f.jsx(Ff,{checkedIcon:f.jsx(ip,{color:a.palette.primary.main}),icon:f.jsx(sp,{})}),label:o?f.jsx(OU,{label:"Другое..."}):t.answer,onClick:async u=>{if(u.preventDefault(),i)return;s(!0);const d=e.content.variants[r].id;if(console.log(n),e.content.multi){const p=typeof n!="string"?n||[]:[];try{await qt({questionId:e.id,body:p.includes(d)?p==null?void 0:p.filter(x=>x!==d):[...p,d],qid:c}),zt(e.id,p.includes(d)?p==null?void 0:p.filter(x=>x!==d):[...p,d],e.content.variants[r].points||0)}catch(x){console.log(x),xt("ответ не был засчитан")}s(!1);return}try{await qt({questionId:e.id,body:e.content.variants[r].answer,qid:c}),zt(e.id,d,n===d?0:e.content.variants[r].points||0)}catch(p){console.log(p),xt("ответ не был засчитан")}if(n===d){try{await qt({questionId:e.id,body:"",qid:c})}catch(p){console.log(p),xt("ответ не был засчитан")}fc(e.id)}s(!1)}},t.id)};function $U(){return f.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 -70 800 535",fill:"none",display:"block",preserveAspectRatio:"xMidYMax meet",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{fill:"#F0F0F0",d:"M555 47a47.003 47.003 0 0 1 29.014-43.422 46.999 46.999 0 0 1 61.408 61.408 46.997 46.997 0 0 1-76.656 15.248A47 47 0 0 1 555 47Z"}),f.jsx("path",{fill:"#F3F3F3",d:"M641.874 240.665c7.74-7.74 20.263-7.82 28.102-.181L1051 611.837 779.035 883.805 383.869 498.67l258.005-258.005Z"}),f.jsx("path",{fill:"#EDEDED",d:"M183.393 61.546c7.692-7.037 19.499-6.985 27.129.12l677.42 630.746-690.929 382.738L-397 592.531 183.393 61.546Z"})]})}const FU=({currentQuestion:e})=>{const{settings:t,quizId:n}=jt(),{answers:r}=Nt(),o=Le(),i=Zt()<650,[s,a]=v.useState(!1),{answer:l}=r.find(({questionId:u})=>u===e.id)??{},c=e.content.variants.find(({id:u})=>l===u);return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:o.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsxs(J,{sx:{display:"flex",marginTop:"20px",flexDirection:i?"column-reverse":void 0,gap:i?"30px":void 0,alignItems:i?"center":void 0},children:[f.jsx(Af,{name:e.id,value:e.content.variants.findIndex(({id:u})=>l===u),sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"space-between",flexBasis:"100%",width:i?"100%":void 0},children:f.jsx(J,{sx:{display:"flex",flexDirection:"column",width:"100%",gap:i?"20px":void 0},children:e.content.variants.map((u,d)=>f.jsx(nc,{disabled:s,sx:{marginBottom:"15px",borderRadius:"5px",padding:"15px",color:o.palette.text.primary,backgroundColor:wn[t.cfg.theme].isLight?"white":o.palette.background.default,border:"1px solid",borderColor:l===u.id?o.palette.primary.main:"#9A9AAF",display:"flex",margin:i?0:void 0,"& .MuiFormControlLabel-label":{wordBreak:"break-word",height:u.answer.length<=60?void 0:"60px",overflow:"auto",lineHeight:"normal",paddingLeft:"45px","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#b8babf"}}},value:d,onClick:async p=>{p.preventDefault(),a(!0);try{await qt({questionId:e.id,body:`${e.content.variants[d].answer} `,qid:n}),zt(e.id,e.content.variants[d].id,e.content.variants[d].points||0)}catch{xt("ответ не был засчитан")}if(l===e.content.variants[d].id){try{await qt({questionId:e.id,body:"",qid:n})}catch{xt("ответ не был засчитан")}fc(e.id)}a(!1)},control:f.jsx(Ff,{checkedIcon:f.jsx(ip,{color:o.palette.primary.main}),icon:f.jsx(sp,{})}),label:u.answer},u.id))})}),f.jsx(J,{sx:{maxWidth:"450px",width:"100%",height:"450px",border:"1px solid #9A9AAF",borderRadius:"12px",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#9A9AAF12",color:"#9A9AAF",textAlign:"center"},children:l?c!=null&&c.extendedText?f.jsx("img",{src:c==null?void 0:c.extendedText,style:{width:"100%",height:"100%",objectFit:"cover"},alt:""}):f.jsx($U,{}):e.content.back!==" "&&e.content.back!==null&&e.content.back.length>0?f.jsx("img",{src:e.content.back,style:{width:"100%",height:"100%",objectFit:"cover"},alt:""}):e.content.replText!==" "&&e.content.replText.length>0?e.content.replText:c!=null&&c.extendedText||i?"Выберите вариант ответа ниже":"Выберите вариант ответа слева"})]})]})},AU=e=>f.jsxs("svg",{...e,width:"750",height:"140",viewBox:"0 0 750 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("rect",{width:"750",height:"140",rx:"70",fill:"white"}),f.jsx("path",{d:"M129.645 88.55C126.272 88.55 123.467 87.9267 121.23 86.68C119.03 85.4333 117.362 83.6917 116.225 81.455C115.088 79.2183 114.465 76.615 114.355 73.645C114.318 72.1417 114.3 70.5283 114.3 68.805C114.3 67.0817 114.318 65.4317 114.355 63.855C114.465 60.885 115.088 58.2817 116.225 56.045C117.362 53.8083 119.03 52.0667 121.23 50.82C123.467 49.5733 126.272 48.95 129.645 48.95C132.175 48.95 134.393 49.2983 136.3 49.995C138.207 50.6917 139.783 51.6267 141.03 52.8C142.313 53.9733 143.285 55.2933 143.945 56.76C144.605 58.19 144.972 59.675 145.045 61.215C145.082 61.545 144.972 61.82 144.715 62.04C144.495 62.26 144.22 62.37 143.89 62.37H140.865C140.535 62.37 140.242 62.2783 139.985 62.095C139.765 61.9117 139.6 61.5817 139.49 61.105C138.867 58.245 137.693 56.2833 135.97 55.22C134.283 54.1567 132.157 53.625 129.59 53.625C126.657 53.625 124.328 54.4683 122.605 56.155C120.882 57.805 119.947 60.4633 119.8 64.13C119.69 67.1367 119.69 70.2167 119.8 73.37C119.947 77.0367 120.882 79.7133 122.605 81.4C124.328 83.05 126.657 83.875 129.59 83.875C132.157 83.875 134.283 83.3433 135.97 82.28C137.693 81.2167 138.867 79.255 139.49 76.395C139.6 75.9183 139.765 75.5883 139.985 75.405C140.242 75.2217 140.535 75.13 140.865 75.13H143.89C144.22 75.13 144.495 75.24 144.715 75.46C144.972 75.68 145.082 75.955 145.045 76.285C144.972 77.825 144.605 79.3283 143.945 80.795C143.285 82.225 142.313 83.5267 141.03 84.7C139.783 85.8733 138.207 86.8083 136.3 87.505C134.393 88.2017 132.175 88.55 129.645 88.55ZM150.051 94.05C149.684 94.05 149.373 93.9217 149.116 93.665C148.896 93.445 148.786 93.1517 148.786 92.785V84.865C148.786 84.4983 148.896 84.205 149.116 83.985C149.373 83.7283 149.684 83.6 150.051 83.6H150.326C151.316 83.5633 152.159 83.0133 152.856 81.95C153.553 80.85 154.084 79.145 154.451 76.835C154.818 74.4883 155.001 71.445 155.001 67.705V60.665C155.001 60.2983 155.111 60.005 155.331 59.785C155.588 59.5283 155.899 59.4 156.266 59.4H173.811C174.178 59.4 174.471 59.5283 174.691 59.785C174.948 60.005 175.076 60.2983 175.076 60.665V83.49H177.661C178.064 83.49 178.376 83.6183 178.596 83.875C178.816 84.095 178.926 84.3883 178.926 84.755V92.785C178.926 93.1517 178.816 93.445 178.596 93.665C178.376 93.9217 178.064 94.05 177.661 94.05H175.076C174.709 94.05 174.398 93.9217 174.141 93.665C173.921 93.445 173.811 93.1517 173.811 92.785V88H153.901V92.785C153.901 93.1517 153.773 93.445 153.516 93.665C153.296 93.9217 153.003 94.05 152.636 94.05H150.051ZM156.871 83.6L169.961 83.49V63.8H160.006V68.31C160.006 72.1967 159.731 75.3867 159.181 77.88C158.631 80.3367 157.861 82.2433 156.871 83.6ZM196.064 88.55C192.288 88.55 189.281 87.395 187.044 85.085C184.808 82.7383 183.579 79.5483 183.359 75.515C183.323 75.0383 183.304 74.4333 183.304 73.7C183.304 72.93 183.323 72.3067 183.359 71.83C183.506 69.2267 184.111 66.9533 185.174 65.01C186.238 63.03 187.686 61.5083 189.519 60.445C191.389 59.3817 193.571 58.85 196.064 58.85C198.851 58.85 201.179 59.4367 203.049 60.61C204.956 61.7833 206.404 63.4517 207.394 65.615C208.384 67.7783 208.879 70.3083 208.879 73.205V74.14C208.879 74.5433 208.751 74.855 208.494 75.075C208.274 75.295 207.981 75.405 207.614 75.405H188.584C188.584 75.4417 188.584 75.515 188.584 75.625C188.584 75.735 188.584 75.8267 188.584 75.9C188.658 77.4033 188.988 78.815 189.574 80.135C190.161 81.4183 191.004 82.4633 192.104 83.27C193.204 84.0767 194.524 84.48 196.064 84.48C197.384 84.48 198.484 84.2783 199.364 83.875C200.244 83.4717 200.959 83.0317 201.509 82.555C202.059 82.0417 202.426 81.6567 202.609 81.4C202.939 80.9233 203.196 80.6483 203.379 80.575C203.563 80.465 203.856 80.41 204.259 80.41H206.899C207.266 80.41 207.559 80.52 207.779 80.74C208.036 80.9233 208.146 81.1983 208.109 81.565C208.073 82.115 207.779 82.7933 207.229 83.6C206.679 84.37 205.891 85.14 204.864 85.91C203.838 86.68 202.591 87.3217 201.124 87.835C199.658 88.3117 197.971 88.55 196.064 88.55ZM188.584 71.61H203.654V71.445C203.654 69.795 203.343 68.3283 202.719 67.045C202.133 65.7617 201.271 64.7533 200.134 64.02C198.998 63.25 197.641 62.865 196.064 62.865C194.488 62.865 193.131 63.25 191.994 64.02C190.894 64.7533 190.051 65.7617 189.464 67.045C188.878 68.3283 188.584 69.795 188.584 71.445V71.61ZM214.081 88C213.714 88 213.402 87.8717 213.146 87.615C212.889 87.3583 212.761 87.0467 212.761 86.68V84.645C212.761 83.875 213.146 83.4717 213.916 83.435C215.052 83.3983 216.006 82.8667 216.776 81.84C217.546 80.7767 218.132 79.1083 218.536 76.835C218.939 74.525 219.141 71.4817 219.141 67.705V60.665C219.141 60.2983 219.251 60.005 219.471 59.785C219.727 59.5283 220.039 59.4 220.406 59.4H237.896C238.262 59.4 238.556 59.5283 238.776 59.785C239.032 60.005 239.161 60.2983 239.161 60.665V86.735C239.161 87.1017 239.032 87.4133 238.776 87.67C238.556 87.89 238.262 88 237.896 88H235.256C234.889 88 234.596 87.89 234.376 87.67C234.156 87.4133 234.046 87.1017 234.046 86.735V63.8H224.146V68.31C224.146 71.83 223.944 74.855 223.541 77.385C223.137 79.8783 222.514 81.9133 221.671 83.49C220.864 85.03 219.819 86.1667 218.536 86.9C217.289 87.6333 215.804 88 214.081 88ZM255.335 88.55C253.502 88.55 251.833 88.1833 250.33 87.45C248.827 86.7167 247.617 85.7267 246.7 84.48C245.783 83.2333 245.325 81.8217 245.325 80.245C245.325 77.715 246.352 75.6983 248.405 74.195C250.458 72.6917 253.135 71.7017 256.435 71.225L264.63 70.07V68.475C264.63 66.715 264.117 65.34 263.09 64.35C262.1 63.36 260.468 62.865 258.195 62.865C256.545 62.865 255.207 63.195 254.18 63.855C253.19 64.515 252.493 65.3583 252.09 66.385C251.87 66.935 251.485 67.21 250.935 67.21H248.46C248.057 67.21 247.745 67.1 247.525 66.88C247.342 66.6233 247.25 66.33 247.25 66C247.25 65.45 247.452 64.7717 247.855 63.965C248.295 63.1583 248.955 62.37 249.835 61.6C250.715 60.83 251.833 60.1883 253.19 59.675C254.583 59.125 256.27 58.85 258.25 58.85C260.45 58.85 262.302 59.1433 263.805 59.73C265.308 60.28 266.482 61.0317 267.325 61.985C268.205 62.9383 268.828 64.02 269.195 65.23C269.598 66.44 269.8 67.6683 269.8 68.915V86.735C269.8 87.1017 269.672 87.4133 269.415 87.67C269.195 87.89 268.902 88 268.535 88H266.005C265.602 88 265.29 87.89 265.07 87.67C264.85 87.4133 264.74 87.1017 264.74 86.735V84.37C264.263 85.03 263.622 85.69 262.815 86.35C262.008 86.9733 261 87.505 259.79 87.945C258.58 88.3483 257.095 88.55 255.335 88.55ZM256.49 84.425C257.993 84.425 259.368 84.1133 260.615 83.49C261.862 82.83 262.833 81.8217 263.53 80.465C264.263 79.1083 264.63 77.4033 264.63 75.35V73.81L258.25 74.745C255.647 75.1117 253.685 75.735 252.365 76.615C251.045 77.4583 250.385 78.54 250.385 79.86C250.385 80.8867 250.678 81.7483 251.265 82.445C251.888 83.105 252.658 83.6 253.575 83.93C254.528 84.26 255.5 84.425 256.49 84.425ZM278.972 88C278.605 88 278.293 87.89 278.037 87.67C277.817 87.4133 277.707 87.1017 277.707 86.735V60.665C277.707 60.2983 277.817 60.005 278.037 59.785C278.293 59.5283 278.605 59.4 278.972 59.4H281.612C281.978 59.4 282.272 59.5283 282.492 59.785C282.712 60.005 282.822 60.2983 282.822 60.665V71.225H297.837V60.665C297.837 60.2983 297.947 60.005 298.167 59.785C298.423 59.5283 298.735 59.4 299.102 59.4H301.687C302.053 59.4 302.347 59.5283 302.567 59.785C302.823 60.005 302.952 60.2983 302.952 60.665V86.735C302.952 87.1017 302.823 87.4133 302.567 87.67C302.347 87.89 302.053 88 301.687 88H299.102C298.735 88 298.423 87.89 298.167 87.67C297.947 87.4133 297.837 87.1017 297.837 86.735V75.625H282.822V86.735C282.822 87.1017 282.712 87.4133 282.492 87.67C282.272 87.89 281.978 88 281.612 88H278.972ZM322.937 88.55C320.151 88.55 317.822 88.0183 315.952 86.955C314.082 85.8917 312.652 84.425 311.662 82.555C310.672 80.6483 310.122 78.485 310.012 76.065C309.976 75.4417 309.957 74.6533 309.957 73.7C309.957 72.71 309.976 71.9217 310.012 71.335C310.122 68.8783 310.672 66.715 311.662 64.845C312.689 62.975 314.137 61.5083 316.007 60.445C317.877 59.3817 320.187 58.85 322.937 58.85C325.687 58.85 327.997 59.3817 329.867 60.445C331.737 61.5083 333.167 62.975 334.157 64.845C335.184 66.715 335.752 68.8783 335.862 71.335C335.899 71.9217 335.917 72.71 335.917 73.7C335.917 74.6533 335.899 75.4417 335.862 76.065C335.752 78.485 335.202 80.6483 334.212 82.555C333.222 84.425 331.792 85.8917 329.922 86.955C328.052 88.0183 325.724 88.55 322.937 88.55ZM322.937 84.315C325.211 84.315 327.026 83.6 328.382 82.17C329.739 80.7033 330.472 78.5767 330.582 75.79C330.619 75.24 330.637 74.5433 330.637 73.7C330.637 72.8567 330.619 72.16 330.582 71.61C330.472 68.8233 329.739 66.715 328.382 65.285C327.026 63.8183 325.211 63.085 322.937 63.085C320.664 63.085 318.831 63.8183 317.437 65.285C316.081 66.715 315.366 68.8233 315.292 71.61C315.256 72.16 315.237 72.8567 315.237 73.7C315.237 74.5433 315.256 75.24 315.292 75.79C315.366 78.5767 316.081 80.7033 317.437 82.17C318.831 83.6 320.664 84.315 322.937 84.315ZM357.551 88C357.184 88 356.872 87.89 356.616 87.67C356.396 87.4133 356.286 87.1017 356.286 86.735V60.665C356.286 60.2983 356.396 60.005 356.616 59.785C356.872 59.5283 357.184 59.4 357.551 59.4H360.191C360.557 59.4 360.851 59.5283 361.071 59.785C361.291 60.005 361.401 60.2983 361.401 60.665V71.225H376.416V60.665C376.416 60.2983 376.526 60.005 376.746 59.785C377.002 59.5283 377.314 59.4 377.681 59.4H380.266C380.632 59.4 380.926 59.5283 381.146 59.785C381.402 60.005 381.531 60.2983 381.531 60.665V86.735C381.531 87.1017 381.402 87.4133 381.146 87.67C380.926 87.89 380.632 88 380.266 88H377.681C377.314 88 377.002 87.89 376.746 87.67C376.526 87.4133 376.416 87.1017 376.416 86.735V75.625H361.401V86.735C361.401 87.1017 361.291 87.4133 361.071 87.67C360.851 87.89 360.557 88 360.191 88H357.551ZM397.776 88.55C395.943 88.55 394.275 88.1833 392.771 87.45C391.268 86.7167 390.058 85.7267 389.141 84.48C388.225 83.2333 387.766 81.8217 387.766 80.245C387.766 77.715 388.793 75.6983 390.846 74.195C392.9 72.6917 395.576 71.7017 398.876 71.225L407.071 70.07V68.475C407.071 66.715 406.558 65.34 405.531 64.35C404.541 63.36 402.91 62.865 400.636 62.865C398.986 62.865 397.648 63.195 396.621 63.855C395.631 64.515 394.935 65.3583 394.531 66.385C394.311 66.935 393.926 67.21 393.376 67.21H390.901C390.498 67.21 390.186 67.1 389.966 66.88C389.783 66.6233 389.691 66.33 389.691 66C389.691 65.45 389.893 64.7717 390.296 63.965C390.736 63.1583 391.396 62.37 392.276 61.6C393.156 60.83 394.275 60.1883 395.631 59.675C397.025 59.125 398.711 58.85 400.691 58.85C402.891 58.85 404.743 59.1433 406.246 59.73C407.75 60.28 408.923 61.0317 409.766 61.985C410.646 62.9383 411.27 64.02 411.636 65.23C412.04 66.44 412.241 67.6683 412.241 68.915V86.735C412.241 87.1017 412.113 87.4133 411.856 87.67C411.636 87.89 411.343 88 410.976 88H408.446C408.043 88 407.731 87.89 407.511 87.67C407.291 87.4133 407.181 87.1017 407.181 86.735V84.37C406.705 85.03 406.063 85.69 405.256 86.35C404.45 86.9733 403.441 87.505 402.231 87.945C401.021 88.3483 399.536 88.55 397.776 88.55ZM398.931 84.425C400.435 84.425 401.81 84.1133 403.056 83.49C404.303 82.83 405.275 81.8217 405.971 80.465C406.705 79.1083 407.071 77.4033 407.071 75.35V73.81L400.691 74.745C398.088 75.1117 396.126 75.735 394.806 76.615C393.486 77.4583 392.826 78.54 392.826 79.86C392.826 80.8867 393.12 81.7483 393.706 82.445C394.33 83.105 395.1 83.6 396.016 83.93C396.97 84.26 397.941 84.425 398.931 84.425Z",fill:"#4D4D4D"}),f.jsxs("g",{clipPath:"url(#clip0_4819_14395)",children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M461.886 33.8256C453.446 32.8479 447.622 41.9149 442.205 48.4691C437.452 54.221 433.912 60.7178 433.501 68.1717C433.064 76.1021 434.502 84.3611 439.905 90.1773C445.47 96.1684 453.806 99.9538 461.886 98.7299C469.296 97.6077 472.574 89.4712 478.091 84.3936C484.08 78.8802 495.239 76.3159 495.084 68.1717C494.929 60.0151 483.152 58.4185 477.485 52.5557C471.616 46.483 470.272 34.7969 461.886 33.8256Z",fill:"#7E2AEA"}),f.jsx("circle",{cx:"482.884",cy:"95.6408",r:"4.65763",fill:"#7E2AEA"}),f.jsx("circle",{cx:"478.227",cy:"43.9516",r:"1.77434",fill:"#7E2AEA"}),f.jsx("path",{d:"M506.606 66.259C506.089 61.2292 503.722 56.5706 499.966 53.1862C496.209 49.8018 491.33 47.9327 486.273 47.9411C485.555 47.9414 484.838 47.979 484.124 48.0536C479.096 48.5815 474.443 50.9524 471.06 54.7089C467.677 58.4654 465.805 63.3414 465.805 68.3966V68.3966V97.6187H474.571V85.1993C477.999 87.5839 482.076 88.8589 486.251 88.8521C486.969 88.8518 487.687 88.8143 488.401 88.7396C491.072 88.4588 493.662 87.6546 496.023 86.3728C498.384 85.091 500.469 83.3568 502.16 81.2691C503.85 79.1814 505.113 76.7812 505.876 74.2056C506.639 71.6299 506.887 68.9291 506.606 66.2575V66.259ZM495.347 75.7562C494.384 76.9524 493.193 77.9458 491.843 78.6786C490.494 79.4115 489.012 79.8693 487.485 80.0255C487.075 80.0681 486.663 80.0895 486.251 80.0898C483.6 80.0874 481.028 79.1837 478.958 77.5271C476.889 75.8705 475.443 73.5593 474.86 70.9731C474.276 68.3868 474.59 65.679 475.748 63.2942C476.906 60.9093 478.841 58.9891 481.234 57.8487C483.628 56.7083 486.338 56.4155 488.92 57.0183C491.502 57.621 493.802 59.0836 495.443 61.166C497.084 63.2483 497.968 65.8267 497.951 68.4779C497.933 71.1291 497.015 73.6956 495.347 75.7562Z",fill:"#151515"}),f.jsx("path",{d:"M529.478 47.9411C528.76 47.9414 528.043 47.979 527.329 48.0536C522.119 48.6022 517.319 51.1284 513.917 55.1114C510.515 59.0944 508.771 64.2307 509.043 69.4618C509.316 74.6928 511.585 79.6198 515.383 83.2274C519.181 86.835 524.218 88.8482 529.456 88.8521C530.174 88.8518 530.891 88.8143 531.605 88.7396C535.361 88.3397 538.934 86.9109 541.93 84.6105C544.926 82.3101 547.229 79.2275 548.585 75.7021H538.592L538.551 75.7532C537.272 77.3353 535.601 78.5558 533.704 79.294C531.808 80.0322 529.752 80.2626 527.739 79.9622C525.726 79.6619 523.827 78.8412 522.229 77.5816C520.63 76.3219 519.389 74.6667 518.626 72.7799H549.456C550.105 69.7933 550.078 66.6993 549.376 63.7246C548.674 60.75 547.316 57.97 545.4 55.5884C543.485 53.2068 541.061 51.284 538.306 49.9607C535.551 48.6375 532.534 47.9474 529.478 47.9411V47.9411ZM518.626 64.0133C519.424 62.0489 520.741 60.338 522.434 59.0627C524.128 57.7875 526.136 56.9958 528.245 56.772C528.655 56.7295 529.066 56.708 529.478 56.7077C531.807 56.7038 534.083 57.3977 536.013 58.6999C537.943 60.0021 539.439 61.8528 540.308 64.0133H518.626Z",fill:"#151515"}),f.jsx("path",{d:"M571.115 47.9411C567.765 47.9358 564.478 48.8571 561.618 50.6033V47.9411H552.852V88.8521H561.618V66.2049C561.618 63.6861 562.619 61.2705 564.4 59.4894C566.181 57.7084 568.597 56.7078 571.115 56.7078C573.634 56.7078 576.05 57.7084 577.831 59.4894C579.612 61.2705 580.613 63.6861 580.613 66.2049V88.8521H589.379V66.2049C589.379 61.3611 587.455 56.7156 584.03 53.2905C580.605 49.8653 575.959 47.9411 571.115 47.9411Z",fill:"#151515"}),f.jsx("path",{d:"M633.214 71.0105V47.9411H624.447V51.5939C621.02 49.2083 616.943 47.9332 612.767 47.9411C612.049 47.9415 611.332 47.979 610.618 48.0536C605.408 48.6023 600.608 51.1284 597.206 55.1114C593.804 59.0944 592.06 64.2308 592.332 69.4618C592.605 74.6928 594.874 79.6199 598.672 83.2275C602.47 86.8351 607.507 88.8483 612.745 88.8521C613.463 88.8518 614.18 88.8143 614.894 88.7396C619.99 88.2181 624.7 85.7909 628.081 81.944C630.708 85.459 634.513 87.9111 638.8 88.8521V79.6617C637.136 78.9083 635.725 77.6919 634.734 76.1577C633.744 74.6236 633.216 72.8367 633.214 71.0105ZM621.841 75.7533C620.877 76.9493 619.687 77.9424 618.337 78.6753C616.987 79.4081 615.506 79.866 613.978 80.0226C613.569 80.0652 613.157 80.0866 612.745 80.0869C609.75 80.0868 606.869 78.9369 604.697 76.8746C602.525 74.8123 601.228 71.9949 601.073 69.0038C600.917 66.0127 601.916 63.0761 603.863 60.8001C605.81 58.524 608.556 57.0822 611.535 56.7721C611.945 56.7295 612.356 56.708 612.767 56.7078C614.974 56.7097 617.135 57.3363 619.001 58.5151C620.867 59.694 622.36 61.3769 623.31 63.3693C624.259 65.3617 624.625 67.582 624.365 69.7736C624.105 71.9651 623.23 74.0383 621.841 75.7533Z",fill:"#151515"}),f.jsx("path",{d:"M600.484 110.378V105.155C600.125 105.617 599.679 105.986 599.144 106.26C598.609 106.527 598.032 106.661 597.413 106.661C596.232 106.661 595.261 106.217 594.498 105.331C593.598 104.294 593.148 102.888 593.148 101.115C593.148 99.4454 593.569 98.1445 594.41 97.212C595.257 96.273 596.307 95.8035 597.559 95.8035C598.251 95.8035 598.847 95.9502 599.349 96.2437C599.858 96.5371 600.308 96.9805 600.699 97.5739V96.0383H603.233V110.378H600.484ZM600.572 101.105C600.572 100.042 600.354 99.2531 599.917 98.7379C599.486 98.2163 598.945 97.9554 598.293 97.9554C597.628 97.9554 597.07 98.2195 596.62 98.7477C596.177 99.2759 595.955 100.114 595.955 101.262C595.955 102.403 596.17 103.228 596.601 103.736C597.031 104.238 597.563 104.489 598.195 104.489C598.828 104.489 599.382 104.206 599.858 103.638C600.334 103.071 600.572 102.227 600.572 101.105ZM612.779 106.426V104.871C612.401 105.425 611.902 105.862 611.283 106.182C610.67 106.501 610.021 106.661 609.336 106.661C608.638 106.661 608.012 106.508 607.458 106.201C606.904 105.895 606.503 105.464 606.255 104.91C606.007 104.356 605.883 103.589 605.883 102.611V96.0383H608.632V100.812C608.632 102.272 608.681 103.169 608.779 103.501C608.883 103.828 609.069 104.088 609.336 104.284C609.603 104.473 609.943 104.568 610.353 104.568C610.823 104.568 611.243 104.44 611.615 104.186C611.987 103.925 612.241 103.606 612.378 103.228C612.515 102.843 612.584 101.907 612.584 100.42V96.0383H615.332V106.426H612.779ZM618.188 94.6297V92.0866H620.937V94.6297H618.188ZM618.188 106.426V96.0383H620.937V106.426H618.188ZM622.658 106.426V104.284L626.551 99.8139C627.19 99.0835 627.663 98.5651 627.97 98.2586C627.65 98.2782 627.229 98.2912 626.708 98.2978L623.04 98.3173V96.0383H631.628V97.9848L627.657 102.562L626.258 104.079C627.021 104.033 627.494 104.01 627.676 104.01H631.931V106.426H622.658Z",fill:"black"})]}),f.jsx("defs",{children:f.jsx("clipPath",{id:"clip0_4819_14395",children:f.jsx("rect",{width:"207",height:"80.129",fill:"white",transform:"translate(432 30)"})})})]}),LU=e=>f.jsxs("svg",{...e,width:"750",height:"140",viewBox:"0 0 750 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("rect",{width:"750",height:"140",rx:"70",fill:"#444757"}),f.jsx("path",{d:"M129.645 88.55C126.272 88.55 123.467 87.9267 121.23 86.68C119.03 85.4333 117.362 83.6917 116.225 81.455C115.088 79.2183 114.465 76.615 114.355 73.645C114.318 72.1417 114.3 70.5283 114.3 68.805C114.3 67.0817 114.318 65.4317 114.355 63.855C114.465 60.885 115.088 58.2817 116.225 56.045C117.362 53.8083 119.03 52.0667 121.23 50.82C123.467 49.5733 126.272 48.95 129.645 48.95C132.175 48.95 134.393 49.2983 136.3 49.995C138.207 50.6917 139.783 51.6267 141.03 52.8C142.313 53.9733 143.285 55.2933 143.945 56.76C144.605 58.19 144.972 59.675 145.045 61.215C145.082 61.545 144.972 61.82 144.715 62.04C144.495 62.26 144.22 62.37 143.89 62.37H140.865C140.535 62.37 140.242 62.2783 139.985 62.095C139.765 61.9117 139.6 61.5817 139.49 61.105C138.867 58.245 137.693 56.2833 135.97 55.22C134.283 54.1567 132.157 53.625 129.59 53.625C126.657 53.625 124.328 54.4683 122.605 56.155C120.882 57.805 119.947 60.4633 119.8 64.13C119.69 67.1367 119.69 70.2167 119.8 73.37C119.947 77.0367 120.882 79.7133 122.605 81.4C124.328 83.05 126.657 83.875 129.59 83.875C132.157 83.875 134.283 83.3433 135.97 82.28C137.693 81.2167 138.867 79.255 139.49 76.395C139.6 75.9183 139.765 75.5883 139.985 75.405C140.242 75.2217 140.535 75.13 140.865 75.13H143.89C144.22 75.13 144.495 75.24 144.715 75.46C144.972 75.68 145.082 75.955 145.045 76.285C144.972 77.825 144.605 79.3283 143.945 80.795C143.285 82.225 142.313 83.5267 141.03 84.7C139.783 85.8733 138.207 86.8083 136.3 87.505C134.393 88.2017 132.175 88.55 129.645 88.55ZM150.051 94.05C149.684 94.05 149.373 93.9217 149.116 93.665C148.896 93.445 148.786 93.1517 148.786 92.785V84.865C148.786 84.4983 148.896 84.205 149.116 83.985C149.373 83.7283 149.684 83.6 150.051 83.6H150.326C151.316 83.5633 152.159 83.0133 152.856 81.95C153.553 80.85 154.084 79.145 154.451 76.835C154.818 74.4883 155.001 71.445 155.001 67.705V60.665C155.001 60.2983 155.111 60.005 155.331 59.785C155.588 59.5283 155.899 59.4 156.266 59.4H173.811C174.178 59.4 174.471 59.5283 174.691 59.785C174.948 60.005 175.076 60.2983 175.076 60.665V83.49H177.661C178.064 83.49 178.376 83.6183 178.596 83.875C178.816 84.095 178.926 84.3883 178.926 84.755V92.785C178.926 93.1517 178.816 93.445 178.596 93.665C178.376 93.9217 178.064 94.05 177.661 94.05H175.076C174.709 94.05 174.398 93.9217 174.141 93.665C173.921 93.445 173.811 93.1517 173.811 92.785V88H153.901V92.785C153.901 93.1517 153.773 93.445 153.516 93.665C153.296 93.9217 153.003 94.05 152.636 94.05H150.051ZM156.871 83.6L169.961 83.49V63.8H160.006V68.31C160.006 72.1967 159.731 75.3867 159.181 77.88C158.631 80.3367 157.861 82.2433 156.871 83.6ZM196.064 88.55C192.288 88.55 189.281 87.395 187.044 85.085C184.808 82.7383 183.579 79.5483 183.359 75.515C183.323 75.0383 183.304 74.4333 183.304 73.7C183.304 72.93 183.323 72.3067 183.359 71.83C183.506 69.2267 184.111 66.9533 185.174 65.01C186.238 63.03 187.686 61.5083 189.519 60.445C191.389 59.3817 193.571 58.85 196.064 58.85C198.851 58.85 201.179 59.4367 203.049 60.61C204.956 61.7833 206.404 63.4517 207.394 65.615C208.384 67.7783 208.879 70.3083 208.879 73.205V74.14C208.879 74.5433 208.751 74.855 208.494 75.075C208.274 75.295 207.981 75.405 207.614 75.405H188.584C188.584 75.4417 188.584 75.515 188.584 75.625C188.584 75.735 188.584 75.8267 188.584 75.9C188.658 77.4033 188.988 78.815 189.574 80.135C190.161 81.4183 191.004 82.4633 192.104 83.27C193.204 84.0767 194.524 84.48 196.064 84.48C197.384 84.48 198.484 84.2783 199.364 83.875C200.244 83.4717 200.959 83.0317 201.509 82.555C202.059 82.0417 202.426 81.6567 202.609 81.4C202.939 80.9233 203.196 80.6483 203.379 80.575C203.563 80.465 203.856 80.41 204.259 80.41H206.899C207.266 80.41 207.559 80.52 207.779 80.74C208.036 80.9233 208.146 81.1983 208.109 81.565C208.073 82.115 207.779 82.7933 207.229 83.6C206.679 84.37 205.891 85.14 204.864 85.91C203.838 86.68 202.591 87.3217 201.124 87.835C199.658 88.3117 197.971 88.55 196.064 88.55ZM188.584 71.61H203.654V71.445C203.654 69.795 203.343 68.3283 202.719 67.045C202.133 65.7617 201.271 64.7533 200.134 64.02C198.998 63.25 197.641 62.865 196.064 62.865C194.488 62.865 193.131 63.25 191.994 64.02C190.894 64.7533 190.051 65.7617 189.464 67.045C188.878 68.3283 188.584 69.795 188.584 71.445V71.61ZM214.081 88C213.714 88 213.402 87.8717 213.146 87.615C212.889 87.3583 212.761 87.0467 212.761 86.68V84.645C212.761 83.875 213.146 83.4717 213.916 83.435C215.052 83.3983 216.006 82.8667 216.776 81.84C217.546 80.7767 218.132 79.1083 218.536 76.835C218.939 74.525 219.141 71.4817 219.141 67.705V60.665C219.141 60.2983 219.251 60.005 219.471 59.785C219.727 59.5283 220.039 59.4 220.406 59.4H237.896C238.262 59.4 238.556 59.5283 238.776 59.785C239.032 60.005 239.161 60.2983 239.161 60.665V86.735C239.161 87.1017 239.032 87.4133 238.776 87.67C238.556 87.89 238.262 88 237.896 88H235.256C234.889 88 234.596 87.89 234.376 87.67C234.156 87.4133 234.046 87.1017 234.046 86.735V63.8H224.146V68.31C224.146 71.83 223.944 74.855 223.541 77.385C223.137 79.8783 222.514 81.9133 221.671 83.49C220.864 85.03 219.819 86.1667 218.536 86.9C217.289 87.6333 215.804 88 214.081 88ZM255.335 88.55C253.502 88.55 251.833 88.1833 250.33 87.45C248.827 86.7167 247.617 85.7267 246.7 84.48C245.783 83.2333 245.325 81.8217 245.325 80.245C245.325 77.715 246.352 75.6983 248.405 74.195C250.458 72.6917 253.135 71.7017 256.435 71.225L264.63 70.07V68.475C264.63 66.715 264.117 65.34 263.09 64.35C262.1 63.36 260.468 62.865 258.195 62.865C256.545 62.865 255.207 63.195 254.18 63.855C253.19 64.515 252.493 65.3583 252.09 66.385C251.87 66.935 251.485 67.21 250.935 67.21H248.46C248.057 67.21 247.745 67.1 247.525 66.88C247.342 66.6233 247.25 66.33 247.25 66C247.25 65.45 247.452 64.7717 247.855 63.965C248.295 63.1583 248.955 62.37 249.835 61.6C250.715 60.83 251.833 60.1883 253.19 59.675C254.583 59.125 256.27 58.85 258.25 58.85C260.45 58.85 262.302 59.1433 263.805 59.73C265.308 60.28 266.482 61.0317 267.325 61.985C268.205 62.9383 268.828 64.02 269.195 65.23C269.598 66.44 269.8 67.6683 269.8 68.915V86.735C269.8 87.1017 269.672 87.4133 269.415 87.67C269.195 87.89 268.902 88 268.535 88H266.005C265.602 88 265.29 87.89 265.07 87.67C264.85 87.4133 264.74 87.1017 264.74 86.735V84.37C264.263 85.03 263.622 85.69 262.815 86.35C262.008 86.9733 261 87.505 259.79 87.945C258.58 88.3483 257.095 88.55 255.335 88.55ZM256.49 84.425C257.993 84.425 259.368 84.1133 260.615 83.49C261.862 82.83 262.833 81.8217 263.53 80.465C264.263 79.1083 264.63 77.4033 264.63 75.35V73.81L258.25 74.745C255.647 75.1117 253.685 75.735 252.365 76.615C251.045 77.4583 250.385 78.54 250.385 79.86C250.385 80.8867 250.678 81.7483 251.265 82.445C251.888 83.105 252.658 83.6 253.575 83.93C254.528 84.26 255.5 84.425 256.49 84.425ZM278.972 88C278.605 88 278.293 87.89 278.037 87.67C277.817 87.4133 277.707 87.1017 277.707 86.735V60.665C277.707 60.2983 277.817 60.005 278.037 59.785C278.293 59.5283 278.605 59.4 278.972 59.4H281.612C281.978 59.4 282.272 59.5283 282.492 59.785C282.712 60.005 282.822 60.2983 282.822 60.665V71.225H297.837V60.665C297.837 60.2983 297.947 60.005 298.167 59.785C298.423 59.5283 298.735 59.4 299.102 59.4H301.687C302.053 59.4 302.347 59.5283 302.567 59.785C302.823 60.005 302.952 60.2983 302.952 60.665V86.735C302.952 87.1017 302.823 87.4133 302.567 87.67C302.347 87.89 302.053 88 301.687 88H299.102C298.735 88 298.423 87.89 298.167 87.67C297.947 87.4133 297.837 87.1017 297.837 86.735V75.625H282.822V86.735C282.822 87.1017 282.712 87.4133 282.492 87.67C282.272 87.89 281.978 88 281.612 88H278.972ZM322.937 88.55C320.151 88.55 317.822 88.0183 315.952 86.955C314.082 85.8917 312.652 84.425 311.662 82.555C310.672 80.6483 310.122 78.485 310.012 76.065C309.976 75.4417 309.957 74.6533 309.957 73.7C309.957 72.71 309.976 71.9217 310.012 71.335C310.122 68.8783 310.672 66.715 311.662 64.845C312.689 62.975 314.137 61.5083 316.007 60.445C317.877 59.3817 320.187 58.85 322.937 58.85C325.687 58.85 327.997 59.3817 329.867 60.445C331.737 61.5083 333.167 62.975 334.157 64.845C335.184 66.715 335.752 68.8783 335.862 71.335C335.899 71.9217 335.917 72.71 335.917 73.7C335.917 74.6533 335.899 75.4417 335.862 76.065C335.752 78.485 335.202 80.6483 334.212 82.555C333.222 84.425 331.792 85.8917 329.922 86.955C328.052 88.0183 325.724 88.55 322.937 88.55ZM322.937 84.315C325.211 84.315 327.026 83.6 328.382 82.17C329.739 80.7033 330.472 78.5767 330.582 75.79C330.619 75.24 330.637 74.5433 330.637 73.7C330.637 72.8567 330.619 72.16 330.582 71.61C330.472 68.8233 329.739 66.715 328.382 65.285C327.026 63.8183 325.211 63.085 322.937 63.085C320.664 63.085 318.831 63.8183 317.437 65.285C316.081 66.715 315.366 68.8233 315.292 71.61C315.256 72.16 315.237 72.8567 315.237 73.7C315.237 74.5433 315.256 75.24 315.292 75.79C315.366 78.5767 316.081 80.7033 317.437 82.17C318.831 83.6 320.664 84.315 322.937 84.315ZM357.551 88C357.184 88 356.872 87.89 356.616 87.67C356.396 87.4133 356.286 87.1017 356.286 86.735V60.665C356.286 60.2983 356.396 60.005 356.616 59.785C356.872 59.5283 357.184 59.4 357.551 59.4H360.191C360.557 59.4 360.851 59.5283 361.071 59.785C361.291 60.005 361.401 60.2983 361.401 60.665V71.225H376.416V60.665C376.416 60.2983 376.526 60.005 376.746 59.785C377.002 59.5283 377.314 59.4 377.681 59.4H380.266C380.632 59.4 380.926 59.5283 381.146 59.785C381.402 60.005 381.531 60.2983 381.531 60.665V86.735C381.531 87.1017 381.402 87.4133 381.146 87.67C380.926 87.89 380.632 88 380.266 88H377.681C377.314 88 377.002 87.89 376.746 87.67C376.526 87.4133 376.416 87.1017 376.416 86.735V75.625H361.401V86.735C361.401 87.1017 361.291 87.4133 361.071 87.67C360.851 87.89 360.557 88 360.191 88H357.551ZM397.776 88.55C395.943 88.55 394.275 88.1833 392.771 87.45C391.268 86.7167 390.058 85.7267 389.141 84.48C388.225 83.2333 387.766 81.8217 387.766 80.245C387.766 77.715 388.793 75.6983 390.846 74.195C392.9 72.6917 395.576 71.7017 398.876 71.225L407.071 70.07V68.475C407.071 66.715 406.558 65.34 405.531 64.35C404.541 63.36 402.91 62.865 400.636 62.865C398.986 62.865 397.648 63.195 396.621 63.855C395.631 64.515 394.935 65.3583 394.531 66.385C394.311 66.935 393.926 67.21 393.376 67.21H390.901C390.498 67.21 390.186 67.1 389.966 66.88C389.783 66.6233 389.691 66.33 389.691 66C389.691 65.45 389.893 64.7717 390.296 63.965C390.736 63.1583 391.396 62.37 392.276 61.6C393.156 60.83 394.275 60.1883 395.631 59.675C397.025 59.125 398.711 58.85 400.691 58.85C402.891 58.85 404.743 59.1433 406.246 59.73C407.75 60.28 408.923 61.0317 409.766 61.985C410.646 62.9383 411.27 64.02 411.636 65.23C412.04 66.44 412.241 67.6683 412.241 68.915V86.735C412.241 87.1017 412.113 87.4133 411.856 87.67C411.636 87.89 411.343 88 410.976 88H408.446C408.043 88 407.731 87.89 407.511 87.67C407.291 87.4133 407.181 87.1017 407.181 86.735V84.37C406.705 85.03 406.063 85.69 405.256 86.35C404.45 86.9733 403.441 87.505 402.231 87.945C401.021 88.3483 399.536 88.55 397.776 88.55ZM398.931 84.425C400.435 84.425 401.81 84.1133 403.056 83.49C404.303 82.83 405.275 81.8217 405.971 80.465C406.705 79.1083 407.071 77.4033 407.071 75.35V73.81L400.691 74.745C398.088 75.1117 396.126 75.735 394.806 76.615C393.486 77.4583 392.826 78.54 392.826 79.86C392.826 80.8867 393.12 81.7483 393.706 82.445C394.33 83.105 395.1 83.6 396.016 83.93C396.97 84.26 397.941 84.425 398.931 84.425Z",fill:"#F2F3F7"}),f.jsxs("g",{clipPath:"url(#clip0_4819_14374)",children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M461.886 33.8256C453.446 32.8478 447.622 41.9149 442.205 48.4691C437.452 54.2209 433.912 60.7178 433.501 68.1717C433.064 76.1021 434.502 84.3611 439.905 90.1773C445.47 96.1684 453.806 99.9538 461.886 98.7299C469.296 97.6077 472.574 89.4712 478.091 84.3936C484.08 78.8802 495.239 76.3159 495.084 68.1717C494.929 60.0151 483.152 58.4185 477.485 52.5557C471.616 46.483 470.272 34.7969 461.886 33.8256Z",fill:"#7E2AEA"}),f.jsx("circle",{cx:"482.884",cy:"95.6408",r:"4.65763",fill:"#7E2AEA"}),f.jsx("circle",{cx:"478.227",cy:"43.9516",r:"1.77434",fill:"#7E2AEA"}),f.jsx("path",{d:"M506.606 66.259C506.089 61.2292 503.722 56.5706 499.966 53.1862C496.209 49.8018 491.33 47.9327 486.273 47.9411C485.555 47.9415 484.838 47.979 484.124 48.0536C479.096 48.5815 474.443 50.9524 471.06 54.7089C467.677 58.4654 465.805 63.3414 465.805 68.3966V68.3966V97.6187H474.571V85.1993C477.999 87.5839 482.076 88.8589 486.251 88.8521C486.969 88.8518 487.687 88.8143 488.401 88.7396C491.072 88.4588 493.662 87.6546 496.023 86.3728C498.384 85.091 500.469 83.3568 502.16 81.2691C503.85 79.1814 505.113 76.7812 505.876 74.2056C506.639 71.6299 506.887 68.9291 506.606 66.2576V66.259ZM495.347 75.7562C494.384 76.9525 493.193 77.9458 491.843 78.6786C490.494 79.4115 489.012 79.8693 487.485 80.0255C487.075 80.0681 486.663 80.0896 486.251 80.0898C483.6 80.0874 481.028 79.1837 478.958 77.5271C476.889 75.8705 475.443 73.5594 474.86 70.9731C474.276 68.3868 474.59 65.679 475.748 63.2942C476.906 60.9093 478.841 58.9891 481.234 57.8487C483.628 56.7083 486.338 56.4155 488.92 57.0183C491.502 57.6211 493.802 59.0836 495.443 61.166C497.084 63.2483 497.968 65.8267 497.951 68.4779C497.933 71.1291 497.015 73.6956 495.347 75.7562Z",fill:"#F9F9F9"}),f.jsx("path",{d:"M529.478 47.9411C528.76 47.9414 528.043 47.979 527.329 48.0536C522.119 48.6022 517.319 51.1284 513.917 55.1114C510.515 59.0944 508.771 64.2307 509.043 69.4618C509.316 74.6928 511.585 79.6199 515.383 83.2274C519.181 86.835 524.218 88.8482 529.456 88.8521C530.174 88.8518 530.891 88.8143 531.605 88.7396C535.361 88.3397 538.934 86.9109 541.93 84.6105C544.926 82.3102 547.229 79.2275 548.585 75.7021H538.592L538.551 75.7532C537.272 77.3353 535.601 78.5558 533.704 79.294C531.808 80.0322 529.752 80.2626 527.739 79.9622C525.726 79.6619 523.827 78.8413 522.229 77.5816C520.63 76.3219 519.389 74.6667 518.626 72.7799H549.456C550.105 69.7933 550.078 66.6993 549.376 63.7246C548.674 60.75 547.316 57.97 545.4 55.5884C543.485 53.2068 541.061 51.284 538.306 49.9607C535.551 48.6375 532.534 47.9474 529.478 47.9411V47.9411ZM518.626 64.0133C519.424 62.0489 520.741 60.338 522.434 59.0627C524.128 57.7875 526.136 56.9958 528.245 56.772C528.655 56.7295 529.066 56.708 529.478 56.7077C531.807 56.7038 534.083 57.3977 536.013 58.6999C537.943 60.0021 539.439 61.8528 540.308 64.0133H518.626Z",fill:"#F9F9F9"}),f.jsx("path",{d:"M571.115 47.9411C567.765 47.9358 564.478 48.8571 561.618 50.6033V47.9411H552.852V88.8521H561.618V66.205C561.618 63.6861 562.619 61.2705 564.4 59.4894C566.181 57.7084 568.597 56.7078 571.115 56.7078C573.634 56.7078 576.05 57.7084 577.831 59.4894C579.612 61.2705 580.613 63.6861 580.613 66.205V88.8521H589.379V66.205C589.379 61.3611 587.455 56.7156 584.03 53.2905C580.605 49.8653 575.959 47.9411 571.115 47.9411Z",fill:"#F9F9F9"}),f.jsx("path",{d:"M633.214 71.0105V47.9411H624.447V51.5939C621.02 49.2083 616.943 47.9332 612.767 47.9411C612.049 47.9415 611.332 47.979 610.618 48.0536C605.408 48.6023 600.608 51.1284 597.206 55.1114C593.804 59.0944 592.06 64.2308 592.332 69.4618C592.605 74.6928 594.874 79.6199 598.672 83.2275C602.47 86.8351 607.507 88.8483 612.745 88.8521C613.463 88.8518 614.18 88.8143 614.894 88.7396C619.99 88.2182 624.7 85.7909 628.081 81.944C630.708 85.459 634.513 87.9112 638.8 88.8521V79.6617C637.136 78.9083 635.725 77.6919 634.734 76.1577C633.744 74.6236 633.216 72.8367 633.214 71.0105ZM621.841 75.7533C620.877 76.9493 619.687 77.9424 618.337 78.6753C616.987 79.4081 615.506 79.866 613.978 80.0226C613.569 80.0652 613.157 80.0866 612.745 80.0869C609.75 80.0868 606.869 78.9369 604.697 76.8746C602.525 74.8123 601.228 71.9949 601.073 69.0038C600.917 66.0127 601.916 63.0761 603.863 60.8001C605.81 58.524 608.556 57.0822 611.535 56.7721C611.945 56.7295 612.356 56.708 612.767 56.7078C614.974 56.7097 617.135 57.3363 619.001 58.5151C620.867 59.694 622.36 61.3769 623.31 63.3693C624.259 65.3617 624.625 67.582 624.365 69.7736C624.105 71.9651 623.23 74.0383 621.841 75.7533Z",fill:"#F9F9F9"}),f.jsx("path",{d:"M600.484 110.378V105.155C600.125 105.617 599.679 105.986 599.144 106.26C598.609 106.527 598.032 106.661 597.413 106.661C596.232 106.661 595.261 106.217 594.498 105.331C593.598 104.294 593.148 102.888 593.148 101.115C593.148 99.4454 593.569 98.1445 594.41 97.212C595.257 96.273 596.307 95.8035 597.559 95.8035C598.251 95.8035 598.847 95.9502 599.349 96.2437C599.858 96.5371 600.308 96.9805 600.699 97.5739V96.0383H603.233V110.378H600.484ZM600.572 101.105C600.572 100.042 600.354 99.2531 599.917 98.7379C599.486 98.2162 598.945 97.9554 598.293 97.9554C597.628 97.9554 597.07 98.2195 596.62 98.7477C596.177 99.2759 595.955 100.114 595.955 101.262C595.955 102.403 596.17 103.228 596.601 103.736C597.031 104.238 597.563 104.489 598.195 104.489C598.828 104.489 599.382 104.206 599.858 103.638C600.334 103.071 600.572 102.227 600.572 101.105ZM612.779 106.426V104.871C612.401 105.425 611.902 105.862 611.283 106.182C610.67 106.501 610.021 106.661 609.336 106.661C608.638 106.661 608.012 106.508 607.458 106.201C606.904 105.895 606.503 105.464 606.255 104.91C606.007 104.356 605.883 103.589 605.883 102.611V96.0383H608.632V100.812C608.632 102.272 608.681 103.169 608.779 103.501C608.883 103.827 609.069 104.088 609.336 104.284C609.603 104.473 609.943 104.568 610.353 104.568C610.823 104.568 611.243 104.44 611.615 104.186C611.987 103.925 612.241 103.606 612.378 103.228C612.515 102.843 612.584 101.907 612.584 100.42V96.0383H615.332V106.426H612.779ZM618.188 94.6297V92.0866H620.937V94.6297H618.188ZM618.188 106.426V96.0383H620.937V106.426H618.188ZM622.658 106.426V104.284L626.551 99.8139C627.19 99.0835 627.663 98.5651 627.97 98.2586C627.65 98.2782 627.229 98.2912 626.708 98.2978L623.04 98.3173V96.0383H631.628V97.9848L627.657 102.562L626.258 104.079C627.021 104.033 627.494 104.01 627.676 104.01H631.931V106.426H622.658Z",fill:"#F7F7F7"})]}),f.jsx("defs",{children:f.jsx("clipPath",{id:"clip0_4819_14374",children:f.jsx("rect",{width:"207",height:"80.129",fill:"white",transform:"translate(432 30)"})})})]}),jU=({currentQuestion:e,currentQuestionStepNumber:t,nextButton:n,prevButton:r})=>{const o=Le(),{settings:i}=jt();return console.log(t),f.jsxs(J,{sx:{backgroundColor:o.palette.background.default,height:"100%"},children:[f.jsxs(J,{sx:{height:"calc(100% - 75px)",width:"100%",maxWidth:"1440px",padding:"40px 25px 20px",margin:"0 auto",overflow:"auto",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[f.jsx(NU,{question:e,stepNumber:t},e.id),wn[i.cfg.theme].isLight?f.jsx(no,{target:"_blank",href:"https://quiz.pena.digital",children:f.jsx(AU,{style:{fontSize:"34px",width:"200px",height:"auto"}})}):f.jsx(no,{target:"_blank",href:"https://quiz.pena.digital",children:f.jsx(LU,{style:{fontSize:"34px",width:"200px",height:"auto"}})})]}),f.jsx(eU,{stepNumber:t,prevButton:r,nextButton:n})]})};function NU({question:e,stepNumber:t}){switch(e.type){case"variant":return f.jsx(IU,{currentQuestion:e});case"images":return f.jsx(fU,{currentQuestion:e});case"varimg":return f.jsx(FU,{currentQuestion:e});case"emoji":return f.jsx(sU,{currentQuestion:e});case"text":return f.jsx(DU,{currentQuestion:e,stepNumber:t});case"select":return f.jsx(TU,{currentQuestion:e});case"date":return f.jsx(nU,{currentQuestion:e});case"number":return f.jsx(mU,{currentQuestion:e});case"file":return f.jsx(uU,{currentQuestion:e});case"page":return f.jsx(gU,{currentQuestion:e});case"rating":return f.jsx(EU,{currentQuestion:e});default:Tg(e)}}const VU=({resultQuestion:e})=>{const t=Le(),n=Zt()<650,{settings:r}=jt();return f.jsxs(J,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",height:"100%",width:"100%",pt:"28px",overflow:"auto"},children:[f.jsxs(J,{sx:{display:"flex",flexDirection:"column",alignItems:"start",width:n?"100%":"490px",padding:n?"0 16px":void 0},children:[!(e!=null&&e.content.useImage)&&e.content.video&&f.jsx(Dg,{videoUrl:e.content.video,containerSX:{width:n?"100%":"490px",height:n?"100%":"280px"}}),(e==null?void 0:e.content.useImage)&&e.content.back&&f.jsx(J,{component:"img",src:e.content.back,sx:{width:n?"100%":"490px",height:n?"100%":"280px"}}),e.description!==""&&e.description!==" "&&f.jsx(Te,{sx:{fontSize:"23px",fontWeight:700,m:"20px 0",color:t.palette.text.primary,wordBreak:"break-word"},children:e.description}),f.jsx(Te,{sx:{m:"20px 0",color:t.palette.text.primary,wordBreak:"break-word"},children:e.title}),e.content.text!==""&&e.content.text!==" "&&f.jsx(Te,{sx:{fontSize:"18px",m:"20px 0",wordBreak:"break-word",color:t.palette.text.primary},children:e.content.text})]}),f.jsxs(J,{width:"100%",children:[f.jsx(J,{sx:{display:"flex",width:"100%",justifyContent:"end",px:"20px"},children:f.jsxs(J,{component:no,target:"_blank",href:"https://quiz.pena.digital",sx:{display:"flex",alignItems:"center",mt:"15px",gap:"10px",textDecoration:"none",mb:"5px"},children:[f.jsx(Rg,{style:{fontSize:"34px",color:wn[r.cfg.theme].isLight?"#000000":"#F5F7FF"}}),f.jsx(Te,{sx:{fontSize:"20px",color:wn[r.cfg.theme].isLight?"#4D4D4D":"#F5F7FF",whiteSpace:"nowrap"},children:"Сделано на PenaQuiz"})]})}),f.jsxs(J,{sx:{boxShadow:"0 0 15px 0 rgba(0,0,0,.08)",width:"100%",flexDirection:"column",display:"flex",justifyContent:"center",alignItems:"center",p:r.cfg.resultInfo.showResultForm==="before"&&!r.cfg.score||r.cfg.resultInfo.showResultForm==="after"&&e.content.redirect?"20px":"0"},children:[r.cfg.resultInfo.showResultForm==="before"&&!r.cfg.score&&f.jsx(Mr,{onClick:()=>vd("contactform"),variant:"contained",sx:{p:"10px 20px",width:"auto",height:"50px"},children:e.content.hint.text||"Узнать подробнее"}),r.cfg.resultInfo.showResultForm==="after"&&e.content.redirect&&f.jsx(Mr,{href:e.content.redirect,variant:"contained",sx:{p:"10px 20px",width:"auto",height:"50px"},children:e.content.hint.text||"Перейти на сайт"})]})]})]})};function zU(){const[e,t]=v.useState(!1);return v.useEffect(()=>{const n=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);t(n)},[navigator.userAgent]),{isMobileDevice:e}}const BU=()=>{const e=Le(),{settings:t}=jt(),{isMobileDevice:n}=zU(),r=Zt()<650,o=Zt()<800,i=()=>{navigator.clipboard.writeText(t.cfg.info.phonenumber)};console.log(t.cfg.startpage.background.type);const s=t.cfg.startpage.background.type==="image"?t.cfg.startpage.background.desktop?f.jsx("img",{src:t.cfg.startpage.background.desktop,alt:"",style:{width:r||t.cfg.startpageType==="expanded"?"100%":void 0,height:"100%",objectFit:"cover",overflow:"hidden"}}):null:t.cfg.startpage.background.type==="video"&&t.cfg.startpage.background.video?f.jsx(Dg,{videoUrl:t.cfg.startpage.background.video,containerSX:{width:t.cfg.startpageType==="centered"?"550px":"100%",height:t.cfg.startpageType==="centered"?"275px":"100%",borderRadius:t.cfg.startpageType==="centered"?"10px":"0",overflow:"hidden","& iframe":{width:"100%",height:"100%",transform:t.cfg.startpageType==="centered"?"":t.cfg.startpageType==="expanded"?"scale(1.5)":"scale(2.4)"}}}):null;return f.jsx(Ql,{className:"settings-preview-draghandle",sx:{height:"100%",width:"100%",background:t.cfg.startpageType==="expanded"&&!r?t.cfg.startpage.position==="left"?"linear-gradient(90deg,#272626,transparent)":t.cfg.startpage.position==="center"?"linear-gradient(180deg,transparent,#272626)":"linear-gradient(270deg,#272626,transparent)":e.palette.background.default,color:t.cfg.startpageType==="expanded"?"white":"black"},children:f.jsx(WU,{quizHeaderBlock:f.jsxs(J,{p:t.cfg.startpageType==="standard"?"":"16px",children:[f.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:"20px",mb:"7px"},children:[t.cfg.startpage.logo&&f.jsx("img",{src:t.cfg.startpage.logo,style:{height:"37px",maxWidth:"43px",objectFit:"cover"},alt:""}),f.jsx(Te,{sx:{fontSize:"14px",color:t.cfg.startpageType==="expanded"&&!r?"white":e.palette.text.primary,wordBreak:"break-word"},children:t.cfg.info.orgname})]}),f.jsx(no,{mb:"16px",href:t.cfg.info.site,children:f.jsx(Te,{sx:{fontSize:"16px",color:e.palette.primary.main,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:o?"200px":"300px"},children:t.cfg.info.site})})]}),quizMainBlock:f.jsxs(f.Fragment,{children:[f.jsxs(J,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:t.cfg.startpageType==="centered"||t.cfg.startpageType==="expanded"&&t.cfg.startpage.position==="center"?"center":"start",mt:"28px",width:"100%"},children:[f.jsx(Te,{sx:{fontWeight:"bold",fontSize:"26px",fontStyle:"normal",fontStretch:"normal",lineHeight:"1.2",overflowWrap:"break-word",width:"100%",textAlign:t.cfg.startpageType==="centered"||t.cfg.startpage.position==="center"?"center":"-moz-initial",color:t.cfg.startpageType==="expanded"&&!r?"white":e.palette.text.primary},children:t.name}),f.jsx(Te,{sx:{fontSize:"16px",m:"16px 0",overflowWrap:"break-word",width:"100%",textAlign:t.cfg.startpageType==="centered"||t.cfg.startpage.position==="center"?"center":"-moz-initial",color:t.cfg.startpageType==="expanded"&&!r?"white":e.palette.text.primary},children:t.cfg.startpage.description}),f.jsx(J,{width:t.cfg.startpageType==="standard"?"100%":"auto",children:f.jsx(Mr,{variant:"contained",sx:{fontSize:"16px",padding:"10px 15px",width:t.cfg.startpageType==="standard"?"100%":"auto"},onClick:()=>vd("question"),children:t.cfg.startpage.button.trim()?t.cfg.startpage.button:"Пройти тест"})})]}),f.jsxs(J,{sx:{mt:"46px",display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",flexDirection:"column"},children:[f.jsxs(J,{sx:{maxWidth:o?"240px":"300px",marginBottom:"10px"},children:[t.cfg.info.clickable?n?f.jsx(no,{href:`tel:${t.cfg.info.phonenumber}`,children:f.jsx(Te,{sx:{fontSize:"16px",color:e.palette.primary.main},children:t.cfg.info.phonenumber})}):f.jsx(Ir,{onClick:i,children:f.jsx(Te,{sx:{fontSize:"16px",color:e.palette.primary.main},children:t.cfg.info.phonenumber})}):f.jsx(Te,{sx:{fontSize:"16px",color:e.palette.primary.main},children:t.cfg.info.phonenumber}),f.jsx(Te,{sx:{width:"100%",overflowWrap:"break-word",fontSize:"12px",textAlign:"end",maxHeight:"120px",overflow:"auto","&::-webkit-scrollbar":{width:0},color:t.cfg.startpageType==="expanded"&&!r?"white":e.palette.text.primary},children:t.cfg.info.law})]}),f.jsxs(J,{component:no,target:"_blank",href:"https://quiz.pena.digital",sx:{display:"flex",alignItems:"center",gap:"15px",textDecoration:"none"},children:[f.jsx(Rg,{style:{fontSize:"34px",color:t.cfg.startpageType==="expanded"&&!r?"#FFFFFF":wn[t.cfg.theme].isLight?"#151515":"#FFFFFF"}}),f.jsx(Te,{sx:{fontSize:"20px",color:t.cfg.startpageType==="expanded"&&!r?"#F5F7FF":wn[t.cfg.theme].isLight?"#4D4D4D":"#F5F7FF",whiteSpace:"nowrap"},children:"Сделано на PenaQuiz"})]})]})]}),backgroundBlock:s,startpageType:t.cfg.startpageType,alignType:t.cfg.startpage.position})})};function WU({quizHeaderBlock:e,quizMainBlock:t,backgroundBlock:n,startpageType:r,alignType:o}){const i=Zt()<650;function s(){return f.jsxs(J,{sx:{display:"flex",flexDirection:"column-reverse",flexGrow:1,justifyContent:"flex-end",height:"100%","&::-webkit-scrollbar":{width:0}},children:[f.jsxs(J,{sx:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",p:"25px",height:"100%",overflowY:"auto",overflowX:"hidden"},children:[e,f.jsx(J,{sx:{height:"80%",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%"},children:t})]}),f.jsx(J,{sx:{width:"100%",overflow:"hidden"},children:n})]})}switch(r){case null:case"standard":return f.jsx(f.Fragment,{children:i?f.jsx(s,{}):f.jsxs(J,{id:"pain",sx:{display:"flex",flexDirection:o==="left"?i?"column-reverse":"row":"row-reverse",flexGrow:1,justifyContent:i?"flex-end":void 0,height:"100%","&::-webkit-scrollbar":{width:0},overflow:"auto"},children:[f.jsxs(J,{sx:{width:i?"100%":"40%",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",p:"25px",height:i?"80%":void 0},children:[e,t]}),f.jsx(J,{sx:{width:i?"100%":"60%",overflow:"hidden"},children:n})]})});case"expanded":return f.jsx(f.Fragment,{children:i?f.jsx(s,{}):f.jsxs(J,{sx:{overflow:"auto",position:"relative",display:"flex",justifyContent:HU[o],flexGrow:1,height:"100%","&::-webkit-scrollbar":{width:0}},children:[f.jsxs(J,{sx:{width:"40%",position:"relative",padding:"16px",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:o==="center"?"center":"start"},children:[e,t]}),f.jsx(J,{sx:{position:"absolute",zIndex:-1,left:0,top:0,height:"100%",width:"100%",overflow:"hidden"},children:n})]})});case"centered":return f.jsx(f.Fragment,{children:i?f.jsx(s,{}):f.jsxs(J,{sx:{overflow:"auto",padding:"16px",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",height:"100%","&::-webkit-scrollbar":{width:0}},children:[e,n&&f.jsx(J,{sx:{width:"60%",height:"275px",display:"flex",justifyContent:"center"},children:n}),t]})});default:Tg(r)}}const HU={left:"start",center:"center",right:"end"};function UU(){const{settings:e,recentlyCompleted:t}=jt();let n=Nt(p=>p.currentQuizStep);const r=Zt()<382,{currentQuestion:o,currentQuestionStepNumber:i,isNextButtonEnabled:s,isPreviousButtonEnabled:a,moveToPrevQuestion:l,moveToNextQuestion:c,showResultAfterContactForm:u}=IH();if(v.useEffect(function(){const x=document.querySelector('link[rel="icon"]');x&&e.cfg.startpage.favIcon&&x.setAttribute("href",e.cfg.startpage.favIcon),document.title=e.name},[e]),t)throw new Error("Quiz already completed");n==="startpage"&&e.cfg.noStartPage&&(n="question");let d;switch(n){case"startpage":{d=f.jsx(BU,{});break}case"question":{if(o.type==="result"){d=f.jsx(VU,{resultQuestion:o});break}d=f.jsx(jU,{currentQuestion:o,currentQuestionStepNumber:i,prevButton:f.jsx(Mr,{disabled:!a,variant:"contained",sx:{fontSize:"16px",padding:"10px 15px"},onClick:l,children:r?"←":"← Назад"}),nextButton:f.jsx(Mr,{disabled:!s,variant:"contained",sx:{fontSize:"16px",padding:"10px 15px"},onClick:c,children:"Далее →"})});break}case"contactform":{d=f.jsx(JH,{currentQuestion:o,onShowResult:u});break}default:Tg(n)}return f.jsx(jx,{theme:wn[e.cfg.theme||"StandardTheme"].theme,children:d})}de.locale("ru");const YU=LA.components.MuiLocalizationProvider.defaultProps.localeText;function GU({quizSettings:e,quizId:t,preview:n=!1}){const[r,o]=v.useState(()=>window.innerWidth),i=v.useRef(null);return v.useLayoutEffect(()=>{i.current&&o(i.current.clientWidth)},[]),v.useEffect(()=>{const s=()=>{v.startTransition(()=>{i.current&&o(i.current.clientWidth)})};return window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[]),f.jsx(_7.Provider,{value:r,children:f.jsx(B6.Provider,{value:{...e,quizId:t,preview:n},children:f.jsx(qm,{dateAdapter:gW,adapterLocale:"ru",localeText:YU,children:f.jsx(jx,{theme:Vv,children:f.jsxs(KW,{preventDuplicate:!0,style:{backgroundColor:Vv.palette.brightPurple.main},children:[f.jsx(SD,{}),f.jsx(J,{ref:i,sx:{width:"100%",height:"100%"},children:f.jsx(XW,{FallbackComponent:C7,onError:yW,children:f.jsx(UU,{})})})]})})})})})}function qU({quizId:e}){const{data:t,error:n,isLoading:r}=zF(["quizData",e],o=>R9(o[1]),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1,refreshInterval:0});if(r)return f.jsx(nF,{});if(n)return f.jsx(C7,{error:n});if(!t)throw new Error("Quiz data is null");return f.jsx(GU,{quizSettings:t,quizId:e})}let Qc;const KU={create({selector:e,quizId:t}){const n=document.getElementById(e);if(!n)throw new Error("Element for widget doesn't exist");Qc=R3(n),Qc.render(f.jsx(qU,{quizId:t}))},unmount(){Qc&&Qc.unmount()}};export{KU as default};