function wp(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Sp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jc={exports:{}},wi={},Nc={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"),kp=Symbol.for("react.portal"),Cp=Symbol.for("react.fragment"),_p=Symbol.for("react.strict_mode"),Ep=Symbol.for("react.profiler"),jp=Symbol.for("react.provider"),Np=Symbol.for("react.context"),Pp=Symbol.for("react.forward_ref"),Tp=Symbol.for("react.suspense"),$p=Symbol.for("react.memo"),Ap=Symbol.for("react.lazy"),Ha=Symbol.iterator;function Rp(e){return e===null||typeof e!="object"?null:(e=Ha&&e[Ha]||e["@@iterator"],typeof e=="function"?e:null)}var Pc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Tc=Object.assign,$c={};function rr(e,t,n){this.props=e,this.context=t,this.refs=$c,this.updater=n||Pc}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 Ac(){}Ac.prototype=rr.prototype;function bs(e,t,n){this.props=e,this.context=t,this.refs=$c,this.updater=n||Pc}var Bs=bs.prototype=new Ac;Bs.constructor=bs;Tc(Bs,rr.prototype);Bs.isPureReactComponent=!0;var Qa=Array.isArray,Rc=Object.prototype.hasOwnProperty,Us={current:null},zc={key:!0,ref:!0,__self:!0,__source:!0};function Oc(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)Rc.call(t,r)&&!zc.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1>>1,pe=$[oe];if(0>>1;oel(so,F))enl(dl,so)?($[oe]=dl,$[en]=F,oe=en):($[oe]=so,$[Jt]=F,oe=Jt);else if(enl(dl,F))$[oe]=dl,$[en]=F,oe=en;else break e}}return I}function l($,I){var F=$.sortIndex-I.sortIndex;return F!==0?F:$.id-I.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=[],c=[],h=1,g=null,m=3,k=!1,v=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,p=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($){for(var I=n(c);I!==null;){if(I.callback===null)r(c);else if(I.startTime<=$)r(c),I.sortIndex=I.expirationTime,t(a,I);else break;I=n(c)}}function w($){if(x=!1,y($),!v)if(n(a)!==null)v=!0,U(j);else{var I=n(c);I!==null&&we(w,I.startTime-$)}}function j($,I){v=!1,x&&(x=!1,p(P),P=-1),k=!0;var F=m;try{for(y(I),g=n(a);g!==null&&(!(g.expirationTime>I)||$&&!L());){var oe=g.callback;if(typeof oe=="function"){g.callback=null,m=g.priorityLevel;var pe=oe(g.expirationTime<=I);I=e.unstable_now(),typeof pe=="function"?g.callback=pe:g===n(a)&&r(a),y(I)}else r(a);g=n(a)}if(g!==null)var fl=!0;else{var Jt=n(c);Jt!==null&&we(w,Jt.startTime-I),fl=!1}return fl}finally{g=null,m=F,k=!1}}var S=!1,C=null,P=-1,D=5,O=-1;function L(){return!(e.unstable_now()-O$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function($){switch(m){case 1:case 2:case 3:var I=3;break;default:I=m}var F=m;m=I;try{return $()}finally{m=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,I){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var F=m;m=$;try{return I()}finally{m=F}},e.unstable_scheduleCallback=function($,I,F){var oe=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0oe?($.sortIndex=F,t(c,$),n(a)===null&&$===n(c)&&(x?(p(P),P=-1):x=!0,we(w,F-oe))):($.sortIndex=pe,t(a,$),v||k||(v=!0,U(j))),$},e.unstable_shouldYield=L,e.unstable_wrapCallback=function($){var I=m;return function(){var F=m;m=I;try{return $.apply(this,arguments)}finally{m=F}}}})(Fc);Mc.exports=Fc;var Vp=Mc.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 Hp=z,Ue=Vp;function N(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"),Fo=Object.prototype.hasOwnProperty,Qp=/^[: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 Kp(e){return Fo.call(Xa,e)?!0:Fo.call(Ga,e)?!1:Qp.test(e)?Xa[e]=!0:(Ga[e]=!0,!1)}function Yp(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 Gp(e,t,n,r){if(t===null||typeof t>"u"||Yp(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 Te(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 Te(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 Te(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Te(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Te(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 Te(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Te(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Te(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Te(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Te(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vs=/[\-:]([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(Vs,Hs);xe[t]=new Te(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(Vs,Hs);xe[t]=new Te(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(Vs,Hs);xe[t]=new Te(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Te(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Te("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Te(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 Xp(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 Wo(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 Nn:return"Portal";case bo:return"Profiler";case Ks:return"StrictMode";case Bo:return"Suspense";case Uo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Uc:return(e.displayName||"Context")+".Consumer";case Bc: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:Wo(e.type)||"Memo";case Rt:t=e._payload,e=e._init;try{return Wo(e(t))}catch{}}return null}function Zp(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 Wo(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 Vc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qp(e){var t=Vc(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=qp(e))}function Hc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vc(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 Vo(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qa(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 Ja(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},Jp=["Webkit","ms","Moz","O"];Object.keys(Er).forEach(function(e){Jp.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 eh=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(eh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(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 qo=null,bn=null,Bn=null;function nu(e){if(e=il(e)){if(typeof qo!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Ei(t),qo(e.stateNode,e.type,t))}}function qc(e){bn?Bn?Bn.push(e):Bn=[e]:bn=e}function Jc(){if(bn){var e=bn,t=Bn;if(Bn=bn=null,nu(e),t)for(e=0;e>>=0,e===0?32:31-(fh(e)/dh|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 ql(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-ot(t),e[t]=n}function gh(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=Nr),fu=" ",du=!1;function wf(e,t){switch(e){case"keyup":return Vh.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 Tn=!1;function Qh(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 Kh(e,t){if(Tn)return e==="compositionend"||!la&&wf(e,t)?(e=vf(),Ll=ta=It=null,Tn=!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 jf(){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 nm(e){var t=jf(),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,$n=null,ls=null,Tr=null,is=!1;function vu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;is||$n==null||$n!==Yl(r)||(r=$n,"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}),Tr&&Ur(Tr,r)||(Tr=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),Re=Zt(!1),pn=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 ze(e){return e=e.childContextTypes,e!=null}function ri(){Z(Re),Z(Ee)}function Eu(e,t,n){if(Ee.current!==Yt)throw Error(N(168));G(Ee,t),G(Re,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(N(108,Zp(e)||"Unknown",l));return ne({},n,r)}function li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yt,pn=Ee.current,G(Ee,e),G(Re,Re.current),!0}function ju(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=Lf(e,t,pn),r.__reactInternalMemoizedMergedChildContext=e,Z(Re),Z(Ee),G(Ee,e)):Z(Re),G(Re,n)}var wt=null,ji=!1,jo=!1;function If(e){wt===null?wt=[e]:wt.push(e)}function hm(e){ji=!0,If(e)}function qt(){if(!jo&&wt!==null){jo=!0;var e=0,t=K;try{var n=wt;for(K=1;e>=o,l-=o,kt=1<<32-ot(t)+l|n<P?(D=C,C=null):D=C.sibling;var O=m(p,C,y[P],w);if(O===null){C===null&&(C=D);break}e&&C&&O.alternate===null&&t(p,C),f=i(O,f,P),S===null?j=O:S.sibling=O,S=O,C=D}if(P===y.length)return n(p,C),J&&nn(p,P),j;if(C===null){for(;PP?(D=C,C=null):D=C.sibling;var L=m(p,C,O.value,w);if(L===null){C===null&&(C=D);break}e&&C&&L.alternate===null&&t(p,C),f=i(L,f,P),S===null?j=L:S.sibling=L,S=L,C=D}if(O.done)return n(p,C),J&&nn(p,P),j;if(C===null){for(;!O.done;P++,O=y.next())O=g(p,O.value,w),O!==null&&(f=i(O,f,P),S===null?j=O:S.sibling=O,S=O);return J&&nn(p,P),j}for(C=r(p,C);!O.done;P++,O=y.next())O=k(C,p,P,O.value,w),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?P:O.key),f=i(O,f,P),S===null?j=O:S.sibling=O,S=O);return e&&C.forEach(function(d){return t(p,d)}),J&&nn(p,P),j}function E(p,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 j=y.key,S=f;S!==null;){if(S.key===j){if(j=y.type,j===Pn){if(S.tag===7){n(p,S.sibling),f=l(S,y.props.children),f.return=p,p=f;break e}}else if(S.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Rt&&Tu(j)===S.type){n(p,S.sibling),f=l(S,y.props),f.ref=pr(p,S,y),f.return=p,p=f;break e}n(p,S);break}else t(p,S);S=S.sibling}y.type===Pn?(f=fn(y.props.children,p.mode,w,y.key),f.return=p,p=f):(w=Wl(y.type,y.key,y.props,null,p.mode,w),w.ref=pr(p,f,y),w.return=p,p=w)}return o(p);case Nn:e:{for(S=y.key;f!==null;){if(f.key===S)if(f.tag===4&&f.stateNode.containerInfo===y.containerInfo&&f.stateNode.implementation===y.implementation){n(p,f.sibling),f=l(f,y.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=Oo(y,p.mode,w),f.return=p,p=f}return o(p);case Rt:return S=y._init,E(p,f,S(y._payload),w)}if(xr(y))return v(p,f,y,w);if(ar(y))return x(p,f,y,w);El(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,f!==null&&f.tag===6?(n(p,f.sibling),f=l(f,y),f.return=p,p=f):(n(p,f),f=zo(y,p.mode,w),f.return=p,p=f),o(p)):n(p,f)}return E}var Xn=bf(!0),Bf=bf(!1),si=Zt(null),ai=null,In=null,ua=null;function ca(){ua=In=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=In=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ae=!0),e.firstContext=null)}function Ze(e){var t=e._currentValue;if(ua!==e)if(e={context:e,memoizedValue:t,next:null},In===null){if(ai===null)throw Error(N(308));In=e,ai.dependencies={lanes:0,firstContext:e}}else In=In.next=e;return t}var sn=null;function da(e){sn===null?sn=[e]:sn.push(e)}function Uf(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,Nt(e,r)}function Nt(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 zt=!1;function pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wf(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 Ut(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Nt(e,n)}return l=r.interleaved,l===null?(t.next=t,da(r)):(t.next=l.next,l.next=t),r.interleaved=t,Nt(e,n)}function Dl(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,qs(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;zt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var a=s,c=a.next;a.next=null,o===null?i=c:o.next=c,o=a;var h=e.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==o&&(s===null?h.firstBaseUpdate=c:s.next=c,h.lastBaseUpdate=a))}if(i!==null){var g=l.baseState;o=0,h=c=a=null,s=i;do{var m=s.lane,k=s.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:k,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,x=s;switch(m=t,k=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){g=v.call(k,g,m);break e}g=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,m=typeof v=="function"?v.call(k,g,m):v,m==null)break e;g=ne({},g,m);break e;case 2:zt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[s]:m.push(s))}else k={eventTime:k,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(c=h=k,a=g):h=h.next=k,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(h===null&&(a=g),l.baseState=a,l.firstBaseUpdate=c,l.lastBaseUpdate=h,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);gn|=o,e.lanes=o,e.memoizedState=g}}function Au(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Po.transition;Po.transition={};try{e(!1),t()}finally{K=n,Po.transition=r}}function od(){return qe().memoizedState}function vm(e,t,n){var r=Vt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sd(e))ad(t,n);else if(n=Uf(e,t,n,r),n!==null){var l=Ne();st(n,e,r,l),ud(n,t,r)}}function xm(e,t,n){var r=Vt(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,at(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=Uf(e,t,l,r),n!==null&&(l=Ne(),st(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,qs(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},wm={readContext:Ze,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:zu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fl(4194308,4,td.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fl(4,2,e,t)},useMemo:function(e,t){var n=ft();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ft();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=vm.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:Ru,useDebugValue:Sa,useDeferredValue:function(e){return ft().memoizedState=e},useTransition:function(){var e=Ru(!1),t=e[0];return e=ym.bind(null,e[1]),ft().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,l=ft();if(J){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),me===null)throw Error(N(349));mn&30||Kf(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,zu(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=ft(),t=me.identifierPrefix;if(J){var n=Ct,r=kt;n=(r&~(1<<32-ot(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[ht]=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;lJn&&(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&&!J)return ke(t),null}else 2*se()-i.renderingStartTime>Jn&&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 Na(),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(N(156,t.tag))}function Pm(e,t){switch(sa(t),t.tag){case 1:return ze(t.type)&&ri(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),Z(Re),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(N(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 Na(),null;case 24:return null;default:return null}}var Nl=!1,_e=!1,Tm=typeof WeakSet=="function"?WeakSet:Set,R=null;function Dn(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 Vu=!1;function $m(e,t){if(os=Jl,e=jf(),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,c=0,h=0,g=e,m=null;t:for(;;){for(var k;g!==n||l!==0&&g.nodeType!==3||(s=o+l),g!==i||r!==0&&g.nodeType!==3||(a=o+r),g.nodeType===3&&(o+=g.nodeValue.length),(k=g.firstChild)!==null;)m=g,g=k;for(;;){if(g===e)break t;if(m===n&&++c===l&&(s=o),m===i&&++h===r&&(a=o),(k=g.nextSibling)!==null)break;g=m,m=g.parentNode}g=k}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},Jl=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;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 x=v.memoizedProps,E=v.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?x:rt(t.type,x),E);p.__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(N(163))}}catch(w){ie(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return v=Vu,Vu=!1,v}function Ar(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 Ti(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[ht],delete t[Hr],delete t[cs],delete t[dm],delete t[pm])),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 js(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(js(e,t,n),e=e.sibling;e!==null;)js(e,t,n),e=e.sibling}var ge=null,lt=!1;function At(e,t,n){for(n=n.child;n!==null;)_d(e,t,n),n=n.sibling}function _d(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Si,n)}catch{}switch(n.tag){case 5:_e||Dn(n,t);case 6:var r=ge,l=lt;ge=null,At(e,t,n),ge=r,lt=l,ge!==null&&(lt?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(lt?(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=lt,ge=n.stateNode.containerInfo,lt=!0,At(e,t,n),ge=r,lt=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)}At(e,t,n);break;case 1:if(!_e&&(Dn(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)}At(e,t,n);break;case 21:At(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,At(e,t,n),_e=r):At(e,t,n);break;default:At(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=Fm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function nt(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*Rm(r/1960))-r,10e?16:e,Dt===null)var r=!1;else{if(e=Dt,Dt=null,mi=0,B&6)throw Error(N(331));var l=B;for(B|=4,R=e.current;R!==null;){var i=R,o=i.child;if(R.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ase()-Ea?cn(e,0):_a|=n),Oe(e,t)}function Rd(e,t){t===0&&(e.mode&1?(t=vl,vl<<=1,!(vl&130023424)&&(vl=4194304)):t=1);var n=Ne();e=Nt(e,t),e!==null&&(rl(e,t,n),Oe(e,n))}function Mm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rd(e,n)}function Fm(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(N(314))}r!==null&&r.delete(t),Rd(e,n)}var zd;zd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Re.current)Ae=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ae=!1,jm(e,t,n);Ae=!!(e.flags&131072)}else Ae=!1,J&&t.flags&1048576&&Df(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,ze(r)?(i=!0,li(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,pa(t),l.updater=Pi,t.stateNode=l,l._reactInternals=t,gs(t,r,e,n),t=xs(null,t,r,!0,i,n)):(t.tag=0,J&&i&&oa(t),je(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=Bm(r),e=rt(r,e),l){case 0:t=vs(null,t,r,e,n);break e;case 1:t=Bu(null,t,r,e,n);break e;case 11:t=Fu(null,t,r,e,n);break e;case 14:t=bu(null,t,r,rt(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),vs(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Bu(e,t,r,l,n);case 3:e:{if(gd(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Wf(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=qn(Error(N(423)),t),t=Uu(e,t,r,n,l);break e}else if(r!==l){l=qn(Error(N(424)),t),t=Uu(e,t,r,n,l);break e}else for(Me=Bt(t.stateNode.containerInfo.firstChild),Fe=t,J=!0,it=null,n=Bf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gn(),r===l){t=Pt(e,t,n);break e}je(e,t,r,n)}t=t.child}return t;case 5:return Vf(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),je(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):je(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Fu(e,t,r,l,n);case 7:return je(e,t,t.pendingProps,n),t.child;case 8:return je(e,t,t.pendingProps.children,n),t.child;case 12:return je(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(at(i.value,o)){if(i.children===l.children&&!Re.current){t=Pt(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 c=i.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?a.next=a:(a.next=h.next,h.next=a),c.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(N(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}je(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,je(e,t,r,n),t.child;case 14:return r=t.type,l=rt(r,t.pendingProps),l=rt(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:rt(r,l),bl(e,t),t.tag=1,ze(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(N(156,t.tag))};function Od(e,t){return sf(e,t)}function bm(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 bm(e,t,n,r)}function Ta(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bm(e){if(typeof e=="function")return Ta(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ys)return 11;if(e===Gs)return 14}return 2}function Ht(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 Wl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Ta(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Pn:return fn(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 Bo:return e=Ge(13,n,t,l),e.elementType=Bo,e.lanes=i,e;case Uo:return e=Ge(19,n,t,l),e.elementType=Uo,e.lanes=i,e;case Wc:return Ai(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bc:o=10;break e;case Uc:o=9;break e;case Ys:o=11;break e;case Gs:o=14;break e;case Rt:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Ge(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function fn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function Ai(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=Wc,e.lanes=n,e.stateNode={isHidden:!1},e}function zo(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function Oo(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 Um(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 Um(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 Wm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Md)}catch(e){console.error(e)}}Md(),Dc.exports=We;var Ym=Dc.exports,kr,ec=Ym;kr=ec.createRoot,ec.hydrateRoot;const tc=e=>e,Gm=()=>{let e=tc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tc}}},Xm=Gm();function vn(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(vn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Fd(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]=Wd(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=>{z.isValidElement(t[l])||Ud.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])?Wd(t[l]):t[l]:r[l]=t[l]}),r}function Or(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 eg(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function tg(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 ng(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)`},rg={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 Tt(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(eg(i.keys,s)){const a=tg(r.containerQueries?r:rg,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 lg(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,c=Ki(a,r)||{};return Tt(o,s,g=>{let m=vi(c,l,g);return g===m&&typeof g=="string"&&(m=vi(c,l,`${t}${g==="default"?"":er(g)}`,g)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function ig(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const og={m:"margin",p:"padding"},sg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ic={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ag=ig(e=>{if(e.length>2)if(ic[e])e=ic[e];else return[e];const[t,n]=e.split(""),r=og[t],l=sg[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"],Da=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ia,...Da];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 Ma(e){return sl(e,"spacing",8)}function al(e,t){return typeof t=="string"||t==null?t:e(t)}function ug(e,t){return n=>e.reduce((r,l)=>(r[l]=al(t,n),r),{})}function cg(e,t,n,r){if(!t.includes(n))return null;const l=ag(n),i=ug(l,r),o=e[n];return Tt(e,o,i)}function Vd(e,t){const n=Ma(e.theme);return Object.keys(e).map(r=>cg(e,t,r,n)).reduce(Or,{})}function re(e){return Vd(e,Ia)}re.propTypes={};re.filterProps=Ia;function le(e){return Vd(e,Da)}le.propTypes={};le.filterProps=Da;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]?Or(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 fg=et("border",Ye),dg=et("borderTop",Ye),pg=et("borderRight",Ye),hg=et("borderBottom",Ye),mg=et("borderLeft",Ye),gg=et("borderColor"),yg=et("borderTopColor"),vg=et("borderRightColor"),xg=et("borderBottomColor"),wg=et("borderLeftColor"),Sg=et("outline",Ye),kg=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 Tt(e,e.borderRadius,n)}return null};Gi.propTypes={};Gi.filterProps=["borderRadius"];Yi(fg,dg,pg,hg,mg,gg,yg,vg,xg,wg,Gi,Sg,kg);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 Tt(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 Tt(e,e.columnGap,n)}return null};Zi.propTypes={};Zi.filterProps=["columnGap"];const qi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({rowGap:al(t,r)});return Tt(e,e.rowGap,n)}return null};qi.propTypes={};qi.filterProps=["rowGap"];const Cg=ae({prop:"gridColumn"}),_g=ae({prop:"gridRow"}),Eg=ae({prop:"gridAutoFlow"}),jg=ae({prop:"gridAutoColumns"}),Ng=ae({prop:"gridAutoRows"}),Pg=ae({prop:"gridTemplateColumns"}),Tg=ae({prop:"gridTemplateRows"}),$g=ae({prop:"gridTemplateAreas"}),Ag=ae({prop:"gridArea"});Yi(Xi,Zi,qi,Cg,_g,Eg,jg,Ng,Pg,Tg,$g,Ag);function Hn(e,t){return t==="grey"?t:e}const Rg=ae({prop:"color",themeKey:"palette",transform:Hn}),zg=ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hn}),Og=ae({prop:"backgroundColor",themeKey:"palette",transform:Hn});Yi(Rg,zg,Og);function De(e){return e<=1&&e!==0?`${e*100}%`:e}const Lg=ae({prop:"width",transform:De}),Fa=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:De(n)}};return Tt(e,e.maxWidth,t)}return null};Fa.filterProps=["maxWidth"];const Ig=ae({prop:"minWidth",transform:De}),Dg=ae({prop:"height",transform:De}),Mg=ae({prop:"maxHeight",transform:De}),Fg=ae({prop:"minHeight",transform:De});ae({prop:"size",cssProperty:"width",transform:De});ae({prop:"size",cssProperty:"height",transform:De});const bg=ae({prop:"boxSizing"});Yi(Lg,Fa,Ig,Dg,Mg,Fg,bg);const Ji={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:Hn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hn},backgroundColor:{themeKey:"palette",transform:Hn},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:qi},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:De},maxWidth:{style:Fa},minWidth:{transform:De},height:{transform:De},maxHeight:{transform:De},minHeight:{transform:De},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 Bg(...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 Ug(e,t){return typeof e=="function"?e(t):e}function Wg(){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:c,transform:h,style:g}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const m=Ki(l,c)||{};return g?g(o):Tt(o,r,v=>{let x=vi(m,h,v);return v===x&&typeof v=="string"&&(x=vi(m,h,`${n}${v==="default"?"":er(v)}`,v)),a===!1?x:{[a]:x}})}function t(n){const{sx:r,theme:l={},nested:i}=n||{};if(!r)return null;const o=l.unstable_sxConfig??Ji;function s(a){let c=a;if(typeof a=="function")c=a(l);else if(typeof a!="object")return a;if(!c)return null;const h=lg(l.breakpoints),g=Object.keys(h);let m=h;return Object.keys(c).forEach(k=>{const v=Ug(c[k],l);if(v!=null)if(typeof v=="object")if(o[k])m=Or(m,e(k,v,l,o));else{const x=Tt({theme:l},v,E=>({[k]:E}));Bg(x,v)?m[k]=t({sx:v,theme:l,nested:!0}):m=Or(m,x)}else m=Or(m,e(k,v,l,o))}),!i&&l.modularCssLayers?{"@layer sx":nc(l,lc(g,m))}:nc(l,lc(g,m))}return Array.isArray(r)?r.map(s):s(r)}return t}const tr=Wg();tr.filterProps=["sx"];function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?ye(or,--Le):0,nr--,ue===10&&(nr=1,to--),ue}function Be(){return ue=Le2||Jr(ue)>3?"":" "}function r0(e,t){for(;--t&&Be()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return ul(e,Vl()+(t<6&&yt()==32&&Be()==32))}function zs(e){for(;Be();)switch(ue){case e:return Le;case 34:case 39:e!==34&&e!==39&&zs(ue);break;case 40:e===41&&zs(e);break;case 92:Be();break}return Le}function l0(e,t){for(;Be()&&e+ue!==57;)if(e+ue===84&&yt()===47)break;return"/*"+ul(t,Le-1)+"*"+eo(e===47?e:Be())}function i0(e){for(;!Jr(yt());)Be();return ul(e,Le)}function o0(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 c=0,h=0,g=o,m=0,k=0,v=0,x=1,E=1,p=1,f=0,y="",w=l,j=i,S=r,C=y;E;)switch(v=f,f=Be()){case 40:if(v!=108&&ye(C,g-1)==58){Rs(C+=V(Hl(f),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:C+=Hl(f);break;case 9:case 10:case 13:case 32:C+=n0(v);break;case 92:C+=r0(Vl()-1,7);continue;case 47:switch(yt()){case 42:case 47:$l(s0(l0(Be(),Vl()),t,n),a);break;default:C+="/"}break;case 123*x:s[c++]=dt(C)*p;case 125*x:case 59:case 0:switch(f){case 0:case 125:E=0;case 59+h:p==-1&&(C=V(C,/\f/g,"")),k>0&&dt(C)-g&&$l(k>32?sc(C+";",r,n,g-1):sc(V(C," ","")+";",r,n,g-2),a);break;case 59:C+=";";default:if($l(S=oc(C,t,n,c,h,l,s,y,w=[],j=[],g),i),f===123)if(h===0)Ql(C,t,S,S,w,i,g,s,j);else switch(m===99&&ye(C,3)===110?100:m){case 100:case 108:case 109:case 115:Ql(e,S,S,r&&$l(oc(e,S,S,0,0,l,s,y,l,w=[],g),j),l,j,g,s,r?w:j);break;default:Ql(C,S,S,S,[""],j,0,s,j)}}c=h=k=0,x=p=1,y=C="",g=o;break;case 58:g=1+dt(C),k=v;default:if(x<1){if(f==123)--x;else if(f==125&&x++==0&&t0()==125)continue}switch(C+=eo(f),f*x){case 38:p=h>0?1:(C+="\f",-1);break;case 44:s[c++]=(dt(C)-1)*p,p=1;break;case 64:yt()===45&&(C+=Hl(Be())),m=yt(),h=g=dt(y=C+=i0(Vl())),f++;break;case 45:v===45&&dt(C)==2&&(x=0)}}return i}function oc(e,t,n,r,l,i,o,s,a,c,h){for(var g=l-1,m=l===0?i:[""],k=Ua(m),v=0,x=0,E=0;v0?m[p]+" "+f:V(f,/&\f/g,m[p])))&&(a[E++]=y);return no(e,t,n,l===0?ba:s,a,c,h)}function s0(e,t,n){return no(e,t,n,Hd,eo(e0()),qr(e,2,-2),0)}function sc(e,t,n,r){return no(e,t,n,Ba,qr(e,0,r),qr(e,r+1,-1),r)}function Qn(e,t){for(var n="",r=Ua(e),l=0;l6)switch(ye(e,t+1)){case 109:if(ye(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+xi+(ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rs(e,"stretch")?qd(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ye(e,t+1)!==115)break;case 6444:switch(ye(e,dt(e)-3-(~Rs(e,"!important")&&10))){case 107:return V(e,":",":"+W)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(ye(e,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(ye(e,t+11)){case 114:return W+e+Ce+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+Ce+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+Ce+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+Ce+e+e}return e}var g0=function(t,n,r,l){if(t.length>-1&&!t.return)switch(t.type){case Ba:t.return=qd(t.value,t.length);break;case Qd:return Qn([gr(t,{value:V(t.value,"@","@"+W)})],l);case ba:if(t.length)return Jg(t.props,function(i){switch(qg(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qn([gr(t,{props:[V(i,/:(read-\w+)/,":"+xi+"$1")]})],l);case"::placeholder":return Qn([gr(t,{props:[V(i,/:(plac\w+)/,":"+W+"input-$1")]}),gr(t,{props:[V(i,/:(plac\w+)/,":"+xi+"$1")]}),gr(t,{props:[V(i,/:(plac\w+)/,Ce+"input-$1")]})],l)}return""})}},y0=[g0],v0=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(x){var E=x.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var l=t.stylisPlugins||y0,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var E=x.getAttribute("data-emotion").split(" "),p=1;p=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 C0={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},_0=/[A-Z]|^ms/g,E0=/_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(_0,"-$&").toLowerCase()}),cc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(E0,function(r,l,i){return pt={name:l,styles:i,next:pt},l})}return C0[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 pt={name:l.name,styles:l.styles,next:pt},l.name;var i=n;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)pt={name:o.name,styles:o.styles,next:pt},o=o.next;var s=i.styles+";";return s}return j0(e,t,n)}case"function":{if(e!==void 0){var a=pt,c=n(e);return pt=a,el(e,t,c)}break}}var h=n;if(t==null)return h;var g=t[h];return g!==void 0?g:h}function j0(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l96?O0:L0},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},I0=function(t){var n=t.cache,r=t.serialized,l=t.isStringTag;return Jd(n,r,l),T0(function(){return S0(n,r,l)}),null},D0=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),c=!a("as");return function(){var h=arguments,g=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&g.push("label:"+i+";"),h[0]==null||h[0].raw===void 0)g.push.apply(g,h);else{var m=h[0];g.push(m[0]);for(var k=h.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 U0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...l}=e,i=B0(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 c(m,k){const v=o.indexOf(k);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]]:k)-r/100}${n})`}function h(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 V0(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=U0(n),a=rp(l);let c=be({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:a,shape:{...W0,...i}},o);return c=ng(c),c.applyStyles=V0,c=t.reduce((h,g)=>be(h,g),c),c.unstable_sxConfig={...Ji,...o==null?void 0:o.unstable_sxConfig},c.unstable_sx=function(g){return tr({sx:g,theme:this})},c}const H0={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=H0[t];return r?`${n}-${r}`:`${Xm.generate(e)}-${t}`}function Q0(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:dn(n),isProcessed:!0};return r.style===n||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=dn(l.style))}),r}const K0=lp();function Io(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function un(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Y0(e){return e?(t,n)=>n[e]:null}function G0(e,t,n){e.theme=q0(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?un(r.style,n):r.style;else{const{variants:i,...o}=r;l=n?un(dn(o),n):o}return sp(e,r.variants,[l],n)}return r!=null&&r.isProcessed?n?un(dn(r.style),n):r.style:n?un(dn(r),n):r}function sp(e,t,n=[],r=void 0){var i;let l;e:for(let o=0;o{b0(s,S=>S.filter(C=>C!==tr));const{name:c,slot:h,skipVariantsResolver:g,skipSx:m,overridesResolver:k=Y0(ey(h)),...v}=a,x=c&&c.startsWith("Mui")||h?"components":"custom",E=g!==void 0?g:h&&h!=="Root"&&h!=="root"||!1,p=m||!1;let f=Io;h==="Root"||h==="root"?f=r:h?f=l:J0(s)&&(f=void 0);const y=F0(s,{shouldForwardProp:f,label:Z0(),...v}),w=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(P){return Kl(P,S,P.theme.modularCssLayers?x:void 0)};if(St(S)){const C=op(S);return function(D){return C.variants?Kl(D,C,D.theme.modularCssLayers?x:void 0):D.theme.modularCssLayers?un(C.style,x):C.style}}return S},j=(...S)=>{const C=[],P=S.map(w),D=[];if(C.push(i),c&&k&&D.push(function(A){var we,$;const M=($=(we=A.theme.components)==null?void 0:we[c])==null?void 0:$.styleOverrides;if(!M)return null;const U={};for(const I in M)U[I]=Kl(A,M[I],A.theme.modularCssLayers?"theme":void 0);return k(A,U)}),c&&!E&&D.push(function(A){var U,we;const T=A.theme,M=(we=(U=T==null?void 0:T.components)==null?void 0:U[c])==null?void 0:we.variants;return M?sp(A,M,[],A.theme.modularCssLayers?"theme":void 0):null}),p||D.push(tr),Array.isArray(P[0])){const d=P.shift(),A=new Array(C.length).fill(""),T=new Array(D.length).fill("");let M;M=[...A,...d,...T],M.raw=[...A,...d.raw,...T],C.unshift(M)}const O=[...C,...P,...D],L=y(...O);return s.muiName&&(L.muiName=s.muiName),L};return y.withConfig&&(j.withConfig=y.withConfig),j}}function Z0(e,t){return void 0}function q0(e){for(const t in e)return!1;return!0}function J0(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ey(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 c=a;r[i][c]=Ls(o[c],s[c],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 ty(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Wa(e,t=0,n=1){return ty(e,t,n)}function ny(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(ny(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(vn(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(vn(10,l))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:l}}const ry=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 ry(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=(c,h=(c+n/30)%12)=>l-i*Math.max(Math.min(h-3,9-h,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 ly(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=Wa(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=Wa(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=Wa(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 iy(e,t=.15){return Is(e)>.5?lo(e,t):io(e,t)}function Al(e,t,n){try{return iy(e,t)}catch{return e}}const oy=z.createContext(void 0);function sy(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 ay({props:e,name:t}){const n=z.useContext(oy);return sy({props:e,name:t,theme:{components:n}})}const mc={theme:void 0};function uy(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 cy(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])})},fy=(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)},dy=(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 Do(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},l={},i={},o={};return fy(e,(s,a,c)=>{if((typeof a=="string"||typeof a=="number")&&(!r||!r(s,a))){const h=`--${n?`${n}-`:""}${s.join("-")}`,g=dy(s,a);Object.assign(l,{[h]:g}),gc(i,s,`var(${h})`,c),gc(o,s,`var(${h}, ${g})`,c)}},s=>s[0]==="vars"),{css:l,vars:i,varsWithDefaults:o}}function py(e,t={}){const{getSelector:n=p,disableCssColorScheme:r,colorSchemeSelector:l,enableContrastVars:i}=t,{colorSchemes:o={},components:s,defaultColorScheme:a="light",...c}=e,{vars:h,css:g,varsWithDefaults:m}=Do(c,t);let k=m;const v={},{[a]:x,...E}=o;if(Object.entries(E||{}).forEach(([w,j])=>{const{vars:S,css:C,varsWithDefaults:P}=Do(j,t);k=be(k,P),v[w]={css:C,vars:S}}),x){const{css:w,vars:j,varsWithDefaults:S}=Do(x,t);k=be(k,S),v[a]={css:w,vars:j}}function p(w,j){var C,P;let S=l;if(l==="class"&&(S=".%s"),l==="data"&&(S="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(S=`[${l}="%s"]`),w){if(S==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((P=(C=o[w])==null?void 0:C.palette)==null?void 0:P.mode)||w})`]:{":root":j}};if(S)return e.defaultColorScheme===w?`:root, ${S.replace("%s",String(w))}`:S.replace("%s",String(w))}return":root"}return{vars:k,generateThemeVars:()=>{let w={...h};return Object.entries(v).forEach(([,{vars:j}])=>{w=be(w,j)}),w},generateStyleSheets:()=>{var D,O;const w=[],j=e.defaultColorScheme||"light";function S(L,d){Object.keys(d).length&&w.push(typeof L=="string"?{[L]:{...d}}:L)}S(n(void 0,{...g}),g);const{[j]:C,...P}=v;if(C){const{css:L}=C,d=(O=(D=o[j])==null?void 0:D.palette)==null?void 0:O.mode,A=!r&&d?{colorScheme:d,...L}:{...L};S(n(j,{...A}),A)}return Object.entries(P).forEach(([L,{css:d}])=>{var M,U;const A=(U=(M=o[L])==null?void 0:M.palette)==null?void 0:U.mode,T=!r&&A?{colorScheme:A,...d}:{...d};S(n(L,{...T}),T)}),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 hy(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"},my={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"},kn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Cn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},yr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},_n={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},En={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},jn={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 Ds=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 gy(e="light"){return e==="dark"?{main:_n[200],light:_n[50],dark:_n[400]}:{main:_n[700],light:_n[400],dark:_n[800]}}function yy(e="light"){return e==="dark"?{main:kn[200],light:kn[50],dark:kn[400]}:{main:kn[500],light:kn[300],dark:kn[700]}}function vy(e="light"){return e==="dark"?{main:Cn[500],light:Cn[300],dark:Cn[700]}:{main:Cn[700],light:Cn[400],dark:Cn[800]}}function xy(e="light"){return e==="dark"?{main:En[400],light:En[300],dark:En[700]}:{main:En[700],light:En[500],dark:En[900]}}function wy(e="light"){return e==="dark"?{main:jn[400],light:jn[300],dark:jn[700]}:{main:jn[800],light:jn[500],dark:jn[900]}}function Sy(e="light"){return e==="dark"?{main:yr[400],light:yr[300],dark:yr[700]}:{main:"#ed6c02",light:yr[500],dark:yr[900]}}function ky(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Va(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:l,...i}=e,o=e.primary||gy(t),s=e.secondary||yy(t),a=e.error||vy(t),c=e.info||xy(t),h=e.success||wy(t),g=e.warning||Sy(t);function m(E){return l?ky(E):ly(E,Ds.text.primary)>=n?Ds.text.primary:fp.text.primary}const k=({color:E,name:p,mainShade:f=500,lightShade:y=300,darkShade:w=700})=>{if(E={...E},!E.main&&E[f]&&(E.main=E[f]),!E.hasOwnProperty("main"))throw new Error(vn(11,p?` (${p})`:"",f));if(typeof E.main!="string")throw new Error(vn(12,p?` (${p})`:"",JSON.stringify(E.main)));return l?(vc(l,E,"light",y,r),vc(l,E,"dark",w,r)):(yc(E,"light",y,r),yc(E,"dark",w,r)),E.contrastText||(E.contrastText=m(E.main)),E};let v;return t==="light"?v=cp():t==="dark"&&(v=dp()),be({common:{...tl},mode:t,primary:k({color:o,name:"primary"}),secondary:k({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:k({color:a,name:"error"}),warning:k({color:g,name:"warning"}),info:k({color:c,name:"info"}),success:k({color:h,name:"success"}),grey:my,contrastThreshold:n,getContrastText:m,augmentColor:k,tonalOffset:r,...v},i)}function Cy(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 _y(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Ey(e){return Math.round(e*1e5)/1e5}const xc={textTransform:"uppercase"},wc='"Roboto", "Helvetica", "Arial", sans-serif';function jy(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:c,pxToRem:h,...g}=typeof t=="function"?t(e):t,m=r/14,k=h||(E=>`${E/a*m}rem`),v=(E,p,f,y,w)=>({fontFamily:n,fontWeight:E,fontSize:k(p),lineHeight:f,...n===wc?{letterSpacing:`${Ey(y/p)}em`}:{},...w,...c}),x={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:k,fontFamily:n,fontSize:r,fontWeightLight:l,fontWeightRegular:i,fontWeightMedium:o,fontWeightBold:s,...x},g,{clone:!1})}const Ny=.2,Py=.14,Ty=.12;function q(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ny})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Py})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ty})`].join(",")}const $y=["none",q(0,2,1,-1,0,1,1,0,0,1,3,0),q(0,3,1,-2,0,2,2,0,0,1,5,0),q(0,3,3,-2,0,3,4,0,0,1,8,0),q(0,2,4,-1,0,4,5,0,0,1,10,0),q(0,3,5,-1,0,5,8,0,0,1,14,0),q(0,3,5,-1,0,6,10,0,0,1,18,0),q(0,4,5,-2,0,7,10,1,0,2,16,1),q(0,5,5,-3,0,8,10,1,0,3,14,2),q(0,5,6,-3,0,9,12,1,0,3,16,2),q(0,6,6,-3,0,10,14,1,0,4,18,3),q(0,6,7,-4,0,11,15,1,0,4,20,3),q(0,7,8,-4,0,12,17,2,0,5,22,4),q(0,7,8,-4,0,13,19,2,0,5,24,4),q(0,7,9,-4,0,14,21,2,0,5,26,4),q(0,8,9,-5,0,15,22,2,0,6,28,5),q(0,8,10,-5,0,16,24,2,0,6,30,5),q(0,8,11,-5,0,17,26,2,0,6,32,5),q(0,9,11,-5,0,18,28,2,0,7,34,6),q(0,9,12,-6,0,19,29,2,0,7,36,6),q(0,10,13,-6,0,20,31,3,0,8,38,7),q(0,10,13,-6,0,21,33,3,0,8,40,7),q(0,10,14,-6,0,22,35,3,0,8,42,7),q(0,11,14,-7,0,23,36,3,0,9,44,8),q(0,11,15,-7,0,24,38,3,0,9,46,8)],Ay={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)"},Ry={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sc(e){return`${Math.round(e)}ms`}function zy(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={...Ay,...e.easing},n={...Ry,...e.duration};return{getAutoHeightDuration:zy,create:(l=["all"],i={})=>{const{duration:o=n.standard,easing:s=t.easeInOut,delay:a=0,...c}=i;return(Array.isArray(l)?l:[l]).map(h=>`${h} ${typeof o=="string"?o:Sc(o)} ${s} ${typeof a=="string"?a:Sc(a)}`).join(",")},...e,easing:t,duration:n}}const Ly={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Iy(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,x),k),k.unstable_sxConfig={...Ji,...h==null?void 0:h.unstable_sxConfig},k.unstable_sx=function(x){return tr({sx:x,theme:this})},k.toRuntimeSource=pp,My(k),k}function Fy(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 by=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Fy(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"?by:[]}function By(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:l,...i}=e,o=Va({...t,colorSpace:l});return{palette:o,opacity:{...hp(o.mode),...n},overlays:r||mp(o.mode),...i}}function Uy(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 Wy=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Vy=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 Wy(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 Hy(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function _(e,t,n){!e[t]&&n&&(e[t]=n)}function _r(e){return typeof e!="string"||!e.startsWith("hsl")?e:ap(e)}function vt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Cr(_r(e[t])))}function Qy(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ct=e=>{try{return e()}catch{}},Ky=(e="mui")=>cy(e);function Mo(e,t,n,r,l){if(!n)return;n=n===!0?{}:n;const i=l==="dark"?"dark":"light";if(!r){t[l]=By({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:o,...s}=Ms({...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 Yy(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:l=!1,cssVarPrefix:i="mui",nativeColor:o=!1,shouldSkipGeneratingVar:s=Uy,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...h}=e,g=Object.keys(n)[0],m=r||(n.light&&g!=="light"?"light":g),k=Ky(i),{[m]:v,light:x,dark:E,...p}=n,f={...p};let y=v;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(y=!0),!y)throw new Error(vn(21,m));let w;o&&(w="oklch");const j=Mo(w,f,y,h,m);x&&!f.light&&Mo(w,f,x,void 0,"light"),E&&!f.dark&&Mo(w,f,E,void 0,"dark");let S={defaultColorScheme:m,...j,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:c,getCssVar:k,colorSchemes:f,font:{...Cy(j.typography),...j.font},spacing:Qy(h.spacing)};Object.keys(S.colorSchemes).forEach(L=>{const d=S.colorSchemes[L].palette,A=M=>{const U=M.split("-"),we=U[1],$=U[2];return k(M,d[we][$])};d.mode==="light"&&(_(d.common,"background","#fff"),_(d.common,"onBackground","#000")),d.mode==="dark"&&(_(d.common,"background","#000"),_(d.common,"onBackground","#fff"));function T(M,U,we){if(w){let $;return M===tn&&($=`transparent ${((1-we)*100).toFixed(0)}%`),M===H&&($=`#000 ${(we*100).toFixed(0)}%`),M===Q&&($=`#fff ${(we*100).toFixed(0)}%`),`color-mix(in ${w}, ${U}, ${$})`}return M(U,we)}if(Hy(d,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),d.mode==="light"){_(d.Alert,"errorColor",T(H,d.error.light,.6)),_(d.Alert,"infoColor",T(H,d.info.light,.6)),_(d.Alert,"successColor",T(H,d.success.light,.6)),_(d.Alert,"warningColor",T(H,d.warning.light,.6)),_(d.Alert,"errorFilledBg",A("palette-error-main")),_(d.Alert,"infoFilledBg",A("palette-info-main")),_(d.Alert,"successFilledBg",A("palette-success-main")),_(d.Alert,"warningFilledBg",A("palette-warning-main")),_(d.Alert,"errorFilledColor",ct(()=>d.getContrastText(d.error.main))),_(d.Alert,"infoFilledColor",ct(()=>d.getContrastText(d.info.main))),_(d.Alert,"successFilledColor",ct(()=>d.getContrastText(d.success.main))),_(d.Alert,"warningFilledColor",ct(()=>d.getContrastText(d.warning.main))),_(d.Alert,"errorStandardBg",T(Q,d.error.light,.9)),_(d.Alert,"infoStandardBg",T(Q,d.info.light,.9)),_(d.Alert,"successStandardBg",T(Q,d.success.light,.9)),_(d.Alert,"warningStandardBg",T(Q,d.warning.light,.9)),_(d.Alert,"errorIconColor",A("palette-error-main")),_(d.Alert,"infoIconColor",A("palette-info-main")),_(d.Alert,"successIconColor",A("palette-success-main")),_(d.Alert,"warningIconColor",A("palette-warning-main")),_(d.AppBar,"defaultBg",A("palette-grey-100")),_(d.Avatar,"defaultBg",A("palette-grey-400")),_(d.Button,"inheritContainedBg",A("palette-grey-300")),_(d.Button,"inheritContainedHoverBg",A("palette-grey-A100")),_(d.Chip,"defaultBorder",A("palette-grey-400")),_(d.Chip,"defaultAvatarColor",A("palette-grey-700")),_(d.Chip,"defaultIconColor",A("palette-grey-700")),_(d.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_(d.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_(d.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_(d.LinearProgress,"primaryBg",T(Q,d.primary.main,.62)),_(d.LinearProgress,"secondaryBg",T(Q,d.secondary.main,.62)),_(d.LinearProgress,"errorBg",T(Q,d.error.main,.62)),_(d.LinearProgress,"infoBg",T(Q,d.info.main,.62)),_(d.LinearProgress,"successBg",T(Q,d.success.main,.62)),_(d.LinearProgress,"warningBg",T(Q,d.warning.main,.62)),_(d.Skeleton,"bg",w?T(tn,d.text.primary,.11):`rgba(${A("palette-text-primaryChannel")} / 0.11)`),_(d.Slider,"primaryTrack",T(Q,d.primary.main,.62)),_(d.Slider,"secondaryTrack",T(Q,d.secondary.main,.62)),_(d.Slider,"errorTrack",T(Q,d.error.main,.62)),_(d.Slider,"infoTrack",T(Q,d.info.main,.62)),_(d.Slider,"successTrack",T(Q,d.success.main,.62)),_(d.Slider,"warningTrack",T(Q,d.warning.main,.62));const M=w?T(H,d.background.default,.6825):Al(d.background.default,.8);_(d.SnackbarContent,"bg",M),_(d.SnackbarContent,"color",ct(()=>w?Ds.text.primary:d.getContrastText(M))),_(d.SpeedDialAction,"fabHoverBg",Al(d.background.paper,.15)),_(d.StepConnector,"border",A("palette-grey-400")),_(d.StepContent,"border",A("palette-grey-400")),_(d.Switch,"defaultColor",A("palette-common-white")),_(d.Switch,"defaultDisabledColor",A("palette-grey-100")),_(d.Switch,"primaryDisabledColor",T(Q,d.primary.main,.62)),_(d.Switch,"secondaryDisabledColor",T(Q,d.secondary.main,.62)),_(d.Switch,"errorDisabledColor",T(Q,d.error.main,.62)),_(d.Switch,"infoDisabledColor",T(Q,d.info.main,.62)),_(d.Switch,"successDisabledColor",T(Q,d.success.main,.62)),_(d.Switch,"warningDisabledColor",T(Q,d.warning.main,.62)),_(d.TableCell,"border",T(Q,T(tn,d.divider,1),.88)),_(d.Tooltip,"bg",T(tn,d.grey[700],.92))}if(d.mode==="dark"){_(d.Alert,"errorColor",T(Q,d.error.light,.6)),_(d.Alert,"infoColor",T(Q,d.info.light,.6)),_(d.Alert,"successColor",T(Q,d.success.light,.6)),_(d.Alert,"warningColor",T(Q,d.warning.light,.6)),_(d.Alert,"errorFilledBg",A("palette-error-dark")),_(d.Alert,"infoFilledBg",A("palette-info-dark")),_(d.Alert,"successFilledBg",A("palette-success-dark")),_(d.Alert,"warningFilledBg",A("palette-warning-dark")),_(d.Alert,"errorFilledColor",ct(()=>d.getContrastText(d.error.dark))),_(d.Alert,"infoFilledColor",ct(()=>d.getContrastText(d.info.dark))),_(d.Alert,"successFilledColor",ct(()=>d.getContrastText(d.success.dark))),_(d.Alert,"warningFilledColor",ct(()=>d.getContrastText(d.warning.dark))),_(d.Alert,"errorStandardBg",T(H,d.error.light,.9)),_(d.Alert,"infoStandardBg",T(H,d.info.light,.9)),_(d.Alert,"successStandardBg",T(H,d.success.light,.9)),_(d.Alert,"warningStandardBg",T(H,d.warning.light,.9)),_(d.Alert,"errorIconColor",A("palette-error-main")),_(d.Alert,"infoIconColor",A("palette-info-main")),_(d.Alert,"successIconColor",A("palette-success-main")),_(d.Alert,"warningIconColor",A("palette-warning-main")),_(d.AppBar,"defaultBg",A("palette-grey-900")),_(d.AppBar,"darkBg",A("palette-background-paper")),_(d.AppBar,"darkColor",A("palette-text-primary")),_(d.Avatar,"defaultBg",A("palette-grey-600")),_(d.Button,"inheritContainedBg",A("palette-grey-800")),_(d.Button,"inheritContainedHoverBg",A("palette-grey-700")),_(d.Chip,"defaultBorder",A("palette-grey-700")),_(d.Chip,"defaultAvatarColor",A("palette-grey-300")),_(d.Chip,"defaultIconColor",A("palette-grey-300")),_(d.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_(d.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_(d.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_(d.LinearProgress,"primaryBg",T(H,d.primary.main,.5)),_(d.LinearProgress,"secondaryBg",T(H,d.secondary.main,.5)),_(d.LinearProgress,"errorBg",T(H,d.error.main,.5)),_(d.LinearProgress,"infoBg",T(H,d.info.main,.5)),_(d.LinearProgress,"successBg",T(H,d.success.main,.5)),_(d.LinearProgress,"warningBg",T(H,d.warning.main,.5)),_(d.Skeleton,"bg",w?T(tn,d.text.primary,.13):`rgba(${A("palette-text-primaryChannel")} / 0.13)`),_(d.Slider,"primaryTrack",T(H,d.primary.main,.5)),_(d.Slider,"secondaryTrack",T(H,d.secondary.main,.5)),_(d.Slider,"errorTrack",T(H,d.error.main,.5)),_(d.Slider,"infoTrack",T(H,d.info.main,.5)),_(d.Slider,"successTrack",T(H,d.success.main,.5)),_(d.Slider,"warningTrack",T(H,d.warning.main,.5));const M=w?T(Q,d.background.default,.985):Al(d.background.default,.98);_(d.SnackbarContent,"bg",M),_(d.SnackbarContent,"color",ct(()=>w?fp.text.primary:d.getContrastText(M))),_(d.SpeedDialAction,"fabHoverBg",Al(d.background.paper,.15)),_(d.StepConnector,"border",A("palette-grey-600")),_(d.StepContent,"border",A("palette-grey-600")),_(d.Switch,"defaultColor",A("palette-grey-300")),_(d.Switch,"defaultDisabledColor",A("palette-grey-600")),_(d.Switch,"primaryDisabledColor",T(H,d.primary.main,.55)),_(d.Switch,"secondaryDisabledColor",T(H,d.secondary.main,.55)),_(d.Switch,"errorDisabledColor",T(H,d.error.main,.55)),_(d.Switch,"infoDisabledColor",T(H,d.info.main,.55)),_(d.Switch,"successDisabledColor",T(H,d.success.main,.55)),_(d.Switch,"warningDisabledColor",T(H,d.warning.main,.55)),_(d.TableCell,"border",T(H,T(tn,d.divider,1),.68)),_(d.Tooltip,"bg",T(tn,d.grey[700],.92))}vt(d.background,"default"),vt(d.background,"paper"),vt(d.common,"background"),vt(d.common,"onBackground"),vt(d,"divider"),Object.keys(d).forEach(M=>{const U=d[M];M!=="tonalOffset"&&U&&typeof U=="object"&&(U.main&&_(d[M],"mainChannel",Cr(_r(U.main))),U.light&&_(d[M],"lightChannel",Cr(_r(U.light))),U.dark&&_(d[M],"darkChannel",Cr(_r(U.dark))),U.contrastText&&_(d[M],"contrastTextChannel",Cr(_r(U.contrastText))),M==="text"&&(vt(d[M],"primary"),vt(d[M],"secondary")),M==="action"&&(U.active&&vt(d[M],"active"),U.selected&&vt(d[M],"selected")))})}),S=t.reduce((L,d)=>be(L,d),S);const C={prefix:i,disableCssColorScheme:l,shouldSkipGeneratingVar:s,getSelector:Vy(S),enableContrastVars:o},{vars:P,generateThemeVars:D,generateStyleSheets:O}=py(S,C);return S.vars=P,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([L,d])=>{S[L]=d}),S.generateThemeVars=D,S.generateStyleSheets=O,S.generateSpacing=function(){return rp(h.spacing,Ma(this))},S.getColorSchemeSelector=hy(a),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...Ji,...h==null?void 0:h.unstable_sxConfig},S.unstable_sx=function(d){return tr({sx:d,theme:this})},S.toRuntimeSource=pp,S}function Cc(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Va({...n===!0?{}:n.palette,mode:t})})}function Gy(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],c={...l,...n?{[s]:{...typeof a!="boolean"&&a,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Ms(e,...t);let h=n;"palette"in e||c[s]&&(c[s]!==!0?h=c[s].palette:s==="dark"&&(h={mode:"dark"}));const g=Ms({...e,palette:h},...t);return g.defaultColorScheme=s,g.colorSchemes=c,g.palette.mode==="light"&&(g.colorSchemes.light={...c.light!==!0&&c.light,palette:g.palette},Cc(g,"dark",c.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:g.palette},Cc(g,"light",c.light)),g}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),Yy({...o,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const Xy=Gy(),Zy="$$material";function qy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Jy=e=>qy(e)&&e!=="classes",ev=X0({themeId:Zy,defaultTheme:Xy,rootShouldForwardProp:Jy}),tv=uy;function nv(e){return ay(e)}function rv(e){return ip("MuiSvgIcon",e)}Q0("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lv=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${er(t)}`,`fontSize${er(n)}`]};return Zm(l,rv,r)},iv=ev("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)}`]]}})(tv(({theme:e})=>{var t,n,r,l,i,o,s,a,c,h,g,m,k,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:x=>!x.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:((h=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:h.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,x])=>x&&x.main).map(([x])=>{var E,p;return{props:{color:x},style:{color:(p=(E=(e.vars??e).palette)==null?void 0:E[x])==null?void 0:p.main}}}),{props:{color:"action"},style:{color:(m=(g=(e.vars??e).palette)==null?void 0:g.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(v=(k=(e.vars??e).palette)==null?void 0:k.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Fs=z.forwardRef(function(t,n){const r=nv({props:t,name:"MuiSvgIcon"}),{children:l,className:i,color:o="inherit",component:s="svg",fontSize:a="medium",htmlColor:c,inheritViewBox:h=!1,titleAccess:g,viewBox:m="0 0 24 24",...k}=r,v=z.isValidElement(l)&&l.type==="svg",x={...r,color:o,component:s,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:m,hasSvgAsChild:v},E={};h||(E.viewBox=m);const p=lv(x);return u.jsxs(iv,{as:s,className:bd(p.root,i),focusable:"false",color:c,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n,...E,...k,...v&&l.props,ownerState:x,children:[v?l.props.children:l,g?u.jsx("title",{children:g}):null]})});Fs.muiName="SvgIcon";function tt(e,t){function n(r,l){return u.jsx(Fs,{"data-testid":void 0,ref:l,...r,children:e})}return n.muiName=Fs.muiName,z.memo(z.forwardRef(n))}const gp=tt(u.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"})),ov=tt(u.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"})),sv=tt(u.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"})),yp=tt(u.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"})),vp=tt(u.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=tt(u.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),uv=tt(u.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=tt(u.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=tt(u.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]=z.useState({postsCount:0,pagesCount:0,commentsCount:0,usersCount:0,recentPosts:[],recentComments:[],loading:!0});z.useEffect(()=>{(async()=>{var i,o,s,a;try{const[c,h,g,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`)]),[k,v,x,E]=await Promise.all([c.json(),h.json(),g.json(),m.json()]);t({postsCount:c.headers.get("X-WP-Total")||k.length,pagesCount:h.headers.get("X-WP-Total")||v.length,commentsCount:g.headers.get("X-WP-Total")||x.length,usersCount:m.headers.get("X-WP-Total")||E.length,recentPosts:k.slice(0,5),recentComments:x.slice(0,5),loading:!1})}catch{t(h=>({...h,loading:!1}))}})()},[]);const n=({title:l,count:i,icon:o,color:s,trend:a})=>u.jsxs("div",{className:`helix-stats-card helix-stats-card--${s}`,children:[u.jsx("div",{className:"helix-stats-card__icon",children:u.jsx(o,{})}),u.jsxs("div",{className:"helix-stats-card__content",children:[u.jsxs("div",{className:"helix-stats-card__header",children:[u.jsx("h3",{className:"helix-stats-card__count",children:i}),a&&u.jsxs("div",{className:"helix-stats-card__trend",children:[u.jsx(fv,{className:"helix-trend-icon"}),u.jsx("span",{children:a})]})]}),u.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?u.jsx("div",{className:"helix-settings-page",children:u.jsxs("div",{className:"helix-loading",children:[u.jsx("div",{className:"helix-spinner"}),u.jsx("p",{children:"Loading dashboard..."})]})}):u.jsxs("div",{className:"helix-dashboard",children:[u.jsxs("div",{className:"helix-dashboard__header",children:[u.jsx("h1",{children:"Welcome to Helix"}),u.jsx("p",{children:"Your modern WordPress admin experience"})]}),u.jsxs("div",{className:"helix-dashboard__stats",children:[u.jsx(n,{title:"Posts",count:e.postsCount,icon:gp,color:"blue",trend:"+12%"}),u.jsx(n,{title:"Pages",count:e.pagesCount,icon:ov,color:"green",trend:"+5%"}),u.jsx(n,{title:"Comments",count:e.commentsCount,icon:sv,color:"orange",trend:"+28%"}),u.jsx(n,{title:"Users",count:e.usersCount,icon:yp,color:"purple",trend:"+3%"})]}),u.jsxs("div",{className:"helix-dashboard__content",children:[u.jsxs("div",{className:"helix-widget",children:[u.jsxs("div",{className:"helix-widget__header",children:[u.jsx("h2",{children:"Recent Posts"}),u.jsx("a",{href:"/wp-admin/edit.php",className:"helix-widget__link",children:"View All"})]}),u.jsx("div",{className:"helix-widget__content",children:e.recentPosts.length>0?u.jsx("ul",{className:"helix-posts-list",children:e.recentPosts.map(l=>u.jsxs("li",{className:"helix-posts-list__item",children:[u.jsxs("div",{className:"helix-posts-list__content",children:[u.jsx("h3",{className:"helix-posts-list__title",children:u.jsx("a",{href:`/wp-admin/post.php?post=${l.id}&action=edit`,children:l.title.rendered||"Untitled"})}),u.jsx("p",{className:"helix-posts-list__date",children:r(l.date)})]}),u.jsx("div",{className:"helix-posts-list__status",children:u.jsx("span",{className:`helix-status helix-status--${l.status}`,children:l.status})})]},l.id))}):u.jsxs("p",{className:"helix-widget__empty",children:["No posts yet."," ",u.jsx("a",{href:"/wp-admin/post-new.php",children:"Create your first post!"})]})})]}),u.jsxs("div",{className:"helix-widget",children:[u.jsxs("div",{className:"helix-widget__header",children:[u.jsx("h2",{children:"Recent Comments"}),u.jsx("a",{href:"/wp-admin/edit-comments.php",className:"helix-widget__link",children:"View All"})]}),u.jsx("div",{className:"helix-widget__content",children:e.recentComments.length>0?u.jsx("ul",{className:"helix-comments-list",children:e.recentComments.map(l=>u.jsxs("li",{className:"helix-comments-list__item",children:[u.jsxs("div",{className:"helix-comments-list__content",children:[u.jsx("h4",{className:"helix-comments-list__author",children:l.author_name}),u.jsxs("p",{className:"helix-comments-list__excerpt",children:[l.content.rendered.replace(/<[^>]*>/g,"").substring(0,100),"..."]}),u.jsx("p",{className:"helix-comments-list__date",children:r(l.date)})]}),u.jsx("div",{className:"helix-comments-list__status",children:u.jsx("span",{className:`helix-status helix-status--${l.status}`,children:l.status})})]},l.id))}):u.jsx("p",{className:"helix-widget__empty",children:"No comments yet."})})]}),u.jsxs("div",{className:"helix-widget",children:[u.jsx("div",{className:"helix-widget__header",children:u.jsx("h2",{children:"Quick Actions"})}),u.jsx("div",{className:"helix-widget__content",children:u.jsxs("div",{className:"helix-quick-actions",children:[u.jsxs("a",{href:"/wp-admin/post-new.php",className:"helix-quick-action",children:[u.jsx("span",{className:"helix-quick-action__icon",children:u.jsx(vp,{})}),u.jsx("span",{className:"helix-quick-action__text",children:"Write a Post"})]}),u.jsxs("a",{href:"/wp-admin/post-new.php?post_type=page",className:"helix-quick-action",children:[u.jsx("span",{className:"helix-quick-action__icon",children:u.jsx(av,{})}),u.jsx("span",{className:"helix-quick-action__text",children:"Create a Page"})]}),u.jsxs("a",{href:"/wp-admin/upload.php",className:"helix-quick-action",children:[u.jsx("span",{className:"helix-quick-action__icon",children:u.jsx(uv,{})}),u.jsx("span",{className:"helix-quick-action__text",children:"Upload Media"})]}),u.jsxs("a",{href:"/wp-admin/edit-comments.php",className:"helix-quick-action",children:[u.jsx("span",{className:"helix-quick-action__icon",children:u.jsx(cv,{})}),u.jsx("span",{className:"helix-quick-action__text",children:"Moderate Comments"})]})]})})]}),u.jsxs("div",{className:"helix-widget",children:[u.jsx("div",{className:"helix-widget__header",children:u.jsx("h2",{children:"WordPress News"})}),u.jsxs("div",{className:"helix-widget__content",children:[u.jsx("p",{children:"Stay updated with the latest WordPress news and updates."}),u.jsx("div",{className:"helix-news-placeholder",children:u.jsxs("div",{className:"helix-news-item",children:[u.jsx("h4",{children:"WordPress 6.4 “Shirley” Released"}),u.jsx("p",{children:"The latest version includes new features and improvements..."}),u.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)||""},xp=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()=>xp("settings"),gv=async e=>xp("settings",{method:"POST",body:JSON.stringify(e)}),yv=()=>{const[e,t]=z.useState({}),[n,r]=z.useState({}),[l,i]=z.useState(!0),[o,s]=z.useState(!1),[a,c]=z.useState(null),[h,g]=z.useState(!1),m=f=>f&&typeof f=="object"&&"value"in f?f.value:f,k=z.useCallback(async()=>{try{i(!0),c(null);const f=await mv(),y={};Object.keys(f).forEach(w=>{Object.keys(f[w]).forEach(j=>{const S=f[w][j];S.options&&Array.isArray(S.options)?y[j]=S:y[j]=S.value})}),t(y),r(y),g(!1)}catch(f){c(f.message)}finally{i(!1)}},[]),v=z.useCallback((f,y)=>{t(w=>{let j;w[f]&&typeof w[f]=="object"&&"options"in w[f]?j={...w,[f]:{...w[f],value:y}}:j={...w,[f]:y};const S=Object.keys(j).some(C=>m(j[C])!==m(n[C]));return g(S),j})},[n]),x=z.useCallback(async()=>{try{s(!0),c(null);const f={};if(Object.keys(e).forEach(w=>{const j=m(e[w]),S=m(n[w]);j!==S&&(f[w]=j)}),Object.keys(f).length===0)return{success:!0,message:"No changes to save"};const y=await gv(f);return r(e),g(!1),{success:!0,message:"Settings saved successfully",updated:y.updated,errors:y.errors}}catch(f){return c(f.message),{success:!1,message:f.message}}finally{s(!1)}},[e,n]),E=z.useCallback(()=>{t(n),g(!1),c(null)},[n]),p=z.useCallback(f=>{const y=m(n[f]);v(f,y)},[n,v]);return z.useEffect(()=>{k()},[k]),z.useEffect(()=>{const f=y=>{if(h)return y.preventDefault(),y.returnValue="You have unsaved changes. Are you sure you want to leave?",y.returnValue};return window.addEventListener("beforeunload",f),()=>window.removeEventListener("beforeunload",f)},[h]),{settings:e,loading:l,saving:o,error:a,hasUnsavedChanges:h,updateSetting:v,saveSettings:x,resetSettings:E,resetSetting:p,loadSettings:k}},vv=tt(u.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),xv=tt(u.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),wv=tt(u.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),Sv=({activeTab:e,onTabChange:t,hasUnsavedChanges:n})=>{const r=[{id:"site",label:"Site Information",icon:vv},{id:"content",label:"Content & Reading",icon:gp},{id:"writing",label:"Writing & Publishing",icon:vp},{id:"media",label:"Media & Assets",icon:xv},{id:"users",label:"Users & Membership",icon:yp},{id:"helix",label:"Helix Settings",icon:wv}];return u.jsx("div",{className:"helix-settings-tabs",children:u.jsx("nav",{className:"helix-tabs-nav",role:"tablist",children:r.map(l=>u.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:[u.jsx("span",{className:"helix-tab-icon",children:u.jsx(l.icon,{})}),u.jsx("span",{className:"helix-tab-label",children:l.label}),n&&u.jsx("span",{className:"helix-tab-indicator",title:"Unsaved changes",children:"●"})]},l.id))})})},kv=({onSave:e,onReset:t,saving:n=!1,hasUnsavedChanges:r=!1,disabled:l=!1})=>u.jsxs("div",{className:"helix-save-buttons",children:[u.jsx("button",{type:"button",onClick:e,disabled:l||n||!r,className:`helix-btn helix-btn-primary ${n?"saving":""}`,children:n?u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"helix-spinner"}),"Saving..."]}):"Save Changes"}),r&&!n&&u.jsx("button",{type:"button",onClick:t,className:"helix-btn helix-btn-secondary",children:"Reset Changes"}),!r&&!n&&u.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]=z.useState(!0);if(z.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 u.jsx("div",{className:`helix-notification helix-notification-${e} ${i?"visible":""}`,children:u.jsxs("div",{className:"helix-notification-content",children:[u.jsx("span",{className:"helix-notification-icon",children:s()}),u.jsx("span",{className:"helix-notification-message",children:t}),n&&u.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=""})=>u.jsxs("div",{className:`helix-settings-section ${r}`,children:[e&&u.jsxs("div",{className:"helix-settings-section-header",children:[u.jsx("h3",{className:"helix-settings-section-title",children:e}),t&&u.jsx("p",{className:"helix-settings-section-description",children:t})]}),u.jsx("div",{className:"helix-settings-section-content",children:n})]}),oo=({label:e,description:t,error:n,required:r=!1,children:l,className:i=""})=>u.jsxs("div",{className:`helix-form-field ${i}`,children:[e&&u.jsxs("label",{className:"helix-form-label",children:[e,r&&u.jsx("span",{className:"helix-required",children:"*"})]}),u.jsx("div",{className:"helix-form-control",children:l}),t&&u.jsx("p",{className:"helix-form-description",children:t}),n&&u.jsx("p",{className:"helix-form-error",children:n})]}),ln=({label:e,description:t,value:n,onChange:r,placeholder:l="",type:i="text",required:o=!1,disabled:s=!1,error:a=null,className:c="",...h})=>{const g=m=>{r(m.target.value)};return u.jsx(oo,{label:e,description:t,error:a,required:o,className:c,children:u.jsx("input",{type:i,value:n||"",onChange:g,placeholder:l,required:o,disabled:s,className:"helix-text-input",...h})})},Qt=({label:e,description:t,value:n,onChange:r,options:l=[],required:i=!1,disabled:o=!1,error:s=null,className:a="",placeholder:c="Select an option...",...h})=>{const g=m=>{r(m.target.value)};return u.jsx(oo,{label:e,description:t,error:s,required:i,className:a,children:u.jsxs("select",{value:n||"",onChange:g,required:i,disabled:o,className:"helix-select-input",...h,children:[c&&u.jsx("option",{value:"",disabled:!0,children:c}),l.map(m=>u.jsx("option",{value:m.value,children:m.label},m.value))]})})},Ec=({settings:e,updateSetting:t})=>{var n,r,l,i;return u.jsx(sr,{title:"Site Information",description:"Basic information about your WordPress site",children:u.jsxs("div",{className:"helix-settings-grid",children:[u.jsx(ln,{label:"Site Title",description:"In a few words, explain what this site is about.",value:e.siteTitle,onChange:o=>t("siteTitle",o),placeholder:"My Awesome Site",required:!0}),u.jsx(ln,{label:"Tagline",description:"A brief description of your site, usually displayed under the title.",value:e.tagline,onChange:o=>t("tagline",o),placeholder:"Just another WordPress site"}),u.jsx(ln,{label:"WordPress Address (URL)",description:"The address of your WordPress core files.",value:e.siteUrl,onChange:o=>t("siteUrl",o),type:"url",placeholder:"https://example.com"}),u.jsx(ln,{label:"Site Address (URL)",description:"The address you want people to type in their browser to reach your website.",value:e.homeUrl,onChange:o=>t("homeUrl",o),type:"url",placeholder:"https://example.com"}),u.jsx(ln,{label:"Administration Email Address",description:"This address is used for admin purposes, like new user notification.",value:e.adminEmail,onChange:o=>t("adminEmail",o),type:"email",placeholder:"admin@example.com",required:!0}),u.jsx(Qt,{label:"Site Language",description:"The language for your site interface.",value:((n=e.language)==null?void 0:n.value)||e.language||"",onChange:o=>t("language",o),options:((r=e.language)==null?void 0:r.options)||[],placeholder:"Select a language..."}),u.jsx(Qt,{label:"Timezone",description:"Choose either a city in the same timezone as you or a UTC timezone offset.",value:((l=e.timezone)==null?void 0:l.value)||e.timezone||"",onChange:o=>t("timezone",o),options:((i=e.timezone)==null?void 0:i.options)||[],placeholder:"Select a timezone..."})]})})},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:c=null,className:h="",...g})=>{const m=k=>{const v=k.target.value;r(v===""?"":Number(v))};return u.jsx(oo,{label:e,description:t,error:c,required:s,className:h,children:u.jsx("input",{type:"number",value:n||"",onChange:m,min:l,max:i,step:o,required:s,disabled:a,className:"helix-number-input",...g})})},cl=({label:e,description:t,value:n,onChange:r,required:l=!1,disabled:i=!1,error:o=null,className:s="",id:a=`toggle-${Math.random().toString(36).substr(2,9)}`,...c})=>{const h=()=>{i||r(!n)};return u.jsx(oo,{description:t,error:o,required:l,className:`helix-toggle-field ${s}`,children:u.jsxs("div",{className:"helix-toggle-wrapper",children:[e&&u.jsx("label",{htmlFor:a,className:`helix-toggle-label ${i?"helix-toggle-label-disabled":""}`,children:e}),u.jsx("button",{id:a,type:"button",role:"switch","aria-checked":!!n,onClick:h,disabled:i,className:`helix-toggle-switch ${n?"helix-toggle-switch-on":"helix-toggle-switch-off"} ${i?"helix-toggle-switch-disabled":""}`,...c,children:u.jsx("span",{className:`helix-toggle-knob ${n?"helix-toggle-knob-on":"helix-toggle-knob-off"}`})})]})})},Cv=({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 u.jsx(sr,{title:"Content & Reading",description:"Settings that affect how your content is displayed",children:u.jsxs("div",{className:"helix-settings-grid",children:[u.jsx(Qt,{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"&&u.jsxs(u.Fragment,{children:[u.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}),u.jsx(He,{label:"Posts page",description:"The page to show posts (Page ID).",value:e.pageForPosts,onChange:l=>t("pageForPosts",l),min:0})]}),u.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}),u.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)}),u.jsx(ln,{label:"Date Format",description:"Format for displaying dates throughout your site.",value:e.dateFormat,onChange:l=>t("dateFormat",l),placeholder:"F j, Y"}),u.jsx(ln,{label:"Time Format",description:"Format for displaying times throughout your site.",value:e.timeFormat,onChange:l=>t("timeFormat",l),placeholder:"g:i a"}),u.jsx(Qt,{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})]})})},_v=({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 u.jsx(sr,{title:"Writing & Publishing",description:"Settings for content creation and publishing",children:u.jsxs("div",{className:"helix-settings-grid",children:[u.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}),u.jsx(Qt,{label:"Default Post Format",description:"The default format for new posts.",value:e.defaultPostFormat,onChange:l=>t("defaultPostFormat",l),options:n}),u.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)}),u.jsx(Qt,{label:"Default comment status",description:"Allow people to submit comments on new posts.",value:e.defaultCommentStatus,onChange:l=>t("defaultCommentStatus",l),options:r}),u.jsx(Qt,{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})]})})},Ev=({settings:e,updateSetting:t})=>u.jsx(sr,{title:"Media & Assets",description:"Settings for media files, images, and site branding",children:u.jsxs("div",{className:"helix-settings-grid",children:[u.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}),u.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}),u.jsx("div",{className:"helix-settings-subsection-header",children:u.jsx("h4",{children:"Image Sizes"})}),u.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}),u.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}),u.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}),u.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}),u.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}),u.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}),u.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)})]})}),jv=({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 u.jsx(sr,{title:"Users & Membership",description:"Settings for user registration and default permissions",children:u.jsxs("div",{className:"helix-settings-grid",children:[u.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)}),u.jsx(Qt,{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})]})})},Nv=({settings:e,updateSetting:t})=>u.jsx(sr,{title:"Helix Settings",description:"Settings specific to the Helix plugin",children:u.jsx("div",{className:"helix-settings-grid",children:u.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 Pv(){const{settings:e,loading:t,saving:n,error:r,hasUnsavedChanges:l,updateSetting:i,saveSettings:o,resetSettings:s}=yv(),[a,c]=z.useState("site"),[h,g]=z.useState(null),m=()=>{window.scrollTo({top:0,behavior:"smooth"})},k=async()=>{const p=await o();p.success?g({type:"success",message:p.message||"Settings saved successfully!"}):g({type:"error",message:p.message||"Failed to save settings. Please try again."}),m()},v=()=>{s(),g({type:"info",message:"Changes have been reset to their original values."}),m()},x=p=>{l&&!window.confirm("You have unsaved changes. Are you sure you want to switch tabs? Your changes will be lost.")||c(p)},E=()=>{const p={settings:e,updateSetting:i};switch(a){case"site":return u.jsx(Ec,{...p});case"content":return u.jsx(Cv,{...p});case"writing":return u.jsx(_v,{...p});case"media":return u.jsx(Ev,{...p});case"users":return u.jsx(jv,{...p});case"helix":return u.jsx(Nv,{...p});default:return u.jsx(Ec,{...p})}};return t?u.jsx("div",{className:"helix-settings-page",children:u.jsxs("div",{className:"helix-loading",children:[u.jsx("div",{className:"helix-spinner"}),u.jsx("p",{children:"Loading settings..."})]})}):u.jsxs("div",{className:"helix-settings-page",children:[u.jsxs("div",{className:"helix-settings-header",children:[u.jsx("h1",{children:"Settings"}),u.jsx("p",{children:"Manage your WordPress site configuration"})]}),r&&u.jsx(_c,{type:"error",message:r,onClose:()=>{},autoClose:!1}),h&&u.jsx(_c,{type:h.type,message:h.message,onClose:()=>g(null)}),u.jsx(Sv,{activeTab:a,onTabChange:x,hasUnsavedChanges:l}),u.jsx("div",{className:"helix-settings-content",children:u.jsx("div",{id:`${a}-panel`,role:"tabpanel","aria-labelledby":`${a}-tab`,className:"helix-tab-panel",children:E()})}),u.jsx("div",{className:"helix-settings-footer",children:u.jsx(kv,{onSave:k,onReset:v,saving:n,hasUnsavedChanges:l})})]})}function Tv({post:e,onDelete:t,onStatusChange:n}){var k,v,x,E,p,f,y,w,j;const[r,l]=z.useState(!1),i=z.useRef(null);z.useEffect(()=>{const S=C=>{i.current&&!i.current.contains(C.target)&&l(!1)};return document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[]);const o=S=>new Date(S).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),s=S=>{const C={publish:"helix-status-badge--publish",draft:"helix-status-badge--draft",private:"helix-status-badge--private",pending:"helix-status-badge--pending",future:"helix-status-badge--future"};return u.jsx("span",{className:`helix-status-badge ${C[S]||""}`,children:S.charAt(0).toUpperCase()+S.slice(1)})},a=S=>{n(e.id,S),l(!1)},c=()=>{t(e.id),l(!1)},h=S=>{var P;const C=`${((P=window.helixData)==null?void 0:P.adminUrl)||"/wp-admin/"}post.php?post=${S.id}&action=edit`;window.open(C,"_blank"),l(!1)},g=S=>{console.log("Quick edit for post:",S.id),l(!1)},m=S=>{const C=S.replace(/<[^>]*>/g,"");return C.length>100?C.substring(0,100)+"...":C};return u.jsxs("tr",{className:"helix-post-row",children:[u.jsx("td",{className:"helix-post-row__checkbox",children:u.jsx("input",{type:"checkbox"})}),u.jsx("td",{className:"helix-post-row__title",children:u.jsxs("div",{className:"helix-post-title",children:[u.jsx("h4",{className:"helix-post-title__text",children:u.jsx("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",children:e.title.rendered})}),u.jsx("p",{className:"helix-post-title__excerpt",children:m(e.content.rendered)}),u.jsxs("div",{className:"helix-post-quick-actions",children:[u.jsx("button",{className:"helix-button helix-button--small helix-button--secondary",onClick:()=>h(e),title:"Edit Post",children:"Edit"}),u.jsx("button",{className:"helix-button helix-button--small helix-button--secondary",onClick:()=>window.open(e.link,"_blank"),title:"View Post",children:"View"}),u.jsx("button",{className:"helix-button helix-button--small helix-button--secondary",onClick:()=>window.open(`${e.link}?preview=true`,"_blank"),title:"Preview Post",children:"Preview"}),e.status!=="publish"&&u.jsx("button",{className:"helix-button helix-button--small helix-button--primary",onClick:()=>a("publish"),title:"Publish Post",children:"Publish"}),e.status==="publish"&&u.jsx("button",{className:"helix-button helix-button--small helix-button--secondary",onClick:()=>a("draft"),title:"Move to Draft",children:"Draft"})]})]})}),u.jsx("td",{className:"helix-post-row__author",children:((x=(v=(k=e._embedded)==null?void 0:k.author)==null?void 0:v[0])==null?void 0:x.name)||"Unknown"}),u.jsx("td",{className:"helix-post-row__categories",children:((f=(p=(E=e._embedded)==null?void 0:E["wp:term"])==null?void 0:p[0])==null?void 0:f.map(S=>u.jsx("span",{className:"helix-category-tag",children:S.name},S.id)))||"Uncategorized"}),u.jsx("td",{className:"helix-post-row__tags",children:((j=(w=(y=e._embedded)==null?void 0:y["wp:term"])==null?void 0:w[1])==null?void 0:j.map(S=>u.jsx("span",{className:"helix-tag",children:S.name},S.id)))||"No tags"}),u.jsx("td",{className:"helix-post-row__status",children:s(e.status)}),u.jsx("td",{className:"helix-post-row__date",children:o(e.date)}),u.jsx("td",{className:"helix-post-row__actions",children:u.jsxs("div",{className:"helix-post-actions",ref:i,children:[u.jsx("button",{className:"helix-button helix-button--icon",onClick:()=>l(!r),title:"More actions",children:"⋮"}),r&&u.jsxs("div",{className:"helix-post-actions__dropdown",children:[u.jsx("button",{className:"helix-dropdown-item",onClick:()=>g(e),children:"Quick Edit"}),u.jsx("button",{className:"helix-dropdown-item",onClick:()=>a("private"),disabled:e.status==="private",children:"Make Private"}),u.jsx("button",{className:"helix-dropdown-item",onClick:()=>a("pending"),disabled:e.status==="pending",children:"Mark Pending"}),u.jsx("button",{className:"helix-dropdown-item",onClick:()=>{if(navigator.clipboard)navigator.clipboard.writeText(e.link);else{const S=document.createElement("textarea");S.value=e.link,document.body.appendChild(S),S.select(),document.execCommand("copy"),document.body.removeChild(S)}l(!1)},children:"Copy Link"}),u.jsx("button",{className:"helix-dropdown-item",onClick:()=>a("publish"),disabled:e.status==="publish",children:"Publish"}),u.jsx("button",{className:"helix-dropdown-item",onClick:()=>a("draft"),disabled:e.status==="draft",children:"Move to Draft"}),u.jsx("button",{className:"helix-dropdown-item",onClick:()=>a("private"),disabled:e.status==="private",children:"Make Private"}),u.jsx("hr",{className:"helix-dropdown-divider"}),u.jsx("button",{className:"helix-dropdown-item helix-dropdown-item--danger",onClick:c,children:"Delete"})]})]})})]})}function $v({posts:e,loading:t,pagination:n,onPageChange:r,onDelete:l,onStatusChange:i}){return t?u.jsxs("div",{className:"helix-loading",children:[u.jsx("div",{className:"helix-loading-spinner"}),u.jsx("p",{children:"Loading posts..."})]}):e.length===0?u.jsxs("div",{className:"helix-empty-state",children:[u.jsx("h3",{children:"No posts found"}),u.jsx("p",{children:"Try adjusting your filters or create a new post."})]}):u.jsxs("div",{className:"helix-posts-list",children:[u.jsx("div",{className:"helix-posts-table-container",children:u.jsxs("table",{className:"helix-posts-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{className:"helix-posts-table__checkbox",children:u.jsx("input",{type:"checkbox"})}),u.jsx("th",{className:"helix-posts-table__title",children:"Title"}),u.jsx("th",{className:"helix-posts-table__author",children:"Author"}),u.jsx("th",{className:"helix-posts-table__categories",children:"Categories"}),u.jsx("th",{className:"helix-posts-table__tags",children:"Tags"}),u.jsx("th",{className:"helix-posts-table__status",children:"Status"}),u.jsx("th",{className:"helix-posts-table__date",children:"Date"}),u.jsx("th",{className:"helix-posts-table__actions",children:"Actions"})]})}),u.jsx("tbody",{children:e.map(o=>u.jsx(Tv,{post:o,onDelete:l,onStatusChange:i},o.id))})]})}),n.totalPages>1&&u.jsxs("div",{className:"helix-pagination",children:[u.jsxs("div",{className:"helix-pagination__info",children:["Showing"," ",(n.page-1)*n.perPage+1," to"," ",Math.min(n.page*n.perPage,n.total)," ","of ",n.total," posts"]}),u.jsxs("div",{className:"helix-pagination__controls",children:[u.jsx("button",{className:"helix-button helix-button--secondary",disabled:n.page===1,onClick:()=>r(n.page-1),children:"Previous"}),u.jsxs("span",{className:"helix-pagination__current",children:["Page ",n.page," of"," ",n.totalPages]}),u.jsx("button",{className:"helix-button helix-button--secondary",disabled:n.page===n.totalPages,onClick:()=>r(n.page+1),children:"Next"})]})]})]})}function Av({filters:e,onFilterChange:t}){const[n,r]=z.useState([]),[l,i]=z.useState([]),[o,s]=z.useState(e);z.useEffect(()=>{a(),c()},[]),z.useEffect(()=>{s(e)},[e]);const a=async()=>{var v;try{const x=await fetch(`${((v=window.helixData)==null?void 0:v.wpRestUrl)||window.location.origin+"/wp-json/wp/v2/"}users?per_page=100`);if(x.ok){const E=await x.json();r(E)}}catch(x){console.error("Error fetching authors:",x)}},c=async()=>{var v;try{const x=await fetch(`${((v=window.helixData)==null?void 0:v.wpRestUrl)||window.location.origin+"/wp-json/wp/v2/"}categories?per_page=100`);if(x.ok){const E=await x.json();i(E)}}catch(x){console.error("Error fetching categories:",x)}},h=(v,x)=>{const E={...o,[v]:x};s(E)},g=()=>{t(o)},m=()=>{const v={search:"",status:"all",author:"all",dateRange:"all"};s(v),t(v)},k=()=>o.search||o.status!=="all"||o.author!=="all"||o.dateRange!=="all";return u.jsxs("div",{className:"helix-post-filters",children:[u.jsxs("div",{className:"helix-post-filters__row",children:[u.jsxs("div",{className:"helix-post-filters__search",children:[u.jsx("label",{className:"helix-filter-label",children:"Search Posts"}),u.jsx("input",{type:"text",placeholder:"Search posts...",value:o.search,onChange:v=>h("search",v.target.value),className:"helix-input"})]}),u.jsxs("div",{className:"helix-post-filters__controls",children:[u.jsxs("div",{className:"helix-filter-group",children:[u.jsx("label",{className:"helix-filter-label",children:"Status"}),u.jsxs("select",{value:o.status,onChange:v=>h("status",v.target.value),className:"helix-select",children:[u.jsx("option",{value:"all",children:"All Statuses"}),u.jsx("option",{value:"publish",children:"Published"}),u.jsx("option",{value:"draft",children:"Draft"}),u.jsx("option",{value:"pending",children:"Pending"}),u.jsx("option",{value:"private",children:"Private"}),u.jsx("option",{value:"future",children:"Scheduled"})]})]}),u.jsxs("div",{className:"helix-filter-group",children:[u.jsx("label",{className:"helix-filter-label",children:"Author"}),u.jsxs("select",{value:o.author,onChange:v=>h("author",v.target.value),className:"helix-select",children:[u.jsx("option",{value:"all",children:"All Authors"}),n.map(v=>u.jsx("option",{value:v.id,children:v.name},v.id))]})]}),u.jsxs("div",{className:"helix-filter-group",children:[u.jsx("label",{className:"helix-filter-label",children:"Date Range"}),u.jsxs("select",{value:o.dateRange,onChange:v=>h("dateRange",v.target.value),className:"helix-select",children:[u.jsx("option",{value:"all",children:"All Dates"}),u.jsx("option",{value:"today",children:"Today"}),u.jsx("option",{value:"yesterday",children:"Yesterday"}),u.jsx("option",{value:"week",children:"This Week"}),u.jsx("option",{value:"month",children:"This Month"}),u.jsx("option",{value:"quarter",children:"This Quarter"}),u.jsx("option",{value:"year",children:"This Year"})]})]})]})]}),u.jsxs("div",{className:"helix-post-filters__actions",children:[u.jsx("button",{className:"helix-button helix-button--primary",onClick:g,children:"Apply Filters"}),k()&&u.jsx("button",{className:"helix-button helix-button--secondary",onClick:m,children:"Clear Filters"})]})]})}function Rv(){console.log("Posts component mounted");const[e,t]=z.useState([]),[n,r]=z.useState(!0),[l,i]=z.useState(null),[o,s]=z.useState({search:"",status:"all",author:"all",dateRange:"all"}),[a,c]=z.useState({page:1,perPage:10,total:0,totalPages:0}),h=z.useCallback(async()=>{var x,E,p,f,y;r(!0),i(null),console.log("fetchPosts function called");try{const w=new URLSearchParams({page:a.page,per_page:a.perPage});o.search&&w.set("search",o.search),o.author!=="all"&&w.set("author",o.author),o.status!=="all"&&w.set("status",o.status);const j=`${((x=window.helixData)==null?void 0:x.wpRestUrl)||window.location.origin+"/wp-json/wp/v2/"}posts?${w}`;console.log("API URL:",j),console.log("Nonce:",(E=window.helixData)==null?void 0:E.nonce);const S={"X-WP-Nonce":((p=window.helixData)==null?void 0:p.nonce)||"",Authorization:`Bearer ${((f=window.helixData)==null?void 0:f.nonce)||""}`};(y=window.helixData)!=null&&y.nonce&&w.set("_wpnonce",window.helixData.nonce);const C=await fetch(j,{headers:S});if(!C.ok){const L=await C.text();throw new Error(`HTTP error! status: ${C.status}, response: ${L}`)}const P=await C.json();console.log("Fetched posts:",P.map(L=>({id:L.id,title:L.title.rendered,status:L.status}))),t(P);const D=C.headers.get("X-WP-Total"),O=C.headers.get("X-WP-TotalPages");c(L=>({...L,total:parseInt(D)||P.length,totalPages:parseInt(O)||Math.ceil((parseInt(D)||P.length)/L.perPage)}))}catch(w){i(w.message),console.error("Error fetching posts:",w)}finally{r(!1)}},[a.page,a.perPage,o]);z.useEffect(()=>{console.log("useEffect triggered, calling fetchPosts"),h()},[h]),z.useEffect(()=>{console.log("Filters changed, triggering new fetch"),h()},[o.status,o.author,o.search,h]);const g=x=>{s(x),c(E=>({...E,page:1}))},m=x=>{c(E=>({...E,page:x}))},k=async x=>{var E,p;if(window.confirm("Are you sure you want to delete this post?"))try{if((await fetch(`${((E=window.helixData)==null?void 0:E.wpRestUrl)||window.location.origin+"/wp-json/wp/v2/"}posts/${x}`,{method:"DELETE",headers:{"X-WP-Nonce":((p=window.helixData)==null?void 0:p.nonce)||""}})).ok)t(y=>y.filter(w=>w.id!==x)),h();else throw new Error("Failed to delete post")}catch(f){i(`Error deleting post: ${f.message}`)}},v=async(x,E)=>{var p,f;try{if((await fetch(`${((p=window.helixData)==null?void 0:p.wpRestUrl)||window.location.origin+"/wp-json/wp/v2/"}posts/${x}`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":((f=window.helixData)==null?void 0:f.nonce)||""},body:JSON.stringify({status:E})})).ok)t(w=>w.map(j=>j.id===x?{...j,status:E}:j));else throw new Error("Failed to update post status")}catch(y){i(`Error updating post status: ${y.message}`)}};return l?u.jsx("div",{className:"helix-page",children:u.jsxs("div",{className:"helix-error",children:[u.jsx("h2",{children:"Error Loading Posts"}),u.jsx("p",{children:l}),u.jsx("button",{onClick:h,className:"helix-button",children:"Try Again"})]})}):u.jsxs("div",{className:"helix-page",children:[u.jsxs("div",{className:"helix-page-header",children:[u.jsx("h1",{children:"Posts Management"}),u.jsx("div",{className:"helix-page-actions",children:u.jsx("button",{className:"helix-button helix-button--primary",children:"Add New Post"})})]}),u.jsx(Av,{filters:o,onFilterChange:g}),u.jsx($v,{posts:e,loading:n,pagination:a,onPageChange:m,onDelete:k,onStatusChange:v})]})}function zv(){return u.jsx(dv,{})}function Ov(){return u.jsx(Rv,{})}function Lv(){return u.jsxs("div",{className:"helix-page",children:[u.jsx("h1",{children:"Users Management"}),u.jsx("p",{children:"Users management interface will be implemented here."})]})}document.addEventListener("DOMContentLoaded",function(){const e=document.getElementById("helix-root");e&&kr(e).render(u.jsx(zv,{}));const t=document.getElementById("helix-settings-root");t&&kr(t).render(u.jsx(Pv,{}));const n=document.getElementById("helix-posts-root");console.log("Posts root element:",n),n?(console.log("Creating Posts app root"),kr(n).render(u.jsx(Ov,{})),console.log("Posts app rendered")):console.log("Posts root element not found");const r=document.getElementById("helix-users-root");r&&kr(r).render(u.jsx(Lv,{}))});