function yp(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function vp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tc={exports:{}},wi={},Pc={exports:{}},B={};/** * @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 nl=Symbol.for("react.element"),xp=Symbol.for("react.portal"),wp=Symbol.for("react.fragment"),Sp=Symbol.for("react.strict_mode"),kp=Symbol.for("react.profiler"),Cp=Symbol.for("react.provider"),_p=Symbol.for("react.context"),Ep=Symbol.for("react.forward_ref"),Tp=Symbol.for("react.suspense"),Pp=Symbol.for("react.memo"),Np=Symbol.for("react.lazy"),Ha=Symbol.iterator;function jp(e){return e===null||typeof e!="object"?null:(e=Ha&&e[Ha]||e["@@iterator"],typeof e=="function"?e:null)}var Nc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jc=Object.assign,$c={};function rr(e,t,n){this.props=e,this.context=t,this.refs=$c,this.updater=n||Nc}rr.prototype.isReactComponent={};rr.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")};rr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Oc(){}Oc.prototype=rr.prototype;function Bs(e,t,n){this.props=e,this.context=t,this.refs=$c,this.updater=n||Nc}var Us=Bs.prototype=new Oc;Us.constructor=Bs;jc(Us,rr.prototype);Us.isPureReactComponent=!0;var Qa=Array.isArray,zc=Object.prototype.hasOwnProperty,Ws={current:null},Ac={key:!0,ref:!0,__self:!0,__source:!0};function Rc(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)zc.call(t,r)&&!Ac.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1>>1,pe=j[oe];if(0>>1;oel(so,F))enl(dl,so)?(j[oe]=dl,j[en]=F,oe=en):(j[oe]=so,j[qt]=F,oe=qt);else if(enl(dl,F))j[oe]=dl,j[en]=F,oe=en;else break e}}return R}function l(j,R){var F=j.sortIndex-R.sortIndex;return F!==0?F:j.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],g=1,h=null,m=3,x=!1,v=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(j){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=j)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function w(j){if(S=!1,y(j),!v)if(n(a)!==null)v=!0,W(T);else{var R=n(u);R!==null&&we(w,R.startTime-j)}}function T(j,R){v=!1,S&&(S=!1,d($),$=-1),x=!0;var F=m;try{for(y(R),h=n(a);h!==null&&(!(h.expirationTime>R)||j&&!D());){var oe=h.callback;if(typeof oe=="function"){h.callback=null,m=h.priorityLevel;var pe=oe(h.expirationTime<=R);R=e.unstable_now(),typeof pe=="function"?h.callback=pe:h===n(a)&&r(a),y(R)}else r(a);h=n(a)}if(h!==null)var fl=!0;else{var qt=n(u);qt!==null&&we(w,qt.startTime-R),fl=!1}return fl}finally{h=null,m=F,x=!1}}var k=!1,E=null,$=-1,M=5,A=-1;function D(){return!(e.unstable_now()-Aj||125oe?(j.sortIndex=F,t(u,j),n(a)===null&&j===n(u)&&(S?(d($),$=-1):S=!0,we(w,F-oe))):(j.sortIndex=pe,t(a,j),v||x||(v=!0,W(T))),j},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(j){var R=m;return function(){var F=m;m=R;try{return j.apply(this,arguments)}finally{m=F}}}})(Dc);Fc.exports=Dc;var Up=Fc.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 Wp=I,We=Up;function P(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"),Do=Object.prototype.hasOwnProperty,Vp=/^[: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]*$/,Ga={},Xa={};function bp(e){return Do.call(Xa,e)?!0:Do.call(Ga,e)?!1:Vp.test(e)?Xa[e]=!0:(Ga[e]=!0,!1)}function Hp(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 Qp(e,t,n,r){if(t===null||typeof t>"u"||Hp(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 je(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new je(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){xe[e]=new je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var bs=/[\-:]([a-z])/g;function Hs(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(bs,Hs);xe[t]=new je(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(bs,Hs);xe[t]=new je(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(bs,Hs);xe[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qs(e,t,n,r){var l=xe.hasOwnProperty(t)?xe[t]:null;(l!==null?l.type!==0:r||!(2s||l[o]!==i[s]){var a=` `+l[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{co=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function Kp(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=fo(e.type,!1),e;case 11:return e=fo(e.type.render,!1),e;case 1:return e=fo(e.type,!0),e;default:return""}}function Vo(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 Pn:return"Fragment";case Tn:return"Portal";case Bo:return"Profiler";case Ks:return"StrictMode";case Uo:return"Suspense";case Wo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wc:return(e.displayName||"Context")+".Consumer";case Uc:return(e._context.displayName||"Context")+".Provider";case Ys:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gs:return t=e.displayName||null,t!==null?t:Vo(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return Vo(e(t))}catch{}}return null}function Yp(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 Vo(t);case 8:return t===Ks?"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 Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gp(e){var t=bc(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 l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ml(e){e._valueTracker||(e._valueTracker=Gp(e))}function Hc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yl(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 bo(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ja(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(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 Qc(e,t){t=t.checked,t!=null&&Qs(e,"checked",t,!1)}function Ho(e,t){Qc(e,t);var n=Kt(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")?Qo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qo(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qa(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 Qo(e,t,n){(t!=="number"||Yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xr=Array.isArray;function Fn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=gl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Er={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},Xp=["Webkit","ms","Moz","O"];Object.keys(Er).forEach(function(e){Xp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Er[t]=Er[e]})});function Xc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Er.hasOwnProperty(e)&&Er[e]?(""+t).trim():t+"px"}function Zc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Xc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Zp=ne({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 Go(e,t){if(t){if(Zp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function Xo(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 Zo=null;function Xs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jo=null,Dn=null,Bn=null;function nu(e){if(e=il(e)){if(typeof Jo!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Ei(t),Jo(e.stateNode,e.type,t))}}function Jc(e){Dn?Bn?Bn.push(e):Bn=[e]:Dn=e}function qc(){if(Dn){var e=Dn,t=Bn;if(Bn=Dn=null,nu(e),t)for(e=0;e>>=0,e===0?32:31-(ah(e)/uh|0)|0}var yl=64,vl=4194304;function wr(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 Jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=wr(s):(i&=o,i!==0&&(r=wr(i)))}else o=n&~l,o!==0?r=wr(o):i!==0&&(r=wr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===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 rl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-it(t),e[t]=n}function ph(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=Pr),fu=" ",du=!1;function wf(e,t){switch(e){case"keyup":return Uh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nn=!1;function Vh(e,t){switch(e){case"compositionend":return Sf(t);case"keypress":return t.which!==32?null:(du=!0,fu);case"textInput":return e=t.data,e===fu&&du?null:e;default:return null}}function bh(e,t){if(Nn)return e==="compositionend"||!la&&wf(e,t)?(e=vf(),Ll=ta=Mt=null,Nn=!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=gu(n)}}function Ef(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ef(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tf(){for(var e=window,t=Yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yl(e.document)}return t}function ia(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 qh(e){var t=Tf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ef(n.ownerDocument.documentElement,n)){if(r!==null&&ia(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 l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=yu(n,i);var o=yu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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,jn=null,ls=null,jr=null,is=!1;function vu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;is||jn==null||jn!==Yl(r)||(r=jn,"selectionStart"in r&&ia(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}),jr&&Wr(jr,r)||(jr=r,r=ti(ls,"onSelect"),0zn||(e.current=fs[zn],fs[zn]=null,zn--)}function G(e,t){zn++,fs[zn]=e.current,e.current=t}var Yt={},Ee=Zt(Yt),ze=Zt(!1),dn=Yt;function Yn(e,t){var n=e.type.contextTypes;if(!n)return Yt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ae(e){return e=e.childContextTypes,e!=null}function ri(){Z(ze),Z(Ee)}function Eu(e,t,n){if(Ee.current!==Yt)throw Error(P(168));G(Ee,t),G(ze,n)}function Lf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(P(108,Yp(e)||"Unknown",l));return ne({},n,r)}function li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yt,dn=Ee.current,G(Ee,e),G(ze,ze.current),!0}function Tu(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=Lf(e,t,dn),r.__reactInternalMemoizedMergedChildContext=e,Z(ze),Z(Ee),G(Ee,e)):Z(ze),G(ze,n)}var wt=null,Ti=!1,To=!1;function If(e){wt===null?wt=[e]:wt.push(e)}function fm(e){Ti=!0,If(e)}function Jt(){if(!To&&wt!==null){To=!0;var e=0,t=K;try{var n=wt;for(K=1;e>=o,l-=o,kt=1<<32-it(t)+l|n<$?(M=E,E=null):M=E.sibling;var A=m(d,E,y[$],w);if(A===null){E===null&&(E=M);break}e&&E&&A.alternate===null&&t(d,E),f=i(A,f,$),k===null?T=A:k.sibling=A,k=A,E=M}if($===y.length)return n(d,E),q&&nn(d,$),T;if(E===null){for(;$$?(M=E,E=null):M=E.sibling;var D=m(d,E,A.value,w);if(D===null){E===null&&(E=M);break}e&&E&&D.alternate===null&&t(d,E),f=i(D,f,$),k===null?T=D:k.sibling=D,k=D,E=M}if(A.done)return n(d,E),q&&nn(d,$),T;if(E===null){for(;!A.done;$++,A=y.next())A=h(d,A.value,w),A!==null&&(f=i(A,f,$),k===null?T=A:k.sibling=A,k=A);return q&&nn(d,$),T}for(E=r(d,E);!A.done;$++,A=y.next())A=x(E,d,$,A.value,w),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?$:A.key),f=i(A,f,$),k===null?T=A:k.sibling=A,k=A);return e&&E.forEach(function(c){return t(d,c)}),q&&nn(d,$),T}function _(d,f,y,w){if(typeof y=="object"&&y!==null&&y.type===Pn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case hl:e:{for(var T=y.key,k=f;k!==null;){if(k.key===T){if(T=y.type,T===Pn){if(k.tag===7){n(d,k.sibling),f=l(k,y.props.children),f.return=d,d=f;break e}}else if(k.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===At&&ju(T)===k.type){n(d,k.sibling),f=l(k,y.props),f.ref=pr(d,k,y),f.return=d,d=f;break e}n(d,k);break}else t(d,k);k=k.sibling}y.type===Pn?(f=cn(y.props.children,d.mode,w,y.key),f.return=d,d=f):(w=Vl(y.type,y.key,y.props,null,d.mode,w),w.ref=pr(d,f,y),w.return=d,d=w)}return o(d);case Tn:e:{for(k=y.key;f!==null;){if(f.key===k)if(f.tag===4&&f.stateNode.containerInfo===y.containerInfo&&f.stateNode.implementation===y.implementation){n(d,f.sibling),f=l(f,y.children||[]),f.return=d,d=f;break e}else{n(d,f);break}else t(d,f);f=f.sibling}f=Ro(y,d.mode,w),f.return=d,d=f}return o(d);case At:return k=y._init,_(d,f,k(y._payload),w)}if(xr(y))return v(d,f,y,w);if(ar(y))return S(d,f,y,w);El(d,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,f!==null&&f.tag===6?(n(d,f.sibling),f=l(f,y),f.return=d,d=f):(n(d,f),f=Ao(y,d.mode,w),f.return=d,d=f),o(d)):n(d,f)}return _}var Xn=Bf(!0),Uf=Bf(!1),si=Zt(null),ai=null,Ln=null,ua=null;function ca(){ua=Ln=ai=null}function fa(e){var t=si.current;Z(si),e._currentValue=t}function hs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Wn(e,t){ai=e,ua=Ln=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Oe=!0),e.firstContext=null)}function Ze(e){var t=e._currentValue;if(ua!==e)if(e={context:e,memoizedValue:t,next:null},Ln===null){if(ai===null)throw Error(P(308));Ln=e,ai.dependencies={lanes:0,firstContext:e}}else Ln=Ln.next=e;return t}var on=null;function da(e){on===null?on=[e]:on.push(e)}function Wf(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,da(t)):(n.next=l.next,l.next=n),t.interleaved=n,Pt(e,r)}function Pt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Rt=!1;function pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Pt(e,n)}return l=r.interleaved,l===null?(t.next=t,da(r)):(t.next=l.next,l.next=t),r.interleaved=t,Pt(e,n)}function Ml(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Js(e,n)}}function $u(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ui(e,t,n,r){var l=e.updateQueue;Rt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var a=s,u=a.next;a.next=null,o===null?i=u:o.next=u,o=a;var g=e.alternate;g!==null&&(g=g.updateQueue,s=g.lastBaseUpdate,s!==o&&(s===null?g.firstBaseUpdate=u:s.next=u,g.lastBaseUpdate=a))}if(i!==null){var h=l.baseState;o=0,g=u=a=null,s=i;do{var m=s.lane,x=s.eventTime;if((r&m)===m){g!==null&&(g=g.next={eventTime:x,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,S=s;switch(m=t,x=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){h=v.call(x,h,m);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,m=typeof v=="function"?v.call(x,h,m):v,m==null)break e;h=ne({},h,m);break e;case 2:Rt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[s]:m.push(s))}else x={eventTime:x,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},g===null?(u=g=x,a=h):g=g.next=x,o|=m;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;m=s,s=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(g===null&&(a=h),l.baseState=a,l.firstBaseUpdate=u,l.lastBaseUpdate=g,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);mn|=o,e.lanes=o,e.memoizedState=h}}function Ou(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=No.transition;No.transition={};try{e(!1),t()}finally{K=n,No.transition=r}}function od(){return Je().memoizedState}function mm(e,t,n){var r=Ht(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sd(e))ad(t,n);else if(n=Wf(e,t,n,r),n!==null){var l=Pe();ot(n,e,r,l),ud(n,t,r)}}function gm(e,t,n){var r=Ht(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sd(e))ad(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,st(s,o)){var a=t.interleaved;a===null?(l.next=l,da(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Wf(e,t,l,r),n!==null&&(l=Pe(),ot(n,e,r,l),ud(n,t,r))}}function sd(e){var t=e.alternate;return e===te||t!==null&&t===te}function ad(e,t){$r=fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ud(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Js(e,n)}}var di={readContext:Ze,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useInsertionEffect:Se,useLayoutEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useMutableSource:Se,useSyncExternalStore:Se,useId:Se,unstable_isNewReconciler:!1},ym={readContext:Ze,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:Au,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Dl(4194308,4,td.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dl(4,2,e,t)},useMemo:function(e,t){var n=ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ct();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=mm.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:zu,useDebugValue:Sa,useDeferredValue:function(e){return ct().memoizedState=e},useTransition:function(){var e=zu(!1),t=e[0];return e=hm.bind(null,e[1]),ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,l=ct();if(q){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),me===null)throw Error(P(349));hn&30||Kf(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Au(Gf.bind(null,r,i,e),[e]),r.flags|=2048,Xr(9,Yf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ct(),t=me.identifierPrefix;if(q){var n=Ct,r=kt;n=(r&~(1<<32-it(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[pt]=t,e[Hr]=r,xd(e,t,!1,!1),t.stateNode=e;e:{switch(o=Xo(n,r),n){case"dialog":X("cancel",e),X("close",e),l=r;break;case"iframe":case"object":case"embed":X("load",e),l=r;break;case"video":case"audio":for(l=0;lqn&&(t.flags|=128,r=!0,hr(i,!1),t.lanes=4194304)}else{if(!r)if(e=ci(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!q)return ke(t),null}else 2*se()-i.renderingStartTime>qn&&n!==1073741824&&(t.flags|=128,r=!0,hr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=se(),t.sibling=null,n=ee.current,G(ee,r?n&1|2:n&1),t):(ke(t),null);case 22:case 23:return Pa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ie&1073741824&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function Em(e,t){switch(sa(t),t.tag){case 1:return Ae(t.type)&&ri(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),Z(ze),Z(Ee),ga(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ma(t),null;case 13:if(Z(ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));Gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(ee),null;case 4:return Zn(),null;case 10:return fa(t.type._context),null;case 22:case 23:return Pa(),null;case 24:return null;default:return null}}var Pl=!1,_e=!1,Tm=typeof WeakSet=="function"?WeakSet:Set,z=null;function In(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ie(e,t,r)}else n.current=null}function Cs(e,t,n){try{n()}catch(r){ie(e,t,r)}}var bu=!1;function Pm(e,t){if(os=ql,e=Tf(),ia(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 l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,u=0,g=0,h=e,m=null;t:for(;;){for(var x;h!==n||l!==0&&h.nodeType!==3||(s=o+l),h!==i||r!==0&&h.nodeType!==3||(a=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(x=h.firstChild)!==null;)m=h,h=x;for(;;){if(h===e)break t;if(m===n&&++u===l&&(s=o),m===i&&++g===r&&(a=o),(x=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=x}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ss={focusedElem:e,selectionRange:n},ql=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,_=v.memoizedState,d=t.stateNode,f=d.getSnapshotBeforeUpdate(t.elementType===t.type?S:nt(t.type,S),_);d.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(w){ie(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return v=bu,bu=!1,v}function Or(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Cs(t,n,i)}l=l.next}while(l!==r)}}function ji(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 _s(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 kd(e){var t=e.alternate;t!==null&&(e.alternate=null,kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pt],delete t[Hr],delete t[cs],delete t[um],delete t[cm])),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 Cd(e){return e.tag===5||e.tag===3||e.tag===4}function Hu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cd(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 Es(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=ni));else if(r!==4&&(e=e.child,e!==null))for(Es(e,t,n),e=e.sibling;e!==null;)Es(e,t,n),e=e.sibling}function Ts(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(Ts(e,t,n),e=e.sibling;e!==null;)Ts(e,t,n),e=e.sibling}var ge=null,rt=!1;function zt(e,t,n){for(n=n.child;n!==null;)_d(e,t,n),n=n.sibling}function _d(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Si,n)}catch{}switch(n.tag){case 5:_e||In(n,t);case 6:var r=ge,l=rt;ge=null,zt(e,t,n),ge=r,rt=l,ge!==null&&(rt?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(rt?(e=ge,n=n.stateNode,e.nodeType===8?Eo(e.parentNode,n):e.nodeType===1&&Eo(e,n),Br(e)):Eo(ge,n.stateNode));break;case 4:r=ge,l=rt,ge=n.stateNode.containerInfo,rt=!0,zt(e,t,n),ge=r,rt=l;break;case 0:case 11:case 14:case 15:if(!_e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Cs(n,t,o),l=l.next}while(l!==r)}zt(e,t,n);break;case 1:if(!_e&&(In(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ie(n,t,s)}zt(e,t,n);break;case 21:zt(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,zt(e,t,n),_e=r):zt(e,t,n);break;default:zt(e,t,n)}}function Qu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Tm),t.forEach(function(r){var l=Im.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jm(r/1960))-r,10e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,mi=0,U&6)throw Error(P(331));var l=U;for(U|=4,z=e.current;z!==null;){var i=z,o=i.child;if(z.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ase()-Ea?un(e,0):_a|=n),Re(e,t)}function zd(e,t){t===0&&(e.mode&1?(t=vl,vl<<=1,!(vl&130023424)&&(vl=4194304)):t=1);var n=Pe();e=Pt(e,t),e!==null&&(rl(e,t,n),Re(e,n))}function Lm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zd(e,n)}function Im(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),zd(e,n)}var Ad;Ad=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ze.current)Oe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Oe=!1,Cm(e,t,n);Oe=!!(e.flags&131072)}else Oe=!1,q&&t.flags&1048576&&Mf(t,oi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bl(e,t),e=t.pendingProps;var l=Yn(t,Ee.current);Wn(t,n),l=va(null,t,r,e,l,n);var i=xa();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ae(r)?(i=!0,li(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,pa(t),l.updater=Ni,t.stateNode=l,l._reactInternals=t,gs(t,r,e,n),t=xs(null,t,r,!0,i,n)):(t.tag=0,q&&i&&oa(t),Te(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Fm(r),e=nt(r,e),l){case 0:t=vs(null,t,r,e,n);break e;case 1:t=Uu(null,t,r,e,n);break e;case 11:t=Du(null,t,r,e,n);break e;case 14:t=Bu(null,t,r,nt(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:nt(r,l),vs(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:nt(r,l),Uu(e,t,r,l,n);case 3:e:{if(gd(t),e===null)throw Error(P(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Vf(e,t),ui(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Jn(Error(P(423)),t),t=Wu(e,t,r,n,l);break e}else if(r!==l){l=Jn(Error(P(424)),t),t=Wu(e,t,r,n,l);break e}else for(Fe=Wt(t.stateNode.containerInfo.firstChild),De=t,q=!0,lt=null,n=Uf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gn(),r===l){t=Nt(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return bf(t),e===null&&ps(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,as(r,l)?o=null:i!==null&&as(r,i)&&(t.flags|=32),md(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&ps(t),null;case 13:return yd(e,t,n);case 4:return ha(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xn(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:nt(r,l),Du(e,t,r,l,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,G(si,r._currentValue),r._currentValue=o,i!==null)if(st(i.value,o)){if(i.children===l.children&&!ze.current){t=Nt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=_t(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var g=u.pending;g===null?a.next=a:(a.next=g.next,g.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),hs(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(P(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),hs(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Te(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Wn(t,n),l=Ze(l),r=r(l),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,l=nt(r,t.pendingProps),l=nt(r.type,l),Bu(e,t,r,l,n);case 15:return pd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:nt(r,l),Bl(e,t),t.tag=1,Ae(r)?(e=!0,li(t)):e=!1,Wn(t,n),cd(t,r,l),gs(t,r,l,n),xs(null,t,r,!0,e,n);case 19:return vd(e,t,n);case 22:return hd(e,t,n)}throw Error(P(156,t.tag))};function Rd(e,t){return sf(e,t)}function Mm(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 Ge(e,t,n,r){return new Mm(e,t,n,r)}function ja(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fm(e){if(typeof e=="function")return ja(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ys)return 11;if(e===Gs)return 14}return 2}function Qt(e,t){var n=e.alternate;return n===null?(n=Ge(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 Vl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")ja(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Pn:return cn(n.children,l,i,t);case Ks:o=8,l|=8;break;case Bo:return e=Ge(12,n,t,l|2),e.elementType=Bo,e.lanes=i,e;case Uo:return e=Ge(13,n,t,l),e.elementType=Uo,e.lanes=i,e;case Wo:return e=Ge(19,n,t,l),e.elementType=Wo,e.lanes=i,e;case Vc:return Oi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Uc:o=10;break e;case Wc:o=9;break e;case Ys:o=11;break e;case Gs:o=14;break e;case At:o=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Ge(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function cn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function Oi(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=Vc,e.lanes=n,e.stateNode={isHidden:!1},e}function Ao(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function Ro(e,t,n){return t=Ge(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dm(e,t,n,r,l){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=ho(0),this.expirationTimes=ho(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ho(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function $a(e,t,n,r,l,i,o,s,a){return e=new Dm(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ge(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pa(i),e}function Bm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fd)}catch(e){console.error(e)}}Fd(),Mc.exports=Ve;var Hm=Mc.exports,kr,ec=Hm;kr=ec.createRoot,ec.hydrateRoot;const tc=e=>e,Qm=()=>{let e=tc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tc}}},Km=Qm();function yn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function er(e){if(typeof e!="string")throw new Error(yn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Dd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t{t[n]=Vd(e[n])}),t}function Be(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return St(e)&&St(t)&&Object.keys(t).forEach(l=>{I.isValidElement(t[l])||Wd.isValidElementType(t[l])?r[l]=t[l]:St(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&St(e[l])?r[l]=Be(e[l],t[l],n):n.clone?r[l]=St(t[l])?Vd(t[l]):t[l]:r[l]=t[l]}),r}function Rr(e,t){return t?Be(e,t,{clone:!1}):e}function nc(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,l)=>{var o,s;const i=/min-width:\s*([0-9.]+)/;return+(((o=r.match(i))==null?void 0:o[1])||0)-+(((s=l.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,l)=>{const i=t[l];return delete r[l],r[l]=i,r},{...t}):t}function Zm(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Jm(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,l]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(l).up(i)}function qm(e){const t=(i,o)=>i.replace("@media",o?`@container ${o}`:"@container");function n(i,o){i.up=(...s)=>t(e.breakpoints.up(...s),o),i.down=(...s)=>t(e.breakpoints.down(...s),o),i.between=(...s)=>t(e.breakpoints.between(...s),o),i.only=(...s)=>t(e.breakpoints.only(...s),o),i.not=(...s)=>{const a=t(e.breakpoints.not(...s),o);return a.includes("not all and")?a.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):a}}const r={},l=i=>(n(r,i),r);return n(l),{...e,containerQueries:l}}const Qi={xs:0,sm:600,md:900,lg:1200,xl:1536},rc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qi[e]}px)`},eg={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Qi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function jt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||rc;return t.reduce((o,s,a)=>(o[i.up(i.keys[a])]=n(t[a]),o),{})}if(typeof t=="object"){const i=r.breakpoints||rc;return Object.keys(t).reduce((o,s)=>{if(Zm(i.keys,s)){const a=Jm(r.containerQueries?r:eg,s);a&&(o[a]=n(t[s],s))}else if(Object.keys(i.values||Qi).includes(s)){const a=i.up(s);o[a]=n(t[s],s)}else{const a=s;o[a]=t[a]}return o},{})}return n(t)}function tg(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,l)=>{const i=e.up(l);return r[i]={},r},{}))||{}}function lc(e,t){return e.reduce((n,r)=>{const l=n[r];return(!l||Object.keys(l).length===0)&&delete n[r],n},t)}function Ki(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((l,i)=>l&&l[i]?l[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,l)=>r&&r[l]!=null?r[l]:null,e)}function vi(e,t,n,r=n){let l;return typeof e=="function"?l=e(n):Array.isArray(e)?l=e[n]||r:l=Ki(e,n)||r,t&&(l=t(l,r,e)),l}function ae(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:l}=e,i=o=>{if(o[t]==null)return null;const s=o[t],a=o.theme,u=Ki(a,r)||{};return jt(o,s,h=>{let m=vi(u,l,h);return h===m&&typeof h=="string"&&(m=vi(u,l,`${t}${h==="default"?"":er(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function ng(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const rg={m:"margin",p:"padding"},lg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ic={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ig=ng(e=>{if(e.length>2)if(ic[e])e=ic[e];else return[e];const[t,n]=e.split(""),r=rg[t],l=lg[n]||"";return Array.isArray(l)?l.map(i=>r+i):[r+l]}),Ia=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ma=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ia,...Ma];function sl(e,t,n,r){const l=Ki(e,t,!0)??n;return typeof l=="number"||typeof l=="string"?i=>typeof i=="string"?i:typeof l=="string"?l.startsWith("var(")&&i===0?0:l.startsWith("var(")&&i===1?l:`calc(${i} * ${l})`:l*i:Array.isArray(l)?i=>{if(typeof i=="string")return i;const o=Math.abs(i),s=l[o];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof l=="function"?l:()=>{}}function Fa(e){return sl(e,"spacing",8)}function al(e,t){return typeof t=="string"||t==null?t:e(t)}function og(e,t){return n=>e.reduce((r,l)=>(r[l]=al(t,n),r),{})}function sg(e,t,n,r){if(!t.includes(n))return null;const l=ig(n),i=og(l,r),o=e[n];return jt(e,o,i)}function bd(e,t){const n=Fa(e.theme);return Object.keys(e).map(r=>sg(e,t,r,n)).reduce(Rr,{})}function re(e){return bd(e,Ia)}re.propTypes={};re.filterProps=Ia;function le(e){return bd(e,Ma)}le.propTypes={};le.filterProps=Ma;function Yi(...e){const t=e.reduce((r,l)=>(l.filterProps.forEach(i=>{r[i]=l}),r),{}),n=r=>Object.keys(r).reduce((l,i)=>t[i]?Rr(l,t[i](r)):l,{});return n.propTypes={},n.filterProps=e.reduce((r,l)=>r.concat(l.filterProps),[]),n}function Ye(e){return typeof e!="number"?e:`${e}px solid`}function et(e,t){return ae({prop:e,themeKey:"borders",transform:t})}const ag=et("border",Ye),ug=et("borderTop",Ye),cg=et("borderRight",Ye),fg=et("borderBottom",Ye),dg=et("borderLeft",Ye),pg=et("borderColor"),hg=et("borderTopColor"),mg=et("borderRightColor"),gg=et("borderBottomColor"),yg=et("borderLeftColor"),vg=et("outline",Ye),xg=et("outlineColor"),Gi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sl(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:al(t,r)});return jt(e,e.borderRadius,n)}return null};Gi.propTypes={};Gi.filterProps=["borderRadius"];Yi(ag,ug,cg,fg,dg,pg,hg,mg,gg,yg,Gi,vg,xg);const Xi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sl(e.theme,"spacing",8),n=r=>({gap:al(t,r)});return jt(e,e.gap,n)}return null};Xi.propTypes={};Xi.filterProps=["gap"];const Zi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({columnGap:al(t,r)});return jt(e,e.columnGap,n)}return null};Zi.propTypes={};Zi.filterProps=["columnGap"];const Ji=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({rowGap:al(t,r)});return jt(e,e.rowGap,n)}return null};Ji.propTypes={};Ji.filterProps=["rowGap"];const wg=ae({prop:"gridColumn"}),Sg=ae({prop:"gridRow"}),kg=ae({prop:"gridAutoFlow"}),Cg=ae({prop:"gridAutoColumns"}),_g=ae({prop:"gridAutoRows"}),Eg=ae({prop:"gridTemplateColumns"}),Tg=ae({prop:"gridTemplateRows"}),Pg=ae({prop:"gridTemplateAreas"}),Ng=ae({prop:"gridArea"});Yi(Xi,Zi,Ji,wg,Sg,kg,Cg,_g,Eg,Tg,Pg,Ng);function bn(e,t){return t==="grey"?t:e}const jg=ae({prop:"color",themeKey:"palette",transform:bn}),$g=ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bn}),Og=ae({prop:"backgroundColor",themeKey:"palette",transform:bn});Yi(jg,$g,Og);function Me(e){return e<=1&&e!==0?`${e*100}%`:e}const zg=ae({prop:"width",transform:Me}),Da=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var l,i,o,s,a;const r=((o=(i=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:i.values)==null?void 0:o[n])||Qi[n];return r?((a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Me(n)}};return jt(e,e.maxWidth,t)}return null};Da.filterProps=["maxWidth"];const Ag=ae({prop:"minWidth",transform:Me}),Rg=ae({prop:"height",transform:Me}),Lg=ae({prop:"maxHeight",transform:Me}),Ig=ae({prop:"minHeight",transform:Me});ae({prop:"size",cssProperty:"width",transform:Me});ae({prop:"size",cssProperty:"height",transform:Me});const Mg=ae({prop:"boxSizing"});Yi(zg,Da,Ag,Rg,Lg,Ig,Mg);const qi={border:{themeKey:"borders",transform:Ye},borderTop:{themeKey:"borders",transform:Ye},borderRight:{themeKey:"borders",transform:Ye},borderBottom:{themeKey:"borders",transform:Ye},borderLeft:{themeKey:"borders",transform:Ye},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ye},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gi},color:{themeKey:"palette",transform:bn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bn},backgroundColor:{themeKey:"palette",transform:bn},p:{style:le},pt:{style:le},pr:{style:le},pb:{style:le},pl:{style:le},px:{style:le},py:{style:le},padding:{style:le},paddingTop:{style:le},paddingRight:{style:le},paddingBottom:{style:le},paddingLeft:{style:le},paddingX:{style:le},paddingY:{style:le},paddingInline:{style:le},paddingInlineStart:{style:le},paddingInlineEnd:{style:le},paddingBlock:{style:le},paddingBlockStart:{style:le},paddingBlockEnd:{style:le},m:{style:re},mt:{style:re},mr:{style:re},mb:{style:re},ml:{style:re},mx:{style:re},my:{style:re},margin:{style:re},marginTop:{style:re},marginRight:{style:re},marginBottom:{style:re},marginLeft:{style:re},marginX:{style:re},marginY:{style:re},marginInline:{style:re},marginInlineStart:{style:re},marginInlineEnd:{style:re},marginBlock:{style:re},marginBlockStart:{style:re},marginBlockEnd:{style:re},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:Xi},rowGap:{style:Ji},columnGap:{style:Zi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Me},maxWidth:{style:Da},minWidth:{transform:Me},height:{transform:Me},maxHeight:{transform:Me},minHeight:{transform:Me},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Fg(...e){const t=e.reduce((r,l)=>r.concat(Object.keys(l)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Dg(e,t){return typeof e=="function"?e(t):e}function Bg(){function e(n,r,l,i){const o={[n]:r,theme:l},s=i[n];if(!s)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:g,style:h}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const m=Ki(l,u)||{};return h?h(o):jt(o,r,v=>{let S=vi(m,g,v);return v===S&&typeof v=="string"&&(S=vi(m,g,`${n}${v==="default"?"":er(v)}`,v)),a===!1?S:{[a]:S}})}function t(n){const{sx:r,theme:l={},nested:i}=n||{};if(!r)return null;const o=l.unstable_sxConfig??qi;function s(a){let u=a;if(typeof a=="function")u=a(l);else if(typeof a!="object")return a;if(!u)return null;const g=tg(l.breakpoints),h=Object.keys(g);let m=g;return Object.keys(u).forEach(x=>{const v=Dg(u[x],l);if(v!=null)if(typeof v=="object")if(o[x])m=Rr(m,e(x,v,l,o));else{const S=jt({theme:l},v,_=>({[x]:_}));Fg(S,v)?m[x]=t({sx:v,theme:l,nested:!0}):m=Rr(m,S)}else m=Rr(m,e(x,v,l,o))}),!i&&l.modularCssLayers?{"@layer sx":nc(l,lc(h,m))}:nc(l,lc(h,m))}return Array.isArray(r)?r.map(s):s(r)}return t}const tr=Bg();tr.filterProps=["sx"];function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?ye(or,--Le):0,nr--,ue===10&&(nr=1,to--),ue}function Ue(){return ue=Le2||qr(ue)>3?"":" "}function e0(e,t){for(;--t&&Ue()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return ul(e,bl()+(t<6&>()==32&&Ue()==32))}function As(e){for(;Ue();)switch(ue){case e:return Le;case 34:case 39:e!==34&&e!==39&&As(ue);break;case 40:e===41&&As(e);break;case 92:Ue();break}return Le}function t0(e,t){for(;Ue()&&e+ue!==57;)if(e+ue===84&>()===47)break;return"/*"+ul(t,Le-1)+"*"+eo(e===47?e:Ue())}function n0(e){for(;!qr(gt());)Ue();return ul(e,Le)}function r0(e){return Xd(Ql("",null,null,null,[""],e=Gd(e),0,[0],e))}function Ql(e,t,n,r,l,i,o,s,a){for(var u=0,g=0,h=o,m=0,x=0,v=0,S=1,_=1,d=1,f=0,y="",w=l,T=i,k=r,E=y;_;)switch(v=f,f=Ue()){case 40:if(v!=108&&ye(E,h-1)==58){zs(E+=b(Hl(f),"&","&\f"),"&\f")!=-1&&(d=-1);break}case 34:case 39:case 91:E+=Hl(f);break;case 9:case 10:case 13:case 32:E+=qg(v);break;case 92:E+=e0(bl()-1,7);continue;case 47:switch(gt()){case 42:case 47:$l(l0(t0(Ue(),bl()),t,n),a);break;default:E+="/"}break;case 123*S:s[u++]=ft(E)*d;case 125*S:case 59:case 0:switch(f){case 0:case 125:_=0;case 59+g:d==-1&&(E=b(E,/\f/g,"")),x>0&&ft(E)-h&&$l(x>32?sc(E+";",r,n,h-1):sc(b(E," ","")+";",r,n,h-2),a);break;case 59:E+=";";default:if($l(k=oc(E,t,n,u,g,l,s,y,w=[],T=[],h),i),f===123)if(g===0)Ql(E,t,k,k,w,i,h,s,T);else switch(m===99&&ye(E,3)===110?100:m){case 100:case 108:case 109:case 115:Ql(e,k,k,r&&$l(oc(e,k,k,0,0,l,s,y,l,w=[],h),T),l,T,h,s,r?w:T);break;default:Ql(E,k,k,k,[""],T,0,s,T)}}u=g=x=0,S=d=1,y=E="",h=o;break;case 58:h=1+ft(E),x=v;default:if(S<1){if(f==123)--S;else if(f==125&&S++==0&&Jg()==125)continue}switch(E+=eo(f),f*S){case 38:d=g>0?1:(E+="\f",-1);break;case 44:s[u++]=(ft(E)-1)*d,d=1;break;case 64:gt()===45&&(E+=Hl(Ue())),m=gt(),g=h=ft(y=E+=n0(bl())),f++;break;case 45:v===45&&ft(E)==2&&(S=0)}}return i}function oc(e,t,n,r,l,i,o,s,a,u,g){for(var h=l-1,m=l===0?i:[""],x=Wa(m),v=0,S=0,_=0;v0?m[d]+" "+f:b(f,/&\f/g,m[d])))&&(a[_++]=y);return no(e,t,n,l===0?Ba:s,a,u,g)}function l0(e,t,n){return no(e,t,n,Hd,eo(Zg()),Jr(e,2,-2),0)}function sc(e,t,n,r){return no(e,t,n,Ua,Jr(e,0,r),Jr(e,r+1,-1),r)}function Hn(e,t){for(var n="",r=Wa(e),l=0;l6)switch(ye(e,t+1)){case 109:if(ye(e,t+4)!==45)break;case 102:return b(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+xi+(ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zs(e,"stretch")?Jd(b(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ye(e,t+1)!==115)break;case 6444:switch(ye(e,ft(e)-3-(~zs(e,"!important")&&10))){case 107:return b(e,":",":"+V)+e;case 101:return b(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(ye(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(ye(e,t+11)){case 114:return V+e+Ce+b(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+Ce+b(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+Ce+b(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+Ce+e+e}return e}var p0=function(t,n,r,l){if(t.length>-1&&!t.return)switch(t.type){case Ua:t.return=Jd(t.value,t.length);break;case Qd:return Hn([gr(t,{value:b(t.value,"@","@"+V)})],l);case Ba:if(t.length)return Xg(t.props,function(i){switch(Gg(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hn([gr(t,{props:[b(i,/:(read-\w+)/,":"+xi+"$1")]})],l);case"::placeholder":return Hn([gr(t,{props:[b(i,/:(plac\w+)/,":"+V+"input-$1")]}),gr(t,{props:[b(i,/:(plac\w+)/,":"+xi+"$1")]}),gr(t,{props:[b(i,/:(plac\w+)/,Ce+"input-$1")]})],l)}return""})}},h0=[p0],m0=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(S){var _=S.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var l=t.stylisPlugins||h0,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var _=S.getAttribute("data-emotion").split(" "),d=1;d<_.length;d++)i[_[d]]=!0;s.push(S)});var a,u=[f0,d0];{var g,h=[i0,s0(function(S){g.insert(S)})],m=o0(u.concat(l,h)),x=function(_){return Hn(r0(_),m)};a=function(_,d,f,y){g=f,x(_?_+"{"+d.styles+"}":d.styles),y&&(v.inserted[d.name]=!0)}}var v={key:n,sheet:new Vg({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:a};return v.sheet.hydrate(s),v},g0=!0;function y0(e,t,n){var r="";return n.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(r+=l+" ")}),r}var qd=function(t,n,r){var l=t.key+"-"+n.name;(r===!1||g0===!1)&&t.registered[l]===void 0&&(t.registered[l]=n.styles)},v0=function(t,n,r){qd(t,n,r);var l=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+l:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function x0(e){for(var t=0,n,r=0,l=e.length;l>=4;++r,l-=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(l){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 w0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},S0=/[A-Z]|^ms/g,k0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ep=function(t){return t.charCodeAt(1)===45},uc=function(t){return t!=null&&typeof t!="boolean"},Lo=Zd(function(e){return ep(e)?e:e.replace(S0,"-$&").toLowerCase()}),cc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(k0,function(r,l,i){return dt={name:l,styles:i,next:dt},l})}return w0[t]!==1&&!ep(t)&&typeof n=="number"&&n!==0?n+"px":n};function el(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var l=n;if(l.anim===1)return dt={name:l.name,styles:l.styles,next:dt},l.name;var i=n;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)dt={name:o.name,styles:o.styles,next:dt},o=o.next;var s=i.styles+";";return s}return C0(e,t,n)}case"function":{if(e!==void 0){var a=dt,u=n(e);return dt=a,el(e,t,u)}break}}var g=n;if(t==null)return g;var h=t[g];return h!==void 0?h:g}function C0(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l96?O0:z0},pc=function(t,n,r){var l;if(n){var i=n.shouldForwardProp;l=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof l!="function"&&r&&(l=t.__emotion_forwardProp),l},A0=function(t){var n=t.cache,r=t.serialized,l=t.isStringTag;return qd(n,r,l),T0(function(){return v0(n,r,l)}),null},R0=function e(t,n){var r=t.__emotion_real===t,l=r&&t.__emotion_base||t,i,o;n!==void 0&&(i=n.label,o=n.target);var s=pc(t,n,r),a=s||dc(l),u=!a("as");return function(){var g=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),g[0]==null||g[0].raw===void 0)h.push.apply(h,g);else{var m=g[0];h.push(m[0]);for(var x=g.length,v=1;v{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)=>({...n,[r.key]:r.val}),{})};function D0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...l}=e,i=F0(t),o=Object.keys(i);function s(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function a(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function u(m,x){const v=o.indexOf(x);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(v!==-1&&typeof t[o[v]]=="number"?t[o[v]]:x)-r/100}${n})`}function g(m){return o.indexOf(m)+1(r.length===0?[1]:r).map(i=>{const o=t(i);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function U0(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let l=n.getColorSchemeSelector(e);return l==="&"?t:((l.includes("data-")||l.includes("."))&&(l=`*:where(${l.replace(/\s*&$/,"")}) &`),{[l]:t})}return n.palette.mode===e?t:{}}function lp(e={},...t){const{breakpoints:n={},palette:r={},spacing:l,shape:i={},...o}=e,s=D0(n),a=rp(l);let u=Be({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:a,shape:{...B0,...i}},o);return u=qm(u),u.applyStyles=U0,u=t.reduce((g,h)=>Be(g,h),u),u.unstable_sxConfig={...qi,...o==null?void 0:o.unstable_sxConfig},u.unstable_sx=function(h){return tr({sx:h,theme:this})},u}const W0={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 ip(e,t,n="Mui"){const r=W0[t];return r?`${n}-${r}`:`${Km.generate(e)}-${t}`}function V0(e,t,n="Mui"){const r={};return t.forEach(l=>{r[l]=ip(e,l,n)}),r}function op(e){const{variants:t,...n}=e,r={variants:t,style:fn(n),isProcessed:!0};return r.style===n||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=fn(l.style))}),r}const b0=lp();function Io(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function an(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function H0(e){return e?(t,n)=>n[e]:null}function Q0(e,t,n){e.theme=G0(e.theme)?n:e.theme[t]||e.theme}function Kl(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(l=>Kl(e,l,n));if(Array.isArray(r==null?void 0:r.variants)){let l;if(r.isProcessed)l=n?an(r.style,n):r.style;else{const{variants:i,...o}=r;l=n?an(fn(o),n):o}return sp(e,r.variants,[l],n)}return r!=null&&r.isProcessed?n?an(fn(r.style),n):r.style:n?an(fn(r),n):r}function sp(e,t,n=[],r=void 0){var i;let l;e:for(let o=0;o{M0(s,k=>k.filter(E=>E!==tr));const{name:u,slot:g,skipVariantsResolver:h,skipSx:m,overridesResolver:x=H0(Z0(g)),...v}=a,S=u&&u.startsWith("Mui")||g?"components":"custom",_=h!==void 0?h:g&&g!=="Root"&&g!=="root"||!1,d=m||!1;let f=Io;g==="Root"||g==="root"?f=r:g?f=l:X0(s)&&(f=void 0);const y=I0(s,{shouldForwardProp:f,label:Y0(),...v}),w=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function($){return Kl($,k,$.theme.modularCssLayers?S:void 0)};if(St(k)){const E=op(k);return function(M){return E.variants?Kl(M,E,M.theme.modularCssLayers?S:void 0):M.theme.modularCssLayers?an(E.style,S):E.style}}return k},T=(...k)=>{const E=[],$=k.map(w),M=[];if(E.push(i),u&&x&&M.push(function(O){var we,j;const L=(j=(we=O.theme.components)==null?void 0:we[u])==null?void 0:j.styleOverrides;if(!L)return null;const W={};for(const R in L)W[R]=Kl(O,L[R],O.theme.modularCssLayers?"theme":void 0);return x(O,W)}),u&&!_&&M.push(function(O){var W,we;const N=O.theme,L=(we=(W=N==null?void 0:N.components)==null?void 0:W[u])==null?void 0:we.variants;return L?sp(O,L,[],O.theme.modularCssLayers?"theme":void 0):null}),d||M.push(tr),Array.isArray($[0])){const c=$.shift(),O=new Array(E.length).fill(""),N=new Array(M.length).fill("");let L;L=[...O,...c,...N],L.raw=[...O,...c.raw,...N],E.unshift(L)}const A=[...E,...$,...M],D=y(...A);return s.muiName&&(D.muiName=s.muiName),D};return y.withConfig&&(T.withConfig=y.withConfig),T}}function Y0(e,t){return void 0}function G0(e){for(const t in e)return!1;return!0}function X0(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Z0(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ls(e,t,n=!1){const r={...t};for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){const i=l;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const o=e[i],s=t[i];if(!s)r[i]=o||{};else if(!o)r[i]=s;else{r[i]={...s};for(const a in o)if(Object.prototype.hasOwnProperty.call(o,a)){const u=a;r[i][u]=Ls(o[u],s[u],n)}}}else i==="className"&&n&&t.className?r.className=Bd(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function J0(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Va(e,t=0,n=1){return J0(e,t,n)}function q0(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,l)=>l<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Gt(e){if(e.type)return e;if(e.charAt(0)==="#")return Gt(q0(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(yn(9,e));let r=e.substring(t+1,e.length-1),l;if(n==="color"){if(r=r.split(" "),l=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw new Error(yn(10,l))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:l}}const ey=e=>{const t=Gt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Cr=(e,t)=>{try{return ey(e)}catch{return e}};function ro(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((l,i)=>i<3?parseInt(l,10):l):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ap(e){e=Gt(e);const{values:t}=e,n=t[0],r=t[1]/100,l=t[2]/100,i=r*Math.min(l,1-l),o=(u,g=(u+n/30)%12)=>l-i*Math.max(Math.min(g-3,9-g,1),-1);let s="rgb";const a=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",a.push(t[3])),ro({type:s,values:a})}function Is(e){e=Gt(e);let t=e.type==="hsl"||e.type==="hsla"?Gt(ap(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 ty(e,t){const n=Is(e),r=Is(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function up(e,t){return e=Gt(e),t=Va(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ro(e)}function tn(e,t,n){try{return up(e,t)}catch{return e}}function lo(e,t){if(e=Gt(e),t=Va(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ro(e)}function H(e,t,n){try{return lo(e,t)}catch{return e}}function io(e,t){if(e=Gt(e),t=Va(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ro(e)}function Q(e,t,n){try{return io(e,t)}catch{return e}}function ny(e,t=.15){return Is(e)>.5?lo(e,t):io(e,t)}function Ol(e,t,n){try{return ny(e,t)}catch{return e}}const ry=I.createContext(void 0);function ly(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const l=t.components[n];return l.defaultProps?Ls(l.defaultProps,r,t.components.mergeClassNameAndStyle):!l.styleOverrides&&!l.variants?Ls(l,r,t.components.mergeClassNameAndStyle):r}function iy({props:e,name:t}){const n=I.useContext(ry);return ly({props:e,name:t,theme:{components:n}})}const mc={theme:void 0};function oy(e){let t,n;return function(l){let i=t;return(i===void 0||l.theme!==n)&&(mc.theme=l.theme,i=op(e(mc)),t=i,n=l.theme),i}}function sy(e=""){function t(...r){if(!r.length)return"";const l=r[0];return typeof l=="string"&&!l.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${l}${t(...r.slice(1))})`:`, ${l}`}return(r,...l)=>`var(--${e?`${e}-`:""}${r}${t(...l)})`}const gc=(e,t,n,r=[])=>{let l=e;t.forEach((i,o)=>{o===t.length-1?Array.isArray(l)?l[Number(i)]=n:l&&typeof l=="object"&&(l[i]=n):l&&typeof l=="object"&&(l[i]||(l[i]=r.includes(i)?[]:{}),l=l[i])})},ay=(e,t,n)=>{function r(l,i=[],o=[]){Object.entries(l).forEach(([s,a])=>{(!n||n&&!n([...i,s]))&&a!=null&&(typeof a=="object"&&Object.keys(a).length>0?r(a,[...i,s],Array.isArray(a)?[...o,s]:o):t([...i,s],a,o))})}r(e)},uy=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Mo(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},l={},i={},o={};return ay(e,(s,a,u)=>{if((typeof a=="string"||typeof a=="number")&&(!r||!r(s,a))){const g=`--${n?`${n}-`:""}${s.join("-")}`,h=uy(s,a);Object.assign(l,{[g]:h}),gc(i,s,`var(${g})`,u),gc(o,s,`var(${g}, ${h})`,u)}},s=>s[0]==="vars"),{css:l,vars:i,varsWithDefaults:o}}function cy(e,t={}){const{getSelector:n=d,disableCssColorScheme:r,colorSchemeSelector:l,enableContrastVars:i}=t,{colorSchemes:o={},components:s,defaultColorScheme:a="light",...u}=e,{vars:g,css:h,varsWithDefaults:m}=Mo(u,t);let x=m;const v={},{[a]:S,..._}=o;if(Object.entries(_||{}).forEach(([w,T])=>{const{vars:k,css:E,varsWithDefaults:$}=Mo(T,t);x=Be(x,$),v[w]={css:E,vars:k}}),S){const{css:w,vars:T,varsWithDefaults:k}=Mo(S,t);x=Be(x,k),v[a]={css:w,vars:T}}function d(w,T){var E,$;let k=l;if(l==="class"&&(k=".%s"),l==="data"&&(k="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(k=`[${l}="%s"]`),w){if(k==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${(($=(E=o[w])==null?void 0:E.palette)==null?void 0:$.mode)||w})`]:{":root":T}};if(k)return e.defaultColorScheme===w?`:root, ${k.replace("%s",String(w))}`:k.replace("%s",String(w))}return":root"}return{vars:x,generateThemeVars:()=>{let w={...g};return Object.entries(v).forEach(([,{vars:T}])=>{w=Be(w,T)}),w},generateStyleSheets:()=>{var M,A;const w=[],T=e.defaultColorScheme||"light";function k(D,c){Object.keys(c).length&&w.push(typeof D=="string"?{[D]:{...c}}:D)}k(n(void 0,{...h}),h);const{[T]:E,...$}=v;if(E){const{css:D}=E,c=(A=(M=o[T])==null?void 0:M.palette)==null?void 0:A.mode,O=!r&&c?{colorScheme:c,...D}:{...D};k(n(T,{...O}),O)}return Object.entries($).forEach(([D,{css:c}])=>{var L,W;const O=(W=(L=o[D])==null?void 0:L.palette)==null?void 0:W.mode,N=!r&&O?{colorScheme:O,...c}:{...c};k(n(D,{...N}),N)}),i&&w.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),w}}}function fy(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const tl={black:"#000",white:"#fff"},dy={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"},Sn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},kn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},yr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Cn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},_n={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},En={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function cp(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:tl.white,default:tl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const fp=cp();function dp(){return{text:{primary:tl.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:tl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ms=dp();function yc(e,t,n,r){const l=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=io(e.main,l):t==="dark"&&(e.dark=lo(e.main,i)))}function vc(e,t,n,r,l){const i=l.light||l,o=l.dark||l*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function py(e="light"){return e==="dark"?{main:Cn[200],light:Cn[50],dark:Cn[400]}:{main:Cn[700],light:Cn[400],dark:Cn[800]}}function hy(e="light"){return e==="dark"?{main:Sn[200],light:Sn[50],dark:Sn[400]}:{main:Sn[500],light:Sn[300],dark:Sn[700]}}function my(e="light"){return e==="dark"?{main:kn[500],light:kn[300],dark:kn[700]}:{main:kn[700],light:kn[400],dark:kn[800]}}function gy(e="light"){return e==="dark"?{main:_n[400],light:_n[300],dark:_n[700]}:{main:_n[700],light:_n[500],dark:_n[900]}}function yy(e="light"){return e==="dark"?{main:En[400],light:En[300],dark:En[700]}:{main:En[800],light:En[500],dark:En[900]}}function vy(e="light"){return e==="dark"?{main:yr[400],light:yr[300],dark:yr[700]}:{main:"#ed6c02",light:yr[500],dark:yr[900]}}function xy(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ba(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:l,...i}=e,o=e.primary||py(t),s=e.secondary||hy(t),a=e.error||my(t),u=e.info||gy(t),g=e.success||yy(t),h=e.warning||vy(t);function m(_){return l?xy(_):ty(_,Ms.text.primary)>=n?Ms.text.primary:fp.text.primary}const x=({color:_,name:d,mainShade:f=500,lightShade:y=300,darkShade:w=700})=>{if(_={..._},!_.main&&_[f]&&(_.main=_[f]),!_.hasOwnProperty("main"))throw new Error(yn(11,d?` (${d})`:"",f));if(typeof _.main!="string")throw new Error(yn(12,d?` (${d})`:"",JSON.stringify(_.main)));return l?(vc(l,_,"light",y,r),vc(l,_,"dark",w,r)):(yc(_,"light",y,r),yc(_,"dark",w,r)),_.contrastText||(_.contrastText=m(_.main)),_};let v;return t==="light"?v=cp():t==="dark"&&(v=dp()),Be({common:{...tl},mode:t,primary:x({color:o,name:"primary"}),secondary:x({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:a,name:"error"}),warning:x({color:h,name:"warning"}),info:x({color:u,name:"info"}),success:x({color:g,name:"success"}),grey:dy,contrastThreshold:n,getContrastText:m,augmentColor:x,tonalOffset:r,...v},i)}function wy(e){const t={};return Object.entries(e).forEach(r=>{const[l,i]=r;typeof i=="object"&&(t[l]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function Sy(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function ky(e){return Math.round(e*1e5)/1e5}const xc={textTransform:"uppercase"},wc='"Roboto", "Helvetica", "Arial", sans-serif';function Cy(e,t){const{fontFamily:n=wc,fontSize:r=14,fontWeightLight:l=300,fontWeightRegular:i=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:a=16,allVariants:u,pxToRem:g,...h}=typeof t=="function"?t(e):t,m=r/14,x=g||(_=>`${_/a*m}rem`),v=(_,d,f,y,w)=>({fontFamily:n,fontWeight:_,fontSize:x(d),lineHeight:f,...n===wc?{letterSpacing:`${ky(y/d)}em`}:{},...w,...u}),S={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(o,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(o,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(o,14,1.75,.4,xc),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,xc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Be({htmlFontSize:a,pxToRem:x,fontFamily:n,fontSize:r,fontWeightLight:l,fontWeightRegular:i,fontWeightMedium:o,fontWeightBold:s,...S},h,{clone:!1})}const _y=.2,Ey=.14,Ty=.12;function J(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_y})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ey})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ty})`].join(",")}const Py=["none",J(0,2,1,-1,0,1,1,0,0,1,3,0),J(0,3,1,-2,0,2,2,0,0,1,5,0),J(0,3,3,-2,0,3,4,0,0,1,8,0),J(0,2,4,-1,0,4,5,0,0,1,10,0),J(0,3,5,-1,0,5,8,0,0,1,14,0),J(0,3,5,-1,0,6,10,0,0,1,18,0),J(0,4,5,-2,0,7,10,1,0,2,16,1),J(0,5,5,-3,0,8,10,1,0,3,14,2),J(0,5,6,-3,0,9,12,1,0,3,16,2),J(0,6,6,-3,0,10,14,1,0,4,18,3),J(0,6,7,-4,0,11,15,1,0,4,20,3),J(0,7,8,-4,0,12,17,2,0,5,22,4),J(0,7,8,-4,0,13,19,2,0,5,24,4),J(0,7,9,-4,0,14,21,2,0,5,26,4),J(0,8,9,-5,0,15,22,2,0,6,28,5),J(0,8,10,-5,0,16,24,2,0,6,30,5),J(0,8,11,-5,0,17,26,2,0,6,32,5),J(0,9,11,-5,0,18,28,2,0,7,34,6),J(0,9,12,-6,0,19,29,2,0,7,36,6),J(0,10,13,-6,0,20,31,3,0,8,38,7),J(0,10,13,-6,0,21,33,3,0,8,40,7),J(0,10,14,-6,0,22,35,3,0,8,42,7),J(0,11,14,-7,0,23,36,3,0,9,44,8),J(0,11,15,-7,0,24,38,3,0,9,46,8)],Ny={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)"},jy={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sc(e){return`${Math.round(e)}ms`}function $y(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Oy(e){const t={...Ny,...e.easing},n={...jy,...e.duration};return{getAutoHeightDuration:$y,create:(l=["all"],i={})=>{const{duration:o=n.standard,easing:s=t.easeInOut,delay:a=0,...u}=i;return(Array.isArray(l)?l:[l]).map(g=>`${g} ${typeof o=="string"?o:Sc(o)} ${s} ${typeof a=="string"?a:Sc(a)}`).join(",")},...e,easing:t,duration:n}}const zy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ay(e){return St(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function pp(e={}){const t={...e};function n(r){const l=Object.entries(r);for(let i=0;i{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;rBe(v,S),x),x.unstable_sxConfig={...qi,...g==null?void 0:g.unstable_sxConfig},x.unstable_sx=function(S){return tr({sx:S,theme:this})},x.toRuntimeSource=pp,Ly(x),x}function Iy(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const My=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Iy(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function hp(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function mp(e){return e==="dark"?My:[]}function Fy(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:l,...i}=e,o=ba({...t,colorSpace:l});return{palette:o,opacity:{...hp(o.mode),...n},overlays:r||mp(o.mode),...i}}function Dy(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const By=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Uy=e=>(t,n)=>{const r=e.rootSelector||":root",l=e.colorSchemeSelector;let i=l;if(l==="class"&&(i=".%s"),l==="data"&&(i="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(i=`[${l}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return By(e.cssVarPrefix).forEach(s=>{o[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Wy(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function C(e,t,n){!e[t]&&n&&(e[t]=n)}function _r(e){return typeof e!="string"||!e.startsWith("hsl")?e:ap(e)}function yt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Cr(_r(e[t])))}function Vy(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ut=e=>{try{return e()}catch{}},by=(e="mui")=>sy(e);function Fo(e,t,n,r,l){if(!n)return;n=n===!0?{}:n;const i=l==="dark"?"dark":"light";if(!r){t[l]=Fy({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:o,...s}=Fs({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[l]={...n,palette:o,opacity:{...hp(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||mp(i)},s}function Hy(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:l=!1,cssVarPrefix:i="mui",nativeColor:o=!1,shouldSkipGeneratingVar:s=Dy,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...g}=e,h=Object.keys(n)[0],m=r||(n.light&&h!=="light"?"light":h),x=by(i),{[m]:v,light:S,dark:_,...d}=n,f={...d};let y=v;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(y=!0),!y)throw new Error(yn(21,m));let w;o&&(w="oklch");const T=Fo(w,f,y,g,m);S&&!f.light&&Fo(w,f,S,void 0,"light"),_&&!f.dark&&Fo(w,f,_,void 0,"dark");let k={defaultColorScheme:m,...T,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:u,getCssVar:x,colorSchemes:f,font:{...wy(T.typography),...T.font},spacing:Vy(g.spacing)};Object.keys(k.colorSchemes).forEach(D=>{const c=k.colorSchemes[D].palette,O=L=>{const W=L.split("-"),we=W[1],j=W[2];return x(L,c[we][j])};c.mode==="light"&&(C(c.common,"background","#fff"),C(c.common,"onBackground","#000")),c.mode==="dark"&&(C(c.common,"background","#000"),C(c.common,"onBackground","#fff"));function N(L,W,we){if(w){let j;return L===tn&&(j=`transparent ${((1-we)*100).toFixed(0)}%`),L===H&&(j=`#000 ${(we*100).toFixed(0)}%`),L===Q&&(j=`#fff ${(we*100).toFixed(0)}%`),`color-mix(in ${w}, ${W}, ${j})`}return L(W,we)}if(Wy(c,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),c.mode==="light"){C(c.Alert,"errorColor",N(H,c.error.light,.6)),C(c.Alert,"infoColor",N(H,c.info.light,.6)),C(c.Alert,"successColor",N(H,c.success.light,.6)),C(c.Alert,"warningColor",N(H,c.warning.light,.6)),C(c.Alert,"errorFilledBg",O("palette-error-main")),C(c.Alert,"infoFilledBg",O("palette-info-main")),C(c.Alert,"successFilledBg",O("palette-success-main")),C(c.Alert,"warningFilledBg",O("palette-warning-main")),C(c.Alert,"errorFilledColor",ut(()=>c.getContrastText(c.error.main))),C(c.Alert,"infoFilledColor",ut(()=>c.getContrastText(c.info.main))),C(c.Alert,"successFilledColor",ut(()=>c.getContrastText(c.success.main))),C(c.Alert,"warningFilledColor",ut(()=>c.getContrastText(c.warning.main))),C(c.Alert,"errorStandardBg",N(Q,c.error.light,.9)),C(c.Alert,"infoStandardBg",N(Q,c.info.light,.9)),C(c.Alert,"successStandardBg",N(Q,c.success.light,.9)),C(c.Alert,"warningStandardBg",N(Q,c.warning.light,.9)),C(c.Alert,"errorIconColor",O("palette-error-main")),C(c.Alert,"infoIconColor",O("palette-info-main")),C(c.Alert,"successIconColor",O("palette-success-main")),C(c.Alert,"warningIconColor",O("palette-warning-main")),C(c.AppBar,"defaultBg",O("palette-grey-100")),C(c.Avatar,"defaultBg",O("palette-grey-400")),C(c.Button,"inheritContainedBg",O("palette-grey-300")),C(c.Button,"inheritContainedHoverBg",O("palette-grey-A100")),C(c.Chip,"defaultBorder",O("palette-grey-400")),C(c.Chip,"defaultAvatarColor",O("palette-grey-700")),C(c.Chip,"defaultIconColor",O("palette-grey-700")),C(c.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),C(c.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),C(c.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),C(c.LinearProgress,"primaryBg",N(Q,c.primary.main,.62)),C(c.LinearProgress,"secondaryBg",N(Q,c.secondary.main,.62)),C(c.LinearProgress,"errorBg",N(Q,c.error.main,.62)),C(c.LinearProgress,"infoBg",N(Q,c.info.main,.62)),C(c.LinearProgress,"successBg",N(Q,c.success.main,.62)),C(c.LinearProgress,"warningBg",N(Q,c.warning.main,.62)),C(c.Skeleton,"bg",w?N(tn,c.text.primary,.11):`rgba(${O("palette-text-primaryChannel")} / 0.11)`),C(c.Slider,"primaryTrack",N(Q,c.primary.main,.62)),C(c.Slider,"secondaryTrack",N(Q,c.secondary.main,.62)),C(c.Slider,"errorTrack",N(Q,c.error.main,.62)),C(c.Slider,"infoTrack",N(Q,c.info.main,.62)),C(c.Slider,"successTrack",N(Q,c.success.main,.62)),C(c.Slider,"warningTrack",N(Q,c.warning.main,.62));const L=w?N(H,c.background.default,.6825):Ol(c.background.default,.8);C(c.SnackbarContent,"bg",L),C(c.SnackbarContent,"color",ut(()=>w?Ms.text.primary:c.getContrastText(L))),C(c.SpeedDialAction,"fabHoverBg",Ol(c.background.paper,.15)),C(c.StepConnector,"border",O("palette-grey-400")),C(c.StepContent,"border",O("palette-grey-400")),C(c.Switch,"defaultColor",O("palette-common-white")),C(c.Switch,"defaultDisabledColor",O("palette-grey-100")),C(c.Switch,"primaryDisabledColor",N(Q,c.primary.main,.62)),C(c.Switch,"secondaryDisabledColor",N(Q,c.secondary.main,.62)),C(c.Switch,"errorDisabledColor",N(Q,c.error.main,.62)),C(c.Switch,"infoDisabledColor",N(Q,c.info.main,.62)),C(c.Switch,"successDisabledColor",N(Q,c.success.main,.62)),C(c.Switch,"warningDisabledColor",N(Q,c.warning.main,.62)),C(c.TableCell,"border",N(Q,N(tn,c.divider,1),.88)),C(c.Tooltip,"bg",N(tn,c.grey[700],.92))}if(c.mode==="dark"){C(c.Alert,"errorColor",N(Q,c.error.light,.6)),C(c.Alert,"infoColor",N(Q,c.info.light,.6)),C(c.Alert,"successColor",N(Q,c.success.light,.6)),C(c.Alert,"warningColor",N(Q,c.warning.light,.6)),C(c.Alert,"errorFilledBg",O("palette-error-dark")),C(c.Alert,"infoFilledBg",O("palette-info-dark")),C(c.Alert,"successFilledBg",O("palette-success-dark")),C(c.Alert,"warningFilledBg",O("palette-warning-dark")),C(c.Alert,"errorFilledColor",ut(()=>c.getContrastText(c.error.dark))),C(c.Alert,"infoFilledColor",ut(()=>c.getContrastText(c.info.dark))),C(c.Alert,"successFilledColor",ut(()=>c.getContrastText(c.success.dark))),C(c.Alert,"warningFilledColor",ut(()=>c.getContrastText(c.warning.dark))),C(c.Alert,"errorStandardBg",N(H,c.error.light,.9)),C(c.Alert,"infoStandardBg",N(H,c.info.light,.9)),C(c.Alert,"successStandardBg",N(H,c.success.light,.9)),C(c.Alert,"warningStandardBg",N(H,c.warning.light,.9)),C(c.Alert,"errorIconColor",O("palette-error-main")),C(c.Alert,"infoIconColor",O("palette-info-main")),C(c.Alert,"successIconColor",O("palette-success-main")),C(c.Alert,"warningIconColor",O("palette-warning-main")),C(c.AppBar,"defaultBg",O("palette-grey-900")),C(c.AppBar,"darkBg",O("palette-background-paper")),C(c.AppBar,"darkColor",O("palette-text-primary")),C(c.Avatar,"defaultBg",O("palette-grey-600")),C(c.Button,"inheritContainedBg",O("palette-grey-800")),C(c.Button,"inheritContainedHoverBg",O("palette-grey-700")),C(c.Chip,"defaultBorder",O("palette-grey-700")),C(c.Chip,"defaultAvatarColor",O("palette-grey-300")),C(c.Chip,"defaultIconColor",O("palette-grey-300")),C(c.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),C(c.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),C(c.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),C(c.LinearProgress,"primaryBg",N(H,c.primary.main,.5)),C(c.LinearProgress,"secondaryBg",N(H,c.secondary.main,.5)),C(c.LinearProgress,"errorBg",N(H,c.error.main,.5)),C(c.LinearProgress,"infoBg",N(H,c.info.main,.5)),C(c.LinearProgress,"successBg",N(H,c.success.main,.5)),C(c.LinearProgress,"warningBg",N(H,c.warning.main,.5)),C(c.Skeleton,"bg",w?N(tn,c.text.primary,.13):`rgba(${O("palette-text-primaryChannel")} / 0.13)`),C(c.Slider,"primaryTrack",N(H,c.primary.main,.5)),C(c.Slider,"secondaryTrack",N(H,c.secondary.main,.5)),C(c.Slider,"errorTrack",N(H,c.error.main,.5)),C(c.Slider,"infoTrack",N(H,c.info.main,.5)),C(c.Slider,"successTrack",N(H,c.success.main,.5)),C(c.Slider,"warningTrack",N(H,c.warning.main,.5));const L=w?N(Q,c.background.default,.985):Ol(c.background.default,.98);C(c.SnackbarContent,"bg",L),C(c.SnackbarContent,"color",ut(()=>w?fp.text.primary:c.getContrastText(L))),C(c.SpeedDialAction,"fabHoverBg",Ol(c.background.paper,.15)),C(c.StepConnector,"border",O("palette-grey-600")),C(c.StepContent,"border",O("palette-grey-600")),C(c.Switch,"defaultColor",O("palette-grey-300")),C(c.Switch,"defaultDisabledColor",O("palette-grey-600")),C(c.Switch,"primaryDisabledColor",N(H,c.primary.main,.55)),C(c.Switch,"secondaryDisabledColor",N(H,c.secondary.main,.55)),C(c.Switch,"errorDisabledColor",N(H,c.error.main,.55)),C(c.Switch,"infoDisabledColor",N(H,c.info.main,.55)),C(c.Switch,"successDisabledColor",N(H,c.success.main,.55)),C(c.Switch,"warningDisabledColor",N(H,c.warning.main,.55)),C(c.TableCell,"border",N(H,N(tn,c.divider,1),.68)),C(c.Tooltip,"bg",N(tn,c.grey[700],.92))}yt(c.background,"default"),yt(c.background,"paper"),yt(c.common,"background"),yt(c.common,"onBackground"),yt(c,"divider"),Object.keys(c).forEach(L=>{const W=c[L];L!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&C(c[L],"mainChannel",Cr(_r(W.main))),W.light&&C(c[L],"lightChannel",Cr(_r(W.light))),W.dark&&C(c[L],"darkChannel",Cr(_r(W.dark))),W.contrastText&&C(c[L],"contrastTextChannel",Cr(_r(W.contrastText))),L==="text"&&(yt(c[L],"primary"),yt(c[L],"secondary")),L==="action"&&(W.active&&yt(c[L],"active"),W.selected&&yt(c[L],"selected")))})}),k=t.reduce((D,c)=>Be(D,c),k);const E={prefix:i,disableCssColorScheme:l,shouldSkipGeneratingVar:s,getSelector:Uy(k),enableContrastVars:o},{vars:$,generateThemeVars:M,generateStyleSheets:A}=cy(k,E);return k.vars=$,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([D,c])=>{k[D]=c}),k.generateThemeVars=M,k.generateStyleSheets=A,k.generateSpacing=function(){return rp(g.spacing,Fa(this))},k.getColorSchemeSelector=fy(a),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=s,k.unstable_sxConfig={...qi,...g==null?void 0:g.unstable_sxConfig},k.unstable_sx=function(c){return tr({sx:c,theme:this})},k.toRuntimeSource=pp,k}function Cc(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ba({...n===!0?{}:n.palette,mode:t})})}function Qy(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:l=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...o}=e,s=i||"light",a=l==null?void 0:l[s],u={...l,...n?{[s]:{...typeof a!="boolean"&&a,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Fs(e,...t);let g=n;"palette"in e||u[s]&&(u[s]!==!0?g=u[s].palette:s==="dark"&&(g={mode:"dark"}));const h=Fs({...e,palette:g},...t);return h.defaultColorScheme=s,h.colorSchemes=u,h.palette.mode==="light"&&(h.colorSchemes.light={...u.light!==!0&&u.light,palette:h.palette},Cc(h,"dark",u.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:h.palette},Cc(h,"light",u.light)),h}return!n&&!("light"in u)&&s==="light"&&(u.light=!0),Hy({...o,colorSchemes:u,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const Ky=Qy(),Yy="$$material";function Gy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xy=e=>Gy(e)&&e!=="classes",Zy=K0({themeId:Yy,defaultTheme:Ky,rootShouldForwardProp:Xy}),Jy=oy;function qy(e){return iy(e)}function ev(e){return ip("MuiSvgIcon",e)}V0("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tv=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${er(t)}`,`fontSize${er(n)}`]};return Ym(l,ev,r)},nv=Zy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${er(n.color)}`],t[`fontSize${er(n.fontSize)}`]]}})(Jy(({theme:e})=>{var t,n,r,l,i,o,s,a,u,g,h,m,x,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(l=(t=e.transitions)==null?void 0:t.create)==null?void 0:l.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:o.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((a=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:a.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((g=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:g.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,S])=>S&&S.main).map(([S])=>{var _,d;return{props:{color:S},style:{color:(d=(_=(e.vars??e).palette)==null?void 0:_[S])==null?void 0:d.main}}}),{props:{color:"action"},style:{color:(m=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(v=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ds=I.forwardRef(function(t,n){const r=qy({props:t,name:"MuiSvgIcon"}),{children:l,className:i,color:o="inherit",component:s="svg",fontSize:a="medium",htmlColor:u,inheritViewBox:g=!1,titleAccess:h,viewBox:m="0 0 24 24",...x}=r,v=I.isValidElement(l)&&l.type==="svg",S={...r,color:o,component:s,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:g,viewBox:m,hasSvgAsChild:v},_={};g||(_.viewBox=m);const d=tv(S);return p.jsxs(nv,{as:s,className:Bd(d.root,i),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,..._,...x,...v&&l.props,ownerState:S,children:[v?l.props.children:l,h?p.jsx("title",{children:h}):null]})});Ds.muiName="SvgIcon";function Ot(e,t){function n(r,l){return p.jsx(Ds,{"data-testid":void 0,ref:l,...r,children:e})}return n.muiName=Ds.muiName,I.memo(I.forwardRef(n))}const rv=Ot(p.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-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"})),lv=Ot(p.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"})),iv=Ot(p.jsx("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4zM18 14H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"})),ov=Ot(p.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),sv=Ot(p.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),av=Ot(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),uv=Ot(p.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),cv=Ot(p.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 11-2.5-1.5L14 13V5h5z"})),fv=Ot(p.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}));function dv(){const[e,t]=I.useState({postsCount:0,pagesCount:0,commentsCount:0,usersCount:0,recentPosts:[],recentComments:[],loading:!0});I.useEffect(()=>{(async()=>{var i,o,s,a;try{const[u,g,h,m]=await Promise.all([fetch(`${((i=window.helixData)==null?void 0:i.restUrl)||"/wp-json/wp/v2/"}posts?per_page=5`),fetch(`${((o=window.helixData)==null?void 0:o.restUrl)||"/wp-json/wp/v2/"}pages?per_page=5`),fetch(`${((s=window.helixData)==null?void 0:s.restUrl)||"/wp-json/wp/v2/"}comments?per_page=5`),fetch(`${((a=window.helixData)==null?void 0:a.restUrl)||"/wp-json/wp/v2/"}users?per_page=5`)]),[x,v,S,_]=await Promise.all([u.json(),g.json(),h.json(),m.json()]);t({postsCount:u.headers.get("X-WP-Total")||x.length,pagesCount:g.headers.get("X-WP-Total")||v.length,commentsCount:h.headers.get("X-WP-Total")||S.length,usersCount:m.headers.get("X-WP-Total")||_.length,recentPosts:x.slice(0,5),recentComments:S.slice(0,5),loading:!1})}catch{t(g=>({...g,loading:!1}))}})()},[]);const n=({title:l,count:i,icon:o,color:s,trend:a})=>p.jsxs("div",{className:`helix-stats-card helix-stats-card--${s}`,children:[p.jsx("div",{className:"helix-stats-card__icon",children:p.jsx(o,{})}),p.jsxs("div",{className:"helix-stats-card__content",children:[p.jsxs("div",{className:"helix-stats-card__header",children:[p.jsx("h3",{className:"helix-stats-card__count",children:i}),a&&p.jsxs("div",{className:"helix-stats-card__trend",children:[p.jsx(fv,{className:"helix-trend-icon"}),p.jsx("span",{children:a})]})]}),p.jsx("p",{className:"helix-stats-card__title",children:l})]})]}),r=l=>new Date(l).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return e.loading?p.jsxs("div",{className:"helix-dashboard",children:[p.jsx("div",{className:"helix-dashboard__header",children:p.jsx("h1",{children:"Dashboard"})}),p.jsxs("div",{className:"helix-loading",children:[p.jsx("div",{className:"helix-loading__spinner"}),p.jsx("p",{children:"Loading dashboard..."})]})]}):p.jsxs("div",{className:"helix-dashboard",children:[p.jsxs("div",{className:"helix-dashboard__header",children:[p.jsx("h1",{children:"Welcome to Helix"}),p.jsx("p",{children:"Your modern WordPress admin experience"})]}),p.jsxs("div",{className:"helix-dashboard__stats",children:[p.jsx(n,{title:"Posts",count:e.postsCount,icon:rv,color:"blue",trend:"+12%"}),p.jsx(n,{title:"Pages",count:e.pagesCount,icon:lv,color:"green",trend:"+5%"}),p.jsx(n,{title:"Comments",count:e.commentsCount,icon:iv,color:"orange",trend:"+28%"}),p.jsx(n,{title:"Users",count:e.usersCount,icon:ov,color:"purple",trend:"+3%"})]}),p.jsxs("div",{className:"helix-dashboard__content",children:[p.jsxs("div",{className:"helix-widget",children:[p.jsxs("div",{className:"helix-widget__header",children:[p.jsx("h2",{children:"Recent Posts"}),p.jsx("a",{href:"/wp-admin/edit.php",className:"helix-widget__link",children:"View All"})]}),p.jsx("div",{className:"helix-widget__content",children:e.recentPosts.length>0?p.jsx("ul",{className:"helix-posts-list",children:e.recentPosts.map(l=>p.jsxs("li",{className:"helix-posts-list__item",children:[p.jsxs("div",{className:"helix-posts-list__content",children:[p.jsx("h3",{className:"helix-posts-list__title",children:p.jsx("a",{href:`/wp-admin/post.php?post=${l.id}&action=edit`,children:l.title.rendered||"Untitled"})}),p.jsx("p",{className:"helix-posts-list__date",children:r(l.date)})]}),p.jsx("div",{className:"helix-posts-list__status",children:p.jsx("span",{className:`helix-status helix-status--${l.status}`,children:l.status})})]},l.id))}):p.jsxs("p",{className:"helix-widget__empty",children:["No posts yet."," ",p.jsx("a",{href:"/wp-admin/post-new.php",children:"Create your first post!"})]})})]}),p.jsxs("div",{className:"helix-widget",children:[p.jsxs("div",{className:"helix-widget__header",children:[p.jsx("h2",{children:"Recent Comments"}),p.jsx("a",{href:"/wp-admin/edit-comments.php",className:"helix-widget__link",children:"View All"})]}),p.jsx("div",{className:"helix-widget__content",children:e.recentComments.length>0?p.jsx("ul",{className:"helix-comments-list",children:e.recentComments.map(l=>p.jsxs("li",{className:"helix-comments-list__item",children:[p.jsxs("div",{className:"helix-comments-list__content",children:[p.jsx("h4",{className:"helix-comments-list__author",children:l.author_name}),p.jsxs("p",{className:"helix-comments-list__excerpt",children:[l.content.rendered.replace(/<[^>]*>/g,"").substring(0,100),"..."]}),p.jsx("p",{className:"helix-comments-list__date",children:r(l.date)})]}),p.jsx("div",{className:"helix-comments-list__status",children:p.jsx("span",{className:`helix-status helix-status--${l.status}`,children:l.status})})]},l.id))}):p.jsx("p",{className:"helix-widget__empty",children:"No comments yet."})})]}),p.jsxs("div",{className:"helix-widget",children:[p.jsx("div",{className:"helix-widget__header",children:p.jsx("h2",{children:"Quick Actions"})}),p.jsx("div",{className:"helix-widget__content",children:p.jsxs("div",{className:"helix-quick-actions",children:[p.jsxs("a",{href:"/wp-admin/post-new.php",className:"helix-quick-action",children:[p.jsx("span",{className:"helix-quick-action__icon",children:p.jsx(sv,{})}),p.jsx("span",{className:"helix-quick-action__text",children:"Write a Post"})]}),p.jsxs("a",{href:"/wp-admin/post-new.php?post_type=page",className:"helix-quick-action",children:[p.jsx("span",{className:"helix-quick-action__icon",children:p.jsx(av,{})}),p.jsx("span",{className:"helix-quick-action__text",children:"Create a Page"})]}),p.jsxs("a",{href:"/wp-admin/upload.php",className:"helix-quick-action",children:[p.jsx("span",{className:"helix-quick-action__icon",children:p.jsx(uv,{})}),p.jsx("span",{className:"helix-quick-action__text",children:"Upload Media"})]}),p.jsxs("a",{href:"/wp-admin/edit-comments.php",className:"helix-quick-action",children:[p.jsx("span",{className:"helix-quick-action__icon",children:p.jsx(cv,{})}),p.jsx("span",{className:"helix-quick-action__text",children:"Moderate Comments"})]})]})})]}),p.jsxs("div",{className:"helix-widget",children:[p.jsx("div",{className:"helix-widget__header",children:p.jsx("h2",{children:"WordPress News"})}),p.jsxs("div",{className:"helix-widget__content",children:[p.jsx("p",{children:"Stay updated with the latest WordPress news and updates."}),p.jsx("div",{className:"helix-news-placeholder",children:p.jsxs("div",{className:"helix-news-item",children:[p.jsx("h4",{children:"WordPress 6.4 โ€œShirleyโ€ Released"}),p.jsx("p",{children:"The latest version includes new features and improvements..."}),p.jsx("a",{href:"https://wordpress.org/news/",target:"_blank",rel:"noopener noreferrer",children:"Read more"})]})})]})]})]})]})}const pv=()=>{var e;return((e=window.helixData)==null?void 0:e.restUrl)||"/wp-json/helix/v1/"},hv=()=>{var e;return((e=window.helixData)==null?void 0:e.nonce)||""},gp=async(e,t={})=>{const n=`${pv()}${e}`,r={headers:{"Content-Type":"application/json","X-WP-Nonce":hv()},credentials:"include"},l={...r,...t,headers:{...r.headers,...t.headers}};try{const i=await fetch(n,l);if(!i.ok){const o=await i.json().catch(()=>({}));throw new Error(o.message||`HTTP ${i.status}: ${i.statusText}`)}return await i.json()}catch(i){throw i}},mv=async()=>gp("settings"),gv=async e=>gp("settings",{method:"POST",body:JSON.stringify(e)}),yv=()=>{const[e,t]=I.useState({}),[n,r]=I.useState({}),[l,i]=I.useState(!0),[o,s]=I.useState(!1),[a,u]=I.useState(null),[g,h]=I.useState(!1),m=I.useCallback(async()=>{try{i(!0),u(null);const d=await mv(),f={};Object.keys(d).forEach(y=>{Object.keys(d[y]).forEach(w=>{f[w]=d[y][w].value})}),t(f),r(f),h(!1)}catch(d){u(d.message)}finally{i(!1)}},[]),x=I.useCallback((d,f)=>{t(y=>{const w={...y,[d]:f},T=Object.keys(w).some(k=>w[k]!==n[k]);return h(T),w})},[n]),v=I.useCallback(async()=>{try{s(!0),u(null);const d={};if(Object.keys(e).forEach(y=>{e[y]!==n[y]&&(d[y]=e[y])}),Object.keys(d).length===0)return{success:!0,message:"No changes to save"};const f=await gv(d);return r(e),h(!1),{success:!0,message:"Settings saved successfully",updated:f.updated,errors:f.errors}}catch(d){return u(d.message),{success:!1,message:d.message}}finally{s(!1)}},[e,n]),S=I.useCallback(()=>{t(n),h(!1),u(null)},[n]),_=I.useCallback(d=>{x(d,n[d])},[n,x]);return I.useEffect(()=>{m()},[m]),I.useEffect(()=>{const d=f=>{if(g)return f.preventDefault(),f.returnValue="You have unsaved changes. Are you sure you want to leave?",f.returnValue};return window.addEventListener("beforeunload",d),()=>window.removeEventListener("beforeunload",d)},[g]),{settings:e,loading:l,saving:o,error:a,hasUnsavedChanges:g,updateSetting:x,saveSettings:v,resetSettings:S,resetSetting:_,loadSettings:m}},vv=({activeTab:e,onTabChange:t,hasUnsavedChanges:n})=>{const r=[{id:"site",label:"Site Information",icon:"๐Ÿ "},{id:"content",label:"Content & Reading",icon:"๐Ÿ“–"},{id:"writing",label:"Writing & Publishing",icon:"โœ๏ธ"},{id:"media",label:"Media & Assets",icon:"๐Ÿ–ผ๏ธ"},{id:"users",label:"Users & Membership",icon:"๐Ÿ‘ฅ"},{id:"helix",label:"Helix Settings",icon:"โš™๏ธ"}];return p.jsx("div",{className:"helix-settings-tabs",children:p.jsx("nav",{className:"helix-tabs-nav",role:"tablist",children:r.map(l=>p.jsxs("button",{type:"button",role:"tab","aria-selected":e===l.id,"aria-controls":`${l.id}-panel`,className:`helix-tab ${e===l.id?"active":""}`,onClick:()=>t(l.id),children:[p.jsx("span",{className:"helix-tab-icon",children:l.icon}),p.jsx("span",{className:"helix-tab-label",children:l.label}),n&&p.jsx("span",{className:"helix-tab-indicator",title:"Unsaved changes",children:"โ—"})]},l.id))})})},xv=({onSave:e,onReset:t,saving:n=!1,hasUnsavedChanges:r=!1,disabled:l=!1})=>p.jsxs("div",{className:"helix-save-buttons",children:[p.jsx("button",{type:"button",onClick:e,disabled:l||n||!r,className:`helix-btn helix-btn-primary ${n?"saving":""}`,children:n?p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"helix-spinner"}),"Saving..."]}):"Save Changes"}),r&&!n&&p.jsx("button",{type:"button",onClick:t,className:"helix-btn helix-btn-secondary",children:"Reset Changes"}),!r&&!n&&p.jsx("span",{className:"helix-save-status",children:"โœ“ All changes saved"})]}),_c=({type:e="info",message:t,onClose:n,autoClose:r=!0,duration:l=5e3})=>{const[i,o]=I.useState(!0);if(I.useEffect(()=>{if(r&&l>0){const a=setTimeout(()=>{o(!1),setTimeout(()=>n==null?void 0:n(),300)},l);return()=>clearTimeout(a)}},[r,l,n]),!i)return null;const s=()=>{switch(e){case"success":return"โœ…";case"error":return"โŒ";case"warning":return"โš ๏ธ";default:return"โ„น๏ธ"}};return p.jsx("div",{className:`helix-notification helix-notification-${e} ${i?"visible":""}`,children:p.jsxs("div",{className:"helix-notification-content",children:[p.jsx("span",{className:"helix-notification-icon",children:s()}),p.jsx("span",{className:"helix-notification-message",children:t}),n&&p.jsx("button",{type:"button",onClick:()=>{o(!1),setTimeout(()=>n(),300)},className:"helix-notification-close","aria-label":"Close notification",children:"ร—"})]})})},sr=({title:e,description:t,children:n,className:r=""})=>p.jsxs("div",{className:`helix-settings-section ${r}`,children:[e&&p.jsxs("div",{className:"helix-settings-section-header",children:[p.jsx("h3",{className:"helix-settings-section-title",children:e}),t&&p.jsx("p",{className:"helix-settings-section-description",children:t})]}),p.jsx("div",{className:"helix-settings-section-content",children:n})]}),oo=({label:e,description:t,error:n,required:r=!1,children:l,className:i=""})=>p.jsxs("div",{className:`helix-form-field ${i}`,children:[e&&p.jsxs("label",{className:"helix-form-label",children:[e,r&&p.jsx("span",{className:"helix-required",children:"*"})]}),p.jsx("div",{className:"helix-form-control",children:l}),t&&p.jsx("p",{className:"helix-form-description",children:t}),n&&p.jsx("p",{className:"helix-form-error",children:n})]}),xt=({label:e,description:t,value:n,onChange:r,placeholder:l="",type:i="text",required:o=!1,disabled:s=!1,error:a=null,className:u="",...g})=>{const h=m=>{r(m.target.value)};return p.jsx(oo,{label:e,description:t,error:a,required:o,className:u,children:p.jsx("input",{type:i,value:n||"",onChange:h,placeholder:l,required:o,disabled:s,className:"helix-text-input",...g})})},Ec=({settings:e,updateSetting:t})=>p.jsx(sr,{title:"Site Information",description:"Basic information about your WordPress site",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(xt,{label:"Site Title",description:"In a few words, explain what this site is about.",value:e.siteTitle,onChange:n=>t("siteTitle",n),placeholder:"My Awesome Site",required:!0}),p.jsx(xt,{label:"Tagline",description:"A brief description of your site, usually displayed under the title.",value:e.tagline,onChange:n=>t("tagline",n),placeholder:"Just another WordPress site"}),p.jsx(xt,{label:"WordPress Address (URL)",description:"The address of your WordPress core files.",value:e.siteUrl,onChange:n=>t("siteUrl",n),type:"url",placeholder:"https://example.com"}),p.jsx(xt,{label:"Site Address (URL)",description:"The address you want people to type in their browser to reach your website.",value:e.homeUrl,onChange:n=>t("homeUrl",n),type:"url",placeholder:"https://example.com"}),p.jsx(xt,{label:"Administration Email Address",description:"This address is used for admin purposes, like new user notification.",value:e.adminEmail,onChange:n=>t("adminEmail",n),type:"email",placeholder:"admin@example.com",required:!0}),p.jsx(xt,{label:"Site Language",description:"The language for your site interface.",value:e.language,onChange:n=>t("language",n),placeholder:"en_US"}),p.jsx(xt,{label:"Timezone",description:"Choose either a city in the same timezone as you or a UTC timezone offset.",value:e.timezone,onChange:n=>t("timezone",n),placeholder:"UTC"})]})}),Qn=({label:e,description:t,value:n,onChange:r,options:l=[],required:i=!1,disabled:o=!1,error:s=null,className:a="",placeholder:u="Select an option...",...g})=>{const h=m=>{r(m.target.value)};return p.jsx(oo,{label:e,description:t,error:s,required:i,className:a,children:p.jsxs("select",{value:n||"",onChange:h,required:i,disabled:o,className:"helix-select-input",...g,children:[u&&p.jsx("option",{value:"",disabled:!0,children:u}),l.map(m=>p.jsx("option",{value:m.value,children:m.label},m.value))]})})},He=({label:e,description:t,value:n,onChange:r,min:l=null,max:i=null,step:o=1,required:s=!1,disabled:a=!1,error:u=null,className:g="",...h})=>{const m=x=>{const v=x.target.value;r(v===""?"":Number(v))};return p.jsx(oo,{label:e,description:t,error:u,required:s,className:g,children:p.jsx("input",{type:"number",value:n||"",onChange:m,min:l,max:i,step:o,required:s,disabled:a,className:"helix-number-input",...h})})},cl=({label:e,description:t,value:n,onChange:r,required:l=!1,disabled:i=!1,error:o=null,className:s="",...a})=>{const u=g=>{r(g.target.checked)};return p.jsx(oo,{description:t,error:o,required:l,className:`helix-toggle-field ${s}`,children:p.jsxs("label",{className:"helix-toggle-wrapper",children:[p.jsx("input",{type:"checkbox",checked:!!n,onChange:u,required:l,disabled:i,className:"helix-toggle-input",...a}),p.jsx("span",{className:"helix-toggle-slider"}),p.jsx("span",{className:"helix-toggle-label",children:e})]})})},wv=({settings:e,updateSetting:t})=>{const n=[{value:"posts",label:"Your latest posts"},{value:"page",label:"A static page"}],r=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:2,label:"Tuesday"},{value:3,label:"Wednesday"},{value:4,label:"Thursday"},{value:5,label:"Friday"},{value:6,label:"Saturday"}];return p.jsx(sr,{title:"Content & Reading",description:"Settings that affect how your content is displayed",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(Qn,{label:"Your homepage displays",description:"What to show on the front page of your site.",value:e.showOnFront,onChange:l=>t("showOnFront",l),options:n}),e.showOnFront==="page"&&p.jsxs(p.Fragment,{children:[p.jsx(He,{label:"Homepage",description:"The page to show on the front page (Page ID).",value:e.pageOnFront,onChange:l=>t("pageOnFront",l),min:0}),p.jsx(He,{label:"Posts page",description:"The page to show posts (Page ID).",value:e.pageForPosts,onChange:l=>t("pageForPosts",l),min:0})]}),p.jsx(He,{label:"Blog pages show at most",description:"Number of posts to show per page.",value:e.postsPerPage,onChange:l=>t("postsPerPage",l),min:1,max:100}),p.jsx(cl,{label:"Discourage search engines from indexing this site",description:"This will discourage, but not prevent, search engines from indexing this site.",value:!e.blogPublic,onChange:l=>t("blogPublic",!l)}),p.jsx(xt,{label:"Date Format",description:"Format for displaying dates throughout your site.",value:e.dateFormat,onChange:l=>t("dateFormat",l),placeholder:"F j, Y"}),p.jsx(xt,{label:"Time Format",description:"Format for displaying times throughout your site.",value:e.timeFormat,onChange:l=>t("timeFormat",l),placeholder:"g:i a"}),p.jsx(Qn,{label:"Week Starts On",description:"The day of the week the calendar should start on.",value:e.startOfWeek,onChange:l=>t("startOfWeek",parseInt(l)),options:r})]})})},Sv=({settings:e,updateSetting:t})=>{const n=[{value:"standard",label:"Standard"},{value:"aside",label:"Aside"},{value:"gallery",label:"Gallery"},{value:"image",label:"Image"},{value:"link",label:"Link"},{value:"quote",label:"Quote"},{value:"status",label:"Status"},{value:"video",label:"Video"},{value:"audio",label:"Audio"},{value:"chat",label:"Chat"}],r=[{value:"open",label:"Open"},{value:"closed",label:"Closed"}];return p.jsx(sr,{title:"Writing & Publishing",description:"Settings for content creation and publishing",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(He,{label:"Default Post Category",description:"The default category for new posts (Category ID).",value:e.defaultCategory,onChange:l=>t("defaultCategory",l),min:1}),p.jsx(Qn,{label:"Default Post Format",description:"The default format for new posts.",value:e.defaultPostFormat,onChange:l=>t("defaultPostFormat",l),options:n}),p.jsx(cl,{label:"Convert emoticons like :-) and :-P to graphics on display",description:"Transform text emoticons into graphical representations.",value:e.useSmilies,onChange:l=>t("useSmilies",l)}),p.jsx(Qn,{label:"Default comment status",description:"Allow people to submit comments on new posts.",value:e.defaultCommentStatus,onChange:l=>t("defaultCommentStatus",l),options:r}),p.jsx(Qn,{label:"Default ping status",description:"Allow link notifications from other blogs (pingbacks and trackbacks) on new posts.",value:e.defaultPingStatus,onChange:l=>t("defaultPingStatus",l),options:r})]})})},kv=({settings:e,updateSetting:t})=>p.jsx(sr,{title:"Media & Assets",description:"Settings for media files, images, and site branding",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(He,{label:"Site Logo",description:"The site logo (Media ID). Upload a logo in Media Library and enter its ID here.",value:e.siteLogo,onChange:n=>t("siteLogo",n),min:0}),p.jsx(He,{label:"Site Icon (Favicon)",description:"The site icon/favicon (Media ID). Upload an icon in Media Library and enter its ID here.",value:e.siteIcon,onChange:n=>t("siteIcon",n),min:0}),p.jsxs("div",{className:"helix-settings-subsection",children:[p.jsx("h4",{children:"Image Sizes"}),p.jsx(He,{label:"Thumbnail Width",description:"Maximum width of thumbnail images in pixels.",value:e.thumbnailSizeW,onChange:n=>t("thumbnailSizeW",n),min:0,max:2e3}),p.jsx(He,{label:"Thumbnail Height",description:"Maximum height of thumbnail images in pixels.",value:e.thumbnailSizeH,onChange:n=>t("thumbnailSizeH",n),min:0,max:2e3}),p.jsx(He,{label:"Medium Width",description:"Maximum width of medium-sized images in pixels.",value:e.mediumSizeW,onChange:n=>t("mediumSizeW",n),min:0,max:2e3}),p.jsx(He,{label:"Medium Height",description:"Maximum height of medium-sized images in pixels.",value:e.mediumSizeH,onChange:n=>t("mediumSizeH",n),min:0,max:2e3}),p.jsx(He,{label:"Large Width",description:"Maximum width of large-sized images in pixels.",value:e.largeSizeW,onChange:n=>t("largeSizeW",n),min:0,max:4e3}),p.jsx(He,{label:"Large Height",description:"Maximum height of large-sized images in pixels.",value:e.largeSizeH,onChange:n=>t("largeSizeH",n),min:0,max:4e3})]}),p.jsx(cl,{label:"Organize my uploads into month- and year-based folders",description:"Organize uploaded files into date-based folder structure.",value:e.uploadsUseYearmonthFolders,onChange:n=>t("uploadsUseYearmonthFolders",n)})]})}),Cv=({settings:e,updateSetting:t})=>{const n=[{value:"subscriber",label:"Subscriber"},{value:"contributor",label:"Contributor"},{value:"author",label:"Author"},{value:"editor",label:"Editor"},{value:"administrator",label:"Administrator"}];return p.jsx(sr,{title:"Users & Membership",description:"Settings for user registration and default permissions",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(cl,{label:"Anyone can register",description:"Allow anyone to register as a user on your site.",value:e.usersCanRegister,onChange:r=>t("usersCanRegister",r)}),p.jsx(Qn,{label:"New User Default Role",description:"The default role assigned to new users when they register.",value:e.defaultRole,onChange:r=>t("defaultRole",r),options:n})]})})},_v=({settings:e,updateSetting:t})=>p.jsx(sr,{title:"Helix Settings",description:"Settings specific to the Helix plugin",children:p.jsx("div",{className:"helix-settings-grid",children:p.jsx(cl,{label:"Use Default WordPress Admin",description:"Switch back to the default WordPress admin interface instead of using Helix.",value:e.helixUseDefaultAdmin,onChange:n=>t("helixUseDefaultAdmin",n)})})});function Ev(){const{settings:e,loading:t,saving:n,error:r,hasUnsavedChanges:l,updateSetting:i,saveSettings:o,resetSettings:s}=yv(),[a,u]=I.useState("site"),[g,h]=I.useState(null),m=async()=>{const _=await o();_.success?h({type:"success",message:_.message||"Settings saved successfully!"}):h({type:"error",message:_.message||"Failed to save settings. Please try again."})},x=()=>{s(),h({type:"info",message:"Changes have been reset to their original values."})},v=_=>{l&&!window.confirm("You have unsaved changes. Are you sure you want to switch tabs? Your changes will be lost.")||u(_)},S=()=>{const _={settings:e,updateSetting:i};switch(a){case"site":return p.jsx(Ec,{..._});case"content":return p.jsx(wv,{..._});case"writing":return p.jsx(Sv,{..._});case"media":return p.jsx(kv,{..._});case"users":return p.jsx(Cv,{..._});case"helix":return p.jsx(_v,{..._});default:return p.jsx(Ec,{..._})}};return t?p.jsx("div",{className:"helix-settings-page",children:p.jsxs("div",{className:"helix-loading",children:[p.jsx("div",{className:"helix-spinner"}),p.jsx("p",{children:"Loading settings..."})]})}):p.jsxs("div",{className:"helix-settings-page",children:[p.jsxs("div",{className:"helix-settings-header",children:[p.jsx("h1",{children:"Settings"}),p.jsx("p",{children:"Manage your WordPress site configuration"})]}),r&&p.jsx(_c,{type:"error",message:r,onClose:()=>{},autoClose:!1}),g&&p.jsx(_c,{type:g.type,message:g.message,onClose:()=>h(null)}),p.jsx(vv,{activeTab:a,onTabChange:v,hasUnsavedChanges:l}),p.jsx("div",{className:"helix-settings-content",children:p.jsx("div",{id:`${a}-panel`,role:"tabpanel","aria-labelledby":`${a}-tab`,className:"helix-tab-panel",children:S()})}),p.jsx("div",{className:"helix-settings-footer",children:p.jsx(xv,{onSave:m,onReset:x,saving:n,hasUnsavedChanges:l})})]})}function Tv(){return p.jsx(dv,{})}function Pv(){return p.jsxs("div",{className:"helix-page",children:[p.jsx("h1",{children:"Posts Management"}),p.jsx("p",{children:"Posts management interface will be implemented here."})]})}function Nv(){return p.jsxs("div",{className:"helix-page",children:[p.jsx("h1",{children:"Users Management"}),p.jsx("p",{children:"Users management interface will be implemented here."})]})}document.addEventListener("DOMContentLoaded",function(){const e=document.getElementById("helix-root");e&&kr(e).render(p.jsx(Tv,{}));const t=document.getElementById("helix-settings-root");t&&kr(t).render(p.jsx(Ev,{}));const n=document.getElementById("helix-posts-root");n&&kr(n).render(p.jsx(Pv,{}));const r=document.getElementById("helix-users-root");r&&kr(r).render(p.jsx(Nv,{}))});