diff --git a/assets/index-C-4Sen7v.js b/assets/index-C-4Sen7v.js new file mode 100644 index 0000000..68c88c5 --- /dev/null +++ b/assets/index-C-4Sen7v.js @@ -0,0 +1,323 @@ +var rT=e=>{throw TypeError(e)};var zx=(e,t,r)=>t.has(e)||rT("Cannot "+r);var Q=(e,t,r)=>(zx(e,t,"read from private field"),r?r.call(e):t.get(e)),ht=(e,t,r)=>t.has(e)?rT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Je=(e,t,r,n)=>(zx(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),jt=(e,t,r)=>(zx(e,t,"access private method"),r);var og=(e,t,r,n)=>({set _(a){Je(e,t,a,r)},get _(){return Q(e,t,n)}});function ON(e,t){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Zo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ss(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var PN={exports:{}},jb={},RN={exports:{}},Mt={};/** + * @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 jv=Symbol.for("react.element"),iX=Symbol.for("react.portal"),sX=Symbol.for("react.fragment"),lX=Symbol.for("react.strict_mode"),uX=Symbol.for("react.profiler"),cX=Symbol.for("react.provider"),dX=Symbol.for("react.context"),fX=Symbol.for("react.forward_ref"),pX=Symbol.for("react.suspense"),hX=Symbol.for("react.memo"),vX=Symbol.for("react.lazy"),nT=Symbol.iterator;function mX(e){return e===null||typeof e!="object"?null:(e=nT&&e[nT]||e["@@iterator"],typeof e=="function"?e:null)}var $N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kN=Object.assign,jN={};function Nf(e,t,r){this.props=e,this.context=t,this.refs=jN,this.updater=r||$N}Nf.prototype.isReactComponent={};Nf.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")};Nf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function IN(){}IN.prototype=Nf.prototype;function XO(e,t,r){this.props=e,this.context=t,this.refs=jN,this.updater=r||$N}var YO=XO.prototype=new IN;YO.constructor=XO;kN(YO,Nf.prototype);YO.isPureReactComponent=!0;var aT=Array.isArray,TN=Object.prototype.hasOwnProperty,JO={current:null},AN={key:!0,ref:!0,__self:!0,__source:!0};function MN(e,t,r){var n,a={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)TN.call(t,n)&&!AN.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1>>1,J=z[oe];if(0>>1;oea(ge,ee))pea(me,ge)?(z[oe]=me,z[pe]=ee,oe=pe):(z[oe]=ge,z[le]=ee,oe=le);else if(pea(me,ee))z[oe]=me,z[pe]=ee,oe=pe;else break e}}return q}function a(z,q){var ee=z.sortIndex-q.sortIndex;return ee!==0?ee:z.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],s=[],f=1,h=null,v=3,m=!1,b=!1,w=!1,O=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(z){for(var q=r(s);q!==null;){if(q.callback===null)n(s);else if(q.startTime<=z)n(s),q.sortIndex=q.expirationTime,t(c,q);else break;q=r(s)}}function S(z){if(w=!1,x(z),!b)if(r(c)!==null)b=!0,H(P);else{var q=r(s);q!==null&&W(S,q.startTime-z)}}function P(z,q){b=!1,w&&(w=!1,_(R),R=-1),m=!0;var ee=v;try{for(x(q),h=r(c);h!==null&&(!(h.expirationTime>q)||z&&!M());){var oe=h.callback;if(typeof oe=="function"){h.callback=null,v=h.priorityLevel;var J=oe(h.expirationTime<=q);q=e.unstable_now(),typeof J=="function"?h.callback=J:h===r(c)&&n(c),x(q)}else n(c);h=r(c)}if(h!==null)var we=!0;else{var le=r(s);le!==null&&W(S,le.startTime-q),we=!1}return we}finally{h=null,v=ee,m=!1}}var C=!1,$=null,R=-1,k=5,I=-1;function M(){return!(e.unstable_now()-Iz||125oe?(z.sortIndex=ee,t(s,z),r(c)===null&&z===r(s)&&(w?(_(R),R=-1):w=!0,W(S,ee-oe))):(z.sortIndex=J,t(c,z),b||m||(b=!0,H(P))),z},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(z){var q=v;return function(){var ee=v;v=q;try{return z.apply(this,arguments)}finally{v=ee}}}})(BN);NN.exports=BN;var PX=NN.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 RX=d,Ha=PX;function Fe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wS=Object.prototype.hasOwnProperty,$X=/^[: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]*$/,iT={},sT={};function kX(e){return wS.call(sT,e)?!0:wS.call(iT,e)?!1:$X.test(e)?sT[e]=!0:(iT[e]=!0,!1)}function jX(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function IX(e,t,r,n){if(t===null||typeof t>"u"||jX(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 ua(e,t,r,n,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var jn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){jn[e]=new ua(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];jn[t]=new ua(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){jn[e]=new ua(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){jn[e]=new ua(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){jn[e]=new ua(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){jn[e]=new ua(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){jn[e]=new ua(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){jn[e]=new ua(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){jn[e]=new ua(e,5,!1,e.toLowerCase(),null,!1,!1)});var eP=/[\-:]([a-z])/g;function tP(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(eP,tP);jn[t]=new ua(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(eP,tP);jn[t]=new ua(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(eP,tP);jn[t]=new ua(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){jn[e]=new ua(e,1,!1,e.toLowerCase(),null,!1,!1)});jn.xlinkHref=new ua("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){jn[e]=new ua(e,1,!1,e.toLowerCase(),null,!0,!0)});function rP(e,t,r,n){var a=jn.hasOwnProperty(t)?jn[t]:null;(a!==null?a.type!==0:n||!(2l||a[i]!==o[l]){var c=` +`+a[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{Wx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?th(e):""}function TX(e){switch(e.tag){case 5:return th(e.type);case 16:return th("Lazy");case 13:return th("Suspense");case 19:return th("SuspenseList");case 0:case 2:case 15:return e=Hx(e.type,!1),e;case 11:return e=Hx(e.type.render,!1),e;case 1:return e=Hx(e.type,!0),e;default:return""}}function OS(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 gd:return"Fragment";case md:return"Portal";case SS:return"Profiler";case nP:return"StrictMode";case ES:return"Suspense";case CS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case VN:return(e.displayName||"Context")+".Consumer";case UN:return(e._context.displayName||"Context")+".Provider";case aP:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oP:return t=e.displayName||null,t!==null?t:OS(e.type)||"Memo";case el:t=e._payload,e=e._init;try{return OS(e(t))}catch{}}return null}function AX(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 OS(t);case 8:return t===nP?"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 Fl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function HN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function MX(e){var t=HN(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lg(e){e._valueTracker||(e._valueTracker=MX(e))}function qN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=HN(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ny(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 PS(e,t){var r=t.checked;return jr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function uT(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Fl(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function GN(e,t){t=t.checked,t!=null&&rP(e,"checked",t,!1)}function RS(e,t){GN(e,t);var r=Fl(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?$S(e,t.type,r):t.hasOwnProperty("defaultValue")&&$S(e,t.type,Fl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cT(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function $S(e,t,r){(t!=="number"||Ny(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var rh=Array.isArray;function Ad(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=ug.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var fh={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},FX=["Webkit","ms","Moz","O"];Object.keys(fh).forEach(function(e){FX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fh[t]=fh[e]})});function YN(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||fh.hasOwnProperty(e)&&fh[e]?(""+t).trim():t+"px"}function JN(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=YN(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var LX=jr({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 IS(e,t){if(t){if(LX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Fe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Fe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Fe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Fe(62))}}function TS(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 AS=null;function iP(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var MS=null,Md=null,Fd=null;function pT(e){if(e=Av(e)){if(typeof MS!="function")throw Error(Fe(280));var t=e.stateNode;t&&(t=Fb(t),MS(e.stateNode,e.type,t))}}function ZN(e){Md?Fd?Fd.push(e):Fd=[e]:Md=e}function e3(){if(Md){var e=Md,t=Fd;if(Fd=Md=null,pT(e),t)for(e=0;e>>=0,e===0?32:31-(KX(e)/QX|0)|0}var cg=64,dg=4194304;function nh(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 Vy(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var l=i&~a;l!==0?n=nh(l):(o&=i,o!==0&&(n=nh(o)))}else i=r&~a,i!==0?n=nh(i):o!==0&&(n=nh(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Iv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ei(t),e[t]=r}function ZX(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=hh),wT=" ",ST=!1;function _3(e,t){switch(e){case"keyup":return PY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function x3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yd=!1;function $Y(e,t){switch(e){case"compositionend":return x3(t);case"keypress":return t.which!==32?null:(ST=!0,wT);case"textInput":return e=t.data,e===wT&&ST?null:e;default:return null}}function kY(e,t){if(yd)return e==="compositionend"||!hP&&_3(e,t)?(e=y3(),Jg=dP=yl=null,yd=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=PT(r)}}function C3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?C3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function O3(){for(var e=window,t=Ny();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ny(e.document)}return t}function vP(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 NY(e){var t=O3(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&C3(r.ownerDocument.documentElement,r)){if(n!==null&&vP(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=RT(r,o);var i=RT(r,n);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,bd=null,zS=null,mh=null,US=!1;function $T(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;US||bd==null||bd!==Ny(n)||(n=bd,"selectionStart"in n&&vP(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),mh&&Qh(mh,n)||(mh=n,n=qy(zS,"onSelect"),0wd||(e.current=KS[wd],KS[wd]=null,wd--)}function mr(e,t){wd++,KS[wd]=e.current,e.current=t}var Ll={},Wn=Ul(Ll),Sa=Ul(!1),ic=Ll;function yf(e,t){var r=e.type.contextTypes;if(!r)return Ll;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ea(e){return e=e.childContextTypes,e!=null}function Ky(){wr(Sa),wr(Wn)}function FT(e,t,r){if(Wn.current!==Ll)throw Error(Fe(168));mr(Wn,t),mr(Sa,r)}function M3(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(Fe(108,AX(e)||"Unknown",a));return jr({},r,n)}function Qy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ll,ic=Wn.current,mr(Wn,e),mr(Sa,Sa.current),!0}function LT(e,t,r){var n=e.stateNode;if(!n)throw Error(Fe(169));r?(e=M3(e,t,ic),n.__reactInternalMemoizedMergedChildContext=e,wr(Sa),wr(Wn),mr(Wn,e)):wr(Sa),mr(Sa,r)}var ns=null,Lb=!1,ow=!1;function F3(e){ns===null?ns=[e]:ns.push(e)}function YY(e){Lb=!0,F3(e)}function Vl(){if(!ow&&ns!==null){ow=!0;var e=0,t=ar;try{var r=ns;for(ar=1;e>=i,a-=i,ls=1<<32-ei(t)+a|r<R?(k=$,$=null):k=$.sibling;var I=v(_,$,x[R],S);if(I===null){$===null&&($=k);break}e&&$&&I.alternate===null&&t(_,$),y=o(I,y,R),C===null?P=I:C.sibling=I,C=I,$=k}if(R===x.length)return r(_,$),Or&&xu(_,R),P;if($===null){for(;RR?(k=$,$=null):k=$.sibling;var M=v(_,$,I.value,S);if(M===null){$===null&&($=k);break}e&&$&&M.alternate===null&&t(_,$),y=o(M,y,R),C===null?P=M:C.sibling=M,C=M,$=k}if(I.done)return r(_,$),Or&&xu(_,R),P;if($===null){for(;!I.done;R++,I=x.next())I=h(_,I.value,S),I!==null&&(y=o(I,y,R),C===null?P=I:C.sibling=I,C=I);return Or&&xu(_,R),P}for($=n(_,$);!I.done;R++,I=x.next())I=m($,_,R,I.value,S),I!==null&&(e&&I.alternate!==null&&$.delete(I.key===null?R:I.key),y=o(I,y,R),C===null?P=I:C.sibling=I,C=I);return e&&$.forEach(function(F){return t(_,F)}),Or&&xu(_,R),P}function O(_,y,x,S){if(typeof x=="object"&&x!==null&&x.type===gd&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case sg:e:{for(var P=x.key,C=y;C!==null;){if(C.key===P){if(P=x.type,P===gd){if(C.tag===7){r(_,C.sibling),y=a(C,x.props.children),y.return=_,_=y;break e}}else if(C.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===el&&BT(P)===C.type){r(_,C.sibling),y=a(C,x.props),y.ref=Fp(_,C,x),y.return=_,_=y;break e}r(_,C);break}else t(_,C);C=C.sibling}x.type===gd?(y=ec(x.props.children,_.mode,S,x.key),y.return=_,_=y):(S=iy(x.type,x.key,x.props,null,_.mode,S),S.ref=Fp(_,y,x),S.return=_,_=S)}return i(_);case md:e:{for(C=x.key;y!==null;){if(y.key===C)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){r(_,y.sibling),y=a(y,x.children||[]),y.return=_,_=y;break e}else{r(_,y);break}else t(_,y);y=y.sibling}y=pw(x,_.mode,S),y.return=_,_=y}return i(_);case el:return C=x._init,O(_,y,C(x._payload),S)}if(rh(x))return b(_,y,x,S);if(jp(x))return w(_,y,x,S);yg(_,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(r(_,y.sibling),y=a(y,x),y.return=_,_=y):(r(_,y),y=fw(x,_.mode,S),y.return=_,_=y),i(_)):r(_,y)}return O}var _f=B3(!0),z3=B3(!1),Jy=Ul(null),Zy=null,Cd=null,bP=null;function _P(){bP=Cd=Zy=null}function xP(e){var t=Jy.current;wr(Jy),e._currentValue=t}function YS(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Dd(e,t){Zy=e,bP=Cd=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xa=!0),e.firstContext=null)}function Oo(e){var t=e._currentValue;if(bP!==e)if(e={context:e,memoizedValue:t,next:null},Cd===null){if(Zy===null)throw Error(Fe(308));Cd=e,Zy.dependencies={lanes:0,firstContext:e}}else Cd=Cd.next=e;return t}var Du=null;function wP(e){Du===null?Du=[e]:Du.push(e)}function U3(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,wP(t)):(r.next=a.next,a.next=r),t.interleaved=r,ys(e,n)}function ys(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var tl=!1;function SP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function V3(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 fs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kl(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ht&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,ys(e,r)}return a=n.interleaved,a===null?(t.next=t,wP(n)):(t.next=a.next,a.next=t),n.interleaved=t,ys(e,r)}function ey(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lP(e,r)}}function zT(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function e0(e,t,r,n){var a=e.updateQueue;tl=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var c=l,s=c.next;c.next=null,i===null?o=s:i.next=s,i=c;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=s:l.next=s,f.lastBaseUpdate=c))}if(o!==null){var h=a.baseState;i=0,f=s=c=null,l=o;do{var v=l.lane,m=l.eventTime;if((n&v)===v){f!==null&&(f=f.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=e,w=l;switch(v=t,m=r,w.tag){case 1:if(b=w.payload,typeof b=="function"){h=b.call(m,h,v);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=w.payload,v=typeof b=="function"?b.call(m,h,v):b,v==null)break e;h=jr({},h,v);break e;case 2:tl=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,v=a.effects,v===null?a.effects=[l]:v.push(l))}else m={eventTime:m,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(s=f=m,c=h):f=f.next=m,i|=v;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;v=l,l=v.next,v.next=null,a.lastBaseUpdate=v,a.shared.pending=null}}while(!0);if(f===null&&(c=h),a.baseState=c,a.firstBaseUpdate=s,a.lastBaseUpdate=f,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);uc|=i,e.lanes=i,e.memoizedState=h}}function UT(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=sw.transition;sw.transition={};try{e(!1),t()}finally{ar=r,sw.transition=n}}function i4(){return Po().memoizedState}function tJ(e,t,r){var n=Il(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},s4(e))l4(t,r);else if(r=U3(e,t,r,n),r!==null){var a=ia();ti(r,e,n,a),u4(r,t,n)}}function rJ(e,t,r){var n=Il(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(s4(e))l4(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,l=o(i,r);if(a.hasEagerState=!0,a.eagerState=l,ri(l,i)){var c=t.interleaved;c===null?(a.next=a,wP(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}r=U3(e,t,a,n),r!==null&&(a=ia(),ti(r,e,n,a),u4(r,t,n))}}function s4(e){var t=e.alternate;return e===kr||t!==null&&t===kr}function l4(e,t){gh=r0=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function u4(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lP(e,r)}}var n0={readContext:Oo,useCallback:Fn,useContext:Fn,useEffect:Fn,useImperativeHandle:Fn,useInsertionEffect:Fn,useLayoutEffect:Fn,useMemo:Fn,useReducer:Fn,useRef:Fn,useState:Fn,useDebugValue:Fn,useDeferredValue:Fn,useTransition:Fn,useMutableSource:Fn,useSyncExternalStore:Fn,useId:Fn,unstable_isNewReconciler:!1},nJ={readContext:Oo,useCallback:function(e,t){return hi().memoizedState=[e,t===void 0?null:t],e},useContext:Oo,useEffect:WT,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ry(4194308,4,t4.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ry(4194308,4,e,t)},useInsertionEffect:function(e,t){return ry(4,2,e,t)},useMemo:function(e,t){var r=hi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=hi();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=tJ.bind(null,kr,e),[n.memoizedState,e]},useRef:function(e){var t=hi();return e={current:e},t.memoizedState=e},useState:VT,useDebugValue:jP,useDeferredValue:function(e){return hi().memoizedState=e},useTransition:function(){var e=VT(!1),t=e[0];return e=eJ.bind(null,e[1]),hi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=kr,a=hi();if(Or){if(r===void 0)throw Error(Fe(407));r=r()}else{if(r=t(),yn===null)throw Error(Fe(349));lc&30||G3(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,WT(Q3.bind(null,n,o,e),[e]),n.flags|=2048,nv(9,K3.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=hi(),t=yn.identifierPrefix;if(Or){var r=us,n=ls;r=(n&~(1<<32-ei(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=tv++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Si]=t,e[Jh]=n,b4(e,t,!1,!1),t.stateNode=e;e:{switch(i=TS(r,n),r){case"dialog":_r("cancel",e),_r("close",e),a=n;break;case"iframe":case"object":case"embed":_r("load",e),a=n;break;case"video":case"audio":for(a=0;aSf&&(t.flags|=128,n=!0,Lp(o,!1),t.lanes=4194304)}else{if(!n)if(e=t0(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Lp(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Or)return Ln(t),null}else 2*qr()-o.renderingStartTime>Sf&&r!==1073741824&&(t.flags|=128,n=!0,Lp(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=qr(),t.sibling=null,r=$r.current,mr($r,n?r&1|2:r&1),t):(Ln(t),null);case 22:case 23:return LP(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?La&1073741824&&(Ln(t),t.subtreeFlags&6&&(t.flags|=8192)):Ln(t),null;case 24:return null;case 25:return null}throw Error(Fe(156,t.tag))}function dJ(e,t){switch(gP(t),t.tag){case 1:return Ea(t.type)&&Ky(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xf(),wr(Sa),wr(Wn),OP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return CP(t),null;case 13:if(wr($r),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Fe(340));bf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wr($r),null;case 4:return xf(),null;case 10:return xP(t.type._context),null;case 22:case 23:return LP(),null;case 24:return null;default:return null}}var _g=!1,Bn=!1,fJ=typeof WeakSet=="function"?WeakSet:Set,it=null;function Od(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Nr(e,t,n)}else r.current=null}function iE(e,t,r){try{r()}catch(n){Nr(e,t,n)}}var tA=!1;function pJ(e,t){if(VS=Wy,e=O3(),vP(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,l=-1,c=-1,s=0,f=0,h=e,v=null;t:for(;;){for(var m;h!==r||a!==0&&h.nodeType!==3||(l=i+a),h!==o||n!==0&&h.nodeType!==3||(c=i+n),h.nodeType===3&&(i+=h.nodeValue.length),(m=h.firstChild)!==null;)v=h,h=m;for(;;){if(h===e)break t;if(v===r&&++s===a&&(l=i),v===o&&++f===n&&(c=i),(m=h.nextSibling)!==null)break;h=v,v=h.parentNode}h=m}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(WS={focusedElem:e,selectionRange:r},Wy=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){t=it;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var w=b.memoizedProps,O=b.memoizedState,_=t.stateNode,y=_.getSnapshotBeforeUpdate(t.elementType===t.type?w:Wo(t.type,w),O);_.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Fe(163))}}catch(S){Nr(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}return b=tA,tA=!1,b}function yh(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&iE(t,r,o)}a=a.next}while(a!==n)}}function Bb(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function sE(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function w4(e){var t=e.alternate;t!==null&&(e.alternate=null,w4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Si],delete t[Jh],delete t[GS],delete t[QY],delete t[XY])),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 S4(e){return e.tag===5||e.tag===3||e.tag===4}function rA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||S4(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 lE(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Gy));else if(n!==4&&(e=e.child,e!==null))for(lE(e,t,r),e=e.sibling;e!==null;)lE(e,t,r),e=e.sibling}function uE(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(uE(e,t,r),e=e.sibling;e!==null;)uE(e,t,r),e=e.sibling}var En=null,Go=!1;function Hs(e,t,r){for(r=r.child;r!==null;)E4(e,t,r),r=r.sibling}function E4(e,t,r){if(Pi&&typeof Pi.onCommitFiberUnmount=="function")try{Pi.onCommitFiberUnmount(Ib,r)}catch{}switch(r.tag){case 5:Bn||Od(r,t);case 6:var n=En,a=Go;En=null,Hs(e,t,r),En=n,Go=a,En!==null&&(Go?(e=En,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):En.removeChild(r.stateNode));break;case 18:En!==null&&(Go?(e=En,r=r.stateNode,e.nodeType===8?aw(e.parentNode,r):e.nodeType===1&&aw(e,r),Gh(e)):aw(En,r.stateNode));break;case 4:n=En,a=Go,En=r.stateNode.containerInfo,Go=!0,Hs(e,t,r),En=n,Go=a;break;case 0:case 11:case 14:case 15:if(!Bn&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&iE(r,t,i),a=a.next}while(a!==n)}Hs(e,t,r);break;case 1:if(!Bn&&(Od(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Nr(r,t,l)}Hs(e,t,r);break;case 21:Hs(e,t,r);break;case 22:r.mode&1?(Bn=(n=Bn)||r.memoizedState!==null,Hs(e,t,r),Bn=n):Hs(e,t,r);break;default:Hs(e,t,r)}}function nA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new fJ),t.forEach(function(n){var a=wJ.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Vo(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~o}if(n=a,n=qr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*vJ(n/1960))-n,10e?16:e,bl===null)var n=!1;else{if(e=bl,bl=null,i0=0,Ht&6)throw Error(Fe(331));var a=Ht;for(Ht|=4,it=e.current;it!==null;){var o=it,i=o.child;if(it.flags&16){var l=o.deletions;if(l!==null){for(var c=0;cqr()-MP?Zu(e,0):AP|=r),Ca(e,t)}function I4(e,t){t===0&&(e.mode&1?(t=dg,dg<<=1,!(dg&130023424)&&(dg=4194304)):t=1);var r=ia();e=ys(e,t),e!==null&&(Iv(e,t,r),Ca(e,r))}function xJ(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),I4(e,r)}function wJ(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Fe(314))}n!==null&&n.delete(t),I4(e,r)}var T4;T4=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Sa.current)xa=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return xa=!1,uJ(e,t,r);xa=!!(e.flags&131072)}else xa=!1,Or&&t.flags&1048576&&L3(t,Yy,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ny(e,t),e=t.pendingProps;var a=yf(t,Wn.current);Dd(t,r),a=RP(null,t,n,e,a,r);var o=$P();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ea(n)?(o=!0,Qy(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,SP(t),a.updater=Nb,t.stateNode=a,a._reactInternals=t,ZS(t,n,e,r),t=rE(null,t,n,!0,o,r)):(t.tag=0,Or&&o&&mP(t),ta(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ny(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=EJ(n),e=Wo(n,e),a){case 0:t=tE(null,t,n,e,r);break e;case 1:t=JT(null,t,n,e,r);break e;case 11:t=XT(null,t,n,e,r);break e;case 14:t=YT(null,t,n,Wo(n.type,e),r);break e}throw Error(Fe(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Wo(n,a),tE(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Wo(n,a),JT(e,t,n,a,r);case 3:e:{if(m4(t),e===null)throw Error(Fe(387));n=t.pendingProps,o=t.memoizedState,a=o.element,V3(e,t),e0(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=wf(Error(Fe(423)),t),t=ZT(e,t,n,r,a);break e}else if(n!==a){a=wf(Error(Fe(424)),t),t=ZT(e,t,n,r,a);break e}else for(Ba=$l(t.stateNode.containerInfo.firstChild),Ua=t,Or=!0,Qo=null,r=z3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(bf(),n===a){t=bs(e,t,r);break e}ta(e,t,n,r)}t=t.child}return t;case 5:return W3(t),e===null&&XS(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,HS(n,a)?i=null:o!==null&&HS(n,o)&&(t.flags|=32),v4(e,t),ta(e,t,i,r),t.child;case 6:return e===null&&XS(t),null;case 13:return g4(e,t,r);case 4:return EP(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=_f(t,null,n,r):ta(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Wo(n,a),XT(e,t,n,a,r);case 7:return ta(e,t,t.pendingProps,r),t.child;case 8:return ta(e,t,t.pendingProps.children,r),t.child;case 12:return ta(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,mr(Jy,n._currentValue),n._currentValue=i,o!==null)if(ri(o.value,i)){if(o.children===a.children&&!Sa.current){t=bs(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){i=o.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(o.tag===1){c=fs(-1,r&-r),c.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?c.next=c:(c.next=f.next,f.next=c),s.pending=c}}o.lanes|=r,c=o.alternate,c!==null&&(c.lanes|=r),YS(o.return,r,t),l.lanes|=r;break}c=c.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Fe(341));i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),YS(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ta(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Dd(t,r),a=Oo(a),n=n(a),t.flags|=1,ta(e,t,n,r),t.child;case 14:return n=t.type,a=Wo(n,t.pendingProps),a=Wo(n.type,a),YT(e,t,n,a,r);case 15:return p4(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Wo(n,a),ny(e,t),t.tag=1,Ea(n)?(e=!0,Qy(t)):e=!1,Dd(t,r),c4(t,n,a),ZS(t,n,a,r),rE(null,t,n,!0,e,r);case 19:return y4(e,t,r);case 22:return h4(e,t,r)}throw Error(Fe(156,t.tag))};function A4(e,t){return s3(e,t)}function SJ(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wo(e,t,r,n){return new SJ(e,t,r,n)}function NP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function EJ(e){if(typeof e=="function")return NP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===aP)return 11;if(e===oP)return 14}return 2}function Tl(e,t){var r=e.alternate;return r===null?(r=wo(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function iy(e,t,r,n,a,o){var i=2;if(n=e,typeof e=="function")NP(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case gd:return ec(r.children,a,o,t);case nP:i=8,a|=8;break;case SS:return e=wo(12,r,t,a|2),e.elementType=SS,e.lanes=o,e;case ES:return e=wo(13,r,t,a),e.elementType=ES,e.lanes=o,e;case CS:return e=wo(19,r,t,a),e.elementType=CS,e.lanes=o,e;case WN:return Ub(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case UN:i=10;break e;case VN:i=9;break e;case aP:i=11;break e;case oP:i=14;break e;case el:i=16,n=null;break e}throw Error(Fe(130,e==null?e:typeof e,""))}return t=wo(i,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function ec(e,t,r,n){return e=wo(7,e,n,t),e.lanes=r,e}function Ub(e,t,r,n){return e=wo(22,e,n,t),e.elementType=WN,e.lanes=r,e.stateNode={isHidden:!1},e}function fw(e,t,r){return e=wo(6,e,null,t),e.lanes=r,e}function pw(e,t,r){return t=wo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function CJ(e,t,r,n,a){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=Gx(0),this.expirationTimes=Gx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gx(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function BP(e,t,r,n,a,o,i,l,c){return e=new CJ(e,t,r,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=wo(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},SP(o),e}function OJ(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(D4)}catch(e){console.error(e)}}D4(),DN.exports=Ka;var Fv=DN.exports;const oh=bn(Fv),jJ=ON({__proto__:null,default:oh},[Fv]);var N4,dA=Fv;N4=dA.createRoot,dA.hydrateRoot;var u0={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */u0.exports;(function(e,t){(function(){var r,n="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",s=500,f="__lodash_placeholder__",h=1,v=2,m=4,b=1,w=2,O=1,_=2,y=4,x=8,S=16,P=32,C=64,$=128,R=256,k=512,I=30,M="...",F=800,L=16,B=1,V=2,H=3,W=1/0,z=9007199254740991,q=17976931348623157e292,ee=NaN,oe=4294967295,J=oe-1,we=oe>>>1,le=[["ary",$],["bind",O],["bindKey",_],["curry",x],["curryRight",S],["flip",k],["partial",P],["partialRight",C],["rearg",R]],ge="[object Arguments]",pe="[object Array]",me="[object AsyncFunction]",xe="[object Boolean]",ne="[object Date]",Te="[object DOMException]",ve="[object Error]",$e="[object Function]",ye="[object GeneratorFunction]",je="[object Map]",Le="[object Number]",st="[object Null]",Xe="[object Object]",U="[object Promise]",K="[object Proxy]",Z="[object RegExp]",ie="[object Set]",ue="[object String]",ce="[object Symbol]",Ee="[object Undefined]",Ae="[object WeakMap]",ft="[object WeakSet]",De="[object ArrayBuffer]",Ze="[object DataView]",Ve="[object Float32Array]",_t="[object Float64Array]",Wt="[object Int8Array]",Ct="[object Int16Array]",qe="[object Int32Array]",pt="[object Uint8Array]",Me="[object Uint8ClampedArray]",Ge="[object Uint16Array]",wt="[object Uint32Array]",Ot=/\b__p \+= '';/g,dr=/\b(__p \+=) '' \+/g,Pr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,an=/&(?:amp|lt|gt|quot|#39);/g,$a=/[&<>"']/g,Tn=RegExp(an.source),li=RegExp($a.source),nu=/<%-([\s\S]+?)%>/g,Is=/<%([\s\S]+?)%>/g,zi=/<%=([\s\S]+?)%>/g,hp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,au=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,fe=RegExp(ae.source),Se=/^\s+/,We=/\s/,dt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ye=/,? & /,nt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Qe=/[()=,{}\[\]\/\s]/,ut=/\\(\\)?/g,Pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Tt=/\w*$/,zr=/^[-+]0x[0-9a-f]+$/i,Zt=/^0b[01]+$/i,Dt=/^\[object .+?Constructor\]$/,lt=/^0o[0-7]+$/i,Tr=/^(?:0|[1-9]\d*)$/,ou=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,da=/($^)/,eo=/['\n\r\u2028\u2029\\]/g,Ts="\\ud800-\\udfff",iu="\\u0300-\\u036f",Ui="\\ufe20-\\ufe2f",Fc="\\u20d0-\\u20ff",su=iu+Ui+Fc,Nt="\\u2700-\\u27bf",yr="a-z\\xdf-\\xf6\\xf8-\\xff",As="\\xac\\xb1\\xd7\\xf7",lu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ar="\\u2000-\\u206f",Ms=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vp="A-Z\\xc0-\\xd6\\xd8-\\xde",ym="\\ufe0e\\ufe0f",Fk=As+lu+Ar+Ms,j1="['’]",iW="["+Ts+"]",Lk="["+Fk+"]",bm="["+su+"]",Dk="\\d+",sW="["+Nt+"]",Nk="["+yr+"]",Bk="[^"+Ts+Fk+Dk+Nt+yr+vp+"]",I1="\\ud83c[\\udffb-\\udfff]",lW="(?:"+bm+"|"+I1+")",zk="[^"+Ts+"]",T1="(?:\\ud83c[\\udde6-\\uddff]){2}",A1="[\\ud800-\\udbff][\\udc00-\\udfff]",Lc="["+vp+"]",Uk="\\u200d",Vk="(?:"+Nk+"|"+Bk+")",uW="(?:"+Lc+"|"+Bk+")",Wk="(?:"+j1+"(?:d|ll|m|re|s|t|ve))?",Hk="(?:"+j1+"(?:D|LL|M|RE|S|T|VE))?",qk=lW+"?",Gk="["+ym+"]?",cW="(?:"+Uk+"(?:"+[zk,T1,A1].join("|")+")"+Gk+qk+")*",dW="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fW="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kk=Gk+qk+cW,pW="(?:"+[sW,T1,A1].join("|")+")"+Kk,hW="(?:"+[zk+bm+"?",bm,T1,A1,iW].join("|")+")",vW=RegExp(j1,"g"),mW=RegExp(bm,"g"),M1=RegExp(I1+"(?="+I1+")|"+hW+Kk,"g"),gW=RegExp([Lc+"?"+Nk+"+"+Wk+"(?="+[Lk,Lc,"$"].join("|")+")",uW+"+"+Hk+"(?="+[Lk,Lc+Vk,"$"].join("|")+")",Lc+"?"+Vk+"+"+Wk,Lc+"+"+Hk,fW,dW,Dk,pW].join("|"),"g"),yW=RegExp("["+Uk+Ts+su+ym+"]"),bW=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_W=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xW=-1,br={};br[Ve]=br[_t]=br[Wt]=br[Ct]=br[qe]=br[pt]=br[Me]=br[Ge]=br[wt]=!0,br[ge]=br[pe]=br[De]=br[xe]=br[Ze]=br[ne]=br[ve]=br[$e]=br[je]=br[Le]=br[Xe]=br[Z]=br[ie]=br[ue]=br[Ae]=!1;var pr={};pr[ge]=pr[pe]=pr[De]=pr[Ze]=pr[xe]=pr[ne]=pr[Ve]=pr[_t]=pr[Wt]=pr[Ct]=pr[qe]=pr[je]=pr[Le]=pr[Xe]=pr[Z]=pr[ie]=pr[ue]=pr[ce]=pr[pt]=pr[Me]=pr[Ge]=pr[wt]=!0,pr[ve]=pr[$e]=pr[Ae]=!1;var wW={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},SW={"&":"&","<":"<",">":">",'"':""","'":"'"},EW={"&":"&","<":"<",">":">",""":'"',"'":"'"},CW={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},OW=parseFloat,PW=parseInt,Qk=typeof Zo=="object"&&Zo&&Zo.Object===Object&&Zo,RW=typeof self=="object"&&self&&self.Object===Object&&self,xn=Qk||RW||Function("return this")(),F1=t&&!t.nodeType&&t,uu=F1&&!0&&e&&!e.nodeType&&e,Xk=uu&&uu.exports===F1,L1=Xk&&Qk.process,to=function(){try{var re=uu&&uu.require&&uu.require("util").types;return re||L1&&L1.binding&&L1.binding("util")}catch{}}(),Yk=to&&to.isArrayBuffer,Jk=to&&to.isDate,Zk=to&&to.isMap,ej=to&&to.isRegExp,tj=to&&to.isSet,rj=to&&to.isTypedArray;function ka(re,be,he){switch(he.length){case 0:return re.call(be);case 1:return re.call(be,he[0]);case 2:return re.call(be,he[0],he[1]);case 3:return re.call(be,he[0],he[1],he[2])}return re.apply(be,he)}function $W(re,be,he,at){for(var xt=-1,Qt=re==null?0:re.length;++xt-1}function D1(re,be,he){for(var at=-1,xt=re==null?0:re.length;++at-1;);return he}function cj(re,be){for(var he=re.length;he--&&Dc(be,re[he],0)>-1;);return he}function DW(re,be){for(var he=re.length,at=0;he--;)re[he]===be&&++at;return at}var NW=U1(wW),BW=U1(SW);function zW(re){return"\\"+CW[re]}function UW(re,be){return re==null?r:re[be]}function Nc(re){return yW.test(re)}function VW(re){return bW.test(re)}function WW(re){for(var be,he=[];!(be=re.next()).done;)he.push(be.value);return he}function q1(re){var be=-1,he=Array(re.size);return re.forEach(function(at,xt){he[++be]=[xt,at]}),he}function dj(re,be){return function(he){return re(be(he))}}function Ds(re,be){for(var he=-1,at=re.length,xt=0,Qt=[];++he-1}function j7(u,p){var g=this.__data__,j=Lm(g,u);return j<0?(++this.size,g.push([u,p])):g[j][1]=p,this}Vi.prototype.clear=P7,Vi.prototype.delete=R7,Vi.prototype.get=$7,Vi.prototype.has=k7,Vi.prototype.set=j7;function Wi(u){var p=-1,g=u==null?0:u.length;for(this.clear();++p=p?u:p)),u}function oo(u,p,g,j,A,N){var G,Y=p&h,se=p&v,Ce=p&m;if(g&&(G=A?g(u,j,A,N):g(u)),G!==r)return G;if(!Rr(u))return u;var Oe=St(u);if(Oe){if(G=MH(u),!Y)return fa(u,G)}else{var Ie=Mn(u),Ue=Ie==$e||Ie==ye;if(Ws(u))return Gj(u,Y);if(Ie==Xe||Ie==ge||Ue&&!A){if(G=se||Ue?{}:fI(u),!Y)return se?EH(u,G7(G,u)):SH(u,Sj(G,u))}else{if(!pr[Ie])return A?u:{};G=FH(u,Ie,Y)}}N||(N=new Bo);var ct=N.get(u);if(ct)return ct;N.set(u,G),zI(u)?u.forEach(function(bt){G.add(oo(bt,p,g,bt,u,N))}):NI(u)&&u.forEach(function(bt,At){G.set(At,oo(bt,p,g,At,u,N))});var yt=Ce?se?yx:gx:se?ha:vn,kt=Oe?r:yt(u);return ro(kt||u,function(bt,At){kt&&(At=bt,bt=u[At]),wp(G,At,oo(bt,p,g,At,u,N))}),G}function K7(u){var p=vn(u);return function(g){return Ej(g,u,p)}}function Ej(u,p,g){var j=g.length;if(u==null)return!j;for(u=fr(u);j--;){var A=g[j],N=p[A],G=u[A];if(G===r&&!(A in u)||!N(G))return!1}return!0}function Cj(u,p,g){if(typeof u!="function")throw new no(i);return $p(function(){u.apply(r,g)},p)}function Sp(u,p,g,j){var A=-1,N=_m,G=!0,Y=u.length,se=[],Ce=p.length;if(!Y)return se;g&&(p=Sr(p,ja(g))),j?(N=D1,G=!1):p.length>=a&&(N=mp,G=!1,p=new fu(p));e:for(;++AA?0:A+g),j=j===r||j>A?A:Rt(j),j<0&&(j+=A),j=g>j?0:VI(j);g0&&g(Y)?p>1?wn(Y,p-1,g,j,A):Ls(A,Y):j||(A[A.length]=Y)}return A}var Z1=Zj(),Rj=Zj(!0);function ui(u,p){return u&&Z1(u,p,vn)}function ex(u,p){return u&&Rj(u,p,vn)}function Nm(u,p){return Fs(p,function(g){return Qi(u[g])})}function hu(u,p){p=Us(p,u);for(var g=0,j=p.length;u!=null&&gp}function Y7(u,p){return u!=null&&rr.call(u,p)}function J7(u,p){return u!=null&&p in fr(u)}function Z7(u,p,g){return u>=An(p,g)&&u=120&&Oe.length>=120)?new fu(G&&Oe):r}Oe=u[0];var Ie=-1,Ue=Y[0];e:for(;++Ie-1;)Y!==u&&km.call(Y,se,1),km.call(u,se,1);return u}function Nj(u,p){for(var g=u?p.length:0,j=g-1;g--;){var A=p[g];if(g==j||A!==N){var N=A;Ki(A)?km.call(u,A,1):cx(u,A)}}return u}function sx(u,p){return u+Tm(bj()*(p-u+1))}function fH(u,p,g,j){for(var A=-1,N=sn(Im((p-u)/(g||1)),0),G=he(N);N--;)G[j?N:++A]=u,u+=g;return G}function lx(u,p){var g="";if(!u||p<1||p>z)return g;do p%2&&(g+=u),p=Tm(p/2),p&&(u+=u);while(p);return g}function It(u,p){return Cx(vI(u,p,va),u+"")}function pH(u){return wj(Xc(u))}function hH(u,p){var g=Xc(u);return Xm(g,pu(p,0,g.length))}function Op(u,p,g,j){if(!Rr(u))return u;p=Us(p,u);for(var A=-1,N=p.length,G=N-1,Y=u;Y!=null&&++AA?0:A+p),g=g>A?A:g,g<0&&(g+=A),A=p>g?0:g-p>>>0,p>>>=0;for(var N=he(A);++j>>1,G=u[N];G!==null&&!Ta(G)&&(g?G<=p:G=a){var Ce=p?null:RH(u);if(Ce)return wm(Ce);G=!1,A=mp,se=new fu}else se=p?[]:Y;e:for(;++j=j?u:io(u,p,g)}var qj=o7||function(u){return xn.clearTimeout(u)};function Gj(u,p){if(p)return u.slice();var g=u.length,j=hj?hj(g):new u.constructor(g);return u.copy(j),j}function hx(u){var p=new u.constructor(u.byteLength);return new Rm(p).set(new Rm(u)),p}function bH(u,p){var g=p?hx(u.buffer):u.buffer;return new u.constructor(g,u.byteOffset,u.byteLength)}function _H(u){var p=new u.constructor(u.source,Tt.exec(u));return p.lastIndex=u.lastIndex,p}function xH(u){return xp?fr(xp.call(u)):{}}function Kj(u,p){var g=p?hx(u.buffer):u.buffer;return new u.constructor(g,u.byteOffset,u.length)}function Qj(u,p){if(u!==p){var g=u!==r,j=u===null,A=u===u,N=Ta(u),G=p!==r,Y=p===null,se=p===p,Ce=Ta(p);if(!Y&&!Ce&&!N&&u>p||N&&G&&se&&!Y&&!Ce||j&&G&&se||!g&&se||!A)return 1;if(!j&&!N&&!Ce&&u=Y)return se;var Ce=g[j];return se*(Ce=="desc"?-1:1)}}return u.index-p.index}function Xj(u,p,g,j){for(var A=-1,N=u.length,G=g.length,Y=-1,se=p.length,Ce=sn(N-G,0),Oe=he(se+Ce),Ie=!j;++Y1?g[A-1]:r,G=A>2?g[2]:r;for(N=u.length>3&&typeof N=="function"?(A--,N):r,G&&Gn(g[0],g[1],G)&&(N=A<3?r:N,A=1),p=fr(p);++j-1?A[N?p[G]:G]:r}}function rI(u){return Gi(function(p){var g=p.length,j=g,A=ao.prototype.thru;for(u&&p.reverse();j--;){var N=p[j];if(typeof N!="function")throw new no(i);if(A&&!G&&Km(N)=="wrapper")var G=new ao([],!0)}for(j=G?j:g;++j1&&Bt.reverse(),Oe&&seY))return!1;var Ce=N.get(u),Oe=N.get(p);if(Ce&&Oe)return Ce==p&&Oe==u;var Ie=-1,Ue=!0,ct=g&w?new fu:r;for(N.set(u,p),N.set(p,u);++Ie1?"& ":"")+p[j],p=p.join(g>2?", ":" "),u.replace(dt,`{ +/* [wrapped with `+p+`] */ +`)}function DH(u){return St(u)||gu(u)||!!(gj&&u&&u[gj])}function Ki(u,p){var g=typeof u;return p=p??z,!!p&&(g=="number"||g!="symbol"&&Tr.test(u))&&u>-1&&u%1==0&&u0){if(++p>=F)return arguments[0]}else p=0;return u.apply(r,arguments)}}function Xm(u,p){var g=-1,j=u.length,A=j-1;for(p=p===r?j:p;++g1?u[p-1]:r;return g=typeof g=="function"?(u.pop(),g):r,PI(u,g)});function RI(u){var p=D(u);return p.__chain__=!0,p}function Qq(u,p){return p(u),u}function Ym(u,p){return p(u)}var Xq=Gi(function(u){var p=u.length,g=p?u[0]:0,j=this.__wrapped__,A=function(N){return J1(N,u)};return p>1||this.__actions__.length||!(j instanceof Ft)||!Ki(g)?this.thru(A):(j=j.slice(g,+g+(p?1:0)),j.__actions__.push({func:Ym,args:[A],thisArg:r}),new ao(j,this.__chain__).thru(function(N){return p&&!N.length&&N.push(r),N}))});function Yq(){return RI(this)}function Jq(){return new ao(this.value(),this.__chain__)}function Zq(){this.__values__===r&&(this.__values__=UI(this.value()));var u=this.__index__>=this.__values__.length,p=u?r:this.__values__[this.__index__++];return{done:u,value:p}}function eG(){return this}function tG(u){for(var p,g=this;g instanceof Fm;){var j=xI(g);j.__index__=0,j.__values__=r,p?A.__wrapped__=j:p=j;var A=j;g=g.__wrapped__}return A.__wrapped__=u,p}function rG(){var u=this.__wrapped__;if(u instanceof Ft){var p=u;return this.__actions__.length&&(p=new Ft(this)),p=p.reverse(),p.__actions__.push({func:Ym,args:[Ox],thisArg:r}),new ao(p,this.__chain__)}return this.thru(Ox)}function nG(){return Wj(this.__wrapped__,this.__actions__)}var aG=Vm(function(u,p,g){rr.call(u,g)?++u[g]:Hi(u,g,1)});function oG(u,p,g){var j=St(u)?nj:Q7;return g&&Gn(u,p,g)&&(p=r),j(u,gt(p,3))}function iG(u,p){var g=St(u)?Fs:Pj;return g(u,gt(p,3))}var sG=tI(wI),lG=tI(SI);function uG(u,p){return wn(Jm(u,p),1)}function cG(u,p){return wn(Jm(u,p),W)}function dG(u,p,g){return g=g===r?1:Rt(g),wn(Jm(u,p),g)}function $I(u,p){var g=St(u)?ro:Bs;return g(u,gt(p,3))}function kI(u,p){var g=St(u)?kW:Oj;return g(u,gt(p,3))}var fG=Vm(function(u,p,g){rr.call(u,g)?u[g].push(p):Hi(u,g,[p])});function pG(u,p,g,j){u=pa(u)?u:Xc(u),g=g&&!j?Rt(g):0;var A=u.length;return g<0&&(g=sn(A+g,0)),ng(u)?g<=A&&u.indexOf(p,g)>-1:!!A&&Dc(u,p,g)>-1}var hG=It(function(u,p,g){var j=-1,A=typeof p=="function",N=pa(u)?he(u.length):[];return Bs(u,function(G){N[++j]=A?ka(p,G,g):Ep(G,p,g)}),N}),vG=Vm(function(u,p,g){Hi(u,g,p)});function Jm(u,p){var g=St(u)?Sr:Tj;return g(u,gt(p,3))}function mG(u,p,g,j){return u==null?[]:(St(p)||(p=p==null?[]:[p]),g=j?r:g,St(g)||(g=g==null?[]:[g]),Lj(u,p,g))}var gG=Vm(function(u,p,g){u[g?0:1].push(p)},function(){return[[],[]]});function yG(u,p,g){var j=St(u)?N1:sj,A=arguments.length<3;return j(u,gt(p,4),g,A,Bs)}function bG(u,p,g){var j=St(u)?jW:sj,A=arguments.length<3;return j(u,gt(p,4),g,A,Oj)}function _G(u,p){var g=St(u)?Fs:Pj;return g(u,tg(gt(p,3)))}function xG(u){var p=St(u)?wj:pH;return p(u)}function wG(u,p,g){(g?Gn(u,p,g):p===r)?p=1:p=Rt(p);var j=St(u)?W7:hH;return j(u,p)}function SG(u){var p=St(u)?H7:mH;return p(u)}function EG(u){if(u==null)return 0;if(pa(u))return ng(u)?Bc(u):u.length;var p=Mn(u);return p==je||p==ie?u.size:ax(u).length}function CG(u,p,g){var j=St(u)?B1:gH;return g&&Gn(u,p,g)&&(p=r),j(u,gt(p,3))}var OG=It(function(u,p){if(u==null)return[];var g=p.length;return g>1&&Gn(u,p[0],p[1])?p=[]:g>2&&Gn(p[0],p[1],p[2])&&(p=[p[0]]),Lj(u,wn(p,1),[])}),Zm=i7||function(){return xn.Date.now()};function PG(u,p){if(typeof p!="function")throw new no(i);return u=Rt(u),function(){if(--u<1)return p.apply(this,arguments)}}function jI(u,p,g){return p=g?r:p,p=u&&p==null?u.length:p,qi(u,$,r,r,r,r,p)}function II(u,p){var g;if(typeof p!="function")throw new no(i);return u=Rt(u),function(){return--u>0&&(g=p.apply(this,arguments)),u<=1&&(p=r),g}}var Rx=It(function(u,p,g){var j=O;if(g.length){var A=Ds(g,Kc(Rx));j|=P}return qi(u,j,p,g,A)}),TI=It(function(u,p,g){var j=O|_;if(g.length){var A=Ds(g,Kc(TI));j|=P}return qi(p,j,u,g,A)});function AI(u,p,g){p=g?r:p;var j=qi(u,x,r,r,r,r,r,p);return j.placeholder=AI.placeholder,j}function MI(u,p,g){p=g?r:p;var j=qi(u,S,r,r,r,r,r,p);return j.placeholder=MI.placeholder,j}function FI(u,p,g){var j,A,N,G,Y,se,Ce=0,Oe=!1,Ie=!1,Ue=!0;if(typeof u!="function")throw new no(i);p=lo(p)||0,Rr(g)&&(Oe=!!g.leading,Ie="maxWait"in g,N=Ie?sn(lo(g.maxWait)||0,p):N,Ue="trailing"in g?!!g.trailing:Ue);function ct(Vr){var Uo=j,Yi=A;return j=A=r,Ce=Vr,G=u.apply(Yi,Uo),G}function yt(Vr){return Ce=Vr,Y=$p(At,p),Oe?ct(Vr):G}function kt(Vr){var Uo=Vr-se,Yi=Vr-Ce,tT=p-Uo;return Ie?An(tT,N-Yi):tT}function bt(Vr){var Uo=Vr-se,Yi=Vr-Ce;return se===r||Uo>=p||Uo<0||Ie&&Yi>=N}function At(){var Vr=Zm();if(bt(Vr))return Bt(Vr);Y=$p(At,kt(Vr))}function Bt(Vr){return Y=r,Ue&&j?ct(Vr):(j=A=r,G)}function Aa(){Y!==r&&qj(Y),Ce=0,j=se=A=Y=r}function Kn(){return Y===r?G:Bt(Zm())}function Ma(){var Vr=Zm(),Uo=bt(Vr);if(j=arguments,A=this,se=Vr,Uo){if(Y===r)return yt(se);if(Ie)return qj(Y),Y=$p(At,p),ct(se)}return Y===r&&(Y=$p(At,p)),G}return Ma.cancel=Aa,Ma.flush=Kn,Ma}var RG=It(function(u,p){return Cj(u,1,p)}),$G=It(function(u,p,g){return Cj(u,lo(p)||0,g)});function kG(u){return qi(u,k)}function eg(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new no(i);var g=function(){var j=arguments,A=p?p.apply(this,j):j[0],N=g.cache;if(N.has(A))return N.get(A);var G=u.apply(this,j);return g.cache=N.set(A,G)||N,G};return g.cache=new(eg.Cache||Wi),g}eg.Cache=Wi;function tg(u){if(typeof u!="function")throw new no(i);return function(){var p=arguments;switch(p.length){case 0:return!u.call(this);case 1:return!u.call(this,p[0]);case 2:return!u.call(this,p[0],p[1]);case 3:return!u.call(this,p[0],p[1],p[2])}return!u.apply(this,p)}}function jG(u){return II(2,u)}var IG=yH(function(u,p){p=p.length==1&&St(p[0])?Sr(p[0],ja(gt())):Sr(wn(p,1),ja(gt()));var g=p.length;return It(function(j){for(var A=-1,N=An(j.length,g);++A=p}),gu=kj(function(){return arguments}())?kj:function(u){return Mr(u)&&rr.call(u,"callee")&&!mj.call(u,"callee")},St=he.isArray,GG=Yk?ja(Yk):tH;function pa(u){return u!=null&&rg(u.length)&&!Qi(u)}function Ur(u){return Mr(u)&&pa(u)}function KG(u){return u===!0||u===!1||Mr(u)&&qn(u)==xe}var Ws=l7||Bx,QG=Jk?ja(Jk):rH;function XG(u){return Mr(u)&&u.nodeType===1&&!kp(u)}function YG(u){if(u==null)return!0;if(pa(u)&&(St(u)||typeof u=="string"||typeof u.splice=="function"||Ws(u)||Qc(u)||gu(u)))return!u.length;var p=Mn(u);if(p==je||p==ie)return!u.size;if(Rp(u))return!ax(u).length;for(var g in u)if(rr.call(u,g))return!1;return!0}function JG(u,p){return Cp(u,p)}function ZG(u,p,g){g=typeof g=="function"?g:r;var j=g?g(u,p):r;return j===r?Cp(u,p,r,g):!!j}function kx(u){if(!Mr(u))return!1;var p=qn(u);return p==ve||p==Te||typeof u.message=="string"&&typeof u.name=="string"&&!kp(u)}function eK(u){return typeof u=="number"&&yj(u)}function Qi(u){if(!Rr(u))return!1;var p=qn(u);return p==$e||p==ye||p==me||p==K}function DI(u){return typeof u=="number"&&u==Rt(u)}function rg(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=z}function Rr(u){var p=typeof u;return u!=null&&(p=="object"||p=="function")}function Mr(u){return u!=null&&typeof u=="object"}var NI=Zk?ja(Zk):aH;function tK(u,p){return u===p||nx(u,p,_x(p))}function rK(u,p,g){return g=typeof g=="function"?g:r,nx(u,p,_x(p),g)}function nK(u){return BI(u)&&u!=+u}function aK(u){if(zH(u))throw new xt(o);return jj(u)}function oK(u){return u===null}function iK(u){return u==null}function BI(u){return typeof u=="number"||Mr(u)&&qn(u)==Le}function kp(u){if(!Mr(u)||qn(u)!=Xe)return!1;var p=$m(u);if(p===null)return!0;var g=rr.call(p,"constructor")&&p.constructor;return typeof g=="function"&&g instanceof g&&Cm.call(g)==r7}var jx=ej?ja(ej):oH;function sK(u){return DI(u)&&u>=-z&&u<=z}var zI=tj?ja(tj):iH;function ng(u){return typeof u=="string"||!St(u)&&Mr(u)&&qn(u)==ue}function Ta(u){return typeof u=="symbol"||Mr(u)&&qn(u)==ce}var Qc=rj?ja(rj):sH;function lK(u){return u===r}function uK(u){return Mr(u)&&Mn(u)==Ae}function cK(u){return Mr(u)&&qn(u)==ft}var dK=Gm(ox),fK=Gm(function(u,p){return u<=p});function UI(u){if(!u)return[];if(pa(u))return ng(u)?No(u):fa(u);if(gp&&u[gp])return WW(u[gp]());var p=Mn(u),g=p==je?q1:p==ie?wm:Xc;return g(u)}function Xi(u){if(!u)return u===0?u:0;if(u=lo(u),u===W||u===-W){var p=u<0?-1:1;return p*q}return u===u?u:0}function Rt(u){var p=Xi(u),g=p%1;return p===p?g?p-g:p:0}function VI(u){return u?pu(Rt(u),0,oe):0}function lo(u){if(typeof u=="number")return u;if(Ta(u))return ee;if(Rr(u)){var p=typeof u.valueOf=="function"?u.valueOf():u;u=Rr(p)?p+"":p}if(typeof u!="string")return u===0?u:+u;u=lj(u);var g=Zt.test(u);return g||lt.test(u)?PW(u.slice(2),g?2:8):zr.test(u)?ee:+u}function WI(u){return ci(u,ha(u))}function pK(u){return u?pu(Rt(u),-z,z):u===0?u:0}function er(u){return u==null?"":Ia(u)}var hK=qc(function(u,p){if(Rp(p)||pa(p)){ci(p,vn(p),u);return}for(var g in p)rr.call(p,g)&&wp(u,g,p[g])}),HI=qc(function(u,p){ci(p,ha(p),u)}),ag=qc(function(u,p,g,j){ci(p,ha(p),u,j)}),vK=qc(function(u,p,g,j){ci(p,vn(p),u,j)}),mK=Gi(J1);function gK(u,p){var g=Hc(u);return p==null?g:Sj(g,p)}var yK=It(function(u,p){u=fr(u);var g=-1,j=p.length,A=j>2?p[2]:r;for(A&&Gn(p[0],p[1],A)&&(j=1);++g1),N}),ci(u,yx(u),g),j&&(g=oo(g,h|v|m,$H));for(var A=p.length;A--;)cx(g,p[A]);return g});function FK(u,p){return GI(u,tg(gt(p)))}var LK=Gi(function(u,p){return u==null?{}:cH(u,p)});function GI(u,p){if(u==null)return{};var g=Sr(yx(u),function(j){return[j]});return p=gt(p),Dj(u,g,function(j,A){return p(j,A[0])})}function DK(u,p,g){p=Us(p,u);var j=-1,A=p.length;for(A||(A=1,u=r);++jp){var j=u;u=p,p=j}if(g||u%1||p%1){var A=bj();return An(u+A*(p-u+OW("1e-"+((A+"").length-1))),p)}return sx(u,p)}var QK=Gc(function(u,p,g){return p=p.toLowerCase(),u+(g?XI(p):p)});function XI(u){return Ax(er(u).toLowerCase())}function YI(u){return u=er(u),u&&u.replace(ou,NW).replace(mW,"")}function XK(u,p,g){u=er(u),p=Ia(p);var j=u.length;g=g===r?j:pu(Rt(g),0,j);var A=g;return g-=p.length,g>=0&&u.slice(g,A)==p}function YK(u){return u=er(u),u&&li.test(u)?u.replace($a,BW):u}function JK(u){return u=er(u),u&&fe.test(u)?u.replace(ae,"\\$&"):u}var ZK=Gc(function(u,p,g){return u+(g?"-":"")+p.toLowerCase()}),eQ=Gc(function(u,p,g){return u+(g?" ":"")+p.toLowerCase()}),tQ=eI("toLowerCase");function rQ(u,p,g){u=er(u),p=Rt(p);var j=p?Bc(u):0;if(!p||j>=p)return u;var A=(p-j)/2;return qm(Tm(A),g)+u+qm(Im(A),g)}function nQ(u,p,g){u=er(u),p=Rt(p);var j=p?Bc(u):0;return p&&j>>0,g?(u=er(u),u&&(typeof p=="string"||p!=null&&!jx(p))&&(p=Ia(p),!p&&Nc(u))?Vs(No(u),0,g):u.split(p,g)):[]}var cQ=Gc(function(u,p,g){return u+(g?" ":"")+Ax(p)});function dQ(u,p,g){return u=er(u),g=g==null?0:pu(Rt(g),0,u.length),p=Ia(p),u.slice(g,g+p.length)==p}function fQ(u,p,g){var j=D.templateSettings;g&&Gn(u,p,g)&&(p=r),u=er(u),p=ag({},p,j,sI);var A=ag({},p.imports,j.imports,sI),N=vn(A),G=H1(A,N),Y,se,Ce=0,Oe=p.interpolate||da,Ie="__p += '",Ue=G1((p.escape||da).source+"|"+Oe.source+"|"+(Oe===zi?Pt:da).source+"|"+(p.evaluate||da).source+"|$","g"),ct="//# sourceURL="+(rr.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xW+"]")+` +`;u.replace(Ue,function(bt,At,Bt,Aa,Kn,Ma){return Bt||(Bt=Aa),Ie+=u.slice(Ce,Ma).replace(eo,zW),At&&(Y=!0,Ie+=`' + +__e(`+At+`) + +'`),Kn&&(se=!0,Ie+=`'; +`+Kn+`; +__p += '`),Bt&&(Ie+=`' + +((__t = (`+Bt+`)) == null ? '' : __t) + +'`),Ce=Ma+bt.length,bt}),Ie+=`'; +`;var yt=rr.call(p,"variable")&&p.variable;if(!yt)Ie=`with (obj) { +`+Ie+` +} +`;else if(Qe.test(yt))throw new xt(l);Ie=(se?Ie.replace(Ot,""):Ie).replace(dr,"$1").replace(Pr,"$1;"),Ie="function("+(yt||"obj")+`) { +`+(yt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(se?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Ie+`return __p +}`;var kt=ZI(function(){return Qt(N,ct+"return "+Ie).apply(r,G)});if(kt.source=Ie,kx(kt))throw kt;return kt}function pQ(u){return er(u).toLowerCase()}function hQ(u){return er(u).toUpperCase()}function vQ(u,p,g){if(u=er(u),u&&(g||p===r))return lj(u);if(!u||!(p=Ia(p)))return u;var j=No(u),A=No(p),N=uj(j,A),G=cj(j,A)+1;return Vs(j,N,G).join("")}function mQ(u,p,g){if(u=er(u),u&&(g||p===r))return u.slice(0,fj(u)+1);if(!u||!(p=Ia(p)))return u;var j=No(u),A=cj(j,No(p))+1;return Vs(j,0,A).join("")}function gQ(u,p,g){if(u=er(u),u&&(g||p===r))return u.replace(Se,"");if(!u||!(p=Ia(p)))return u;var j=No(u),A=uj(j,No(p));return Vs(j,A).join("")}function yQ(u,p){var g=I,j=M;if(Rr(p)){var A="separator"in p?p.separator:A;g="length"in p?Rt(p.length):g,j="omission"in p?Ia(p.omission):j}u=er(u);var N=u.length;if(Nc(u)){var G=No(u);N=G.length}if(g>=N)return u;var Y=g-Bc(j);if(Y<1)return j;var se=G?Vs(G,0,Y).join(""):u.slice(0,Y);if(A===r)return se+j;if(G&&(Y+=se.length-Y),jx(A)){if(u.slice(Y).search(A)){var Ce,Oe=se;for(A.global||(A=G1(A.source,er(Tt.exec(A))+"g")),A.lastIndex=0;Ce=A.exec(Oe);)var Ie=Ce.index;se=se.slice(0,Ie===r?Y:Ie)}}else if(u.indexOf(Ia(A),Y)!=Y){var Ue=se.lastIndexOf(A);Ue>-1&&(se=se.slice(0,Ue))}return se+j}function bQ(u){return u=er(u),u&&Tn.test(u)?u.replace(an,KW):u}var _Q=Gc(function(u,p,g){return u+(g?" ":"")+p.toUpperCase()}),Ax=eI("toUpperCase");function JI(u,p,g){return u=er(u),p=g?r:p,p===r?VW(u)?YW(u):AW(u):u.match(p)||[]}var ZI=It(function(u,p){try{return ka(u,r,p)}catch(g){return kx(g)?g:new xt(g)}}),xQ=Gi(function(u,p){return ro(p,function(g){g=di(g),Hi(u,g,Rx(u[g],u))}),u});function wQ(u){var p=u==null?0:u.length,g=gt();return u=p?Sr(u,function(j){if(typeof j[1]!="function")throw new no(i);return[g(j[0]),j[1]]}):[],It(function(j){for(var A=-1;++Az)return[];var g=oe,j=An(u,oe);p=gt(p),u-=oe;for(var A=W1(j,p);++g0||p<0)?new Ft(g):(u<0?g=g.takeRight(-u):u&&(g=g.drop(u)),p!==r&&(p=Rt(p),g=p<0?g.dropRight(-p):g.take(p-u)),g)},Ft.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Ft.prototype.toArray=function(){return this.take(oe)},ui(Ft.prototype,function(u,p){var g=/^(?:filter|find|map|reject)|While$/.test(p),j=/^(?:head|last)$/.test(p),A=D[j?"take"+(p=="last"?"Right":""):p],N=j||/^find/.test(p);A&&(D.prototype[p]=function(){var G=this.__wrapped__,Y=j?[1]:arguments,se=G instanceof Ft,Ce=Y[0],Oe=se||St(G),Ie=function(At){var Bt=A.apply(D,Ls([At],Y));return j&&Ue?Bt[0]:Bt};Oe&&g&&typeof Ce=="function"&&Ce.length!=1&&(se=Oe=!1);var Ue=this.__chain__,ct=!!this.__actions__.length,yt=N&&!Ue,kt=se&&!ct;if(!N&&Oe){G=kt?G:new Ft(this);var bt=u.apply(G,Y);return bt.__actions__.push({func:Ym,args:[Ie],thisArg:r}),new ao(bt,Ue)}return yt&&kt?u.apply(this,Y):(bt=this.thru(Ie),yt?j?bt.value()[0]:bt.value():bt)})}),ro(["pop","push","shift","sort","splice","unshift"],function(u){var p=Sm[u],g=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",j=/^(?:pop|shift)$/.test(u);D.prototype[u]=function(){var A=arguments;if(j&&!this.__chain__){var N=this.value();return p.apply(St(N)?N:[],A)}return this[g](function(G){return p.apply(St(G)?G:[],A)})}}),ui(Ft.prototype,function(u,p){var g=D[p];if(g){var j=g.name+"";rr.call(Wc,j)||(Wc[j]=[]),Wc[j].push({name:p,func:g})}}),Wc[Wm(r,_).name]=[{name:"wrapper",func:r}],Ft.prototype.clone=b7,Ft.prototype.reverse=_7,Ft.prototype.value=x7,D.prototype.at=Xq,D.prototype.chain=Yq,D.prototype.commit=Jq,D.prototype.next=Zq,D.prototype.plant=tG,D.prototype.reverse=rG,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=nG,D.prototype.first=D.prototype.head,gp&&(D.prototype[gp]=eG),D},zc=JW();uu?((uu.exports=zc)._=zc,F1._=zc):xn._=zc}).call(Zo)})(u0,u0.exports);var Lv=u0.exports,fA=Object.prototype.toString,B4=function(t){var r=fA.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&fA.call(t.callee)==="[object Function]"),n},hw,pA;function IJ(){if(pA)return hw;pA=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=B4,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(v){var m=v.constructor;return m&&m.prototype===v},s={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if(typeof window>"u")return!1;for(var v in window)try{if(!s["$"+v]&&t.call(window,v)&&window[v]!==null&&typeof window[v]=="object")try{c(window[v])}catch{return!0}}catch{return!0}return!1}(),h=function(v){if(typeof window>"u"||!f)return c(v);try{return c(v)}catch{return!1}};e=function(m){var b=m!==null&&typeof m=="object",w=r.call(m)==="[object Function]",O=n(m),_=b&&r.call(m)==="[object String]",y=[];if(!b&&!w&&!O)throw new TypeError("Object.keys called on a non-object");var x=i&&w;if(_&&m.length>0&&!t.call(m,0))for(var S=0;S0)for(var P=0;P"u"||!mn?Lt:mn(Uint8Array),rc={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Lt:ArrayBuffer,"%ArrayIteratorPrototype%":Jc&&mn?mn([][Symbol.iterator]()):Lt,"%AsyncFromSyncIteratorPrototype%":Lt,"%AsyncFunction%":cd,"%AsyncGenerator%":cd,"%AsyncGeneratorFunction%":cd,"%AsyncIteratorPrototype%":cd,"%Atomics%":typeof Atomics>"u"?Lt:Atomics,"%BigInt%":typeof BigInt>"u"?Lt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Lt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Lt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":nZ,"%eval%":eval,"%EvalError%":aZ,"%Float32Array%":typeof Float32Array>"u"?Lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Lt:FinalizationRegistry,"%Function%":V4,"%GeneratorFunction%":cd,"%Int8Array%":typeof Int8Array>"u"?Lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Jc&&mn?mn(mn([][Symbol.iterator]())):Lt,"%JSON%":typeof JSON=="object"?JSON:Lt,"%Map%":typeof Map>"u"?Lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Jc||!mn?Lt:mn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Lt:Promise,"%Proxy%":typeof Proxy>"u"?Lt:Proxy,"%RangeError%":oZ,"%ReferenceError%":iZ,"%Reflect%":typeof Reflect>"u"?Lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Jc||!mn?Lt:mn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Jc&&mn?mn(""[Symbol.iterator]()):Lt,"%Symbol%":Jc?Symbol:Lt,"%SyntaxError%":Ef,"%ThrowTypeError%":lZ,"%TypedArray%":cZ,"%TypeError%":Bd,"%Uint8Array%":typeof Uint8Array>"u"?Lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Lt:Uint32Array,"%URIError%":sZ,"%WeakMap%":typeof WeakMap>"u"?Lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Lt:WeakSet};if(mn)try{null.error}catch(e){var dZ=mn(mn(e));rc["%Error.prototype%"]=dZ}var fZ=function e(t){var r;if(t==="%AsyncFunction%")r=mw("async function () {}");else if(t==="%GeneratorFunction%")r=mw("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=mw("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&mn&&(r=mn(a.prototype))}return rc[t]=r,r},yA={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Nv=WP,c0=U4,pZ=Nv.call(Function.call,Array.prototype.concat),hZ=Nv.call(Function.apply,Array.prototype.splice),bA=Nv.call(Function.call,String.prototype.replace),d0=Nv.call(Function.call,String.prototype.slice),vZ=Nv.call(Function.call,RegExp.prototype.exec),mZ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,gZ=/\\(\\)?/g,yZ=function(t){var r=d0(t,0,1),n=d0(t,-1);if(r==="%"&&n!=="%")throw new Ef("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ef("invalid intrinsic syntax, expected opening `%`");var a=[];return bA(t,mZ,function(o,i,l,c){a[a.length]=l?bA(c,gZ,"$1"):i||o}),a},bZ=function(t,r){var n=t,a;if(c0(yA,n)&&(a=yA[n],n="%"+a[0]+"%"),c0(rc,n)){var o=rc[n];if(o===cd&&(o=fZ(n)),typeof o>"u"&&!r)throw new Bd("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new Ef("intrinsic "+t+" does not exist!")},Bv=function(t,r){if(typeof t!="string"||t.length===0)throw new Bd("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Bd('"allowMissing" argument must be a boolean');if(vZ(/^%?[^%]*%?$/,t)===null)throw new Ef("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=yZ(t),a=n.length>0?n[0]:"",o=bZ("%"+a+"%",r),i=o.name,l=o.value,c=!1,s=o.alias;s&&(a=s[0],hZ(n,pZ([0,1],s)));for(var f=1,h=!0;f=n.length){var w=tc(l,v);h=!!w,h&&"get"in w&&!("originalValue"in w.get)?l=w.get:l=l[v]}else h=c0(l,v),l=l[v];h&&!c&&(rc[i]=l)}}return l},_Z=Bv,ly=_Z("%Object.defineProperty%",!0)||!1;if(ly)try{ly({},"a",{value:1})}catch{ly=!1}var HP=ly,xZ=Bv,uy=xZ("%Object.getOwnPropertyDescriptor%",!0);if(uy)try{uy([],"length")}catch{uy=null}var W4=uy,_A=HP,wZ=z4,Zc=Dv,xA=W4,H4=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Zc("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Zc("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Zc("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Zc("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Zc("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Zc("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,c=!!xA&&xA(t,r);if(_A)_A(t,r,{configurable:i===null&&c?c.configurable:!i,enumerable:a===null&&c?c.enumerable:!a,value:n,writable:o===null&&c?c.writable:!o});else if(l||!a&&!o&&!i)t[r]=n;else throw new wZ("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},hE=HP,q4=function(){return!!hE};q4.hasArrayLengthDefineBug=function(){if(!hE)return null;try{return hE([],"length",{value:1}).length!==1}catch{return!0}};var G4=q4,SZ=MJ,EZ=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",CZ=Object.prototype.toString,OZ=Array.prototype.concat,wA=H4,PZ=function(e){return typeof e=="function"&&CZ.call(e)==="[object Function]"},K4=G4(),RZ=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!PZ(n)||!n())return}K4?wA(e,t,r,!0):wA(e,t,r)},Q4=function(e,t){var r=arguments.length>2?arguments[2]:{},n=SZ(t);EZ&&(n=OZ.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a4294967295||jZ(r)!==r)throw new CA("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&EA){var i=EA(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(kZ?SA(t,"length",r,!0,!0):SA(t,"length",r)),t};(function(e){var t=WP,r=Bv,n=IZ,a=Dv,o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||t.call(i,o),c=HP,s=r("%Math.max%");e.exports=function(v){if(typeof v!="function")throw new a("a function is required");var m=l(t,i,arguments);return n(m,1+s(0,v.length-(arguments.length-1)),!0)};var f=function(){return l(t,o,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f})(Y4);var J4=Y4.exports,TZ=Dv,AZ=function(t){if(t==null)throw new TZ(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},Z4=Bv,e5=J4,MZ=e5(Z4("String.prototype.indexOf")),FZ=function(t,r){var n=Z4(t,!!r);return typeof n=="function"&&MZ(t,".prototype.")>-1?e5(n):n},LZ=AZ,t5=FZ,DZ=t5("Object.prototype.propertyIsEnumerable"),NZ=t5("Array.prototype.push"),r5=function(t){var r=LZ(t),n=[];for(var a in r)DZ(r,a)&&NZ(n,[a,r[a]]);return n},BZ=r5,n5=function(){return typeof Object.entries=="function"?Object.entries:BZ},zZ=n5,UZ=X4,VZ=function(){var t=zZ();return UZ(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},WZ=X4,HZ=J4,qZ=r5,a5=n5,GZ=VZ,o5=HZ(a5(),Object);WZ(o5,{getPolyfill:a5,implementation:qZ,shim:GZ});var KZ=o5,qP=KZ,i5=U4,QZ=function(t){},vE=String.prototype.replace,s5=String.prototype.split,cy="||||",Sg=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},l5={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:Sg,chinese:function(){return 0},croatian:Sg,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:Sg,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2},ukrainian:Sg},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function XZ(e){for(var t={},r=qP(e),n=0;n{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},dc=typeof window>"u"||"Deno"in globalThis;function ra(){}function aee(e,t){return typeof e=="function"?e(t):e}function mE(e){return typeof e=="number"&&e>=0&&e!==1/0}function c5(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zd(e,t){return typeof e=="function"?e(t):e}function Xo(e,t){return typeof e=="function"?e(t):e}function RA(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:l}=e;if(i){if(n){if(t.queryHash!==QP(i,t.options))return!1}else if(!ov(t.queryKey,i))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||o&&!o(t))}function $A(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Dl(t.options.mutationKey)!==Dl(o))return!1}else if(!ov(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function QP(e,t){return((t==null?void 0:t.queryKeyHashFn)||Dl)(e)}function Dl(e){return JSON.stringify(e,(t,r)=>gE(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function ov(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ov(e[r],t[r])):!1}function d5(e,t){if(e===t)return e;const r=kA(e)&&kA(t);if(r||gE(e)&&gE(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,l=r?[]:{};let c=0;for(let s=0;s{setTimeout(t,e)})}function yE(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?d5(e,t):t}function iee(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function see(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var XP=Symbol();function f5(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===XP?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function p5(e,t){return typeof e=="function"?e(...t):!!e}var Hu,ll,nf,mN,lee=(mN=class extends Uf{constructor(){super();ht(this,Hu);ht(this,ll);ht(this,nf);Je(this,nf,t=>{if(!dc&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){Q(this,ll)||this.setEventListener(Q(this,nf))}onUnsubscribe(){var t;this.hasListeners()||((t=Q(this,ll))==null||t.call(this),Je(this,ll,void 0))}setEventListener(t){var r;Je(this,nf,t),(r=Q(this,ll))==null||r.call(this),Je(this,ll,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){Q(this,Hu)!==t&&(Je(this,Hu,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof Q(this,Hu)=="boolean"?Q(this,Hu):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Hu=new WeakMap,ll=new WeakMap,nf=new WeakMap,mN),YP=new lee,af,ul,of,gN,uee=(gN=class extends Uf{constructor(){super();ht(this,af,!0);ht(this,ul);ht(this,of);Je(this,of,t=>{if(!dc&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){Q(this,ul)||this.setEventListener(Q(this,of))}onUnsubscribe(){var t;this.hasListeners()||((t=Q(this,ul))==null||t.call(this),Je(this,ul,void 0))}setEventListener(t){var r;Je(this,of,t),(r=Q(this,ul))==null||r.call(this),Je(this,ul,t(this.setOnline.bind(this)))}setOnline(t){Q(this,af)!==t&&(Je(this,af,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return Q(this,af)}},af=new WeakMap,ul=new WeakMap,of=new WeakMap,gN),p0=new uee;function bE(){let e,t;const r=new Promise((a,o)=>{e=a,t=o});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}function cee(e){return Math.min(1e3*2**e,3e4)}function h5(e){return(e??"online")==="online"?p0.isOnline():!0}var v5=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yw(e){return e instanceof v5}function m5(e){let t=!1,r=0,n=!1,a;const o=bE(),i=w=>{var O;n||(v(new v5(w)),(O=e.abort)==null||O.call(e))},l=()=>{t=!0},c=()=>{t=!1},s=()=>YP.isFocused()&&(e.networkMode==="always"||p0.isOnline())&&e.canRun(),f=()=>h5(e.networkMode)&&e.canRun(),h=w=>{var O;n||(n=!0,(O=e.onSuccess)==null||O.call(e,w),a==null||a(),o.resolve(w))},v=w=>{var O;n||(n=!0,(O=e.onError)==null||O.call(e,w),a==null||a(),o.reject(w))},m=()=>new Promise(w=>{var O;a=_=>{(n||s())&&w(_)},(O=e.onPause)==null||O.call(e)}).then(()=>{var w;a=void 0,n||(w=e.onContinue)==null||w.call(e)}),b=()=>{if(n)return;let w;const O=r===0?e.initialPromise:void 0;try{w=O??e.fn()}catch(_){w=Promise.reject(_)}Promise.resolve(w).then(h).catch(_=>{var C;if(n)return;const y=e.retry??(dc?0:3),x=e.retryDelay??cee,S=typeof x=="function"?x(r,_):x,P=y===!0||typeof y=="number"&&rs()?void 0:m()).then(()=>{t?v(_):b()})})};return{promise:o,cancel:i,continue:()=>(a==null||a(),o),cancelRetry:l,continueRetry:c,canStart:f,start:()=>(f()?b():m().then(b),o)}}var dee=e=>setTimeout(e,0);function fee(){let e=[],t=0,r=l=>{l()},n=l=>{l()},a=dee;const o=l=>{t?e.push(l):a(()=>{r(l)})},i=()=>{const l=e;e=[],l.length&&a(()=>{n(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||i()}return c},batchCalls:l=>(...c)=>{o(()=>{l(...c)})},schedule:o,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{a=l}}}var Gr=fee(),qu,yN,g5=(yN=class{constructor(){ht(this,qu)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mE(this.gcTime)&&Je(this,qu,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(dc?1/0:5*60*1e3))}clearGcTimeout(){Q(this,qu)&&(clearTimeout(Q(this,qu)),Je(this,qu,void 0))}},qu=new WeakMap,yN),sf,lf,co,Gu,Nn,Pv,Ku,Ho,es,bN,pee=(bN=class extends g5{constructor(t){super();ht(this,Ho);ht(this,sf);ht(this,lf);ht(this,co);ht(this,Gu);ht(this,Nn);ht(this,Pv);ht(this,Ku);Je(this,Ku,!1),Je(this,Pv,t.defaultOptions),this.setOptions(t.options),this.observers=[],Je(this,Gu,t.client),Je(this,co,Q(this,Gu).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Je(this,sf,hee(this.options)),this.state=t.state??Q(this,sf),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Q(this,Nn))==null?void 0:t.promise}setOptions(t){this.options={...Q(this,Pv),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Q(this,co).remove(this)}setData(t,r){const n=yE(this.state.data,t,this.options);return jt(this,Ho,es).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){jt(this,Ho,es).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=Q(this,Nn))==null?void 0:n.promise;return(a=Q(this,Nn))==null||a.cancel(t),r?r.then(ra).catch(ra):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Q(this,sf))}isActive(){return this.observers.some(t=>Xo(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===XP||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!c5(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=Q(this,Nn))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=Q(this,Nn))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Q(this,co).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(Q(this,Nn)&&(Q(this,Ku)?Q(this,Nn).cancel({revert:!0}):Q(this,Nn).cancelRetry()),this.scheduleGc()),Q(this,co).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||jt(this,Ho,es).call(this,{type:"invalidate"})}fetch(t,r){var c,s,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(Q(this,Nn))return Q(this,Nn).continueRetry(),Q(this,Nn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(v=>v.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(Je(this,Ku,!0),n.signal)})},o=()=>{const h=f5(this.options,r),v={client:Q(this,Gu),queryKey:this.queryKey,meta:this.meta};return a(v),Je(this,Ku,!1),this.options.persister?this.options.persister(h,v,this):h(v)},i={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:Q(this,Gu),state:this.state,fetchFn:o};a(i),(c=this.options.behavior)==null||c.onFetch(i,this),Je(this,lf,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((s=i.fetchOptions)==null?void 0:s.meta))&&jt(this,Ho,es).call(this,{type:"fetch",meta:(f=i.fetchOptions)==null?void 0:f.meta});const l=h=>{var v,m,b,w;yw(h)&&h.silent||jt(this,Ho,es).call(this,{type:"error",error:h}),yw(h)||((m=(v=Q(this,co).config).onError)==null||m.call(v,h,this),(w=(b=Q(this,co).config).onSettled)==null||w.call(b,this.state.data,h,this)),this.scheduleGc()};return Je(this,Nn,m5({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var v,m,b,w;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(O){l(O);return}(m=(v=Q(this,co).config).onSuccess)==null||m.call(v,h,this),(w=(b=Q(this,co).config).onSettled)==null||w.call(b,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,v)=>{jt(this,Ho,es).call(this,{type:"failed",failureCount:h,error:v})},onPause:()=>{jt(this,Ho,es).call(this,{type:"pause"})},onContinue:()=>{jt(this,Ho,es).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),Q(this,Nn).start()}},sf=new WeakMap,lf=new WeakMap,co=new WeakMap,Gu=new WeakMap,Nn=new WeakMap,Pv=new WeakMap,Ku=new WeakMap,Ho=new WeakSet,es=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...y5(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return yw(a)&&a.revert&&Q(this,lf)?{...Q(this,lf),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Gr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),Q(this,co).notify({query:this,type:"updated",action:t})})},bN);function y5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:h5(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function hee(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var gi,_N,vee=(_N=class extends Uf{constructor(t={}){super();ht(this,gi);this.config=t,Je(this,gi,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??QP(a,r);let i=this.get(o);return i||(i=new pee({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){Q(this,gi).has(t.queryHash)||(Q(this,gi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=Q(this,gi).get(t.queryHash);r&&(t.destroy(),r===t&&Q(this,gi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Gr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Q(this,gi).get(t)}getAll(){return[...Q(this,gi).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>RA(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>RA(t,n)):r}notify(t){Gr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Gr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Gr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},gi=new WeakMap,_N),yi,Jn,Qu,bi,Js,xN,mee=(xN=class extends g5{constructor(t){super();ht(this,bi);ht(this,yi);ht(this,Jn);ht(this,Qu);this.mutationId=t.mutationId,Je(this,Jn,t.mutationCache),Je(this,yi,[]),this.state=t.state||b5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Q(this,yi).includes(t)||(Q(this,yi).push(t),this.clearGcTimeout(),Q(this,Jn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Je(this,yi,Q(this,yi).filter(r=>r!==t)),this.scheduleGc(),Q(this,Jn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Q(this,yi).length||(this.state.status==="pending"?this.scheduleGc():Q(this,Jn).remove(this))}continue(){var t;return((t=Q(this,Qu))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,l,c,s,f,h,v,m,b,w,O,_,y,x,S,P,C,$,R;const r=()=>{jt(this,bi,Js).call(this,{type:"continue"})};Je(this,Qu,m5({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,I)=>{jt(this,bi,Js).call(this,{type:"failed",failureCount:k,error:I})},onPause:()=>{jt(this,bi,Js).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Q(this,Jn).canRun(this)}));const n=this.state.status==="pending",a=!Q(this,Qu).canStart();try{if(n)r();else{jt(this,bi,Js).call(this,{type:"pending",variables:t,isPaused:a}),await((i=(o=Q(this,Jn).config).onMutate)==null?void 0:i.call(o,t,this));const I=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));I!==this.state.context&&jt(this,bi,Js).call(this,{type:"pending",context:I,variables:t,isPaused:a})}const k=await Q(this,Qu).start();return await((f=(s=Q(this,Jn).config).onSuccess)==null?void 0:f.call(s,k,t,this.state.context,this)),await((v=(h=this.options).onSuccess)==null?void 0:v.call(h,k,t,this.state.context)),await((b=(m=Q(this,Jn).config).onSettled)==null?void 0:b.call(m,k,null,this.state.variables,this.state.context,this)),await((O=(w=this.options).onSettled)==null?void 0:O.call(w,k,null,t,this.state.context)),jt(this,bi,Js).call(this,{type:"success",data:k}),k}catch(k){try{throw await((y=(_=Q(this,Jn).config).onError)==null?void 0:y.call(_,k,t,this.state.context,this)),await((S=(x=this.options).onError)==null?void 0:S.call(x,k,t,this.state.context)),await((C=(P=Q(this,Jn).config).onSettled)==null?void 0:C.call(P,void 0,k,this.state.variables,this.state.context,this)),await((R=($=this.options).onSettled)==null?void 0:R.call($,void 0,k,t,this.state.context)),k}finally{jt(this,bi,Js).call(this,{type:"error",error:k})}}finally{Q(this,Jn).runNext(this)}}},yi=new WeakMap,Jn=new WeakMap,Qu=new WeakMap,bi=new WeakSet,Js=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Gr.batch(()=>{Q(this,yi).forEach(n=>{n.onMutationUpdate(t)}),Q(this,Jn).notify({mutation:this,type:"updated",action:t})})},xN);function b5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var os,qo,Rv,wN,gee=(wN=class extends Uf{constructor(t={}){super();ht(this,os);ht(this,qo);ht(this,Rv);this.config=t,Je(this,os,new Set),Je(this,qo,new Map),Je(this,Rv,0)}build(t,r,n){const a=new mee({mutationCache:this,mutationId:++og(this,Rv)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){Q(this,os).add(t);const r=Eg(t);if(typeof r=="string"){const n=Q(this,qo).get(r);n?n.push(t):Q(this,qo).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Q(this,os).delete(t)){const r=Eg(t);if(typeof r=="string"){const n=Q(this,qo).get(r);if(n)if(n.length>1){const a=n.indexOf(t);a!==-1&&n.splice(a,1)}else n[0]===t&&Q(this,qo).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Eg(t);if(typeof r=="string"){const n=Q(this,qo).get(r),a=n==null?void 0:n.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var n;const r=Eg(t);if(typeof r=="string"){const a=(n=Q(this,qo).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Gr.batch(()=>{Q(this,os).forEach(t=>{this.notify({type:"removed",mutation:t})}),Q(this,os).clear(),Q(this,qo).clear()})}getAll(){return Array.from(Q(this,os))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>$A(r,n))}findAll(t={}){return this.getAll().filter(r=>$A(t,r))}notify(t){Gr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Gr.batch(()=>Promise.all(t.map(r=>r.continue().catch(ra))))}},os=new WeakMap,qo=new WeakMap,Rv=new WeakMap,wN);function Eg(e){var t;return(t=e.options.scope)==null?void 0:t.id}function IA(e){return{onFetch:(t,r)=>{var f,h,v,m,b;const n=t.options,a=(v=(h=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:h.fetchMore)==null?void 0:v.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const s=async()=>{let w=!1;const O=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},_=f5(t.options,t.fetchOptions),y=async(x,S,P)=>{if(w)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const C={client:t.client,queryKey:t.queryKey,pageParam:S,direction:P?"backward":"forward",meta:t.options.meta};O(C);const $=await _(C),{maxPages:R}=t.options,k=P?see:iee;return{pages:k(x.pages,$,R),pageParams:k(x.pageParams,S,R)}};if(a&&o.length){const x=a==="backward",S=x?yee:TA,P={pages:o,pageParams:i},C=S(n,P);l=await y(P,C,x)}else{const x=e??o.length;do{const S=c===0?i[0]??n.initialPageParam:TA(n,l);if(c>0&&S==null)break;l=await y(l,S),c++}while(c{var w,O;return(O=(w=t.options).persister)==null?void 0:O.call(w,s,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=s}}}function TA(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function yee(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Dr,cl,dl,uf,cf,fl,df,ff,SN,bee=(SN=class{constructor(e={}){ht(this,Dr);ht(this,cl);ht(this,dl);ht(this,uf);ht(this,cf);ht(this,fl);ht(this,df);ht(this,ff);Je(this,Dr,e.queryCache||new vee),Je(this,cl,e.mutationCache||new gee),Je(this,dl,e.defaultOptions||{}),Je(this,uf,new Map),Je(this,cf,new Map),Je(this,fl,0)}mount(){og(this,fl)._++,Q(this,fl)===1&&(Je(this,df,YP.subscribe(async e=>{e&&(await this.resumePausedMutations(),Q(this,Dr).onFocus())})),Je(this,ff,p0.subscribe(async e=>{e&&(await this.resumePausedMutations(),Q(this,Dr).onOnline())})))}unmount(){var e,t;og(this,fl)._--,Q(this,fl)===0&&((e=Q(this,df))==null||e.call(this),Je(this,df,void 0),(t=Q(this,ff))==null||t.call(this),Je(this,ff,void 0))}isFetching(e){return Q(this,Dr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Q(this,cl).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Q(this,Dr).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=Q(this,Dr).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(zd(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return Q(this,Dr).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=Q(this,Dr).get(n.queryHash),o=a==null?void 0:a.state.data,i=aee(t,o);if(i!==void 0)return Q(this,Dr).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return Gr.batch(()=>Q(this,Dr).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Q(this,Dr).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=Q(this,Dr);Gr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=Q(this,Dr);return Gr.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Gr.batch(()=>Q(this,Dr).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(ra).catch(ra)}invalidateQueries(e,t={}){return Gr.batch(()=>(Q(this,Dr).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Gr.batch(()=>Q(this,Dr).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(ra)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(ra)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=Q(this,Dr).build(this,t);return r.isStaleByTime(zd(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ra).catch(ra)}fetchInfiniteQuery(e){return e.behavior=IA(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ra).catch(ra)}ensureInfiniteQueryData(e){return e.behavior=IA(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return p0.isOnline()?Q(this,cl).resumePausedMutations():Promise.resolve()}getQueryCache(){return Q(this,Dr)}getMutationCache(){return Q(this,cl)}getDefaultOptions(){return Q(this,dl)}setDefaultOptions(e){Je(this,dl,e)}setQueryDefaults(e,t){Q(this,uf).set(Dl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Q(this,uf).values()],r={};return t.forEach(n=>{ov(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){Q(this,cf).set(Dl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Q(this,cf).values()],r={};return t.forEach(n=>{ov(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Q(this,dl).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=QP(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===XP&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Q(this,dl).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Q(this,Dr).clear(),Q(this,cl).clear()}},Dr=new WeakMap,cl=new WeakMap,dl=new WeakMap,uf=new WeakMap,cf=new WeakMap,fl=new WeakMap,df=new WeakMap,ff=new WeakMap,SN),ga,zt,$v,Zn,Xu,pf,pl,hl,kv,hf,vf,Yu,Ju,vl,mf,tr,ih,_E,xE,wE,SE,EE,CE,OE,_5,EN,_ee=(EN=class extends Uf{constructor(t,r){super();ht(this,tr);ht(this,ga);ht(this,zt);ht(this,$v);ht(this,Zn);ht(this,Xu);ht(this,pf);ht(this,pl);ht(this,hl);ht(this,kv);ht(this,hf);ht(this,vf);ht(this,Yu);ht(this,Ju);ht(this,vl);ht(this,mf,new Set);this.options=r,Je(this,ga,t),Je(this,hl,null),Je(this,pl,bE()),this.options.experimental_prefetchInRender||Q(this,pl).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Q(this,zt).addObserver(this),AA(Q(this,zt),this.options)?jt(this,tr,ih).call(this):this.updateResult(),jt(this,tr,SE).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return PE(Q(this,zt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return PE(Q(this,zt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,jt(this,tr,EE).call(this),jt(this,tr,CE).call(this),Q(this,zt).removeObserver(this)}setOptions(t){const r=this.options,n=Q(this,zt);if(this.options=Q(this,ga).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xo(this.options.enabled,Q(this,zt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");jt(this,tr,OE).call(this),Q(this,zt).setOptions(this.options),r._defaulted&&!f0(this.options,r)&&Q(this,ga).getQueryCache().notify({type:"observerOptionsUpdated",query:Q(this,zt),observer:this});const a=this.hasListeners();a&&MA(Q(this,zt),n,this.options,r)&&jt(this,tr,ih).call(this),this.updateResult(),a&&(Q(this,zt)!==n||Xo(this.options.enabled,Q(this,zt))!==Xo(r.enabled,Q(this,zt))||zd(this.options.staleTime,Q(this,zt))!==zd(r.staleTime,Q(this,zt)))&&jt(this,tr,_E).call(this);const o=jt(this,tr,xE).call(this);a&&(Q(this,zt)!==n||Xo(this.options.enabled,Q(this,zt))!==Xo(r.enabled,Q(this,zt))||o!==Q(this,vl))&&jt(this,tr,wE).call(this,o)}getOptimisticResult(t){const r=Q(this,ga).getQueryCache().build(Q(this,ga),t),n=this.createResult(r,t);return wee(this,n)&&(Je(this,Zn,n),Je(this,pf,this.options),Je(this,Xu,Q(this,zt).state)),n}getCurrentResult(){return Q(this,Zn)}trackResult(t,r){return new Proxy(t,{get:(n,a)=>(this.trackProp(a),r==null||r(a),Reflect.get(n,a))})}trackProp(t){Q(this,mf).add(t)}getCurrentQuery(){return Q(this,zt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=Q(this,ga).defaultQueryOptions(t),n=Q(this,ga).getQueryCache().build(Q(this,ga),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return jt(this,tr,ih).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Q(this,Zn)))}createResult(t,r){var k;const n=Q(this,zt),a=this.options,o=Q(this,Zn),i=Q(this,Xu),l=Q(this,pf),s=t!==n?t.state:Q(this,$v),{state:f}=t;let h={...f},v=!1,m;if(r._optimisticResults){const I=this.hasListeners(),M=!I&&AA(t,r),F=I&&MA(t,n,r,a);(M||F)&&(h={...h,...y5(f.data,t.options)}),r._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:b,errorUpdatedAt:w,status:O}=h;m=h.data;let _=!1;if(r.placeholderData!==void 0&&m===void 0&&O==="pending"){let I;o!=null&&o.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData)?(I=o.data,_=!0):I=typeof r.placeholderData=="function"?r.placeholderData((k=Q(this,vf))==null?void 0:k.state.data,Q(this,vf)):r.placeholderData,I!==void 0&&(O="success",m=yE(o==null?void 0:o.data,I,r),v=!0)}if(r.select&&m!==void 0&&!_)if(o&&m===(i==null?void 0:i.data)&&r.select===Q(this,kv))m=Q(this,hf);else try{Je(this,kv,r.select),m=r.select(m),m=yE(o==null?void 0:o.data,m,r),Je(this,hf,m),Je(this,hl,null)}catch(I){Je(this,hl,I)}Q(this,hl)&&(b=Q(this,hl),m=Q(this,hf),w=Date.now(),O="error");const y=h.fetchStatus==="fetching",x=O==="pending",S=O==="error",P=x&&y,C=m!==void 0,R={status:O,fetchStatus:h.fetchStatus,isPending:x,isSuccess:O==="success",isError:S,isInitialLoading:P,isLoading:P,data:m,dataUpdatedAt:h.dataUpdatedAt,error:b,errorUpdatedAt:w,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>s.dataUpdateCount||h.errorUpdateCount>s.errorUpdateCount,isFetching:y,isRefetching:y&&!x,isLoadingError:S&&!C,isPaused:h.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:S&&C,isStale:JP(t,r),refetch:this.refetch,promise:Q(this,pl)};if(this.options.experimental_prefetchInRender){const I=L=>{R.status==="error"?L.reject(R.error):R.data!==void 0&&L.resolve(R.data)},M=()=>{const L=Je(this,pl,R.promise=bE());I(L)},F=Q(this,pl);switch(F.status){case"pending":t.queryHash===n.queryHash&&I(F);break;case"fulfilled":(R.status==="error"||R.data!==F.value)&&M();break;case"rejected":(R.status!=="error"||R.error!==F.reason)&&M();break}}return R}updateResult(){const t=Q(this,Zn),r=this.createResult(Q(this,zt),this.options);if(Je(this,Xu,Q(this,zt).state),Je(this,pf,this.options),Q(this,Xu).data!==void 0&&Je(this,vf,Q(this,zt)),f0(r,t))return;Je(this,Zn,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!Q(this,mf).size)return!0;const i=new Set(o??Q(this,mf));return this.options.throwOnError&&i.add("error"),Object.keys(Q(this,Zn)).some(l=>{const c=l;return Q(this,Zn)[c]!==t[c]&&i.has(c)})};jt(this,tr,_5).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&jt(this,tr,SE).call(this)}},ga=new WeakMap,zt=new WeakMap,$v=new WeakMap,Zn=new WeakMap,Xu=new WeakMap,pf=new WeakMap,pl=new WeakMap,hl=new WeakMap,kv=new WeakMap,hf=new WeakMap,vf=new WeakMap,Yu=new WeakMap,Ju=new WeakMap,vl=new WeakMap,mf=new WeakMap,tr=new WeakSet,ih=function(t){jt(this,tr,OE).call(this);let r=Q(this,zt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ra)),r},_E=function(){jt(this,tr,EE).call(this);const t=zd(this.options.staleTime,Q(this,zt));if(dc||Q(this,Zn).isStale||!mE(t))return;const n=c5(Q(this,Zn).dataUpdatedAt,t)+1;Je(this,Yu,setTimeout(()=>{Q(this,Zn).isStale||this.updateResult()},n))},xE=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Q(this,zt)):this.options.refetchInterval)??!1},wE=function(t){jt(this,tr,CE).call(this),Je(this,vl,t),!(dc||Xo(this.options.enabled,Q(this,zt))===!1||!mE(Q(this,vl))||Q(this,vl)===0)&&Je(this,Ju,setInterval(()=>{(this.options.refetchIntervalInBackground||YP.isFocused())&&jt(this,tr,ih).call(this)},Q(this,vl)))},SE=function(){jt(this,tr,_E).call(this),jt(this,tr,wE).call(this,jt(this,tr,xE).call(this))},EE=function(){Q(this,Yu)&&(clearTimeout(Q(this,Yu)),Je(this,Yu,void 0))},CE=function(){Q(this,Ju)&&(clearInterval(Q(this,Ju)),Je(this,Ju,void 0))},OE=function(){const t=Q(this,ga).getQueryCache().build(Q(this,ga),this.options);if(t===Q(this,zt))return;const r=Q(this,zt);Je(this,zt,t),Je(this,$v,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},_5=function(t){Gr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(Q(this,Zn))}),Q(this,ga).getQueryCache().notify({query:Q(this,zt),type:"observerResultsUpdated"})})},EN);function xee(e,t){return Xo(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function AA(e,t){return xee(e,t)||e.state.data!==void 0&&PE(e,t,t.refetchOnMount)}function PE(e,t,r){if(Xo(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&JP(e,t)}return!1}function MA(e,t,r,n){return(e!==t||Xo(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&JP(e,r)}function JP(e,t){return Xo(t.enabled,e)!==!1&&e.isStaleByTime(zd(t.staleTime,e))}function wee(e,t){return!f0(e.getCurrentResult(),t)}var ml,gl,ya,is,vs,dy,RE,CN,See=(CN=class extends Uf{constructor(r,n){super();ht(this,vs);ht(this,ml);ht(this,gl);ht(this,ya);ht(this,is);Je(this,ml,r),this.setOptions(n),this.bindMethods(),jt(this,vs,dy).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=Q(this,ml).defaultMutationOptions(r),f0(this.options,n)||Q(this,ml).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Q(this,ya),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Dl(n.mutationKey)!==Dl(this.options.mutationKey)?this.reset():((a=Q(this,ya))==null?void 0:a.state.status)==="pending"&&Q(this,ya).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=Q(this,ya))==null||r.removeObserver(this)}onMutationUpdate(r){jt(this,vs,dy).call(this),jt(this,vs,RE).call(this,r)}getCurrentResult(){return Q(this,gl)}reset(){var r;(r=Q(this,ya))==null||r.removeObserver(this),Je(this,ya,void 0),jt(this,vs,dy).call(this),jt(this,vs,RE).call(this)}mutate(r,n){var a;return Je(this,is,n),(a=Q(this,ya))==null||a.removeObserver(this),Je(this,ya,Q(this,ml).getMutationCache().build(Q(this,ml),this.options)),Q(this,ya).addObserver(this),Q(this,ya).execute(r)}},ml=new WeakMap,gl=new WeakMap,ya=new WeakMap,is=new WeakMap,vs=new WeakSet,dy=function(){var n;const r=((n=Q(this,ya))==null?void 0:n.state)??b5();Je(this,gl,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},RE=function(r){Gr.batch(()=>{var n,a,o,i,l,c,s,f;if(Q(this,is)&&this.hasListeners()){const h=Q(this,gl).variables,v=Q(this,gl).context;(r==null?void 0:r.type)==="success"?((a=(n=Q(this,is)).onSuccess)==null||a.call(n,r.data,h,v),(i=(o=Q(this,is)).onSettled)==null||i.call(o,r.data,null,h,v)):(r==null?void 0:r.type)==="error"&&((c=(l=Q(this,is)).onError)==null||c.call(l,r.error,h,v),(f=(s=Q(this,is)).onSettled)==null||f.call(s,void 0,r.error,h,v))}this.listeners.forEach(h=>{h(Q(this,gl))})})},CN),x5=d.createContext(void 0),Ao=e=>{const t=d.useContext(x5);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Eee=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(x5.Provider,{value:e,children:t})),w5=d.createContext(!1),Cee=()=>d.useContext(w5);w5.Provider;function Oee(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Pee=d.createContext(Oee()),Ree=()=>d.useContext(Pee),$ee=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},kee=e=>{d.useEffect(()=>{e.clearReset()},[e])},jee=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&e.data===void 0||p5(r,[e.error,n])),Iee=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...r)=>Math.max(t(...r),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Tee=(e,t)=>e.isLoading&&e.isFetching&&!t,Aee=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,FA=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function Mee(e,t,r){var h,v,m,b,w;const n=Ao(),a=Cee(),o=Ree(),i=n.defaultQueryOptions(e);(v=(h=n.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||v.call(h,i),i._optimisticResults=a?"isRestoring":"optimistic",Iee(i),$ee(i,o),kee(o);const l=!n.getQueryCache().get(i.queryHash),[c]=d.useState(()=>new t(n,i)),s=c.getOptimisticResult(i),f=!a&&e.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(O=>{const _=f?c.subscribe(Gr.batchCalls(O)):ra;return c.updateResult(),_},[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d.useEffect(()=>{c.setOptions(i)},[i,c]),Aee(i,s))throw FA(i,c,o);if(jee({result:s,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw s.error;if((b=(m=n.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||b.call(m,i,s),i.experimental_prefetchInRender&&!dc&&Tee(s,a)){const O=l?FA(i,c,o):(w=n.getQueryCache().get(i.queryHash))==null?void 0:w.promise;O==null||O.catch(ra).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?s:c.trackResult(s)}function Wl(e,t){return Mee(e,_ee)}function Cc(e,t){const r=Ao(),[n]=d.useState(()=>new See(r,e));d.useEffect(()=>{n.setOptions(e)},[n,e]);const a=d.useSyncExternalStore(d.useCallback(i=>n.subscribe(Gr.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=d.useCallback((i,l)=>{n.mutate(i,l).catch(ra)},[n]);if(a.error&&p5(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** + * @remix-run/router v1.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function fc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Lee(){return Math.random().toString(36).substr(2,8)}function DA(e,t){return{usr:e.state,key:e.key,idx:t}}function iv(e,t,r,n){return r===void 0&&(r=null),Cr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Mi(t):t,{state:r,key:t&&t.key||n||Lee()})}function pc(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Mi(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Dee(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,l=Hr.Pop,c=null,s=f();s==null&&(s=0,i.replaceState(Cr({},i.state,{idx:s}),""));function f(){return(i.state||{idx:null}).idx}function h(){l=Hr.Pop;let O=f(),_=O==null?null:O-s;s=O,c&&c({action:l,location:w.location,delta:_})}function v(O,_){l=Hr.Push;let y=iv(w.location,O,_);r&&r(y,O),s=f()+1;let x=DA(y,s),S=w.createHref(y);try{i.pushState(x,"",S)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;a.location.assign(S)}o&&c&&c({action:l,location:w.location,delta:1})}function m(O,_){l=Hr.Replace;let y=iv(w.location,O,_);r&&r(y,O),s=f();let x=DA(y,s),S=w.createHref(y);i.replaceState(x,"",S),o&&c&&c({action:l,location:w.location,delta:0})}function b(O){let _=a.location.origin!=="null"?a.location.origin:a.location.href,y=typeof O=="string"?O:pc(O);return y=y.replace(/ $/,"%20"),Et(_,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,_)}let w={get action(){return l},get location(){return e(a,i)},listen(O){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(LA,h),c=O,()=>{a.removeEventListener(LA,h),c=null}},createHref(O){return t(a,O)},createURL:b,encodeLocation(O){let _=b(O);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:v,replace:m,go(O){return i.go(O)}};return w}var ur;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ur||(ur={}));const Nee=new Set(["lazy","caseSensitive","path","id","index","children"]);function Bee(e){return e.index===!0}function h0(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],l=typeof a.id=="string"?a.id:i.join("-");if(Et(a.index!==!0||!a.children,"Cannot specify children on an index route"),Et(!n[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Bee(a)){let c=Cr({},a,t(a),{id:l});return n[l]=c,c}else{let c=Cr({},a,t(a),{id:l,children:void 0});return n[l]=c,a.children&&(c.children=h0(a.children,t,i,n)),c}})}function $u(e,t,r){return r===void 0&&(r="/"),fy(e,t,r,!1)}function fy(e,t,r,n){let a=typeof t=="string"?Mi(t):t,o=Nl(a.pathname||"/",r);if(o==null)return null;let i=S5(e);Uee(i);let l=null;for(let c=0;l==null&&c{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};c.relativePath.startsWith("/")&&(Et(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let s=ps([n,c.relativePath]),f=r.concat(c);o.children&&o.children.length>0&&(Et(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),S5(o.children,t,f,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:Qee(s,o.index),routesMeta:f})};return e.forEach((o,i)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))a(o,i);else for(let c of E5(o.path))a(o,i,c)}),t}function E5(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=E5(n.join("/")),l=[];return l.push(...i.map(c=>c===""?o:[o,c].join("/"))),a&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Uee(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Xee(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Vee=/^:[\w-]+$/,Wee=3,Hee=2,qee=1,Gee=10,Kee=-2,NA=e=>e==="*";function Qee(e,t){let r=e.split("/"),n=r.length;return r.some(NA)&&(n+=Kee),t&&(n+=Hee),r.filter(a=>!NA(a)).reduce((a,o)=>a+(Vee.test(o)?Wee:o===""?qee:Gee),n)}function Xee(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function Yee(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let l=0;l{let{paramName:v,isOptional:m}=f;if(v==="*"){let w=l[h]||"";i=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const b=l[h];return m&&!b?s[v]=void 0:s[v]=(b||"").replace(/%2F/g,"/"),s},{}),pathname:o,pathnameBase:i,pattern:e}}function Jee(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),fc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function C5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Nl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Zee(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Mi(e):e;return{pathname:r?r.startsWith("/")?r:ete(r,t):t,search:rte(n),hash:nte(a)}}function ete(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function bw(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function O5(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Kb(e,t){let r=O5(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Qb(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=Mi(e):(a=Cr({},e),Et(!a.pathname||!a.pathname.includes("?"),bw("?","pathname","search",a)),Et(!a.pathname||!a.pathname.includes("#"),bw("#","pathname","hash",a)),Et(!a.search||!a.search.includes("#"),bw("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,l;if(i==null)l=r;else{let h=t.length-1;if(!n&&i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),h-=1;a.pathname=v.join("/")}l=h>=0?t[h]:"/"}let c=Zee(a,l),s=i&&i!=="/"&&i.endsWith("/"),f=(o||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(s||f)&&(c.pathname+="/"),c}const ps=e=>e.join("/").replace(/\/\/+/g,"/"),tte=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rte=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nte=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class v0{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Xb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const P5=["post","put","patch","delete"],ate=new Set(P5),ote=["get",...P5],ite=new Set(ote),ste=new Set([301,302,303,307,308]),lte=new Set([307,308]),_w={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ute={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},dd={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ZP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cte=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),R5="remix-router-transitions";function dte(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Et(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let X=e.detectErrorBoundary;a=ae=>({hasErrorBoundary:X(ae)})}else a=cte;let o={},i=h0(e.routes,a,void 0,o),l,c=e.basename||"/",s=e.dataStrategy||vte,f=e.patchRoutesOnNavigation,h=Cr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),v=null,m=new Set,b=null,w=null,O=null,_=e.hydrationData!=null,y=$u(i,e.history.location,c),x=null;if(y==null&&!f){let X=ba(404,{pathname:e.history.location.pathname}),{matches:ae,route:fe}=XA(i);y=ae,x={[fe.id]:X}}y&&!e.hydrationData&&Is(y,i,e.history.location.pathname).active&&(y=null);let S;if(y)if(y.some(X=>X.route.lazy))S=!1;else if(!y.some(X=>X.route.loader))S=!0;else if(h.v7_partialHydration){let X=e.hydrationData?e.hydrationData.loaderData:null,ae=e.hydrationData?e.hydrationData.errors:null;if(ae){let fe=y.findIndex(Se=>ae[Se.route.id]!==void 0);S=y.slice(0,fe+1).every(Se=>!kE(Se.route,X,ae))}else S=y.every(fe=>!kE(fe.route,X,ae))}else S=e.hydrationData!=null;else if(S=!1,y=[],h.v7_partialHydration){let X=Is(null,i,e.history.location.pathname);X.active&&X.matches&&(y=X.matches)}let P,C={historyAction:e.history.action,location:e.history.location,matches:y,initialized:S,navigation:_w,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},$=Hr.Pop,R=!1,k,I=!1,M=new Map,F=null,L=!1,B=!1,V=[],H=new Set,W=new Map,z=0,q=-1,ee=new Map,oe=new Set,J=new Map,we=new Map,le=new Set,ge=new Map,pe=new Map,me;function xe(){if(v=e.history.listen(X=>{let{action:ae,location:fe,delta:Se}=X;if(me){me(),me=void 0;return}fc(pe.size===0||Se!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let We=dr({currentLocation:C.location,nextLocation:fe,historyAction:ae});if(We&&Se!=null){let dt=new Promise(mt=>{me=mt});e.history.go(Se*-1),Ot(We,{state:"blocked",location:fe,proceed(){Ot(We,{state:"proceeding",proceed:void 0,reset:void 0,location:fe}),dt.then(()=>e.history.go(Se))},reset(){let mt=new Map(C.blockers);mt.set(We,dd),ve({blockers:mt})}});return}return Le(ae,fe)}),r){$te(t,M);let X=()=>kte(t,M);t.addEventListener("pagehide",X),F=()=>t.removeEventListener("pagehide",X)}return C.initialized||Le(Hr.Pop,C.location,{initialHydration:!0}),P}function ne(){v&&v(),F&&F(),m.clear(),k&&k.abort(),C.fetchers.forEach((X,ae)=>_t(ae)),C.blockers.forEach((X,ae)=>wt(ae))}function Te(X){return m.add(X),()=>m.delete(X)}function ve(X,ae){ae===void 0&&(ae={}),C=Cr({},C,X);let fe=[],Se=[];h.v7_fetcherPersist&&C.fetchers.forEach((We,dt)=>{We.state==="idle"&&(le.has(dt)?Se.push(dt):fe.push(dt))}),[...m].forEach(We=>We(C,{deletedFetchers:Se,viewTransitionOpts:ae.viewTransitionOpts,flushSync:ae.flushSync===!0})),h.v7_fetcherPersist&&(fe.forEach(We=>C.fetchers.delete(We)),Se.forEach(We=>_t(We)))}function $e(X,ae,fe){var Se,We;let{flushSync:dt}=fe===void 0?{}:fe,mt=C.actionData!=null&&C.navigation.formMethod!=null&&Ko(C.navigation.formMethod)&&C.navigation.state==="loading"&&((Se=X.state)==null?void 0:Se._isRedirect)!==!0,Ye;ae.actionData?Object.keys(ae.actionData).length>0?Ye=ae.actionData:Ye=null:mt?Ye=C.actionData:Ye=null;let nt=ae.loaderData?KA(C.loaderData,ae.loaderData,ae.matches||[],ae.errors):C.loaderData,Qe=C.blockers;Qe.size>0&&(Qe=new Map(Qe),Qe.forEach((Tt,zr)=>Qe.set(zr,dd)));let ut=R===!0||C.navigation.formMethod!=null&&Ko(C.navigation.formMethod)&&((We=X.state)==null?void 0:We._isRedirect)!==!0;l&&(i=l,l=void 0),L||$===Hr.Pop||($===Hr.Push?e.history.push(X,X.state):$===Hr.Replace&&e.history.replace(X,X.state));let Pt;if($===Hr.Pop){let Tt=M.get(C.location.pathname);Tt&&Tt.has(X.pathname)?Pt={currentLocation:C.location,nextLocation:X}:M.has(X.pathname)&&(Pt={currentLocation:X,nextLocation:C.location})}else if(I){let Tt=M.get(C.location.pathname);Tt?Tt.add(X.pathname):(Tt=new Set([X.pathname]),M.set(C.location.pathname,Tt)),Pt={currentLocation:C.location,nextLocation:X}}ve(Cr({},ae,{actionData:Ye,loaderData:nt,historyAction:$,location:X,initialized:!0,navigation:_w,revalidation:"idle",restoreScrollPosition:nu(X,ae.matches||C.matches),preventScrollReset:ut,blockers:Qe}),{viewTransitionOpts:Pt,flushSync:dt===!0}),$=Hr.Pop,R=!1,I=!1,L=!1,B=!1,V=[]}async function ye(X,ae){if(typeof X=="number"){e.history.go(X);return}let fe=$E(C.location,C.matches,c,h.v7_prependBasename,X,h.v7_relativeSplatPath,ae==null?void 0:ae.fromRouteId,ae==null?void 0:ae.relative),{path:Se,submission:We,error:dt}=BA(h.v7_normalizeFormMethod,!1,fe,ae),mt=C.location,Ye=iv(C.location,Se,ae&&ae.state);Ye=Cr({},Ye,e.history.encodeLocation(Ye));let nt=ae&&ae.replace!=null?ae.replace:void 0,Qe=Hr.Push;nt===!0?Qe=Hr.Replace:nt===!1||We!=null&&Ko(We.formMethod)&&We.formAction===C.location.pathname+C.location.search&&(Qe=Hr.Replace);let ut=ae&&"preventScrollReset"in ae?ae.preventScrollReset===!0:void 0,Pt=(ae&&ae.flushSync)===!0,Tt=dr({currentLocation:mt,nextLocation:Ye,historyAction:Qe});if(Tt){Ot(Tt,{state:"blocked",location:Ye,proceed(){Ot(Tt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ye}),ye(X,ae)},reset(){let zr=new Map(C.blockers);zr.set(Tt,dd),ve({blockers:zr})}});return}return await Le(Qe,Ye,{submission:We,pendingError:dt,preventScrollReset:ut,replace:ae&&ae.replace,enableViewTransition:ae&&ae.viewTransition,flushSync:Pt})}function je(){if(ft(),ve({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){Le(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}Le($||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:I===!0})}}async function Le(X,ae,fe){k&&k.abort(),k=null,$=X,L=(fe&&fe.startUninterruptedRevalidation)===!0,li(C.location,C.matches),R=(fe&&fe.preventScrollReset)===!0,I=(fe&&fe.enableViewTransition)===!0;let Se=l||i,We=fe&&fe.overrideNavigation,dt=$u(Se,ae,c),mt=(fe&&fe.flushSync)===!0,Ye=Is(dt,Se,ae.pathname);if(Ye.active&&Ye.matches&&(dt=Ye.matches),!dt){let{error:Zt,notFoundMatches:Dt,route:lt}=Pr(ae.pathname);$e(ae,{matches:Dt,loaderData:{},errors:{[lt.id]:Zt}},{flushSync:mt});return}if(C.initialized&&!B&&xte(C.location,ae)&&!(fe&&fe.submission&&Ko(fe.submission.formMethod))){$e(ae,{matches:dt},{flushSync:mt});return}k=new AbortController;let nt=ed(e.history,ae,k.signal,fe&&fe.submission),Qe;if(fe&&fe.pendingError)Qe=[ku(dt).route.id,{type:ur.error,error:fe.pendingError}];else if(fe&&fe.submission&&Ko(fe.submission.formMethod)){let Zt=await st(nt,ae,fe.submission,dt,Ye.active,{replace:fe.replace,flushSync:mt});if(Zt.shortCircuited)return;if(Zt.pendingActionResult){let[Dt,lt]=Zt.pendingActionResult;if(Da(lt)&&Xb(lt.error)&<.error.status===404){k=null,$e(ae,{matches:Zt.matches,loaderData:{},errors:{[Dt]:lt.error}});return}}dt=Zt.matches||dt,Qe=Zt.pendingActionResult,We=xw(ae,fe.submission),mt=!1,Ye.active=!1,nt=ed(e.history,nt.url,nt.signal)}let{shortCircuited:ut,matches:Pt,loaderData:Tt,errors:zr}=await Xe(nt,ae,dt,Ye.active,We,fe&&fe.submission,fe&&fe.fetcherSubmission,fe&&fe.replace,fe&&fe.initialHydration===!0,mt,Qe);ut||(k=null,$e(ae,Cr({matches:Pt||dt},QA(Qe),{loaderData:Tt,errors:zr})))}async function st(X,ae,fe,Se,We,dt){dt===void 0&&(dt={}),ft();let mt=Pte(ae,fe);if(ve({navigation:mt},{flushSync:dt.flushSync===!0}),We){let Qe=await zi(Se,ae.pathname,X.signal);if(Qe.type==="aborted")return{shortCircuited:!0};if(Qe.type==="error"){let ut=ku(Qe.partialMatches).route.id;return{matches:Qe.partialMatches,pendingActionResult:[ut,{type:ur.error,error:Qe.error}]}}else if(Qe.matches)Se=Qe.matches;else{let{notFoundMatches:ut,error:Pt,route:Tt}=Pr(ae.pathname);return{matches:ut,pendingActionResult:[Tt.id,{type:ur.error,error:Pt}]}}}let Ye,nt=sh(Se,ae);if(!nt.route.action&&!nt.route.lazy)Ye={type:ur.error,error:ba(405,{method:X.method,pathname:ae.pathname,routeId:nt.route.id})};else if(Ye=(await Ee("action",C,X,[nt],Se,null))[nt.route.id],X.signal.aborted)return{shortCircuited:!0};if(Bu(Ye)){let Qe;return dt&&dt.replace!=null?Qe=dt.replace:Qe=HA(Ye.response.headers.get("Location"),new URL(X.url),c)===C.location.pathname+C.location.search,await ce(X,Ye,!0,{submission:fe,replace:Qe}),{shortCircuited:!0}}if(_l(Ye))throw ba(400,{type:"defer-action"});if(Da(Ye)){let Qe=ku(Se,nt.route.id);return(dt&&dt.replace)!==!0&&($=Hr.Push),{matches:Se,pendingActionResult:[Qe.route.id,Ye]}}return{matches:Se,pendingActionResult:[nt.route.id,Ye]}}async function Xe(X,ae,fe,Se,We,dt,mt,Ye,nt,Qe,ut){let Pt=We||xw(ae,dt),Tt=dt||mt||JA(Pt),zr=!L&&(!h.v7_partialHydration||!nt);if(Se){if(zr){let yr=U(ut);ve(Cr({navigation:Pt},yr!==void 0?{actionData:yr}:{}),{flushSync:Qe})}let Nt=await zi(fe,ae.pathname,X.signal);if(Nt.type==="aborted")return{shortCircuited:!0};if(Nt.type==="error"){let yr=ku(Nt.partialMatches).route.id;return{matches:Nt.partialMatches,loaderData:{},errors:{[yr]:Nt.error}}}else if(Nt.matches)fe=Nt.matches;else{let{error:yr,notFoundMatches:As,route:lu}=Pr(ae.pathname);return{matches:As,loaderData:{},errors:{[lu.id]:yr}}}}let Zt=l||i,[Dt,lt]=UA(e.history,C,fe,Tt,ae,h.v7_partialHydration&&nt===!0,h.v7_skipActionErrorRevalidation,B,V,H,le,J,oe,Zt,c,ut);if(an(Nt=>!(fe&&fe.some(yr=>yr.route.id===Nt))||Dt&&Dt.some(yr=>yr.route.id===Nt)),q=++z,Dt.length===0&<.length===0){let Nt=pt();return $e(ae,Cr({matches:fe,loaderData:{},errors:ut&&Da(ut[1])?{[ut[0]]:ut[1].error}:null},QA(ut),Nt?{fetchers:new Map(C.fetchers)}:{}),{flushSync:Qe}),{shortCircuited:!0}}if(zr){let Nt={};if(!Se){Nt.navigation=Pt;let yr=U(ut);yr!==void 0&&(Nt.actionData=yr)}lt.length>0&&(Nt.fetchers=K(lt)),ve(Nt,{flushSync:Qe})}lt.forEach(Nt=>{Ct(Nt.key),Nt.controller&&W.set(Nt.key,Nt.controller)});let Tr=()=>lt.forEach(Nt=>Ct(Nt.key));k&&k.signal.addEventListener("abort",Tr);let{loaderResults:ou,fetcherResults:da}=await Ae(C,fe,Dt,lt,X);if(X.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",Tr),lt.forEach(Nt=>W.delete(Nt.key));let eo=Cg(ou);if(eo)return await ce(X,eo.result,!0,{replace:Ye}),{shortCircuited:!0};if(eo=Cg(da),eo)return oe.add(eo.key),await ce(X,eo.result,!0,{replace:Ye}),{shortCircuited:!0};let{loaderData:Ts,errors:iu}=GA(C,fe,ou,ut,lt,da,ge);ge.forEach((Nt,yr)=>{Nt.subscribe(As=>{(As||Nt.done)&&ge.delete(yr)})}),h.v7_partialHydration&&nt&&C.errors&&(iu=Cr({},C.errors,iu));let Ui=pt(),Fc=Me(q),su=Ui||Fc||lt.length>0;return Cr({matches:fe,loaderData:Ts,errors:iu},su?{fetchers:new Map(C.fetchers)}:{})}function U(X){if(X&&!Da(X[1]))return{[X[0]]:X[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function K(X){return X.forEach(ae=>{let fe=C.fetchers.get(ae.key),Se=Np(void 0,fe?fe.data:void 0);C.fetchers.set(ae.key,Se)}),new Map(C.fetchers)}function Z(X,ae,fe,Se){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ct(X);let We=(Se&&Se.flushSync)===!0,dt=l||i,mt=$E(C.location,C.matches,c,h.v7_prependBasename,fe,h.v7_relativeSplatPath,ae,Se==null?void 0:Se.relative),Ye=$u(dt,mt,c),nt=Is(Ye,dt,mt);if(nt.active&&nt.matches&&(Ye=nt.matches),!Ye){Ze(X,ae,ba(404,{pathname:mt}),{flushSync:We});return}let{path:Qe,submission:ut,error:Pt}=BA(h.v7_normalizeFormMethod,!0,mt,Se);if(Pt){Ze(X,ae,Pt,{flushSync:We});return}let Tt=sh(Ye,Qe),zr=(Se&&Se.preventScrollReset)===!0;if(ut&&Ko(ut.formMethod)){ie(X,ae,Qe,Tt,Ye,nt.active,We,zr,ut);return}J.set(X,{routeId:ae,path:Qe}),ue(X,ae,Qe,Tt,Ye,nt.active,We,zr,ut)}async function ie(X,ae,fe,Se,We,dt,mt,Ye,nt){ft(),J.delete(X);function Qe(Ar){if(!Ar.route.action&&!Ar.route.lazy){let Ms=ba(405,{method:nt.formMethod,pathname:fe,routeId:ae});return Ze(X,ae,Ms,{flushSync:mt}),!0}return!1}if(!dt&&Qe(Se))return;let ut=C.fetchers.get(X);De(X,Rte(nt,ut),{flushSync:mt});let Pt=new AbortController,Tt=ed(e.history,fe,Pt.signal,nt);if(dt){let Ar=await zi(We,fe,Tt.signal);if(Ar.type==="aborted")return;if(Ar.type==="error"){Ze(X,ae,Ar.error,{flushSync:mt});return}else if(Ar.matches){if(We=Ar.matches,Se=sh(We,fe),Qe(Se))return}else{Ze(X,ae,ba(404,{pathname:fe}),{flushSync:mt});return}}W.set(X,Pt);let zr=z,Dt=(await Ee("action",C,Tt,[Se],We,X))[Se.route.id];if(Tt.signal.aborted){W.get(X)===Pt&&W.delete(X);return}if(h.v7_fetcherPersist&&le.has(X)){if(Bu(Dt)||Da(Dt)){De(X,Zs(void 0));return}}else{if(Bu(Dt))if(W.delete(X),q>zr){De(X,Zs(void 0));return}else return oe.add(X),De(X,Np(nt)),ce(Tt,Dt,!1,{fetcherSubmission:nt,preventScrollReset:Ye});if(Da(Dt)){Ze(X,ae,Dt.error);return}}if(_l(Dt))throw ba(400,{type:"defer-action"});let lt=C.navigation.location||C.location,Tr=ed(e.history,lt,Pt.signal),ou=l||i,da=C.navigation.state!=="idle"?$u(ou,C.navigation.location,c):C.matches;Et(da,"Didn't find any matches after fetcher action");let eo=++z;ee.set(X,eo);let Ts=Np(nt,Dt.data);C.fetchers.set(X,Ts);let[iu,Ui]=UA(e.history,C,da,nt,lt,!1,h.v7_skipActionErrorRevalidation,B,V,H,le,J,oe,ou,c,[Se.route.id,Dt]);Ui.filter(Ar=>Ar.key!==X).forEach(Ar=>{let Ms=Ar.key,vp=C.fetchers.get(Ms),ym=Np(void 0,vp?vp.data:void 0);C.fetchers.set(Ms,ym),Ct(Ms),Ar.controller&&W.set(Ms,Ar.controller)}),ve({fetchers:new Map(C.fetchers)});let Fc=()=>Ui.forEach(Ar=>Ct(Ar.key));Pt.signal.addEventListener("abort",Fc);let{loaderResults:su,fetcherResults:Nt}=await Ae(C,da,iu,Ui,Tr);if(Pt.signal.aborted)return;Pt.signal.removeEventListener("abort",Fc),ee.delete(X),W.delete(X),Ui.forEach(Ar=>W.delete(Ar.key));let yr=Cg(su);if(yr)return ce(Tr,yr.result,!1,{preventScrollReset:Ye});if(yr=Cg(Nt),yr)return oe.add(yr.key),ce(Tr,yr.result,!1,{preventScrollReset:Ye});let{loaderData:As,errors:lu}=GA(C,da,su,void 0,Ui,Nt,ge);if(C.fetchers.has(X)){let Ar=Zs(Dt.data);C.fetchers.set(X,Ar)}Me(eo),C.navigation.state==="loading"&&eo>q?(Et($,"Expected pending action"),k&&k.abort(),$e(C.navigation.location,{matches:da,loaderData:As,errors:lu,fetchers:new Map(C.fetchers)})):(ve({errors:lu,loaderData:KA(C.loaderData,As,da,lu),fetchers:new Map(C.fetchers)}),B=!1)}async function ue(X,ae,fe,Se,We,dt,mt,Ye,nt){let Qe=C.fetchers.get(X);De(X,Np(nt,Qe?Qe.data:void 0),{flushSync:mt});let ut=new AbortController,Pt=ed(e.history,fe,ut.signal);if(dt){let Dt=await zi(We,fe,Pt.signal);if(Dt.type==="aborted")return;if(Dt.type==="error"){Ze(X,ae,Dt.error,{flushSync:mt});return}else if(Dt.matches)We=Dt.matches,Se=sh(We,fe);else{Ze(X,ae,ba(404,{pathname:fe}),{flushSync:mt});return}}W.set(X,ut);let Tt=z,Zt=(await Ee("loader",C,Pt,[Se],We,X))[Se.route.id];if(_l(Zt)&&(Zt=await eR(Zt,Pt.signal,!0)||Zt),W.get(X)===ut&&W.delete(X),!Pt.signal.aborted){if(le.has(X)){De(X,Zs(void 0));return}if(Bu(Zt))if(q>Tt){De(X,Zs(void 0));return}else{oe.add(X),await ce(Pt,Zt,!1,{preventScrollReset:Ye});return}if(Da(Zt)){Ze(X,ae,Zt.error);return}Et(!_l(Zt),"Unhandled fetcher deferred data"),De(X,Zs(Zt.data))}}async function ce(X,ae,fe,Se){let{submission:We,fetcherSubmission:dt,preventScrollReset:mt,replace:Ye}=Se===void 0?{}:Se;ae.response.headers.has("X-Remix-Revalidate")&&(B=!0);let nt=ae.response.headers.get("Location");Et(nt,"Expected a Location header on the redirect Response"),nt=HA(nt,new URL(X.url),c);let Qe=iv(C.location,nt,{_isRedirect:!0});if(r){let Dt=!1;if(ae.response.headers.has("X-Remix-Reload-Document"))Dt=!0;else if(ZP.test(nt)){const lt=e.history.createURL(nt);Dt=lt.origin!==t.location.origin||Nl(lt.pathname,c)==null}if(Dt){Ye?t.location.replace(nt):t.location.assign(nt);return}}k=null;let ut=Ye===!0||ae.response.headers.has("X-Remix-Replace")?Hr.Replace:Hr.Push,{formMethod:Pt,formAction:Tt,formEncType:zr}=C.navigation;!We&&!dt&&Pt&&Tt&&zr&&(We=JA(C.navigation));let Zt=We||dt;if(lte.has(ae.response.status)&&Zt&&Ko(Zt.formMethod))await Le(ut,Qe,{submission:Cr({},Zt,{formAction:nt}),preventScrollReset:mt||R,enableViewTransition:fe?I:void 0});else{let Dt=xw(Qe,We);await Le(ut,Qe,{overrideNavigation:Dt,fetcherSubmission:dt,preventScrollReset:mt||R,enableViewTransition:fe?I:void 0})}}async function Ee(X,ae,fe,Se,We,dt){let mt,Ye={};try{mt=await mte(s,X,ae,fe,Se,We,dt,o,a)}catch(nt){return Se.forEach(Qe=>{Ye[Qe.route.id]={type:ur.error,error:nt}}),Ye}for(let[nt,Qe]of Object.entries(mt))if(wte(Qe)){let ut=Qe.result;Ye[nt]={type:ur.redirect,response:bte(ut,fe,nt,We,c,h.v7_relativeSplatPath)}}else Ye[nt]=await yte(Qe);return Ye}async function Ae(X,ae,fe,Se,We){let dt=X.matches,mt=Ee("loader",X,We,fe,ae,null),Ye=Promise.all(Se.map(async ut=>{if(ut.matches&&ut.match&&ut.controller){let Tt=(await Ee("loader",X,ed(e.history,ut.path,ut.controller.signal),[ut.match],ut.matches,ut.key))[ut.match.route.id];return{[ut.key]:Tt}}else return Promise.resolve({[ut.key]:{type:ur.error,error:ba(404,{pathname:ut.path})}})})),nt=await mt,Qe=(await Ye).reduce((ut,Pt)=>Object.assign(ut,Pt),{});return await Promise.all([Cte(ae,nt,We.signal,dt,X.loaderData),Ote(ae,Qe,Se)]),{loaderResults:nt,fetcherResults:Qe}}function ft(){B=!0,V.push(...an()),J.forEach((X,ae)=>{W.has(ae)&&H.add(ae),Ct(ae)})}function De(X,ae,fe){fe===void 0&&(fe={}),C.fetchers.set(X,ae),ve({fetchers:new Map(C.fetchers)},{flushSync:(fe&&fe.flushSync)===!0})}function Ze(X,ae,fe,Se){Se===void 0&&(Se={});let We=ku(C.matches,ae);_t(X),ve({errors:{[We.route.id]:fe},fetchers:new Map(C.fetchers)},{flushSync:(Se&&Se.flushSync)===!0})}function Ve(X){return h.v7_fetcherPersist&&(we.set(X,(we.get(X)||0)+1),le.has(X)&&le.delete(X)),C.fetchers.get(X)||ute}function _t(X){let ae=C.fetchers.get(X);W.has(X)&&!(ae&&ae.state==="loading"&&ee.has(X))&&Ct(X),J.delete(X),ee.delete(X),oe.delete(X),le.delete(X),H.delete(X),C.fetchers.delete(X)}function Wt(X){if(h.v7_fetcherPersist){let ae=(we.get(X)||0)-1;ae<=0?(we.delete(X),le.add(X)):we.set(X,ae)}else _t(X);ve({fetchers:new Map(C.fetchers)})}function Ct(X){let ae=W.get(X);ae&&(ae.abort(),W.delete(X))}function qe(X){for(let ae of X){let fe=Ve(ae),Se=Zs(fe.data);C.fetchers.set(ae,Se)}}function pt(){let X=[],ae=!1;for(let fe of oe){let Se=C.fetchers.get(fe);Et(Se,"Expected fetcher: "+fe),Se.state==="loading"&&(oe.delete(fe),X.push(fe),ae=!0)}return qe(X),ae}function Me(X){let ae=[];for(let[fe,Se]of ee)if(Se0}function Ge(X,ae){let fe=C.blockers.get(X)||dd;return pe.get(X)!==ae&&pe.set(X,ae),fe}function wt(X){C.blockers.delete(X),pe.delete(X)}function Ot(X,ae){let fe=C.blockers.get(X)||dd;Et(fe.state==="unblocked"&&ae.state==="blocked"||fe.state==="blocked"&&ae.state==="blocked"||fe.state==="blocked"&&ae.state==="proceeding"||fe.state==="blocked"&&ae.state==="unblocked"||fe.state==="proceeding"&&ae.state==="unblocked","Invalid blocker state transition: "+fe.state+" -> "+ae.state);let Se=new Map(C.blockers);Se.set(X,ae),ve({blockers:Se})}function dr(X){let{currentLocation:ae,nextLocation:fe,historyAction:Se}=X;if(pe.size===0)return;pe.size>1&&fc(!1,"A router only supports one blocker at a time");let We=Array.from(pe.entries()),[dt,mt]=We[We.length-1],Ye=C.blockers.get(dt);if(!(Ye&&Ye.state==="proceeding")&&mt({currentLocation:ae,nextLocation:fe,historyAction:Se}))return dt}function Pr(X){let ae=ba(404,{pathname:X}),fe=l||i,{matches:Se,route:We}=XA(fe);return an(),{notFoundMatches:Se,route:We,error:ae}}function an(X){let ae=[];return ge.forEach((fe,Se)=>{(!X||X(Se))&&(fe.cancel(),ae.push(Se),ge.delete(Se))}),ae}function $a(X,ae,fe){if(b=X,O=ae,w=fe||null,!_&&C.navigation===_w){_=!0;let Se=nu(C.location,C.matches);Se!=null&&ve({restoreScrollPosition:Se})}return()=>{b=null,O=null,w=null}}function Tn(X,ae){return w&&w(X,ae.map(Se=>zee(Se,C.loaderData)))||X.key}function li(X,ae){if(b&&O){let fe=Tn(X,ae);b[fe]=O()}}function nu(X,ae){if(b){let fe=Tn(X,ae),Se=b[fe];if(typeof Se=="number")return Se}return null}function Is(X,ae,fe){if(f)if(X){if(Object.keys(X[0].params).length>0)return{active:!0,matches:fy(ae,fe,c,!0)}}else return{active:!0,matches:fy(ae,fe,c,!0)||[]};return{active:!1,matches:null}}async function zi(X,ae,fe){if(!f)return{type:"success",matches:X};let Se=X;for(;;){let We=l==null,dt=l||i,mt=o;try{await f({path:ae,matches:Se,patch:(Qe,ut)=>{fe.aborted||WA(Qe,ut,dt,mt,a)}})}catch(Qe){return{type:"error",error:Qe,partialMatches:Se}}finally{We&&!fe.aborted&&(i=[...i])}if(fe.aborted)return{type:"aborted"};let Ye=$u(dt,ae,c);if(Ye)return{type:"success",matches:Ye};let nt=fy(dt,ae,c,!0);if(!nt||Se.length===nt.length&&Se.every((Qe,ut)=>Qe.route.id===nt[ut].route.id))return{type:"success",matches:null};Se=nt}}function hp(X){o={},l=h0(X,a,void 0,o)}function au(X,ae){let fe=l==null;WA(X,ae,l||i,o,a),fe&&(i=[...i],ve({}))}return P={get basename(){return c},get future(){return h},get state(){return C},get routes(){return i},get window(){return t},initialize:xe,subscribe:Te,enableScrollRestoration:$a,navigate:ye,fetch:Z,revalidate:je,createHref:X=>e.history.createHref(X),encodeLocation:X=>e.history.encodeLocation(X),getFetcher:Ve,deleteFetcher:Wt,dispose:ne,getBlocker:Ge,deleteBlocker:wt,patchRoutes:au,_internalFetchControllers:W,_internalActiveDeferreds:ge,_internalSetRoutes:hp},P}function fte(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function $E(e,t,r,n,a,o,i,l){let c,s;if(i){c=[];for(let h of t)if(c.push(h),h.route.id===i){s=h;break}}else c=t,s=t[t.length-1];let f=Qb(a||".",Kb(c,o),Nl(e.pathname,r)||e.pathname,l==="path");if(a==null&&(f.search=e.search,f.hash=e.hash),(a==null||a===""||a===".")&&s){let h=tR(f.search);if(s.route.index&&!h)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&h){let v=new URLSearchParams(f.search),m=v.getAll("index");v.delete("index"),m.filter(w=>w).forEach(w=>v.append("index",w));let b=v.toString();f.search=b?"?"+b:""}}return n&&r!=="/"&&(f.pathname=f.pathname==="/"?r:ps([r,f.pathname])),pc(f)}function BA(e,t,r,n){if(!n||!fte(n))return{path:r};if(n.formMethod&&!Ete(n.formMethod))return{path:r,error:ba(405,{method:n.formMethod})};let a=()=>({path:r,error:ba(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),l=j5(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ko(i))return a();let v=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((m,b)=>{let[w,O]=b;return""+m+w+"="+O+` +`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:v}}}else if(n.formEncType==="application/json"){if(!Ko(i))return a();try{let v=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:l,formEncType:n.formEncType,formData:void 0,json:v,text:void 0}}}catch{return a()}}}Et(typeof FormData=="function","FormData is not available in this environment");let c,s;if(n.formData)c=jE(n.formData),s=n.formData;else if(n.body instanceof FormData)c=jE(n.body),s=n.body;else if(n.body instanceof URLSearchParams)c=n.body,s=qA(c);else if(n.body==null)c=new URLSearchParams,s=new FormData;else try{c=new URLSearchParams(n.body),s=qA(c)}catch{return a()}let f={formMethod:i,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Ko(f.formMethod))return{path:r,submission:f};let h=Mi(r);return t&&h.search&&tR(h.search)&&c.append("index",""),h.search="?"+c,{path:pc(h),submission:f}}function zA(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(a=>a.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function UA(e,t,r,n,a,o,i,l,c,s,f,h,v,m,b,w){let O=w?Da(w[1])?w[1].error:w[1].data:void 0,_=e.createURL(t.location),y=e.createURL(a),x=r;o&&t.errors?x=zA(r,Object.keys(t.errors)[0],!0):w&&Da(w[1])&&(x=zA(r,w[0]));let S=w?w[1].statusCode:void 0,P=i&&S&&S>=400,C=x.filter((R,k)=>{let{route:I}=R;if(I.lazy)return!0;if(I.loader==null)return!1;if(o)return kE(I,t.loaderData,t.errors);if(pte(t.loaderData,t.matches[k],R)||c.some(L=>L===R.route.id))return!0;let M=t.matches[k],F=R;return VA(R,Cr({currentUrl:_,currentParams:M.params,nextUrl:y,nextParams:F.params},n,{actionResult:O,actionStatus:S,defaultShouldRevalidate:P?!1:l||_.pathname+_.search===y.pathname+y.search||_.search!==y.search||$5(M,F)}))}),$=[];return h.forEach((R,k)=>{if(o||!r.some(B=>B.route.id===R.routeId)||f.has(k))return;let I=$u(m,R.path,b);if(!I){$.push({key:k,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(k),F=sh(I,R.path),L=!1;v.has(k)?L=!1:s.has(k)?(s.delete(k),L=!0):M&&M.state!=="idle"&&M.data===void 0?L=l:L=VA(F,Cr({currentUrl:_,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:r[r.length-1].params},n,{actionResult:O,actionStatus:S,defaultShouldRevalidate:P?!1:l})),L&&$.push({key:k,routeId:R.routeId,path:R.path,matches:I,match:F,controller:new AbortController})}),[C,$]}function kE(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function pte(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function $5(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function VA(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function WA(e,t,r,n,a){var o;let i;if(e){let s=n[e];Et(s,"No route found to patch children into: routeId = "+e),s.children||(s.children=[]),i=s.children}else i=r;let l=t.filter(s=>!i.some(f=>k5(s,f))),c=h0(l,a,[e||"_","patch",String(((o=i)==null?void 0:o.length)||"0")],n);i.push(...c)}function k5(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(o=>k5(r,o))}):!1}async function hte(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];Et(a,"No route found in manifest");let o={};for(let i in n){let c=a[i]!==void 0&&i!=="hasErrorBoundary";fc(!c,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!c&&!Nee.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Cr({},t(a),{lazy:void 0}))}async function vte(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,i)=>Object.assign(a,{[r[i].route.id]:o}),{})}async function mte(e,t,r,n,a,o,i,l,c,s){let f=o.map(m=>m.route.lazy?hte(m.route,c,l):void 0),h=o.map((m,b)=>{let w=f[b],O=a.some(y=>y.route.id===m.route.id);return Cr({},m,{shouldLoad:O,resolve:async y=>(y&&n.method==="GET"&&(m.route.lazy||m.route.loader)&&(O=!0),O?gte(t,n,m,w,y,s):Promise.resolve({type:ur.data,result:void 0}))})}),v=await e({matches:h,request:n,params:o[0].params,fetcherKey:i,context:s});try{await Promise.all(f)}catch{}return v}async function gte(e,t,r,n,a,o){let i,l,c=s=>{let f,h=new Promise((b,w)=>f=w);l=()=>f(),t.signal.addEventListener("abort",l);let v=b=>typeof s!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):s({request:t,params:r.params,context:o},...b!==void 0?[b]:[]),m=(async()=>{try{return{type:"data",result:await(a?a(w=>v(w)):v())}}catch(b){return{type:"error",result:b}}})();return Promise.race([m,h])};try{let s=r.route[e];if(n)if(s){let f,[h]=await Promise.all([c(s).catch(v=>{f=v}),n]);if(f!==void 0)throw f;i=h}else if(await n,s=r.route[e],s)i=await c(s);else if(e==="action"){let f=new URL(t.url),h=f.pathname+f.search;throw ba(405,{method:t.method,pathname:h,routeId:r.route.id})}else return{type:ur.data,result:void 0};else if(s)i=await c(s);else{let f=new URL(t.url),h=f.pathname+f.search;throw ba(404,{pathname:h})}Et(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(s){return{type:ur.error,result:s}}finally{l&&t.signal.removeEventListener("abort",l)}return i}async function yte(e){let{result:t,type:r}=e;if(I5(t)){let s;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?s=null:s=await t.json():s=await t.text()}catch(f){return{type:ur.error,error:f}}return r===ur.error?{type:ur.error,error:new v0(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:ur.data,data:s,statusCode:t.status,headers:t.headers}}if(r===ur.error){if(YA(t)){var n;if(t.data instanceof Error){var a;return{type:ur.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new v0(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:ur.error,error:t,statusCode:Xb(t)?t.status:void 0}}if(Ste(t)){var o,i;return{type:ur.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}if(YA(t)){var l,c;return{type:ur.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}}return{type:ur.data,data:t}}function bte(e,t,r,n,a,o){let i=e.headers.get("Location");if(Et(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ZP.test(i)){let l=n.slice(0,n.findIndex(c=>c.route.id===r)+1);i=$E(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}function HA(e,t,r){if(ZP.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Nl(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function ed(e,t,r,n){let a=e.createURL(j5(t)).toString(),o={signal:r};if(n&&Ko(n.formMethod)){let{formMethod:i,formEncType:l}=n;o.method=i.toUpperCase(),l==="application/json"?(o.headers=new Headers({"Content-Type":l}),o.body=JSON.stringify(n.json)):l==="text/plain"?o.body=n.text:l==="application/x-www-form-urlencoded"&&n.formData?o.body=jE(n.formData):o.body=n.formData}return new Request(a,o)}function jE(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function qA(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function _te(e,t,r,n,a){let o={},i=null,l,c=!1,s={},f=r&&Da(r[1])?r[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let v=h.route.id,m=t[v];if(Et(!Bu(m),"Cannot handle redirect results in processLoaderData"),Da(m)){let b=m.error;f!==void 0&&(b=f,f=void 0),i=i||{};{let w=ku(e,v);i[w.route.id]==null&&(i[w.route.id]=b)}o[v]=void 0,c||(c=!0,l=Xb(m.error)?m.error.status:500),m.headers&&(s[v]=m.headers)}else _l(m)?(n.set(v,m.deferredData),o[v]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!c&&(l=m.statusCode),m.headers&&(s[v]=m.headers)):(o[v]=m.data,m.statusCode&&m.statusCode!==200&&!c&&(l=m.statusCode),m.headers&&(s[v]=m.headers))}),f!==void 0&&r&&(i={[r[0]]:f},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:l||200,loaderHeaders:s}}function GA(e,t,r,n,a,o,i){let{loaderData:l,errors:c}=_te(t,r,n,i);return a.forEach(s=>{let{key:f,match:h,controller:v}=s,m=o[f];if(Et(m,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Da(m)){let b=ku(e.matches,h==null?void 0:h.route.id);c&&c[b.route.id]||(c=Cr({},c,{[b.route.id]:m.error})),e.fetchers.delete(f)}else if(Bu(m))Et(!1,"Unhandled fetcher revalidation redirect");else if(_l(m))Et(!1,"Unhandled fetcher deferred data");else{let b=Zs(m.data);e.fetchers.set(f,b)}}),{loaderData:l,errors:c}}function KA(e,t,r,n){let a=Cr({},t);for(let o of r){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function QA(e){return e?Da(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ku(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function XA(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ba(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,l="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(l="Bad Request",a&&r&&n?c="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?c="defer() is not supported in actions":o==="invalid-body"&&(c="Unable to encode submission body")):e===403?(l="Forbidden",c='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",c='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",a&&r&&n?c="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(c='Invalid request method "'+a.toUpperCase()+'"')),new v0(e||500,l,new Error(c),!0)}function Cg(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Bu(a))return{key:n,result:a}}}function j5(e){let t=typeof e=="string"?Mi(e):e;return pc(Cr({},t,{hash:""}))}function xte(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function wte(e){return I5(e.result)&&ste.has(e.result.status)}function _l(e){return e.type===ur.deferred}function Da(e){return e.type===ur.error}function Bu(e){return(e&&e.type)===ur.redirect}function YA(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Ste(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function I5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Ete(e){return ite.has(e.toLowerCase())}function Ko(e){return ate.has(e.toLowerCase())}async function Cte(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i(v==null?void 0:v.route.id)===l);if(!s)continue;let f=n.find(v=>v.route.id===s.route.id),h=f!=null&&!$5(f,s)&&(a&&a[s.route.id])!==void 0;_l(c)&&h&&await eR(c,r,!1).then(v=>{v&&(t[l]=v)})}}async function Ote(e,t,r){for(let n=0;n(s==null?void 0:s.route.id)===o)&&_l(l)&&(Et(i,"Expected an AbortController for revalidating fetcher deferred result"),await eR(l,i.signal,!0).then(s=>{s&&(t[a]=s)}))}}async function eR(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:ur.data,data:e.deferredData.unwrappedData}}catch(a){return{type:ur.error,error:a}}return{type:ur.data,data:e.deferredData.data}}}function tR(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function sh(e,t){let r=typeof t=="string"?Mi(t).search:t.search;if(e[e.length-1].route.index&&tR(r||""))return e[e.length-1];let n=O5(e);return n[n.length-1]}function JA(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function xw(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Pte(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Np(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Rte(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Zs(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $te(e,t){try{let r=e.sessionStorage.getItem(R5);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function kte(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(R5,JSON.stringify(r))}catch(n){fc(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + * React Router v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function hc(){return hc=Object.assign?Object.assign.bind():function(e){for(var t=1;tCf(e,C5(t)),[t,e])}function A5(e){d.useContext(Hl).static||d.useLayoutEffect(e)}function Li(){let{isDataRoute:e}=d.useContext(Fi);return e?qte():Tte()}function Tte(){ql()||Et(!1);let e=d.useContext(zv),{basename:t,future:r,navigator:n}=d.useContext(Hl),{matches:a}=d.useContext(Fi),{pathname:o}=hn(),i=JSON.stringify(Kb(a,r.v7_relativeSplatPath)),l=d.useRef(!1);return A5(()=>{l.current=!0}),d.useCallback(function(s,f){if(f===void 0&&(f={}),!l.current)return;if(typeof s=="number"){n.go(s);return}let h=Qb(s,JSON.parse(i),o,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:ps([t,h.pathname])),(f.replace?n.replace:n.push)(h,f.state,f)},[t,n,i,o,e])}const Ate=d.createContext(null);function Mte(e){let t=d.useContext(Fi).outlet;return t&&d.createElement(Ate.Provider,{value:e},t)}function Jb(){let{matches:e}=d.useContext(Fi),t=e[e.length-1];return t?t.params:{}}function nR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Hl),{matches:a}=d.useContext(Fi),{pathname:o}=hn(),i=JSON.stringify(Kb(a,n.v7_relativeSplatPath));return d.useMemo(()=>Qb(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function Fte(e,t){return M5(e,t)}function M5(e,t,r,n){ql()||Et(!1);let{navigator:a}=d.useContext(Hl),{matches:o}=d.useContext(Fi),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let s=hn(),f;if(t){var h;let O=typeof t=="string"?Mi(t):t;c==="/"||(h=O.pathname)!=null&&h.startsWith(c)||Et(!1),f=O}else f=s;let v=f.pathname||"/",m=v;if(c!=="/"){let O=c.replace(/^\//,"").split("/");m="/"+v.replace(/^\//,"").split("/").slice(O.length).join("/")}let b=$u(e,{pathname:m}),w=zte(b&&b.map(O=>Object.assign({},O,{params:Object.assign({},l,O.params),pathname:ps([c,a.encodeLocation?a.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?c:ps([c,a.encodeLocation?a.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),o,r,n);return t&&w?d.createElement(Yb.Provider,{value:{location:hc({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Hr.Pop}},w):w}function Lte(){let e=Vte(),t=Xb(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:a},r):null,null)}const Dte=d.createElement(Lte,null);class Nte extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?d.createElement(Fi.Provider,{value:this.props.routeContext},d.createElement(T5.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Bte(e){let{routeContext:t,match:r,children:n}=e,a=d.useContext(zv);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(Fi.Provider,{value:t},n)}function zte(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,l=(a=r)==null?void 0:a.errors;if(l!=null){let f=i.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);f>=0||Et(!1),i=i.slice(0,Math.min(i.length,f+1))}let c=!1,s=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?i=i.slice(0,s+1):i=[i[0]];break}}}return i.reduceRight((f,h,v)=>{let m,b=!1,w=null,O=null;r&&(m=l&&h.route.id?l[h.route.id]:void 0,w=h.route.errorElement||Dte,c&&(s<0&&v===0?(b=!0,O=null):s===v&&(b=!0,O=h.route.hydrateFallbackElement||null)));let _=t.concat(i.slice(0,v+1)),y=()=>{let x;return m?x=w:b?x=O:h.route.Component?x=d.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=f,d.createElement(Bte,{match:h,routeContext:{outlet:f,matches:_,isDataRoute:r!=null},children:x})};return r&&(h.route.ErrorBoundary||h.route.errorElement||v===0)?d.createElement(Nte,{location:r.location,revalidation:r.revalidation,component:w,error:m,children:y(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):y()},null)}var aR=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(aR||{}),sv=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(sv||{});function F5(e){let t=d.useContext(zv);return t||Et(!1),t}function L5(e){let t=d.useContext(rR);return t||Et(!1),t}function Ute(e){let t=d.useContext(Fi);return t||Et(!1),t}function D5(e){let t=Ute(),r=t.matches[t.matches.length-1];return r.route.id||Et(!1),r.route.id}function Vte(){var e;let t=d.useContext(T5),r=L5(sv.UseRouteError),n=D5(sv.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let Wte=0;function Hte(e){let{router:t,basename:r}=F5(aR.UseBlocker),n=L5(sv.UseBlocker),[a,o]=d.useState(""),i=d.useCallback(l=>{if(typeof e!="function")return!!e;if(r==="/")return e(l);let{currentLocation:c,nextLocation:s,historyAction:f}=l;return e({currentLocation:hc({},c,{pathname:Nl(c.pathname,r)||c.pathname}),nextLocation:hc({},s,{pathname:Nl(s.pathname,r)||s.pathname}),historyAction:f})},[r,e]);return d.useEffect(()=>{let l=String(++Wte);return o(l),()=>t.deleteBlocker(l)},[t]),d.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):dd}function qte(){let{router:e}=F5(aR.UseNavigateStable),t=D5(sv.UseNavigateStable),r=d.useRef(!1);return A5(()=>{r.current=!0}),d.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,hc({fromRouteId:t},o)))},[e,t])}function Gte(e){let{to:t,replace:r,state:n,relative:a}=e;ql()||Et(!1);let{future:o,static:i}=d.useContext(Hl),{matches:l}=d.useContext(Fi),{pathname:c}=hn(),s=Li(),f=Qb(t,Kb(l,o.v7_relativeSplatPath),c,a==="path"),h=JSON.stringify(f);return d.useEffect(()=>s(JSON.parse(h),{replace:r,state:n,relative:a}),[s,h,a,r,n]),null}function Kte(e){return Mte(e.context)}function On(e){Et(!1)}function Qte(e){let{basename:t="/",children:r=null,location:n,navigationType:a=Hr.Pop,navigator:o,static:i=!1,future:l}=e;ql()&&Et(!1);let c=t.replace(/^\/*/,"/"),s=d.useMemo(()=>({basename:c,navigator:o,static:i,future:hc({v7_relativeSplatPath:!1},l)}),[c,l,o,i]);typeof n=="string"&&(n=Mi(n));let{pathname:f="/",search:h="",hash:v="",state:m=null,key:b="default"}=n,w=d.useMemo(()=>{let O=Nl(f,c);return O==null?null:{location:{pathname:O,search:h,hash:v,state:m,key:b},navigationType:a}},[c,f,h,v,m,b,a]);return w==null?null:d.createElement(Hl.Provider,{value:s},d.createElement(Yb.Provider,{children:r,value:w}))}function xl(e){let{children:t,location:r}=e;return Fte(IE(t),r)}new Promise(()=>{});function IE(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,a)=>{if(!d.isValidElement(n))return;let o=[...t,a];if(n.type===d.Fragment){r.push.apply(r,IE(n.props.children,o));return}n.type!==On&&Et(!1),!n.props.index||!n.props.children||Et(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=IE(n.props.children,o)),r.push(i)}),r}function Xte(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function lv(){return lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function Jte(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Zte(e,t){return e.button===0&&(!t||t==="_self")&&!Jte(e)}const ere=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],tre="6";try{window.__reactRouterVersion=tre}catch{}function rre(e,t){return dte({basename:t==null?void 0:t.basename,future:lv({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Fee({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||nre(),routes:e,mapRouteProperties:Xte,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function nre(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=lv({},t,{errors:are(t.errors)})),t}function are(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new v0(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const ore=d.createContext({isTransitioning:!1}),ire=d.createContext(new Map),sre="startTransition",ZA=Dy[sre],lre="flushSync",eM=jJ[lre];function ure(e){ZA?ZA(e):e()}function Bp(e){eM?eM(e):e()}class cre{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function dre(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=d.useState(r.state),[i,l]=d.useState(),[c,s]=d.useState({isTransitioning:!1}),[f,h]=d.useState(),[v,m]=d.useState(),[b,w]=d.useState(),O=d.useRef(new Map),{v7_startTransition:_}=n||{},y=d.useCallback(R=>{_?ure(R):R()},[_]),x=d.useCallback((R,k)=>{let{deletedFetchers:I,flushSync:M,viewTransitionOpts:F}=k;I.forEach(B=>O.current.delete(B)),R.fetchers.forEach((B,V)=>{B.data!==void 0&&O.current.set(V,B.data)});let L=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!F||L){M?Bp(()=>o(R)):y(()=>o(R));return}if(M){Bp(()=>{v&&(f&&f.resolve(),v.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=r.window.document.startViewTransition(()=>{Bp(()=>o(R))});B.finished.finally(()=>{Bp(()=>{h(void 0),m(void 0),l(void 0),s({isTransitioning:!1})})}),Bp(()=>m(B));return}v?(f&&f.resolve(),v.skipTransition(),w({state:R,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(l(R),s({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[r.window,v,f,O,y]);d.useLayoutEffect(()=>r.subscribe(x),[r,x]),d.useEffect(()=>{c.isTransitioning&&!c.flushSync&&h(new cre)},[c]),d.useEffect(()=>{if(f&&i&&r.window){let R=i,k=f.promise,I=r.window.document.startViewTransition(async()=>{y(()=>o(R)),await k});I.finished.finally(()=>{h(void 0),m(void 0),l(void 0),s({isTransitioning:!1})}),m(I)}},[y,i,f,r.window]),d.useEffect(()=>{f&&i&&a.location.key===i.location.key&&f.resolve()},[f,v,a.location,i]),d.useEffect(()=>{!c.isTransitioning&&b&&(l(b.state),s({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),w(void 0))},[c.isTransitioning,b]),d.useEffect(()=>{},[]);let S=d.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:R=>r.navigate(R),push:(R,k,I)=>r.navigate(R,{state:k,preventScrollReset:I==null?void 0:I.preventScrollReset}),replace:(R,k,I)=>r.navigate(R,{replace:!0,state:k,preventScrollReset:I==null?void 0:I.preventScrollReset})}),[r]),P=r.basename||"/",C=d.useMemo(()=>({router:r,navigator:S,static:!1,basename:P}),[r,S,P]),$=d.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(zv.Provider,{value:C},d.createElement(rR.Provider,{value:a},d.createElement(ire.Provider,{value:O.current},d.createElement(ore.Provider,{value:c},d.createElement(Qte,{basename:P,location:a.location,navigationType:a.historyAction,navigator:S,future:$},a.initialized||r.future.v7_partialHydration?d.createElement(fre,{routes:r.routes,future:r.future,state:a}):t))))),null)}const fre=d.memo(pre);function pre(e){let{routes:t,future:r,state:n}=e;return M5(t,void 0,n,r)}const hre=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_s=d.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:c,to:s,preventScrollReset:f,viewTransition:h}=t,v=Yte(t,ere),{basename:m}=d.useContext(Hl),b,w=!1;if(typeof s=="string"&&vre.test(s)&&(b=s,hre))try{let x=new URL(window.location.href),S=s.startsWith("//")?new URL(x.protocol+s):new URL(s),P=Nl(S.pathname,m);S.origin===x.origin&&P!=null?s=P+S.search+S.hash:w=!0}catch{}let O=jte(s,{relative:a}),_=mre(s,{replace:i,state:l,target:c,preventScrollReset:f,relative:a,viewTransition:h});function y(x){n&&n(x),x.defaultPrevented||_(x)}return d.createElement("a",lv({},v,{href:b||O,onClick:w||o?n:y,ref:r,target:c}))});var tM;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(tM||(tM={}));var rM;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(rM||(rM={}));function mre(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=t===void 0?{}:t,c=Li(),s=hn(),f=nR(e,{relative:i});return d.useCallback(h=>{if(Zte(h,r)){h.preventDefault();let v=n!==void 0?n:pc(s)===pc(f);c(e,{replace:v,state:a,preventScrollReset:o,relative:i,viewTransition:l})}},[s,c,f,n,a,r,e,o,i,l])}var gre="RaStore",yre=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},TE=yre(),bre=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(gre).concat(t),n=r.length,a={},o=function(l,c){Object.keys(a).forEach(function(s){a[s]&&a[s].key===l&&a[s].callback(c)})},i=function(l){var c;if(((c=l.key)===null||c===void 0?void 0:c.substring(0,n))===r){var s=l.key.substring(n+1),f=l.newValue?nM(l.newValue):void 0;Object.keys(a).forEach(function(h){a[h]&&a[h].key===s&&(f===null?a[h].callback(void 0):a[h].callback(f??void 0))})}};return{setup:function(){if(TE){var l=Ji().getItem("".concat(r,".version"));if(l&&l!==e){var c=Ji();Object.keys(c).forEach(function(s){s.startsWith(r)&&c.removeItem(s)})}Ji().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){TE&&window.removeEventListener("storage",i)},getItem:function(l,c){var s=Ji().getItem("".concat(r,".").concat(l));return s==null?c:nM(s)},setItem:function(l,c){c===void 0?Ji().removeItem("".concat(r,".").concat(l)):Ji().setItem("".concat(r,".").concat(l),JSON.stringify(c)),o(l,c)},removeItem:function(l){Ji().removeItem("".concat(r,".").concat(l)),o(l,void 0)},removeItems:function(l){var c=Ji();Object.keys(c).forEach(function(s){if(s.startsWith("".concat(r,".").concat(l))){c.removeItem(s);var f=s.substring(n+1);o(f,void 0)}})},reset:function(){var l=Ji();Object.keys(l).forEach(function(c){if(c.startsWith(r)){l.removeItem(c);var s=c.substring(n+1);o(s,void 0)}})},subscribe:function(l,c){var s=Math.random().toString();return a[s]={key:l,callback:c},function(){delete a[s]}}}},nM=function(e){try{return JSON.parse(e)}catch{return e}},_re=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),xre=new _re,Ji=function(){return TE?window.localStorage:xre},wre=typeof Zo=="object"&&Zo&&Zo.Object===Object&&Zo,N5=wre,Sre=N5,Ere=typeof self=="object"&&self&&self.Object===Object&&self,Cre=Sre||Ere||Function("return this")(),ai=Cre,Ore=ai,Pre=Ore.Symbol,Vf=Pre,aM=Vf,B5=Object.prototype,Rre=B5.hasOwnProperty,$re=B5.toString,zp=aM?aM.toStringTag:void 0;function kre(e){var t=Rre.call(e,zp),r=e[zp];try{e[zp]=void 0;var n=!0}catch{}var a=$re.call(e);return n&&(t?e[zp]=r:delete e[zp]),a}var jre=kre,Ire=Object.prototype,Tre=Ire.toString;function Are(e){return Tre.call(e)}var Mre=Are,oM=Vf,Fre=jre,Lre=Mre,Dre="[object Null]",Nre="[object Undefined]",iM=oM?oM.toStringTag:void 0;function Bre(e){return e==null?e===void 0?Nre:Dre:iM&&iM in Object(e)?Fre(e):Lre(e)}var Wf=Bre;function zre(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var oi=zre,Ure=Wf,Vre=oi,Wre="[object AsyncFunction]",Hre="[object Function]",qre="[object GeneratorFunction]",Gre="[object Proxy]";function Kre(e){if(!Vre(e))return!1;var t=Ure(e);return t==Hre||t==qre||t==Wre||t==Gre}var oR=Kre,Qre=ai,Xre=Qre["__core-js_shared__"],Yre=Xre,ww=Yre,sM=function(){var e=/[^.]+$/.exec(ww&&ww.keys&&ww.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Jre(e){return!!sM&&sM in e}var Zre=Jre,ene=Function.prototype,tne=ene.toString;function rne(e){if(e!=null){try{return tne.call(e)}catch{}try{return e+""}catch{}}return""}var z5=rne,nne=oR,ane=Zre,one=oi,ine=z5,sne=/[\\^$.*+?()[\]{}|]/g,lne=/^\[object .+?Constructor\]$/,une=Function.prototype,cne=Object.prototype,dne=une.toString,fne=cne.hasOwnProperty,pne=RegExp("^"+dne.call(fne).replace(sne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hne(e){if(!one(e)||ane(e))return!1;var t=nne(e)?pne:lne;return t.test(ine(e))}var vne=hne;function mne(e,t){return e==null?void 0:e[t]}var gne=mne,yne=vne,bne=gne;function _ne(e,t){var r=bne(e,t);return yne(r)?r:void 0}var Oc=_ne,xne=Oc,wne=function(){try{var e=xne(Object,"defineProperty");return e({},"",{}),e}catch{}}(),U5=wne,lM=U5;function Sne(e,t,r){t=="__proto__"&&lM?lM(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var iR=Sne;function Ene(e,t){return e===t||e!==e&&t!==t}var Hf=Ene,Cne=iR,One=Hf,Pne=Object.prototype,Rne=Pne.hasOwnProperty;function $ne(e,t,r){var n=e[t];(!(Rne.call(e,t)&&One(n,r))||r===void 0&&!(t in e))&&Cne(e,t,r)}var sR=$ne,kne=Array.isArray,Di=kne;function jne(e){return e!=null&&typeof e=="object"}var Ps=jne,Ine=Wf,Tne=Ps,Ane="[object Symbol]";function Mne(e){return typeof e=="symbol"||Tne(e)&&Ine(e)==Ane}var Zb=Mne,Fne=Di,Lne=Zb,Dne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nne=/^\w*$/;function Bne(e,t){if(Fne(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Lne(e)?!0:Nne.test(e)||!Dne.test(e)||t!=null&&e in Object(t)}var zne=Bne,Une=Oc,Vne=Une(Object,"create"),e_=Vne,uM=e_;function Wne(){this.__data__=uM?uM(null):{},this.size=0}var Hne=Wne;function qne(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Gne=qne,Kne=e_,Qne="__lodash_hash_undefined__",Xne=Object.prototype,Yne=Xne.hasOwnProperty;function Jne(e){var t=this.__data__;if(Kne){var r=t[e];return r===Qne?void 0:r}return Yne.call(t,e)?t[e]:void 0}var Zne=Jne,eae=e_,tae=Object.prototype,rae=tae.hasOwnProperty;function nae(e){var t=this.__data__;return eae?t[e]!==void 0:rae.call(t,e)}var aae=nae,oae=e_,iae="__lodash_hash_undefined__";function sae(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=oae&&t===void 0?iae:t,this}var lae=sae,uae=Hne,cae=Gne,dae=Zne,fae=aae,pae=lae;function qf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var $ae=Rae,kae=t_;function jae(e,t){var r=this.__data__,n=kae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Iae=jae,Tae=mae,Aae=Sae,Mae=Oae,Fae=$ae,Lae=Iae;function Gf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ea?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++nl))return!1;var s=o.get(e),f=o.get(t);if(s&&f)return s==t&&f==e;var h=-1,v=!0,m=r&nse?new Zie:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e<=ele}var yR=tle,rle=Wf,nle=yR,ale=Ps,ole="[object Arguments]",ile="[object Array]",sle="[object Boolean]",lle="[object Date]",ule="[object Error]",cle="[object Function]",dle="[object Map]",fle="[object Number]",ple="[object Object]",hle="[object RegExp]",vle="[object Set]",mle="[object String]",gle="[object WeakMap]",yle="[object ArrayBuffer]",ble="[object DataView]",_le="[object Float32Array]",xle="[object Float64Array]",wle="[object Int8Array]",Sle="[object Int16Array]",Ele="[object Int32Array]",Cle="[object Uint8Array]",Ole="[object Uint8ClampedArray]",Ple="[object Uint16Array]",Rle="[object Uint32Array]",xr={};xr[_le]=xr[xle]=xr[wle]=xr[Sle]=xr[Ele]=xr[Cle]=xr[Ole]=xr[Ple]=xr[Rle]=!0;xr[ole]=xr[ile]=xr[yle]=xr[sle]=xr[ble]=xr[lle]=xr[ule]=xr[cle]=xr[dle]=xr[fle]=xr[ple]=xr[hle]=xr[vle]=xr[mle]=xr[gle]=!1;function $le(e){return ale(e)&&nle(e.length)&&!!xr[rle(e)]}var kle=$le;function jle(e){return function(t){return e(t)}}var c_=jle,y0={exports:{}};y0.exports;(function(e,t){var r=N5,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,l=function(){try{var c=a&&a.require&&a.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();e.exports=l})(y0,y0.exports);var bR=y0.exports,Ile=kle,Tle=c_,xM=bR,wM=xM&&xM.isTypedArray,Ale=wM?Tle(wM):Ile,_R=Ale,Mle=Use,Fle=l_,Lle=Di,Dle=u_,Nle=a_,Ble=_R,zle=Object.prototype,Ule=zle.hasOwnProperty;function Vle(e,t){var r=Lle(e),n=!r&&Fle(e),a=!r&&!n&&Dle(e),o=!r&&!n&&!a&&Ble(e),i=r||n||a||o,l=i?Mle(e.length,String):[],c=l.length;for(var s in e)(t||Ule.call(e,s))&&!(i&&(s=="length"||a&&(s=="offset"||s=="parent")||o&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||Nle(s,c)))&&l.push(s);return l}var rB=Vle,Wle=Object.prototype;function Hle(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Wle;return e===r}var xR=Hle;function qle(e,t){return function(r){return e(t(r))}}var nB=qle,Gle=nB,Kle=Gle(Object.keys,Object),Qle=Kle,Xle=xR,Yle=Qle,Jle=Object.prototype,Zle=Jle.hasOwnProperty;function eue(e){if(!Xle(e))return Yle(e);var t=[];for(var r in Object(e))Zle.call(e,r)&&r!="constructor"&&t.push(r);return t}var tue=eue,rue=oR,nue=yR;function aue(e){return e!=null&&nue(e.length)&&!rue(e)}var d_=aue,oue=rB,iue=tue,sue=d_;function lue(e){return sue(e)?oue(e):iue(e)}var wR=lue,uue=Z5,cue=gR,due=wR;function fue(e){return uue(e,due,cue)}var aB=fue,SM=aB,pue=1,hue=Object.prototype,vue=hue.hasOwnProperty;function mue(e,t,r,n,a,o){var i=r&pue,l=SM(e),c=l.length,s=SM(t),f=s.length;if(c!=f&&!i)return!1;for(var h=c;h--;){var v=l[h];if(!(i?v in t:vue.call(t,v)))return!1}var m=o.get(e),b=o.get(t);if(m&&b)return m==t&&b==e;var w=!0;o.set(e,t),o.set(t,e);for(var O=i;++h0){if(++t>=Dde)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ude=zde,Vde=Lde,Wde=Ude,Hde=Wde(Vde),xB=Hde,qde=bB,Gde=_B,Kde=xB;function Qde(e,t){return Kde(Gde(e,t,qde),e+"")}var p_=Qde,Xde=Hf,Yde=d_,Jde=a_,Zde=oi;function efe(e,t,r){if(!Zde(r))return!1;var n=typeof t;return(n=="number"?Yde(r)&&Jde(t,r.length):n=="string"&&t in r)?Xde(r[t],e):!1}var wB=efe,tfe=p_,rfe=wB;function nfe(e){return tfe(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&rfe(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n=t||$<0||h&&R>=o}function _(){var C=Cw();if(O(C))return y(C);l=setTimeout(_,w(C))}function y(C){return l=void 0,v&&n?m(C):(n=a=void 0,i)}function x(){l!==void 0&&clearTimeout(l),s=0,n=c=a=l=void 0}function S(){return l===void 0?i:y(Cw())}function P(){var C=Cw(),$=O(C);if(n=arguments,a=this,c=C,$){if(l===void 0)return b(c);if(h)return clearTimeout(l),l=setTimeout(_,t),m(c)}return l===void 0&&(l=setTimeout(_,t)),i}return P.cancel=x,P.flush=S,P}var mve=vve;const jR=bn(mve);var gve=function(e,t){t===void 0&&(t=250);var r=yve(e,t),n=r[0],a=r[1],o=hn();d.useEffect(function(){var i;n!=null&&((i=o.state)===null||i===void 0?void 0:i._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},yve=function(e,t){t===void 0&&(t=250);var r=$n(e),n=r[0],a=r[1];return d.useEffect(function(){if(!(typeof window>"u")){var o=jR(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},bve=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return gve(r,a),t},Gl=function(){return d.useContext(RB)},Pc=function(){var e=Gl();return d.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return _i("".concat(e,"/").concat(r));case"create":return _i("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?_i("".concat(e,"/").concat(r)):_i("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?_i("".concat(e,"/").concat(r)):_i("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},_i=function(e){return e.replace("//","/")};function rF(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var $B=function(e,t){if(rF(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var a=0;a0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. +Be sure to pass the props from the parent. Example: + +const My`).concat(e,` = props => ( + <`).concat(e," {...props}> +); + +The missing props are: `).concat(a.join(", ")))},x0=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),NB="%[a-f0-9]{2}",iF=new RegExp("("+NB+")|([^%]+?)","gi"),sF=new RegExp("("+NB+")+","gi");function UE(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],UE(r),UE(n))}function Uve(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(iF)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},qve=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;oy==null,i=Symbol("encodeFragmentIdentifier");function l(y){switch(y.arrayFormat){case"index":return x=>(S,P)=>{const C=S.length;return P===void 0||y.skipNull&&P===null||y.skipEmptyString&&P===""?S:P===null?[...S,[f(x,y),"[",C,"]"].join("")]:[...S,[f(x,y),"[",f(C,y),"]=",f(P,y)].join("")]};case"bracket":return x=>(S,P)=>P===void 0||y.skipNull&&P===null||y.skipEmptyString&&P===""?S:P===null?[...S,[f(x,y),"[]"].join("")]:[...S,[f(x,y),"[]=",f(P,y)].join("")];case"colon-list-separator":return x=>(S,P)=>P===void 0||y.skipNull&&P===null||y.skipEmptyString&&P===""?S:P===null?[...S,[f(x,y),":list="].join("")]:[...S,[f(x,y),":list=",f(P,y)].join("")];case"comma":case"separator":case"bracket-separator":{const x=y.arrayFormat==="bracket-separator"?"[]=":"=";return S=>(P,C)=>C===void 0||y.skipNull&&C===null||y.skipEmptyString&&C===""?P:(C=C===null?"":C,P.length===0?[[f(S,y),x,f(C,y)].join("")]:[[P,f(C,y)].join(y.arrayFormatSeparator)])}default:return x=>(S,P)=>P===void 0||y.skipNull&&P===null||y.skipEmptyString&&P===""?S:P===null?[...S,f(x,y)]:[...S,[f(x,y),"=",f(P,y)].join("")]}}function c(y){let x;switch(y.arrayFormat){case"index":return(S,P,C)=>{if(x=/\[(\d*)\]$/.exec(S),S=S.replace(/\[\d*\]$/,""),!x){C[S]=P;return}C[S]===void 0&&(C[S]={}),C[S][x[1]]=P};case"bracket":return(S,P,C)=>{if(x=/(\[\])$/.exec(S),S=S.replace(/\[\]$/,""),!x){C[S]=P;return}if(C[S]===void 0){C[S]=[P];return}C[S]=[].concat(C[S],P)};case"colon-list-separator":return(S,P,C)=>{if(x=/(:list)$/.exec(S),S=S.replace(/:list$/,""),!x){C[S]=P;return}if(C[S]===void 0){C[S]=[P];return}C[S]=[].concat(C[S],P)};case"comma":case"separator":return(S,P,C)=>{const $=typeof P=="string"&&P.includes(y.arrayFormatSeparator),R=typeof P=="string"&&!$&&h(P,y).includes(y.arrayFormatSeparator);P=R?h(P,y):P;const k=$||R?P.split(y.arrayFormatSeparator).map(I=>h(I,y)):P===null?P:h(P,y);C[S]=k};case"bracket-separator":return(S,P,C)=>{const $=/(\[\])$/.test(S);if(S=S.replace(/\[\]$/,""),!$){C[S]=P&&h(P,y);return}const R=P===null?[]:P.split(y.arrayFormatSeparator).map(k=>h(k,y));if(C[S]===void 0){C[S]=R;return}C[S]=[].concat(C[S],R)};default:return(S,P,C)=>{if(C[S]===void 0){C[S]=P;return}C[S]=[].concat(C[S],P)}}}function s(y){if(typeof y!="string"||y.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function f(y,x){return x.encode?x.strict?t(y):encodeURIComponent(y):y}function h(y,x){return x.decode?r(y):y}function v(y){return Array.isArray(y)?y.sort():typeof y=="object"?v(Object.keys(y)).sort((x,S)=>Number(x)-Number(S)).map(x=>y[x]):y}function m(y){const x=y.indexOf("#");return x!==-1&&(y=y.slice(0,x)),y}function b(y){let x="";const S=y.indexOf("#");return S!==-1&&(x=y.slice(S)),x}function w(y){y=m(y);const x=y.indexOf("?");return x===-1?"":y.slice(x+1)}function O(y,x){return x.parseNumbers&&!Number.isNaN(Number(y))&&typeof y=="string"&&y.trim()!==""?y=Number(y):x.parseBooleans&&y!==null&&(y.toLowerCase()==="true"||y.toLowerCase()==="false")&&(y=y.toLowerCase()==="true"),y}function _(y,x){x=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},x),s(x.arrayFormatSeparator);const S=c(x),P=Object.create(null);if(typeof y!="string"||(y=y.trim().replace(/^[?#&]/,""),!y))return P;for(const C of y.split("&")){if(C==="")continue;let[$,R]=n(x.decode?C.replace(/\+/g," "):C,"=");R=R===void 0?null:["comma","separator","bracket-separator"].includes(x.arrayFormat)?R:h(R,x),S(h($,x),R,P)}for(const C of Object.keys(P)){const $=P[C];if(typeof $=="object"&&$!==null)for(const R of Object.keys($))$[R]=O($[R],x);else P[C]=O($,x)}return x.sort===!1?P:(x.sort===!0?Object.keys(P).sort():Object.keys(P).sort(x.sort)).reduce((C,$)=>{const R=P[$];return R&&typeof R=="object"&&!Array.isArray(R)?C[$]=v(R):C[$]=R,C},Object.create(null))}e.extract=w,e.parse=_,e.stringify=(y,x)=>{if(!y)return"";x=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},x),s(x.arrayFormatSeparator);const S=R=>x.skipNull&&o(y[R])||x.skipEmptyString&&y[R]==="",P=l(x),C={};for(const R of Object.keys(y))S(R)||(C[R]=y[R]);const $=Object.keys(C);return x.sort!==!1&&$.sort(x.sort),$.map(R=>{const k=y[R];return k===void 0?"":k===null?f(R,x):Array.isArray(k)?k.length===0&&x.arrayFormat==="bracket-separator"?f(R,x)+"[]":k.reduce(P(R),[]).join("&"):f(R,x)+"="+f(k,x)}).filter(R=>R.length>0).join("&")},e.parseUrl=(y,x)=>{x=Object.assign({decode:!0},x);const[S,P]=n(y,"#");return Object.assign({url:S.split("?")[0]||"",query:_(w(y),x)},x&&x.parseFragmentIdentifier&&P?{fragmentIdentifier:h(P,x)}:{})},e.stringifyUrl=(y,x)=>{x=Object.assign({encode:!0,strict:!0,[i]:!0},x);const S=m(y.url).split("?")[0]||"",P=e.extract(y.url),C=e.parse(P,{sort:!1}),$=Object.assign(C,y.query);let R=e.stringify($,x);R&&(R=`?${R}`);let k=b(y.url);return y.fragmentIdentifier&&(k=`#${x[i]?f(y.fragmentIdentifier,x):y.fragmentIdentifier}`),`${S}${R}${k}`},e.pick=(y,x,S)=>{S=Object.assign({parseFragmentIdentifier:!0,[i]:!1},S);const{url:P,query:C,fragmentIdentifier:$}=e.parseUrl(y,S);return e.stringifyUrl({url:P,query:a(C,x),fragmentIdentifier:$},S)},e.exclude=(y,x,S)=>{const P=Array.isArray(x)?C=>!x.includes(C):(C,$)=>!x(C,$);return e.pick(y,P,S)}})(vc);var w0=function(){return w0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new DB(c&&c.message||o,a,c)):Promise.resolve({status:a,headers:i,body:l,json:c})})},Qve=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},BB=function(e,t){var r;return t===void 0&&(t=[]),Qve(e)?Object.assign.apply(Object,Gve([{}],Object.keys(e).map(function(n){return BB(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},zB={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function o(c,s,f,h,v){if(typeof f!="function")throw new TypeError("The listener must be a function");var m=new a(f,h||c,v),b=r?r+s:s;return c._events[b]?c._events[b].fn?c._events[b]=[c._events[b],m]:c._events[b].push(m):(c._events[b]=m,c._eventsCount++),c}function i(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var s=[],f,h;if(this._eventsCount===0)return s;for(h in f=this._events)t.call(f,h)&&s.push(r?h.slice(1):h);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},l.prototype.listeners=function(s){var f=r?r+s:s,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var v=0,m=h.length,b=new Array(m);v0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"u"||!e.message?t:e.message},tme=["getList","getMany","getManyReference"],Xa=function(){var e=d.useContext(TR)||IR,t=UB(),r=d.useMemo(function(){return new Proxy(e,{get:function(n,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],i=0;i0),n=ke.useRef(e.isMutating()>0),a=ke.useState(r.current||n.current),o=a[0],i=a[1];return ke.useEffect(function(){t.current=!0;var l=e.getQueryCache().subscribe(Gr.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),c=e.getMutationCache().subscribe(Gr.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,l(),c()}},[e]),o},Ni=function(){var e=Ao();return d.useCallback(function(){e.invalidateQueries()},[e])},VE=function(){return VE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(l)?t>1?WB(l,t-1,r,n,a):dme(a,l):n||(a[a.length]=l)}return a}var AR=WB;function pme(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o-1}var HB=Cme;function Ome(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=Bme){var s=t?null:Dme(e);if(s)return Nme(s);i=!1,a=Lme,c=new Ame}else c=t?[]:l;e:for(;++n0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0?B(V):V},{updatedAt:F}),a.setQueriesData({queryKey:[R,"getManyReference"]},function(V){return V&&V.data?{data:B(V.data),total:V.total}:V},{updatedAt:F})},S=Cc(sr(sr({mutationFn:function($){var R=$===void 0?{}:$,k=R.resource,I=k===void 0?e:k,M=R.id,F=M===void 0?m.current.id:M,L=R.data,B=L===void 0?m.current.data:L,V=R.meta,H=V===void 0?m.current.meta:V,W=R.previousData,z=W===void 0?m.current.previousData:W;if(!I)throw new Error("useUpdate mutation requires a non-empty resource");if(F==null)throw new Error("useUpdate mutation requires a non-empty id");if(!B)throw new Error("useUpdate mutation requires a non-empty data object");return w.current(I,{id:F,data:B,previousData:z,meta:H}).then(function(q){var ee=q.data;return ee})}},h),{onMutate:function($){return fF(void 0,void 0,void 0,function(){var R;return pF(this,function(k){switch(k.label){case 0:return h.onMutate?[4,h.onMutate($)]:[3,2];case 1:return R=k.sent()||{},[2,sr({snapshot:b.current},R)];case 2:return[2,{snapshot:b.current}]}})})},onError:function($,R,k){if(R===void 0&&(R={}),(v.current==="optimistic"||v.current==="undoable")&&k.snapshot.forEach(function(I){var M=I[0],F=I[1];a.setQueryData(M,F)}),O.current)return O.current($,R,k);if(h.onError)return h.onError($,R,k)},onSuccess:function($,R,k){if(R===void 0&&(R={}),v.current==="pessimistic"){var I=R.resource,M=I===void 0?e:I,F=R.id,L=F===void 0?o:F;x({resource:M,id:L,data:$}),h.onSuccess&&!y.current&&h.onSuccess($,R,k)}},onSettled:function($,R,k,I){if(k===void 0&&(k={}),(v.current==="optimistic"||v.current==="undoable")&&I.snapshot.forEach(function(M){var F=M[0];a.invalidateQueries({queryKey:F})}),_.current)return _.current($,R,k,I);if(h.onSettled)return h.onSettled($,R,k,I)}})),P=function($,R,k){return $===void 0&&($=e),R===void 0&&(R={}),k===void 0&&(k={}),fF(void 0,void 0,void 0,function(){var I,M,F,L,B,V,H,W,z,q,ee,oe,J,we,le;return pF(this,function(ge){switch(ge.label){case 0:return I=k.mutationMode,M=k.returnPromise,F=M===void 0?h.returnPromise:M,L=k.onError,B=k.onSettled,V=k.onSuccess,H=hF(k,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),f?w.current=f(n.update.bind(n)):w.current=n.update,y.current=!!V,O.current=L,_.current=B,m.current=t,I&&(v.current=I),F&&v.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),v.current==="pessimistic"?F?[2,S.mutateAsync(sr({resource:$},R),sr({onSuccess:V},H))]:[2,S.mutate(sr({resource:$},R),sr({onSuccess:V},H))]:(W=R.id,z=W===void 0?o:W,q=R.data,ee=q===void 0?i:q,oe=R.meta,J=oe===void 0?l:oe,we=a.getQueryData([$,"getOne",{id:String(z),meta:J}]),le=[[$,"getOne",{id:String(z),meta:J}],[$,"getList"],[$,"getInfiniteList"],[$,"getMany"],[$,"getManyReference"]],b.current=le.reduce(function(pe,me){return pe.concat(a.getQueriesData({queryKey:me}))},[]),[4,Promise.all(b.current.map(function(pe){var me=pe[0];return a.cancelQueries({queryKey:me})}))]);case 1:return ge.sent(),x({resource:$,id:z,data:ee}),setTimeout(function(){V?V(sr(sr({},we),ee),sr({resource:$},R),{snapshot:b.current}):h.onSuccess&&!y.current&&h.onSuccess(sr(sr({},we),ee),sr({resource:$},R),{snapshot:b.current})},0),v.current==="optimistic"?[2,S.mutate(sr({resource:$},R))]:(uv.once("end",function(pe){var me=pe.isUndo;me?b.current.forEach(function(xe){var ne=xe[0],Te=xe[1];a.setQueryData(ne,Te)}):S.mutate(sr({resource:$},R))}),[2])}})})},C=d.useMemo(function(){return sr({isLoading:S.isPending},S)},[S]);return[Gt(P),C]},Qn=function(){return Qn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0?k(I):I},{updatedAt:R}),a.setQueriesData({queryKey:[P,"getManyReference"]},function(I){if(!I||!I.data)return I;var M=k(I.data),F=M.length0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0?R(k):k},{updatedAt:$}),a.setQueriesData({queryKey:[S,"getManyReference"]},function(k){if(!k||!k.data)return k;var I=R(k.data),M=I.length=0?i[s].apply(i,Up(Up([],h,!1),[f],!1)):o.apply(void 0,h)};return i.length>0?i[s].apply(i,Up(Up([],l,!1),[f],!1)):o.apply(void 0,l)}},[]),a=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},S0=function(){return S0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0;oe||w(typeof H=="string"?H:H.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof H=="string"?H:H instanceof Error||typeof H=="object"&&H!==null&&H.hasOwnProperty("message")?H.message:void 0}})}},P),{returnPromise:!0,getMutateWithMiddlewares:R})),M=I[0],F=I[1].isPending,L=d.useCallback(function(H,W){W===void 0&&(W={});var z=W.transform,q=W.meta,ee=EF(W,["transform","meta"]);return Promise.resolve(z?z(H):o?o(H):H).then(function(oe){return wF(void 0,void 0,void 0,function(){var J,we;return SF(this,function(le){switch(le.label){case 0:return le.trys.push([0,2,,3]),[4,M(c,{data:oe,meta:q??S},ee)];case 1:return le.sent(),[3,3];case 2:return J=le.sent(),(J instanceof DB||typeof J=="object"&&J!==null&&J.hasOwnProperty("body"))&&((we=J.body)===null||we===void 0?void 0:we.errors)!=null?[2,J.body.errors]:[3,3];case 3:return[2]}})})})},[M,S,c,o]),B=Zf(),V=b("ra.page.create",{name:B(c,1)});return{isFetching:!1,isLoading:!1,isPending:F,saving:F,defaultTitle:V,save:L,resource:c,record:_,redirect:v,registerMutationMiddleware:$,unregisterMutationMiddleware:k}},Vge=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=vc.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},Wge=function(e,t){return t?"edit":e?"show":"list"},FR=d.createContext(void 0);FR.displayName="RecordContext";var Kl=function(e){var t=e.children,r=e.value;return d.createElement(FR.Provider,{value:r},t)},LR=d.createContext(null);LR.displayName="CreateContext";var E0=function(){return E0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0;(!je||a!=="pessimistic")&&w(typeof ne=="string"?ne:ne.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ne=="string"?ne:ne instanceof Error||typeof ne=="object"&&ne!==null&&ne.hasOwnProperty("message")?ne.message:void 0}})}},k),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:F})),pe=ge[0],me=ge[1].isPending,xe=d.useCallback(function(ne,Te){var ve=Te===void 0?{}:Te,$e=ve.onSuccess,ye=ve.onError,je=ve.transform,Le=ve.meta;return Promise.resolve(je?je(ne,{previousData:le.previousData}):h?h(ne,{previousData:le.previousData}):ne).then(function(st){return CF(void 0,void 0,void 0,function(){var Xe,U;return OF(this,function(K){switch(K.label){case 0:return K.trys.push([0,2,,3]),[4,pe(v,{id:x,data:st,meta:Le??C},{onError:ye,onSuccess:$e})];case 1:return K.sent(),[3,3];case 2:return Xe=K.sent(),((U=Xe.body)===null||U===void 0?void 0:U.errors)!=null?[2,Xe.body.errors]:[3,3];case 3:return[2]}})})})},[x,C,v,h,pe,le.previousData]);return{defaultTitle:we,error:H,isFetching:z,isLoading:W,isPending:q,mutationMode:a,record:V,redirect:f,refetch:ee,registerMutationMiddleware:M,resource:v,save:xe,saving:me,unregisterMutationMiddleware:L}},Xge="list",Kt=function(e){var t=d.useContext(FR);return e&&e.record||t},ZB=function(e){var t=e.value,r=e.children;return t?d.createElement(Kl,{value:t},r):r},DR=d.createContext(null);DR.displayName="EditContext";var Yge=function(e){var t=e.children,r=e.value;return d.createElement(DR.Provider,{value:r},d.createElement(XB,{value:YB(r)},d.createElement(Kl,{value:r&&r.record},t)))},Jge=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a"u"?"undefined":rz(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var a in r){var o=r[a],i=this.check(o,a,a,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,a=[],o,i=0;i0&&!s.item&&o===void 0&&(o=s);a=a.concat(c)}}return a}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),pye=fye,hye=typeof window>"u"?Zo:window;function vye(e,t){if(e instanceof hye[t])return!0;switch(typeof e>"u"?"undefined":rz(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var Mw,RF;function mye(){return RF||(RF=1,Mw=function(t,r,n){var a=` +`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),i=t+t,l=t==='"'?function(c){return c.indexOf(r)>=0||c.indexOf(a)>=0||c.indexOf('"')>=0}:function(c){return c.indexOf(r)>=0||c.indexOf(a)>=0};return function(c){return n&&(c=""+c),c.replace&&(c=c.replace(o,i),(n||l(c))&&(c=t+c+t)),c}}),Mw}var gye=function(){function e(t,r){for(var n=0;n0&&(h=h.concat(Array(v).join(".").split("."))),n&&this._options.fillGaps&&(h=h.map(o)),a.push(h.join(this._options.rowDelimiter)),n=h}}catch(m){l=!0,c=m}finally{try{!i&&s.return&&s.return()}finally{if(l)throw c}}return a}},{key:"_parseArray",value:function(r,n){var a=this;this._headers=this._headers||[];var o=[],i=void 0,l=function(O){var _=a._headers.indexOf(O);return _===-1&&(a._headers.push(O),_=a._headers.indexOf(O)),_};i=function(O){var _=[],y=function(B){return _.push(B.map(function(V){return V??""}))},x=function(){return new Array(a._headers.length).fill(null)},S={},P=x(),C=!0,$=!1,R=void 0;try{for(var k=O[Symbol.iterator](),I;!(C=(I=k.next()).done);C=!0){var M=I.value,F=l(M.item);if(P[F]!=null&&(y(P),P=x()),S[F]=S[F]||0,a._options.fillTopRow&&S[F]<_.length){_[S[F]][F]=a._escape(M.value),S[F]+=1;continue}P[F]=a._escape(M.value),S[F]+=1}}catch(L){$=!0,R=L}finally{try{!C&&k.return&&k.return()}finally{if($)throw R}}P.length>0&&y(P),o=o.concat(a._checkRows(_))};var c=!0,s=!1,f=void 0;try{for(var h=r[Symbol.iterator](),v;!(c=(v=h.next()).done);c=!0){var m=v.value,b=a._handler.check(m,a._options.mainPathItem,m,r);i(b)}}catch(w){s=!0,f=w}finally{try{!c&&h.return&&h.return()}finally{if(s)throw f}}return!n&&a._options.includeHeaders&&o.unshift(this.headers),$F(o,a._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,a=[],o=[],i=void 0,l=[[],[]];i=function(h){var v=h.value||h.value===0?h.value.toString():n._options.undefinedString;if(v=n._escape(v),n._options.verticalOutput){var m=[h.item,v];a.push(m.join(n._options.rowDelimiter))}else l[0].push(h.item),l[1].push(v)};for(var c in r){var s="";this._options.mainPathItem&&(s=this._options.mainPathItem+this._options.headerPathString),o=this._handler.check(r[c],s+c,c,r),o.forEach(i)}return this._options.verticalOutput||(a.push(l[0].join(this._options.rowDelimiter)),a.push(l[1].join(this._options.rowDelimiter))),$F(a,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(a){return r._options.rename[r._options.headers.indexOf(a)]||a})),this._options.forceTextDelimiter&&(n=n.map(function(a){return""+r._options.textDelimiter+a+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),xye=_ye,wye=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},Sye=wye,jF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},IF=xye,TF=Sye,Eye=tz,Cye=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:Eye,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var a=Array.prototype.slice.call(arguments);t=a[0],r=a[1],n=a[2]}else if(arguments.length===2){var o=void 0,i=Array.prototype.slice.call(arguments);t=i[0],o=i[1],typeof o=="function"?n=o:(typeof o>"u"?"undefined":jF(o))==="object"&&(r=o)}else if(arguments.length===1){var l=Array.prototype.slice.call(arguments),c=l[0];if((typeof c>"u"?"undefined":jF(c))==="object"){var s=Object.keys(e),f=Object.keys(c),h=f.every(function(b){return s.includes(b)});f.length>0&&h?r=c:t=c}else t=c}else return new TF(new IF(e));var v=Object.assign({},e,r),m=new IF(v);return t?new Promise(function(b,w){m.parse(t,function(O,_){if(n)return n(O,_);if(O)return w(O);if(w)return b(_)})}):new TF};const Oye=bn(Cye);var Pye=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},Rye=function(e,t,r,n){return Oye(e,function(a,o){return Pye(o,n)})},$ye=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))},kye=function(e){return function(t,r,n){return e.getMany(n,{ids:$ye(t,r)}).then(function(a){var o=a.data;return o.reduce(function(i,l){return i[l.id]=l,i},{})})}},td=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||b(function(y){if(!Array.isArray(y))return td([],y,!0);var x=y.indexOf(_);return x>-1?td(td([],y.slice(0,x),!0),y.slice(x+1),!0):td(td([],y,!0),[_],!1)})},clearSelection:function(){w()}}},[b,w]);return[m,O]},Fw=[];function yo(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useRef(!1);d.useEffect(function(){return a.current=!0,function(){a.current=!1}},[]);var o=d.useCallback(function(i){if(a.current)return n(i)},[a,n]);return[r,o]}function v_(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=yo(!1),n=r[0],a=r[1];return d.useEffect(function(){a(!1);var o=setTimeout(function(){a(!0)},e);return function(){clearTimeout(o)}},[t,e,a]),n}function jye(){var e=d.useRef(!0);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var cs=function(){return cs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&S(k)},[m.search]);var I=d.useCallback(function(ee){C.current&&(P.current?P.current=aF(P.current,ee):(P.current=aF(k,ee),setTimeout(function(){P.current&&(a&&!v?_(P.current):a&&v?S(P.current):b({search:"?".concat(vc.stringify(cs(cs({},P.current),{filter:JSON.stringify(P.current.filter),displayedFilters:JSON.stringify(P.current.displayedFilters)})))},{state:{_scrollToTop:ee.type===BE}}),P.current=void 0)},0)))},AF(AF([],$,!0),[b],!1)),M=d.useCallback(function(ee){return I({type:jB,payload:ee})},[I]),F=d.useCallback(function(ee){return I({type:BE,payload:ee})},[I]),L=d.useCallback(function(ee){return I({type:IB,payload:ee})},[I]),B=k.filter||LF,V=k.displayedFilters||LF,H=jR(function(ee,oe){I({type:zE,payload:{filter:Bl(ee),displayedFilters:oe}})},r),W=d.useCallback(function(ee,oe,J){return oe===void 0&&(oe=void 0),J===void 0&&(J=!1),J?H(ee,oe):I({type:zE,payload:{filter:Bl(ee),displayedFilters:oe}})},[I]),z=d.useCallback(function(ee){I({type:AB,payload:ee})},[I]),q=d.useCallback(function(ee,oe){I({type:TB,payload:{filterName:ee,defaultValue:oe}})},[I]);return[cs(cs({filterValues:B,requestSignature:$},k),{displayedFilters:V}),{changeParams:I,setPage:F,setPerPage:L,setSort:M,setFilters:W,hideFilter:z,showFilter:q}]},MF=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Tye=function(e){var t=e.search,r=vc.parse(t);return MF(r,"filter"),MF(r,"displayedFilters"),r},Aye=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},Mye=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,i=Object.keys(t).length>0?t:Aye(r)?cs({},r):{filter:n||{}};return i.sort||(i.sort=a.field,i.order=a.order),i.perPage==null&&(i.perPage=o),i.page==null&&(i.page=1),cs(cs({},i),{page:FF(i.page,1),perPage:FF(i.perPage,10)})},FF=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},LF={},Fye={field:"id",order:nc},DF={},m_=d.createContext(null);m_.displayName="ListContext";var nz=d.createContext(void 0),Lye=function(e){return d.useMemo(function(){return h_(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};nz.displayName="ListFilterContext";var az=d.createContext(void 0),Dye=function(e){return d.useMemo(function(){return h_(e,["sort","setSort","resource"])},[e.sort,e.setSort])};az.displayName="ListSortContext";var NR=d.createContext(void 0);NR.displayName="ListPaginationContext";var Nye=function(e){return d.useMemo(function(){return h_(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},BR=function(e){var t=e.value,r=e.children;return d.createElement(m_.Provider,{value:t},d.createElement(nz.Provider,{value:Lye(t)},d.createElement(az.Provider,{value:Dye(t)},d.createElement(NR.Provider,{value:Nye(t)},r))))},ac=function(){return ac=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(F==null||(F==null?void 0:F.length)===0)){$.setPage(1);return}if(B!=null){var le=Math.ceil(B/C.perPage)||1;!z&&C.page>le&&$.setPage(le)}},[z,C.page,C.perPage,F,$,B]);var oe=d.useMemo(function(){return{field:C.sort,order:C.order}},[C.sort,C.order]),J=Zf(),we=x("ra.page.list",{name:J(O,2)});return{sort:oe,data:F,meta:V,defaultTitle:we,displayedFilters:C.displayedFilters,error:H,exporter:i,filter:l,filterValues:C.filterValues,hideFilter:$.hideFilter,isFetching:z,isLoading:W,isPending:q,onSelect:I.select,onToggleItem:I.toggle,onUnselectItems:I.clearSelection,page:C.page,perPage:C.perPage,refetch:ee,resource:O,selectedIds:k,setFilters:$.setFilters,setPage:$.setPage,setPerPage:$.setPerPage,setSort:$.setSort,showFilter:$.showFilter,total:B,hasNextPage:L?L.hasNextPage:B!=null?C.page*C.perPage1}},Uye={field:"id",order:nc},Vye=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],cv=function(e){return Object.keys(e).filter(function(t){return!Vye.includes(t)}).reduce(function(t,r){var n;return ac(ac({},t),(n={},n[r]=e[r],n))},{})},Wye=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a-1?r?[]:Pg(Pg([],c.slice(0,s),!0),c.slice(s+1),!0):r?[t]:Pg(Pg([],c,!0),[t],!1)})},[o,t,r]);return[i,l]},Gye=function(e,t){var r=$n("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(l){return t.some(function(c){return c==l})}):!1,i=d.useCallback(function(){var l=n.filter(function(c){return!t.some(function(s){return s==c})});a(o?l:l.concat(t))},[n,a,o,t]);return[o,i]},kd=function(){return kd=Object.assign||function(e){for(var t,r=1,n=arguments.length;rqt(ue,J.field)?J.order==="ASC"?1:-1:qt(ie,J.field)1,hideFilter:Le,isFetching:P,isLoading:R,isPending:M,onSelect:me.select,onToggleItem:me.toggle,onUnselectItems:me.clearSelection,page:W,perPage:q,resource:"",refetch:Kye,selectedIds:pe,setFilters:Xe,setPage:z,setPerPage:ee,setSort:le,showFilter:st,total:B==null?void 0:B.total}},Qye={},Hn=function(){var e=d.useContext(m_);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},Xye=p_,Yye=Hf,Jye=wB,Zye=Yf,iz=Object.prototype,e0e=iz.hasOwnProperty,t0e=Xye(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&Jye(t[0],t[1],a)&&(n=1);++r1,setSort:B,showFilter:pe,total:ve}},i0e={},Gv=e=>e.type==="checkbox",jd=e=>e instanceof Date,na=e=>e==null;const cz=e=>typeof e=="object";var rn=e=>!na(e)&&!Array.isArray(e)&&cz(e)&&!jd(e),dz=e=>rn(e)&&e.target?Gv(e.target)?e.target.checked:e.target.value:e,s0e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,fz=(e,t)=>e.has(s0e(t)),l0e=e=>{const t=e.constructor&&e.constructor.prototype;return rn(t)&&t.hasOwnProperty("isPrototypeOf")},UR=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function un(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(UR&&(e instanceof Blob||e instanceof FileList))&&(r||rn(e)))if(t=r?[]:{},!r&&!l0e(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=un(e[n]));else return e;return t}var Kv=e=>Array.isArray(e)?e.filter(Boolean):[],vr=e=>e===void 0,Ne=(e,t,r)=>{if(!t||!rn(e))return r;const n=Kv(t.split(/[,[\].]+?/)).reduce((a,o)=>na(a)?a:a[o],e);return vr(n)||n===e?vr(e[t])?r:e[t]:n},po=e=>typeof e=="boolean",VR=e=>/^\w*$/.test(e),pz=e=>Kv(e.replace(/["|']|\]/g,"").split(/\.|\[/)),lr=(e,t,r)=>{let n=-1;const a=VR(t)?[t]:pz(t),o=a.length,i=o-1;for(;++nke.useContext(hz),vz=e=>{const{children:t,...r}=e;return ke.createElement(hz.Provider,{value:r},t)};var mz=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==_o.all&&(t._proxyFormState[i]=!n||_o.all),r&&(r[i]=!0),e[i]}});return a},ea=e=>rn(e)&&!Object.keys(e).length,gz=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return ea(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||_o.all))},wa=e=>Array.isArray(e)?e:[e],yz=(e,t,r)=>!e||!t||e===t||wa(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function g_(e){const t=ke.useRef(e);t.current=e,ke.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Qv(e){const t=Mo(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,l]=ke.useState(r._formState),c=ke.useRef(!0),s=ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=ke.useRef(a);return f.current=a,g_({disabled:n,next:h=>c.current&&yz(f.current,h.name,o)&&gz(h,s.current,r._updateFormState)&&l({...r._formState,...h}),subject:r._subjects.state}),ke.useEffect(()=>(c.current=!0,s.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),mz(i,r,s.current,!1)}var Ci=e=>typeof e=="string",bz=(e,t,r,n,a)=>Ci(e)?(n&&t.watch.add(e),Ne(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),Ne(r,o))):(n&&(t.watchAll=!0),r);function _z(e){const t=Mo(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},l=ke.useRef(n);l.current=n,g_({disabled:o,subject:r._subjects.values,next:f=>{yz(l.current,f.name,i)&&s(un(bz(l.current,r._names,f.values||r._formValues,!1,a)))}});const[c,s]=ke.useState(r._getWatch(n,a));return ke.useEffect(()=>r._removeUnmounted()),c}function u0e(e){const t=Mo(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=fz(a._names.array,r),l=_z({control:a,name:r,defaultValue:Ne(a._formValues,r,Ne(a._defaultValues,r,e.defaultValue)),exact:!0}),c=Qv({control:a,name:r,exact:!0}),s=ke.useRef(a.register(r,{...e.rules,value:l,...po(e.disabled)?{disabled:e.disabled}:{}}));return ke.useEffect(()=>{const f=a._options.shouldUnregister||o,h=(v,m)=>{const b=Ne(a._fields,v);b&&b._f&&(b._f.mount=m)};if(h(r,!0),f){const v=un(Ne(a._options.defaultValues,r));lr(a._defaultValues,r,v),vr(Ne(a._formValues,r))&&lr(a._formValues,r,v)}return()=>{(i?f&&!a._state.action:f)?a.unregister(r):h(r,!1)}},[r,a,i,o]),ke.useEffect(()=>{Ne(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:Ne(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:l,...po(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:ke.useCallback(f=>s.current.onChange({target:{value:dz(f),name:r},type:C0.CHANGE}),[r]),onBlur:ke.useCallback(()=>s.current.onBlur({target:{value:Ne(a._formValues,r),name:r},type:C0.BLUR}),[r,a]),ref:ke.useCallback(f=>{const h=Ne(a._fields,r);h&&f&&(h._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:v=>f.setCustomValidity(v),reportValidity:()=>f.reportValidity()})},[a._fields,r])},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ne(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ne(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ne(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Ne(c.validatingFields,r)},error:{enumerable:!0,get:()=>Ne(c.errors,r)}})}}var c0e=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},qs=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=(Math.random()*16+e)%16|0;return(t=="x"?r:r&3|8).toString(16)})},Dw=(e,t,r={})=>r.shouldFocus||vr(r.shouldFocus)?r.focusName||`${e}.${vr(r.focusIndex)?t:r.focusIndex}.`:"",Eh=e=>({isOnSubmit:!e||e===_o.onSubmit,isOnBlur:e===_o.onBlur,isOnChange:e===_o.onChange,isOnAll:e===_o.all,isOnTouch:e===_o.onTouched}),GE=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Ud=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=Ne(e,a);if(o){const{_f:i,...l}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!n)return!0;if(i.ref&&t(i.ref,i.name)&&!n)return!0;if(Ud(l,t))break}else if(rn(l)&&Ud(l,t))break}}};var xz=(e,t,r)=>{const n=wa(Ne(e,r));return lr(n,"root",t[r]),lr(e,r,n),e},WR=e=>e.type==="file",ds=e=>typeof e=="function",O0=e=>{if(!UR)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},vy=e=>Ci(e),HR=e=>e.type==="radio",P0=e=>e instanceof RegExp;const BF={value:!1,isValid:!1},zF={value:!0,isValid:!0};var wz=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!vr(e[0].attributes.value)?vr(e[0].value)||e[0].value===""?zF:{value:e[0].value,isValid:!0}:zF:BF}return BF};const UF={isValid:!1,value:null};var Sz=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,UF):UF;function VF(e,t,r="validate"){if(vy(e)||Array.isArray(e)&&e.every(vy)||po(e)&&!e)return{type:r,message:vy(e)?e:"",ref:t}}var rd=e=>rn(e)&&!P0(e)?e:{value:e,message:""},KE=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:l,maxLength:c,minLength:s,min:f,max:h,pattern:v,validate:m,name:b,valueAsNumber:w,mount:O,disabled:_}=e._f,y=Ne(t,b);if(!O||_)return{};const x=i?i[0]:o,S=F=>{n&&x.reportValidity&&(x.setCustomValidity(po(F)?"":F||""),x.reportValidity())},P={},C=HR(o),$=Gv(o),R=C||$,k=(w||WR(o))&&vr(o.value)&&vr(y)||O0(o)&&o.value===""||y===""||Array.isArray(y)&&!y.length,I=c0e.bind(null,b,r,P),M=(F,L,B,V=Zi.maxLength,H=Zi.minLength)=>{const W=F?L:B;P[b]={type:F?V:H,message:W,ref:o,...I(F?V:H,W)}};if(a?!Array.isArray(y)||!y.length:l&&(!R&&(k||na(y))||po(y)&&!y||$&&!wz(i).isValid||C&&!Sz(i).isValid)){const{value:F,message:L}=vy(l)?{value:!!l,message:l}:rd(l);if(F&&(P[b]={type:Zi.required,message:L,ref:x,...I(Zi.required,L)},!r))return S(L),P}if(!k&&(!na(f)||!na(h))){let F,L;const B=rd(h),V=rd(f);if(!na(y)&&!isNaN(y)){const H=o.valueAsNumber||y&&+y;na(B.value)||(F=H>B.value),na(V.value)||(L=Hnew Date(new Date().toDateString()+" "+ee),z=o.type=="time",q=o.type=="week";Ci(B.value)&&y&&(F=z?W(y)>W(B.value):q?y>B.value:H>new Date(B.value)),Ci(V.value)&&y&&(L=z?W(y)+F.value,V=!na(L.value)&&y.length<+L.value;if((B||V)&&(M(B,F.message,L.message),!r))return S(P[b].message),P}if(v&&!k&&Ci(y)){const{value:F,message:L}=rd(v);if(P0(F)&&!y.match(F)&&(P[b]={type:Zi.pattern,message:L,ref:o,...I(Zi.pattern,L)},!r))return S(L),P}if(m){if(ds(m)){const F=await m(y,t),L=VF(F,x);if(L&&(P[b]={...L,...I(Zi.validate,L.message)},!r))return S(L.message),P}else if(rn(m)){let F={};for(const L in m){if(!ea(F)&&!r)break;const B=VF(await m[L](y,t),x,L);B&&(F={...B,...I(L,B.message)},S(B.message),r&&(P[b]=F))}if(!ea(F)&&(P[b]={ref:x,...F},!r))return P}}return S(!0),P},Nw=(e,t)=>[...e,...wa(t)],Bw=e=>Array.isArray(e)?e.map(()=>{}):void 0;function zw(e,t,r){return[...e.slice(0,t),...wa(r),...e.slice(t)]}var Uw=(e,t,r)=>Array.isArray(e)?(vr(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],Vw=(e,t)=>[...wa(t),...wa(e)];function d0e(e,t){let r=0;const n=[...e];for(const a of t)n.splice(a-r,1),r++;return Kv(n).length?n:[]}var Ww=(e,t)=>vr(t)?[]:d0e(e,wa(t).sort((r,n)=>r-n)),Hw=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function f0e(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function h0e(e){const t=Mo(),{control:r=t.control,name:n,keyName:a="id",shouldUnregister:o}=e,[i,l]=ke.useState(r._getFieldArray(n)),c=ke.useRef(r._getFieldArray(n).map(qs)),s=ke.useRef(i),f=ke.useRef(n),h=ke.useRef(!1);f.current=n,s.current=i,r._names.array.add(n),e.rules&&r.register(n,e.rules),g_({next:({values:P,name:C})=>{if(C===f.current||!C){const $=Ne(P,f.current);Array.isArray($)&&(l($),c.current=$.map(qs))}},subject:r._subjects.array});const v=ke.useCallback(P=>{h.current=!0,r._updateFieldArray(n,P)},[r,n]),m=(P,C)=>{const $=wa(un(P)),R=Nw(r._getFieldArray(n),$);r._names.focus=Dw(n,R.length-1,C),c.current=Nw(c.current,$.map(qs)),v(R),l(R),r._updateFieldArray(n,R,Nw,{argA:Bw(P)})},b=(P,C)=>{const $=wa(un(P)),R=Vw(r._getFieldArray(n),$);r._names.focus=Dw(n,0,C),c.current=Vw(c.current,$.map(qs)),v(R),l(R),r._updateFieldArray(n,R,Vw,{argA:Bw(P)})},w=P=>{const C=Ww(r._getFieldArray(n),P);c.current=Ww(c.current,P),v(C),l(C),r._updateFieldArray(n,C,Ww,{argA:P})},O=(P,C,$)=>{const R=wa(un(C)),k=zw(r._getFieldArray(n),P,R);r._names.focus=Dw(n,P,$),c.current=zw(c.current,P,R.map(qs)),v(k),l(k),r._updateFieldArray(n,k,zw,{argA:P,argB:Bw(C)})},_=(P,C)=>{const $=r._getFieldArray(n);Hw($,P,C),Hw(c.current,P,C),v($),l($),r._updateFieldArray(n,$,Hw,{argA:P,argB:C},!1)},y=(P,C)=>{const $=r._getFieldArray(n);Uw($,P,C),Uw(c.current,P,C),v($),l($),r._updateFieldArray(n,$,Uw,{argA:P,argB:C},!1)},x=(P,C)=>{const $=un(C),R=WF(r._getFieldArray(n),P,$);c.current=[...R].map((k,I)=>!k||I===P?qs():c.current[I]),v(R),l([...R]),r._updateFieldArray(n,R,WF,{argA:P,argB:$},!0,!1)},S=P=>{const C=wa(un(P));c.current=C.map(qs),v([...C]),l([...C]),r._updateFieldArray(n,[...C],$=>$,{},!0,!1)};return ke.useEffect(()=>{if(r._state.action=!1,GE(n,r._names)&&r._subjects.state.next({...r._formState}),h.current&&(!Eh(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(P=>{const C=Ne(P.errors,n),$=Ne(r._formState.errors,n);($?!C&&$.type||C&&($.type!==C.type||$.message!==C.message):C&&C.type)&&(C?lr(r._formState.errors,n,C):Jr(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const P=Ne(r._fields,n);P&&P._f&&!(Eh(r._options.reValidateMode).isOnSubmit&&Eh(r._options.mode).isOnSubmit)&&KE(P,r._formValues,r._options.criteriaMode===_o.all,r._options.shouldUseNativeValidation,!0).then(C=>!ea(C)&&r._subjects.state.next({errors:xz(r._formState.errors,C,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&Ud(r._fields,(P,C)=>{if(r._names.focus&&C.startsWith(r._names.focus)&&P.focus)return P.focus(),1}),r._names.focus="",r._updateValid(),h.current=!1},[i,n,r]),ke.useEffect(()=>(!Ne(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)}),[n,r,a,o]),{swap:ke.useCallback(_,[v,n,r]),move:ke.useCallback(y,[v,n,r]),prepend:ke.useCallback(b,[v,n,r]),append:ke.useCallback(m,[v,n,r]),remove:ke.useCallback(w,[v,n,r]),insert:ke.useCallback(O,[v,n,r]),update:ke.useCallback(x,[v,n,r]),replace:ke.useCallback(S,[v,n,r]),fields:ke.useMemo(()=>i.map((P,C)=>({...P,[a]:c.current[C]||qs()})),[i,a])}}var qw=()=>{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},R0=e=>na(e)||!cz(e);function il(e,t){if(R0(e)||R0(t))return e===t;if(jd(e)&&jd(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(jd(o)&&jd(i)||rn(o)&&rn(i)||Array.isArray(o)&&Array.isArray(i)?!il(o,i):o!==i)return!1}}return!0}var Ez=e=>e.type==="select-multiple",v0e=e=>HR(e)||Gv(e),Gw=e=>O0(e)&&e.isConnected,Cz=e=>{for(const t in e)if(ds(e[t]))return!0;return!1};function $0(e,t={}){const r=Array.isArray(e);if(rn(e)||r)for(const n in e)Array.isArray(e[n])||rn(e[n])&&!Cz(e[n])?(t[n]=Array.isArray(e[n])?[]:{},$0(e[n],t[n])):na(e[n])||(t[n]=!0);return t}function Oz(e,t,r){const n=Array.isArray(e);if(rn(e)||n)for(const a in e)Array.isArray(e[a])||rn(e[a])&&!Cz(e[a])?vr(t)||R0(r[a])?r[a]=Array.isArray(e[a])?$0(e[a],[]):{...$0(e[a])}:Oz(e[a],na(t)?{}:t[a],r[a]):r[a]=!il(e[a],t[a]);return r}var Rg=(e,t)=>Oz(e,t,$0(t)),Pz=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>vr(e)?e:t?e===""?NaN:e&&+e:r&&Ci(e)?new Date(e):n?n(e):e;function Kw(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return WR(t)?t.files:HR(t)?Sz(e.refs).value:Ez(t)?[...t.selectedOptions].map(({value:r})=>r):Gv(t)?wz(e.refs).value:Pz(vr(t.value)?e.ref.value:t.value,e)}var m0e=(e,t,r,n)=>{const a={};for(const o of e){const i=Ne(t,o);i&&lr(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},Vp=e=>vr(e)?e:P0(e)?e.source:rn(e)?P0(e.value)?e.value.source:e.value:e;const HF="AsyncFunction";var g0e=e=>(!e||!e.validate)&&!!(ds(e.validate)&&e.validate.constructor.name===HF||rn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===HF)),y0e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function qF(e,t,r){const n=Ne(e,r);if(n||VR(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=Ne(t,o),l=Ne(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(l&&l.type)return{name:o,error:l};a.pop()}return{name:r}}var b0e=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,_0e=(e,t)=>!Kv(Ne(e,t)).length&&Jr(e,t);const x0e={mode:_o.onSubmit,reValidateMode:_o.onChange,shouldFocusError:!0};function w0e(e={}){let t={...x0e,...e},r={submitCount:0,isDirty:!1,isLoading:ds(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=rn(t.defaultValues)||rn(t.values)?un(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:un(a),i={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,s=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:qw(),array:qw(),state:qw()},v=Eh(t.mode),m=Eh(t.reValidateMode),b=t.criteriaMode===_o.all,w=U=>K=>{clearTimeout(s),s=setTimeout(U,K)},O=async U=>{if(f.isValid||U){const K=t.resolver?ea((await R()).errors):await I(n,!0);K!==r.isValid&&h.state.next({isValid:K})}},_=(U,K)=>{(f.isValidating||f.validatingFields)&&((U||Array.from(l.mount)).forEach(Z=>{Z&&(K?lr(r.validatingFields,Z,K):Jr(r.validatingFields,Z))}),h.state.next({validatingFields:r.validatingFields,isValidating:!ea(r.validatingFields)}))},y=(U,K=[],Z,ie,ue=!0,ce=!0)=>{if(ie&&Z){if(i.action=!0,ce&&Array.isArray(Ne(n,U))){const Ee=Z(Ne(n,U),ie.argA,ie.argB);ue&&lr(n,U,Ee)}if(ce&&Array.isArray(Ne(r.errors,U))){const Ee=Z(Ne(r.errors,U),ie.argA,ie.argB);ue&&lr(r.errors,U,Ee),_0e(r.errors,U)}if(f.touchedFields&&ce&&Array.isArray(Ne(r.touchedFields,U))){const Ee=Z(Ne(r.touchedFields,U),ie.argA,ie.argB);ue&&lr(r.touchedFields,U,Ee)}f.dirtyFields&&(r.dirtyFields=Rg(a,o)),h.state.next({name:U,isDirty:F(U,K),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else lr(o,U,K)},x=(U,K)=>{lr(r.errors,U,K),h.state.next({errors:r.errors})},S=U=>{r.errors=U,h.state.next({errors:r.errors,isValid:!1})},P=(U,K,Z,ie)=>{const ue=Ne(n,U);if(ue){const ce=Ne(o,U,vr(Z)?Ne(a,U):Z);vr(ce)||ie&&ie.defaultChecked||K?lr(o,U,K?ce:Kw(ue._f)):V(U,ce),i.mount&&O()}},C=(U,K,Z,ie,ue)=>{let ce=!1,Ee=!1;const Ae={name:U},ft=!!(Ne(n,U)&&Ne(n,U)._f&&Ne(n,U)._f.disabled);if(!Z||ie){f.isDirty&&(Ee=r.isDirty,r.isDirty=Ae.isDirty=F(),ce=Ee!==Ae.isDirty);const De=ft||il(Ne(a,U),K);Ee=!!(!ft&&Ne(r.dirtyFields,U)),De||ft?Jr(r.dirtyFields,U):lr(r.dirtyFields,U,!0),Ae.dirtyFields=r.dirtyFields,ce=ce||f.dirtyFields&&Ee!==!De}if(Z){const De=Ne(r.touchedFields,U);De||(lr(r.touchedFields,U,Z),Ae.touchedFields=r.touchedFields,ce=ce||f.touchedFields&&De!==Z)}return ce&&ue&&h.state.next(Ae),ce?Ae:{}},$=(U,K,Z,ie)=>{const ue=Ne(r.errors,U),ce=f.isValid&&po(K)&&r.isValid!==K;if(e.delayError&&Z?(c=w(()=>x(U,Z)),c(e.delayError)):(clearTimeout(s),c=null,Z?lr(r.errors,U,Z):Jr(r.errors,U)),(Z?!il(ue,Z):ue)||!ea(ie)||ce){const Ee={...ie,...ce&&po(K)?{isValid:K}:{},errors:r.errors,name:U};r={...r,...Ee},h.state.next(Ee)}},R=async U=>{_(U,!0);const K=await t.resolver(o,t.context,m0e(U||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return _(U),K},k=async U=>{const{errors:K}=await R(U);if(U)for(const Z of U){const ie=Ne(K,Z);ie?lr(r.errors,Z,ie):Jr(r.errors,Z)}else r.errors=K;return K},I=async(U,K,Z={valid:!0})=>{for(const ie in U){const ue=U[ie];if(ue){const{_f:ce,...Ee}=ue;if(ce){const Ae=l.array.has(ce.name),ft=ue._f&&g0e(ue._f);ft&&f.validatingFields&&_([ie],!0);const De=await KE(ue,o,b,t.shouldUseNativeValidation&&!K,Ae);if(ft&&f.validatingFields&&_([ie]),De[ce.name]&&(Z.valid=!1,K))break;!K&&(Ne(De,ce.name)?Ae?xz(r.errors,De,ce.name):lr(r.errors,ce.name,De[ce.name]):Jr(r.errors,ce.name))}!ea(Ee)&&await I(Ee,K,Z)}}return Z.valid},M=()=>{for(const U of l.unMount){const K=Ne(n,U);K&&(K._f.refs?K._f.refs.every(Z=>!Gw(Z)):!Gw(K._f.ref))&&pe(U)}l.unMount=new Set},F=(U,K)=>(U&&K&&lr(o,U,K),!il(oe(),a)),L=(U,K,Z)=>bz(U,l,{...i.mount?o:vr(K)?a:Ci(U)?{[U]:K}:K},Z,K),B=U=>Kv(Ne(i.mount?o:a,U,e.shouldUnregister?Ne(a,U,[]):[])),V=(U,K,Z={})=>{const ie=Ne(n,U);let ue=K;if(ie){const ce=ie._f;ce&&(!ce.disabled&&lr(o,U,Pz(K,ce)),ue=O0(ce.ref)&&na(K)?"":K,Ez(ce.ref)?[...ce.ref.options].forEach(Ee=>Ee.selected=ue.includes(Ee.value)):ce.refs?Gv(ce.ref)?ce.refs.length>1?ce.refs.forEach(Ee=>(!Ee.defaultChecked||!Ee.disabled)&&(Ee.checked=Array.isArray(ue)?!!ue.find(Ae=>Ae===Ee.value):ue===Ee.value)):ce.refs[0]&&(ce.refs[0].checked=!!ue):ce.refs.forEach(Ee=>Ee.checked=Ee.value===ue):WR(ce.ref)?ce.ref.value="":(ce.ref.value=ue,ce.ref.type||h.values.next({name:U,values:{...o}})))}(Z.shouldDirty||Z.shouldTouch)&&C(U,ue,Z.shouldTouch,Z.shouldDirty,!0),Z.shouldValidate&&ee(U)},H=(U,K,Z)=>{for(const ie in K){const ue=K[ie],ce=`${U}.${ie}`,Ee=Ne(n,ce);(l.array.has(U)||!R0(ue)||Ee&&!Ee._f)&&!jd(ue)?H(ce,ue,Z):V(ce,ue,Z)}},W=(U,K,Z={})=>{const ie=Ne(n,U),ue=l.array.has(U),ce=un(K);lr(o,U,ce),ue?(h.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&Z.shouldDirty&&h.state.next({name:U,dirtyFields:Rg(a,o),isDirty:F(U,ce)})):ie&&!ie._f&&!na(ce)?H(U,ce,Z):V(U,ce,Z),GE(U,l)&&h.state.next({...r}),h.values.next({name:i.mount?U:void 0,values:{...o}})},z=async U=>{i.mount=!0;const K=U.target;let Z=K.name,ie=!0;const ue=Ne(n,Z),ce=()=>K.type?Kw(ue._f):dz(U),Ee=Ae=>{ie=Number.isNaN(Ae)||il(Ae,Ne(o,Z,Ae))};if(ue){let Ae,ft;const De=ce(),Ze=U.type===C0.BLUR||U.type===C0.FOCUS_OUT,Ve=!y0e(ue._f)&&!t.resolver&&!Ne(r.errors,Z)&&!ue._f.deps||b0e(Ze,Ne(r.touchedFields,Z),r.isSubmitted,m,v),_t=GE(Z,l,Ze);lr(o,Z,De),Ze?(ue._f.onBlur&&ue._f.onBlur(U),c&&c(0)):ue._f.onChange&&ue._f.onChange(U);const Wt=C(Z,De,Ze,!1),Ct=!ea(Wt)||_t;if(!Ze&&h.values.next({name:Z,type:U.type,values:{...o}}),Ve)return f.isValid&&(e.mode==="onBlur"?Ze&&O():O()),Ct&&h.state.next({name:Z,..._t?{}:Wt});if(!Ze&&_t&&h.state.next({...r}),t.resolver){const{errors:qe}=await R([Z]);if(Ee(De),ie){const pt=qF(r.errors,n,Z),Me=qF(qe,n,pt.name||Z);Ae=Me.error,Z=Me.name,ft=ea(qe)}}else _([Z],!0),Ae=(await KE(ue,o,b,t.shouldUseNativeValidation))[Z],_([Z]),Ee(De),ie&&(Ae?ft=!1:f.isValid&&(ft=await I(n,!0)));ie&&(ue._f.deps&&ee(ue._f.deps),$(Z,ft,Ae,Wt))}},q=(U,K)=>{if(Ne(r.errors,K)&&U.focus)return U.focus(),1},ee=async(U,K={})=>{let Z,ie;const ue=wa(U);if(t.resolver){const ce=await k(vr(U)?U:ue);Z=ea(ce),ie=U?!ue.some(Ee=>Ne(ce,Ee)):Z}else U?(ie=(await Promise.all(ue.map(async ce=>{const Ee=Ne(n,ce);return await I(Ee&&Ee._f?{[ce]:Ee}:Ee)}))).every(Boolean),!(!ie&&!r.isValid)&&O()):ie=Z=await I(n);return h.state.next({...!Ci(U)||f.isValid&&Z!==r.isValid?{}:{name:U},...t.resolver||!U?{isValid:Z}:{},errors:r.errors}),K.shouldFocus&&!ie&&Ud(n,q,U?ue:l.mount),ie},oe=U=>{const K={...i.mount?o:a};return vr(U)?K:Ci(U)?Ne(K,U):U.map(Z=>Ne(K,Z))},J=(U,K)=>({invalid:!!Ne((K||r).errors,U),isDirty:!!Ne((K||r).dirtyFields,U),error:Ne((K||r).errors,U),isValidating:!!Ne(r.validatingFields,U),isTouched:!!Ne((K||r).touchedFields,U)}),we=U=>{U&&wa(U).forEach(K=>Jr(r.errors,K)),h.state.next({errors:U?r.errors:{}})},le=(U,K,Z)=>{const ie=(Ne(n,U,{_f:{}})._f||{}).ref,ue=Ne(r.errors,U)||{},{ref:ce,message:Ee,type:Ae,...ft}=ue;lr(r.errors,U,{...ft,...K,ref:ie}),h.state.next({name:U,errors:r.errors,isValid:!1}),Z&&Z.shouldFocus&&ie&&ie.focus&&ie.focus()},ge=(U,K)=>ds(U)?h.values.subscribe({next:Z=>U(L(void 0,K),Z)}):L(U,K,!0),pe=(U,K={})=>{for(const Z of U?wa(U):l.mount)l.mount.delete(Z),l.array.delete(Z),K.keepValue||(Jr(n,Z),Jr(o,Z)),!K.keepError&&Jr(r.errors,Z),!K.keepDirty&&Jr(r.dirtyFields,Z),!K.keepTouched&&Jr(r.touchedFields,Z),!K.keepIsValidating&&Jr(r.validatingFields,Z),!t.shouldUnregister&&!K.keepDefaultValue&&Jr(a,Z);h.values.next({values:{...o}}),h.state.next({...r,...K.keepDirty?{isDirty:F()}:{}}),!K.keepIsValid&&O()},me=({disabled:U,name:K,field:Z,fields:ie,value:ue})=>{if(po(U)&&i.mount||U){const ce=U?void 0:vr(ue)?Kw(Z?Z._f:Ne(ie,K)._f):ue;lr(o,K,ce),C(K,ce,!1,!1,!0)}},xe=(U,K={})=>{let Z=Ne(n,U);const ie=po(K.disabled)||po(e.disabled);return lr(n,U,{...Z||{},_f:{...Z&&Z._f?Z._f:{ref:{name:U}},name:U,mount:!0,...K}}),l.mount.add(U),Z?me({field:Z,disabled:po(K.disabled)?K.disabled:e.disabled,name:U,value:K.value}):P(U,!0,K.value),{...ie?{disabled:K.disabled||e.disabled}:{},...t.progressive?{required:!!K.required,min:Vp(K.min),max:Vp(K.max),minLength:Vp(K.minLength),maxLength:Vp(K.maxLength),pattern:Vp(K.pattern)}:{},name:U,onChange:z,onBlur:z,ref:ue=>{if(ue){xe(U,K),Z=Ne(n,U);const ce=vr(ue.value)&&ue.querySelectorAll&&ue.querySelectorAll("input,select,textarea")[0]||ue,Ee=v0e(ce),Ae=Z._f.refs||[];if(Ee?Ae.find(ft=>ft===ce):ce===Z._f.ref)return;lr(n,U,{_f:{...Z._f,...Ee?{refs:[...Ae.filter(Gw),ce,...Array.isArray(Ne(a,U))?[{}]:[]],ref:{type:ce.type,name:U}}:{ref:ce}}}),P(U,!1,void 0,ce)}else Z=Ne(n,U,{}),Z._f&&(Z._f.mount=!1),(t.shouldUnregister||K.shouldUnregister)&&!(fz(l.array,U)&&i.action)&&l.unMount.add(U)}}},ne=()=>t.shouldFocusError&&Ud(n,q,l.mount),Te=U=>{po(U)&&(h.state.next({disabled:U}),Ud(n,(K,Z)=>{const ie=Ne(n,Z);ie&&(K.disabled=ie._f.disabled||U,Array.isArray(ie._f.refs)&&ie._f.refs.forEach(ue=>{ue.disabled=ie._f.disabled||U}))},0,!1))},ve=(U,K)=>async Z=>{let ie;Z&&(Z.preventDefault&&Z.preventDefault(),Z.persist&&Z.persist());let ue=un(o);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:ce,values:Ee}=await R();r.errors=ce,ue=Ee}else await I(n);if(Jr(r.errors,"root"),ea(r.errors)){h.state.next({errors:{}});try{await U(ue,Z)}catch(ce){ie=ce}}else K&&await K({...r.errors},Z),ne(),setTimeout(ne);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ea(r.errors)&&!ie,submitCount:r.submitCount+1,errors:r.errors}),ie)throw ie},$e=(U,K={})=>{Ne(n,U)&&(vr(K.defaultValue)?W(U,un(Ne(a,U))):(W(U,K.defaultValue),lr(a,U,un(K.defaultValue))),K.keepTouched||Jr(r.touchedFields,U),K.keepDirty||(Jr(r.dirtyFields,U),r.isDirty=K.defaultValue?F(U,un(Ne(a,U))):F()),K.keepError||(Jr(r.errors,U),f.isValid&&O()),h.state.next({...r}))},ye=(U,K={})=>{const Z=U?un(U):a,ie=un(Z),ue=ea(U),ce=ue?a:ie;if(K.keepDefaultValues||(a=Z),!K.keepValues){if(K.keepDirtyValues)for(const Ee of l.mount)Ne(r.dirtyFields,Ee)?lr(ce,Ee,Ne(o,Ee)):W(Ee,Ne(ce,Ee));else{if(UR&&vr(U))for(const Ee of l.mount){const Ae=Ne(n,Ee);if(Ae&&Ae._f){const ft=Array.isArray(Ae._f.refs)?Ae._f.refs[0]:Ae._f.ref;if(O0(ft)){const De=ft.closest("form");if(De){De.reset();break}}}}n={}}o=e.shouldUnregister?K.keepDefaultValues?un(a):{}:un(ce),h.array.next({values:{...ce}}),h.values.next({values:{...ce}})}l={mount:K.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!f.isValid||!!K.keepIsValid||!!K.keepDirtyValues,i.watch=!!e.shouldUnregister,h.state.next({submitCount:K.keepSubmitCount?r.submitCount:0,isDirty:ue?!1:K.keepDirty?r.isDirty:!!(K.keepDefaultValues&&!il(U,a)),isSubmitted:K.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ue?{}:K.keepDirtyValues?K.keepDefaultValues&&o?Rg(a,o):r.dirtyFields:K.keepDefaultValues&&U?Rg(a,U):K.keepDirty?r.dirtyFields:{},touchedFields:K.keepTouched?r.touchedFields:{},errors:K.keepErrors?r.errors:{},isSubmitSuccessful:K.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},je=(U,K)=>ye(ds(U)?U(o):U,K);return{control:{register:xe,unregister:pe,getFieldState:J,handleSubmit:ve,setError:le,_executeSchema:R,_getWatch:L,_getDirty:F,_updateValid:O,_removeUnmounted:M,_updateFieldArray:y,_updateDisabledField:me,_getFieldArray:B,_reset:ye,_resetDefaultValues:()=>ds(t.defaultValues)&&t.defaultValues().then(U=>{je(U,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_disableForm:Te,_subjects:h,_proxyFormState:f,_setErrors:S,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(U){i=U},get _defaultValues(){return a},get _names(){return l},set _names(U){l=U},get _formState(){return r},set _formState(U){r=U},get _options(){return t},set _options(U){t={...t,...U}}},trigger:ee,register:xe,handleSubmit:ve,watch:ge,setValue:W,getValues:oe,reset:je,resetField:$e,clearErrors:we,unregister:pe,setError:le,setFocus:(U,K={})=>{const Z=Ne(n,U),ie=Z&&Z._f;if(ie){const ue=ie.refs?ie.refs[0]:ie.ref;ue.focus&&(ue.focus(),K.shouldSelect&&ue.select())}},getFieldState:J}}function Rz(e={}){const t=ke.useRef(),r=ke.useRef(),[n,a]=ke.useState({isDirty:!1,isValidating:!1,isLoading:ds(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ds(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...w0e(e),formState:n});const o=t.current.control;return o._options=e,g_({subject:o._subjects.state,next:i=>{gz(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),ke.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ke.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==n.isDirty&&o._subjects.state.next({isDirty:i})}},[o,n.isDirty]),ke.useEffect(()=>{e.values&&!il(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),ke.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),ke.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),ke.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=mz(n,o),t.current}var k0=function(){return k0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0,c=d.useState(!1),s=c[0],f=c[1],h=!e||!l||o,v=Hte(function(m){var b=m.currentLocation,w=m.nextLocation;if(h)return!1;var O=t||b.pathname,_=w.pathname.startsWith(O),y=w.pathname.startsWith("".concat(O,"/show")),x=_&&!y;return!x});d.useEffect(function(){if(v.state==="blocked"){if(h){v.proceed();return}f(!0)}},[v.state]),d.useEffect(function(){if(s){var m=window.confirm(n("ra.message.unsaved_changes"));m?v.proceed&&v.proceed():v.reset&&v.reset()}f(!1)},[s,n]),d.useEffect(function(){var m=function(b){b.preventDefault(),b.returnValue=!0};if(!h)return window.addEventListener("beforeunload",m),function(){window.removeEventListener("beforeunload",m)}},[h])},L0e=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return F0e(r,n,a),null};function D0e(e,t){var r=PR({},N0e(e,t),t);return r}function N0e(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var Iz=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var i=o[0],l=o[1];if(typeof l=="object"){r(l,"".concat(a).concat(i,"."));return}t("".concat(a).concat(i),{type:"server",message:l.toString()})})};r(e,"")},B0e=function(e,t){t===void 0&&(t=!0);var r=Qv(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=d.useRef(n),i=gr();d.useEffect(function(){var l,c;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var s=typeof((c=(l=a.root)===null||l===void 0?void 0:l.serverError)===null||c===void 0?void 0:c.message)=="string"?a.root.serverError.message:void 0;i(s||"ra.message.invalid_form",{type:"error"})}},[a,n,i,t])},z0e=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},ZE=function(){return ZE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Ql=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function G0e(e){return e?e.hasOwnProperty("message"):!1}var Xl=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Yl=function(e){return H5(e,function(){for(var t=[],r=0;re?Xl(t,{max:e},r,n):void 0}});Yl(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Ql(r)&&re?Xl(t,{max:e},r,n):void 0}}),Az=Yl(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Ql(t)&&isNaN(Number(t))?Xl(e,void 0,t,r):void 0}}),qR=H5(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Ql(r)&&typeof r=="string"&&!e.test(r)?Xl(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Yl(function(e){return e===void 0&&(e="ra.validation.email"),qR(q0e,e)});var J0e=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Yl(function(e,t){return t===void 0&&(t=J0e),function(r,n){return!Ql(r)&&e.indexOf(r)===-1?Xl(t,{list:e},r,n):void 0}});var Z0e=function(e){return e&&e.isRequired?!0:Array.isArray(e)?!!e.find(function(t){return t.isRequired}):!1},Mz=d.createContext(null),b_=function(){var e=d.useContext($z);return e},ebe=function(e){var t=e.children,r=e.name,n=b_();return d.useEffect(function(){if(!n||!n.registerGroup||!n.unregisterGroup){console.warn("The FormGroupContextProvider can only be used inside a FormContext such as provided by the SimpleForm and TabbedForm components");return}return n.registerGroup(r),function(){n.unregisterGroup(r)}},[n,r]),d.createElement(Mz.Provider,{value:r},t)},Fz=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,i=M_(o),l=Kt(t),c=Mo(),s=c.getValues,f=c.resetField,h=c.formState,v=c.reset,m=qt(l,i),b=qt(s(),i),w=h.dirtyFields,O=Object.keys(w).includes(i);d.useEffect(function(){if(!(a==null||b!=null||m!=null||O)){var _=i.split(".").some(function(S){return tbe.test(S)});if(_){var y=i.split(".").slice(0,-1).join("."),x=qt(s(),y);if(x==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),v({},{keepValues:!0});return}f(i,{defaultValue:a})}})},tbe=/^\d+$/,Lz=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,a=n===void 0?"id":n,o=e.disableValue,i=o===void 0?"disabled":o,l=e.translateChoice,c=l===void 0?!0:l,s=Be(),f=d.useCallback(function(m){if(d.isValidElement(r))return d.createElement(Kl,{value:m},r);var b=typeof r=="function"?r(m):qt(m,r);return d.isValidElement(b)?b:c?s(String(b),{_:b}):String(b)},[r,s,c]),h=d.useCallback(function(m){return qt(m,a)},[a]),v=d.useCallback(function(m){return qt(m,i)},[i]);return{getChoiceText:f,getChoiceValue:h,getDisableValue:v}},rbe=function(e){var t=Qv(),r=t.dirtyFields,n=t.touchedFields,a=t.validatingFields,o=t.errors,i=Object.keys(r),l=Object.keys(n),c=Object.keys(a),s=Object.keys(o),f=b_(),h=d.useState({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0,isValidating:!0}),v=h[0],m=h[1],b=Gt(function(){if(f){var w=f.getGroupFields(e),O=w.map(function(y){return{name:y,error:qt(o,y,void 0),isDirty:qt(r,y,!1)!==!1,isValid:qt(o,y,void 0)==null,isValidating:qt(a,y,void 0)==null,isTouched:qt(n,y,!1)!==!1}}).filter(function(y){return y!=null}),_=nbe(O);m(function(y){return Eo(y,_)?y:_})}});return d.useEffect(function(){b()},[JSON.stringify(i),JSON.stringify(s),JSON.stringify(l),JSON.stringify(c),b,e,f]),d.useEffect(function(){if(f){var w=f.subscribe(e,function(){b()});return w}},[f,e,b]),v},nbe=function(e){return e.reduce(function(t,r){var n=t.errors||{};r.error&&(n[r.name]=r.error);var a={isDirty:t.isDirty||r.isDirty,errors:n,isTouched:t.isTouched||r.isTouched,isValid:t.isValid&&r.isValid,isValidating:t.isValidating&&r.isValidating};return a},{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1,isValidating:!1})},Dz=function(){var e=d.useContext(Mz);return e},tC=function(){return tC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var Wz=function(){return d.useContext(Uz)},nC=function(){return nC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0||b.customRoutesWithLayout.length>0||b.customRoutesWithoutLayout.length>0?"ready":"empty"),m&&h(m),[2]})})};r||v()},[e,n,r,l,t,i,f]),[o,s]},jbe=function(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useCallback(function(o){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:i.resources.concat(o.resources)}})},[]);return[r,n,a]},Ibe=function(e,t){var r=Wz(),n=r.register,a=r.unregister;d.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);a(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},Tbe=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return Hz(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},Hz=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},lh=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(d.Children.forEach(e,function(a){if(d.isValidElement(a)){if(a.type===d.Fragment){var o=lh(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var i=a;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},qz=d.createContext(!1),Abe=qz.Provider,Mbe=function(){return d.useContext(qz)},Fbe=function(e){xbe();var t=Pc(),r=$be(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,i=r.resources,l=e.layout,c=e.catchAll,s=e.dashboard,f=e.loading,h=e.requireAuth,v=e.ready,m=d.useState(h),b=m[0],w=m[1],O=d.useState(h),_=O[0],y=O[1],x=y6();if(d.useEffect(function(){h&&x(void 0,!1).then(function(){w(!1)}).catch(function(){}).finally(function(){y(!1)})},[x,h]),o==="empty"){if(!v)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return d.createElement(v,null)}return o==="loading"||_?d.createElement(xl,null,a,d.createElement(On,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(f,null))})):b?d.createElement(xl,null,a,d.createElement(On,{path:"*",element:d.createElement(O_e,null)})):d.createElement(xl,null,a,d.createElement(On,{path:"/*",element:d.createElement(Abe,{value:!!s},d.createElement(l,null,d.createElement(xl,null,n,d.Children.map(i,function(S){return d.createElement(On,{key:S.props.name,path:"".concat(S.props.name,"/*"),element:S})}),d.createElement(On,{path:"/",element:s?d.createElement(b_e,{authParams:Lbe,component:s}):i.length>0?d.createElement(Gte,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(On,{path:"*",element:d.createElement(c,null)}))))}))},Lbe={params:{route:"dashboard"}},Gz=d.createContext("React Admin"),Dbe=Gz.Provider,Kz=function(){return d.useContext(Gz)},Nbe=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},Bbe=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return Bz(n),d.createElement("div",null,d.createElement("h1",null,"Error"),d.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},zbe=function(e){var t=d.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,i=e.catchAll,l=i===void 0?JF:i,c=e.children,s=e.dashboard,f=e.disableTelemetry,h=f===void 0?!1:f,v=e.error,m=v===void 0?Bbe:v,b=e.layout,w=b===void 0?Nbe:b,O=e.loading,_=O===void 0?JF:O,y=e.loginPage,x=y===void 0?!1:y,S=e.ready,P=S===void 0?t_e:S,C=e.requireAuth,$=C===void 0?!1:C,R=e.title,k=R===void 0?"React Admin":R;d.useEffect(function(){if(!(h||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var M=new Image;M.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[h]);var I=function(M,F){return n(F)};return d.createElement(Dbe,{value:k},d.createElement(Vz,{onError:I,fallbackRender:function(M){var F=M.error,L=M.resetErrorBoundary;return d.createElement("div",{style:{minHeight:"100vh"}},d.createElement(m,{error:F,errorInfo:r,resetErrorBoundary:L}))}},d.createElement(xl,null,x!==!1&&x!==!0?d.createElement(On,{path:"/login",element:YF(x)}):null,o!==!1&&o!==!0?d.createElement(On,{path:"/auth-callback",element:YF(o)}):null,d.createElement(On,{path:"/*",element:d.createElement(Fbe,{catchAll:l,dashboard:s,layout:w,loading:_,requireAuth:$,ready:P},c)}))))},YF=function(e){return d.isValidElement(e)?e:d.createElement(e)},JF=function(){return null},Qz=function(e){return null};Qz.raName="CustomRoutes";var Xz=d.createContext(void 0),Jl=function(e){var t=e.children,r=e.value;return r?d.createElement(Xz.Provider,{value:r},t):t},Yz=function(e){var t=e.value,r=e.children;return t?d.createElement(Jl,{value:t},r):r},Jz={exports:{}},or={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var KR=Symbol.for("react.element"),QR=Symbol.for("react.portal"),__=Symbol.for("react.fragment"),x_=Symbol.for("react.strict_mode"),w_=Symbol.for("react.profiler"),S_=Symbol.for("react.provider"),E_=Symbol.for("react.context"),Ube=Symbol.for("react.server_context"),C_=Symbol.for("react.forward_ref"),O_=Symbol.for("react.suspense"),P_=Symbol.for("react.suspense_list"),R_=Symbol.for("react.memo"),$_=Symbol.for("react.lazy"),Vbe=Symbol.for("react.offscreen"),Zz;Zz=Symbol.for("react.module.reference");function Fo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case KR:switch(e=e.type,e){case __:case w_:case x_:case O_:case P_:return e;default:switch(e=e&&e.$$typeof,e){case Ube:case E_:case C_:case $_:case R_:case S_:return e;default:return t}}case QR:return t}}}or.ContextConsumer=E_;or.ContextProvider=S_;or.Element=KR;or.ForwardRef=C_;or.Fragment=__;or.Lazy=$_;or.Memo=R_;or.Portal=QR;or.Profiler=w_;or.StrictMode=x_;or.Suspense=O_;or.SuspenseList=P_;or.isAsyncMode=function(){return!1};or.isConcurrentMode=function(){return!1};or.isContextConsumer=function(e){return Fo(e)===E_};or.isContextProvider=function(e){return Fo(e)===S_};or.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===KR};or.isForwardRef=function(e){return Fo(e)===C_};or.isFragment=function(e){return Fo(e)===__};or.isLazy=function(e){return Fo(e)===$_};or.isMemo=function(e){return Fo(e)===R_};or.isPortal=function(e){return Fo(e)===QR};or.isProfiler=function(e){return Fo(e)===w_};or.isStrictMode=function(e){return Fo(e)===x_};or.isSuspense=function(e){return Fo(e)===O_};or.isSuspenseList=function(e){return Fo(e)===P_};or.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===__||e===w_||e===x_||e===O_||e===P_||e===Vbe||typeof e=="object"&&e!==null&&(e.$$typeof===$_||e.$$typeof===R_||e.$$typeof===S_||e.$$typeof===E_||e.$$typeof===C_||e.$$typeof===Zz||e.getModuleId!==void 0)};or.typeOf=Fo;Jz.exports=or;var aC=Jz.exports,ln=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return d.createElement(Jl,{value:a},d.createElement(xl,null,t&&d.createElement(On,{path:"create/*",element:$g(t)}),o&&d.createElement(On,{path:":id/show/*",element:$g(o)}),r&&d.createElement(On,{path:":id/*",element:$g(r)}),n&&d.createElement(On,{path:"/*",element:d.createElement(bve,{storeKey:"".concat(a,".list.scrollPosition")},$g(n))}),e.children))},$g=function(e){if(d.isValidElement(e))return e;if(aC.isValidElementType(e)){var t=e;return d.createElement(t,null)}return null};ln.raName="Resource";ln.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,i=e.options,l=e.show,c=e.recordRepresentation,s=e.hasCreate,f=e.hasEdit,h=e.hasShow;return{name:o,options:i,hasList:!!a,hasCreate:!!t||!!s,hasEdit:!!r||!!f,hasShow:!!l||!!h,icon:n,recordRepresentation:c}};var XR=d.createContext(void 0),Wbe={getSource:function(e){return e},getLabel:function(e){return e}},k_=XR.Provider,YR=function(){var e=d.useContext(XR);return e||Wbe},Hbe=function(){return d.useContext(XR)},Yv=function(){return Wz().definitions},Jt={};/*! + * inflection + * Copyright(c) 2011 Ben Lin + * MIT Licensed + * + * @fileoverview + * A port of inflection-js to node.js module. + */Object.defineProperty(Jt,"__esModule",{value:!0});var e6=Jt.transform=Jt.ordinalize=Jt.foreignKey=Jt.classify=Jt.tableize=Jt.demodulize=Jt.titleize=Jt.dasherize=Jt.capitalize=I_=Jt.humanize=Jt.underscore=Jt.camelize=o6=Jt.inflect=e2=Jt.singularize=a6=Jt.pluralize=void 0;const A0=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],_e={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},t6=[[_e.plural.men],[_e.plural.people],[_e.plural.children],[_e.plural.tia],[_e.plural.analyses],[_e.plural.databases],[_e.plural.drives],[_e.plural.hives],[_e.plural.curves],[_e.plural.lrves],[_e.plural.foves],[_e.plural.aeiouyies],[_e.plural.series],[_e.plural.movies],[_e.plural.xes],[_e.plural.mice],[_e.plural.buses],[_e.plural.oes],[_e.plural.shoes],[_e.plural.crises],[_e.plural.octopuses],[_e.plural.aliases],[_e.plural.summonses],[_e.plural.oxen],[_e.plural.matrices],[_e.plural.feet],[_e.plural.teeth],[_e.plural.geese],[_e.plural.quizzes],[_e.plural.whereases],[_e.plural.criteria],[_e.plural.genera],[_e.singular.man,"$1en"],[_e.singular.person,"$1ople"],[_e.singular.child,"$1ren"],[_e.singular.drive,"$1s"],[_e.singular.ox,"$1en"],[_e.singular.axis,"$1es"],[_e.singular.octopus,"$1uses"],[_e.singular.alias,"$1es"],[_e.singular.summons,"$1es"],[_e.singular.bus,"$1ses"],[_e.singular.buffalo,"$1oes"],[_e.singular.tium,"$1a"],[_e.singular.sis,"ses"],[_e.singular.ffe,"$1$2ves"],[_e.singular.hive,"$1ves"],[_e.singular.aeiouyy,"$1ies"],[_e.singular.matrix,"$1ices"],[_e.singular.vertex,"$1ices"],[_e.singular.x,"$1es"],[_e.singular.mouse,"$1ice"],[_e.singular.foot,"feet"],[_e.singular.tooth,"teeth"],[_e.singular.goose,"geese"],[_e.singular.quiz,"$1zes"],[_e.singular.whereas,"$1es"],[_e.singular.criterion,"$1a"],[_e.singular.genus,"genera"],[_e.singular.s,"s"],[_e.singular.common,"s"]],r6=[[_e.singular.man],[_e.singular.person],[_e.singular.child],[_e.singular.drive],[_e.singular.ox],[_e.singular.axis],[_e.singular.octopus],[_e.singular.alias],[_e.singular.summons],[_e.singular.bus],[_e.singular.buffalo],[_e.singular.tium],[_e.singular.sis],[_e.singular.ffe],[_e.singular.hive],[_e.singular.aeiouyy],[_e.singular.x],[_e.singular.matrix],[_e.singular.mouse],[_e.singular.foot],[_e.singular.tooth],[_e.singular.goose],[_e.singular.quiz],[_e.singular.whereas],[_e.singular.criterion],[_e.singular.genus],[_e.plural.men,"$1an"],[_e.plural.people,"$1rson"],[_e.plural.children,"$1"],[_e.plural.databases,"$1"],[_e.plural.drives,"$1"],[_e.plural.genera,"genus"],[_e.plural.criteria,"$1on"],[_e.plural.tia,"$1um"],[_e.plural.analyses,"$1$2sis"],[_e.plural.hives,"$1ve"],[_e.plural.curves,"$1"],[_e.plural.lrves,"$1f"],[_e.plural.aves,"$1ve"],[_e.plural.foves,"$1fe"],[_e.plural.movies,"$1ovie"],[_e.plural.aeiouyies,"$1y"],[_e.plural.series,"$1eries"],[_e.plural.xes,"$1"],[_e.plural.mice,"$1ouse"],[_e.plural.buses,"$1"],[_e.plural.oes,"$1"],[_e.plural.shoes,"$1"],[_e.plural.crises,"$1is"],[_e.plural.octopuses,"$1us"],[_e.plural.aliases,"$1"],[_e.plural.summonses,"$1"],[_e.plural.oxen,"$1"],[_e.plural.matrices,"$1ix"],[_e.plural.vertices,"$1ex"],[_e.plural.feet,"foot"],[_e.plural.teeth,"tooth"],[_e.plural.geese,"goose"],[_e.plural.quizzes,"$1"],[_e.plural.whereases,"$1"],[_e.plural.ss,"ss"],[_e.plural.s,""]],qbe=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],Gbe=new RegExp("(_ids|_id)$","g"),n6=new RegExp("_","g"),Kbe=new RegExp("[ _]","g"),Qbe=new RegExp("([A-Z])","g"),Xbe=new RegExp("^_");function M0(e,t,r,n){if(n)return n;if(r.includes(e.toLocaleLowerCase()))return e;for(const a of t)if(e.match(a[0]))return a[1]!==void 0?e.replace(a[0],a[1]):e;return e}function JR(e,t){return M0(e,t6,A0,t)}var a6=Jt.pluralize=JR;function ZR(e,t){return M0(e,r6,A0,t)}var e2=Jt.singularize=ZR;function Ybe(e,t,r,n){return isNaN(t)?e:t===1?M0(e,r6,A0,r):M0(e,t6,A0,n)}var o6=Jt.inflect=Ybe;function t2(e,t){const r=e.split("/"),n=r.length;let a,o,i,l;for(let c=0;c1?a6(r):e2(r))});return o}},Vt=function(e){var t=d.useContext(Xz);return e&&e.resource||t},Rs=function(e){var t=Vt(e),r=Yv(),n=e||{},a=n.hasCreate,o=n.hasEdit,i=n.hasList,l=n.hasShow,c=n.recordRepresentation,s=d.useMemo(function(){return zR({},{hasCreate:a,hasEdit:o,hasList:i,hasShow:l,recordRepresentation:c},t?r[t]:{})},[t,r,a,o,i,l,c]);return s},A_=function(e){var t=Rs({resource:e}).recordRepresentation;return d.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?qt(r,t):d.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},M_=function(e){var t=YR();return t.getSource(e)},p6=function(){var e=Be(),t=Vt(),r=Hbe();return d.useCallback(function(n){var a=n.source,o=n.label,i=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,r_e({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:i,resourceFromContext:t,source:a}))},[t,e,r])},e_e="en",h6=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=p6();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:d.createElement("span",null,o({label:r,resource:n,source:t}),a&&d.createElement("span",{"aria-hidden":"true"}," *"))};h6.displayName="FieldTitle";const Ro=d.memo(h6),t_e=function(){return d.createElement("span",null)},n2=function(e,t){};var r_e=function(e){if(!e)return[""];var t=e.label,r=e.defaultLabel,n=e.resource,a=e.resourceFromContext,o=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof o>"u")return[""];var i=n_e(o),l=i.sourceWithoutDigits,c=i.sourceSuffix,s=e6(c.replace(/\./g," "),["underscore","humanize"]);return n?[ZF(n,l),{_:s}]:r?[r,{_:s}]:[ZF(a||"undefined",l),{_:s}]},ZF=function(e,t){return"resources.".concat(e,".fields.").concat(t)},n_e=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,i){a_e(o)&&(n=i)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},a_e=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};function o_e(e){return function(t){e.forEach(function(r){typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var i_e=typeof window<"u"?d.useLayoutEffect:d.useEffect,Gt=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return i_e(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:v)});return function(){return h()}},[e,o,t,n,l]);var s=Gt(function(f,h){var v=typeof f=="function"?f(l):f;a(e,typeof v>"u"?typeof h>"u"?t:h:v)});return[l,s]},s_e=function(e){var t=s_().removeItem;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},l_e=function(e){var t=s_().removeItems;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},u_e=function(){var e=s_().reset;return e},ep=function(){var e=Os(),t=Ao(),r=u_e(),n=Li(),a=d.useRef(n),o=hn(),i=d.useRef(o),l=Gl(),c=_i("".concat(l,"/").concat(Gb.loginUrl));d.useEffect(function(){i.current=o,a.current=n},[o,n]);var s=d.useCallback(function(f,h,v){return f===void 0&&(f={}),h===void 0&&(h=c),v===void 0&&(v=!0),e?e.logout(f).then(function(m){if(m===!1||h===!1){r(),t.clear();return}var b=m||h;if(b!=null&&b.startsWith("http"))return r(),t.clear(),window.location.href=b,b;var w=b.split("?"),O={pathname:w[0]},_={};return v&&i.current&&i.current.pathname&&(_={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),w[1]&&(O.search=w[1]),a.current(O,_),r(),t.clear(),m}):(a.current({pathname:c},{state:{nextPathname:i.current&&i.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,c,t]);return s},Au=function(){return Au=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},tL=function(){},Mu=function(){return Mu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"),tp(t);var i=m6(t).permissions;if(a)return d.createElement(a,Oh({permissions:i},o));if(n)return n(Oh({permissions:i},o));if(r)return r(Oh({permissions:i},o))},g6=function(){var e=Os(),t=hn(),r=t.state,n=Li(),a=Gl(),o=cB().resetNotifications,i=r&&r.nextPathname,l=r&&r.nextSearch,c=_i("".concat(a,"/").concat(Gb.afterLoginUrl)),s=d.useCallback(function(f,h){return f===void 0&&(f={}),e?e.login(f).then(function(v){if(o(),v&&v.hasOwnProperty("redirectTo"))v&&n(v.redirectTo);else{var m=h||i+l||c;n(m)}return v}):(o(),n(c),Promise.resolve())},[e,n,i,l,o,c]);return s},__e="AUTH_LOGIN",x_e="AUTH_CHECK",w_e="AUTH_ERROR",S_e="AUTH_LOGOUT",E_e="AUTH_GET_PERMISSIONS";const C_e=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Ph=function(){return Ph=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return $n(r&&e?"".concat(r,".").concat(e):r??e,t)},a2=function(){var e=d.useContext(zz);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},N_e=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0?Cn(rp,--Ra):0,Pf--,Zr===10&&(Pf=1,L_--),Zr}function Wa(){return Zr=Ra2||pv(Zr)>3?"":" "}function o1e(e,t){for(;--t&&Wa()&&!(Zr<48||Zr>102||Zr>57&&Zr<65||Zr>70&&Zr<97););return Jv(e,my()+(t<6&&$i()==32&&Wa()==32))}function sC(e){for(;Wa();)switch(Zr){case e:return Ra;case 34:case 39:e!==34&&e!==39&&sC(Zr);break;case 40:e===41&&sC(e);break;case 92:Wa();break}return Ra}function i1e(e,t){for(;Wa()&&e+Zr!==57;)if(e+Zr===84&&$i()===47)break;return"/*"+Jv(t,Ra-1)+"*"+F_(e===47?e:Wa())}function s1e(e){for(;!pv($i());)Wa();return Jv(e,Ra)}function l1e(e){return R6(yy("",null,null,null,[""],e=P6(e),0,[0],e))}function yy(e,t,r,n,a,o,i,l,c){for(var s=0,f=0,h=i,v=0,m=0,b=0,w=1,O=1,_=1,y=0,x="",S=a,P=o,C=n,$=x;O;)switch(b=y,y=Wa()){case 40:if(b!=108&&Cn($,h-1)==58){iC($+=Yt(gy(y),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:$+=gy(y);break;case 9:case 10:case 13:case 32:$+=a1e(b);break;case 92:$+=o1e(my()-1,7);continue;case 47:switch($i()){case 42:case 47:kg(u1e(i1e(Wa(),my()),t,r),c);break;default:$+="/"}break;case 123*w:l[s++]=xi($)*_;case 125*w:case 59:case 0:switch(y){case 0:case 125:O=0;case 59+f:_==-1&&($=Yt($,/\f/g,"")),m>0&&xi($)-h&&kg(m>32?iL($+";",n,r,h-1):iL(Yt($," ","")+";",n,r,h-2),c);break;case 59:$+=";";default:if(kg(C=oL($,t,r,s,f,a,l,x,S=[],P=[],h),o),y===123)if(f===0)yy($,t,C,C,S,o,h,l,P);else switch(v===99&&Cn($,3)===110?100:v){case 100:case 108:case 109:case 115:yy(e,C,C,n&&kg(oL(e,C,C,0,0,a,l,x,a,S=[],h),P),a,P,h,l,n?S:P);break;default:yy($,C,C,C,[""],P,0,l,P)}}s=f=m=0,w=_=1,x=$="",h=i;break;case 58:h=1+xi($),m=b;default:if(w<1){if(y==123)--w;else if(y==125&&w++==0&&n1e()==125)continue}switch($+=F_(y),y*w){case 38:_=f>0?1:($+="\f",-1);break;case 44:l[s++]=(xi($)-1)*_,_=1;break;case 64:$i()===45&&($+=gy(Wa())),v=$i(),f=h=xi(x=$+=s1e(my())),y++;break;case 45:b===45&&xi($)==2&&(w=0)}}return o}function oL(e,t,r,n,a,o,i,l,c,s,f){for(var h=a-1,v=a===0?o:[""],m=s2(v),b=0,w=0,O=0;b0?v[_]+" "+y:Yt(y,/&\f/g,v[_])))&&(c[O++]=x);return D_(e,t,r,a===0?o2:l,c,s,f)}function u1e(e,t,r){return D_(e,t,r,S6,F_(r1e()),fv(e,2,-2),0)}function iL(e,t,r,n){return D_(e,t,r,i2,fv(e,0,n),fv(e,n+1,-1),n)}function Vd(e,t){for(var r="",n=s2(e),a=0;a6)switch(Cn(e,t+1)){case 109:if(Cn(e,t+4)!==45)break;case 102:return Yt(e,/(.+:)(.+)-([^]+)/,"$1"+Xt+"$2-$3$1"+F0+(Cn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~iC(e,"stretch")?$6(Yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Cn(e,t+1)!==115)break;case 6444:switch(Cn(e,xi(e)-3-(~iC(e,"!important")&&10))){case 107:return Yt(e,":",":"+Xt)+e;case 101:return Yt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xt+(Cn(e,14)===45?"inline-":"")+"box$3$1"+Xt+"$2$3$1"+Dn+"$2box$3")+e}break;case 5936:switch(Cn(e,t+11)){case 114:return Xt+e+Dn+Yt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xt+e+Dn+Yt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xt+e+Dn+Yt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Xt+e+Dn+e+e}return e}var y1e=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case i2:t.return=$6(t.value,t.length);break;case E6:return Vd([Hp(t,{value:Yt(t.value,"@","@"+Xt)})],a);case o2:if(t.length)return t1e(t.props,function(o){switch(e1e(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vd([Hp(t,{props:[Yt(o,/:(read-\w+)/,":"+F0+"$1")]})],a);case"::placeholder":return Vd([Hp(t,{props:[Yt(o,/:(plac\w+)/,":"+Xt+"input-$1")]}),Hp(t,{props:[Yt(o,/:(plac\w+)/,":"+F0+"$1")]}),Hp(t,{props:[Yt(o,/:(plac\w+)/,Dn+"input-$1")]})],a)}return""})}},b1e=[y1e],k6=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var O=w.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var a=t.stylisPlugins||b1e,o={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var O=w.getAttribute("data-emotion").split(" "),_=1;_=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 j1e={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},I1e=!1,T1e=/[A-Z]|^ms/g,A1e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,L6=function(t){return t.charCodeAt(1)===45},lL=function(t){return t!=null&&typeof t!="boolean"},Yw=w6(function(e){return L6(e)?e:e.replace(T1e,"-$&").toLowerCase()}),uL=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(A1e,function(n,a,o){return wi={name:a,styles:o,next:wi},a})}return j1e[t]!==1&&!L6(t)&&typeof r=="number"&&r!==0?r+"px":r},M1e="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function hv(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return wi={name:a.name,styles:a.styles,next:wi},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)wi={name:i.name,styles:i.styles,next:wi},i=i.next;var l=o.styles+";";return l}return F1e(e,t,r)}case"function":{if(e!==void 0){var c=wi,s=r(e);return wi=c,hv(e,t,s)}break}}var f=r;if(t==null)return f;var h=t[f];return h!==void 0?h:f}function F1e(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?z1e:U1e},pL=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},V1e=!1,W1e=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return M6(r,n,a),D1e(function(){return F6(r,n,a)}),null},H1e=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var l=pL(t,r,n),c=l||fL(a),s=!c("as");return function(){var f=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var v=f.length,m=1;mt(K1e(a)?r:a):t;return E.jsx(B1e,{styles:n})}function f2(e,t){return lC(e,t)}const U6=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Q1e=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:z6,StyledEngineProvider:G1e,ThemeContext:Zv,css:Rc,default:f2,internal_processStyles:U6,keyframes:$s},Symbol.toStringTag,{value:"Module"}));function ss(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function V6(e){if(!ss(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=V6(e[r])}),t}function sa(e,t,r={clone:!0}){const n=r.clone?T({},e):e;return ss(e)&&ss(t)&&Object.keys(t).forEach(a=>{ss(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&ss(e[a])?n[a]=sa(e[a],t[a],r):r.clone?n[a]=ss(t[a])?V6(t[a]):t[a]:n[a]=t[a]}),n}const X1e=Object.freeze(Object.defineProperty({__proto__:null,default:sa,isPlainObject:ss},Symbol.toStringTag,{value:"Module"})),Y1e=["values","unit","step"],J1e=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>T({},r,{[n.key]:n.val}),{})};function W6(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Re(e,Y1e),o=J1e(t),i=Object.keys(o);function l(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r})`}function c(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-n/100}${r})`}function s(v,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-n/100}${r})`}function f(v){return i.indexOf(v)+1`@media (min-width:${p2[e]}px)`};function ni(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||hL;return t.reduce((i,l,c)=>(i[o.up(o.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const o=n.breakpoints||hL;return Object.keys(t).reduce((i,l)=>{if(Object.keys(o.values||p2).indexOf(l)!==-1){const c=o.up(l);i[c]=r(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return r(t)}function H6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function q6(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function exe(e,...t){const r=H6(e),n=[r,...t].reduce((a,o)=>sa(a,o),{});return q6(Object.keys(r),n)}function txe(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function Jw({values:e,breakpoints:t,base:r}){const n=r||txe(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,l,c)=>(Array.isArray(e)?(i[l]=e[c]!=null?e[c]:e[o],o=c):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[o],o=l):i[l]=e,i),{})}function Pe(e){if(typeof e!="string")throw new Error(xs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const rxe=Object.freeze(Object.defineProperty({__proto__:null,default:Pe},Symbol.toStringTag,{value:"Module"}));function Rf(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function L0(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=Rf(e,r)||n,t&&(a=t(a,n,e)),a}function Kr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,s=Rf(c,n)||{};return ni(i,l,h=>{let v=L0(s,a,h);return h===v&&typeof h=="string"&&(v=L0(s,a,`${t}${h==="default"?"":Pe(h)}`,h)),r===!1?v:{[r]:v}})};return o.propTypes={},o.filterProps=[t],o}function nxe(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const axe={m:"margin",p:"padding"},oxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vL={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ixe=nxe(e=>{if(e.length>2)if(vL[e])e=vL[e];else return[e];const[t,r]=e.split(""),n=axe[t],a=oxe[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),h2=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],v2=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...h2,...v2];function em(e,t,r,n){var a;const o=(a=Rf(e,t,!1))!=null?a:r;return typeof o=="number"?i=>typeof i=="string"?i:o*i:Array.isArray(o)?i=>typeof i=="string"?i:o[i]:typeof o=="function"?o:()=>{}}function m2(e){return em(e,"spacing",8)}function yc(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function sxe(e,t){return r=>e.reduce((n,a)=>(n[a]=yc(t,r),n),{})}function lxe(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=ixe(r),o=sxe(a,n),i=e[r];return ni(e,i,o)}function G6(e,t){const r=m2(e.theme);return Object.keys(e).map(n=>lxe(e,t,n,r)).reduce(Rh,{})}function Fr(e){return G6(e,h2)}Fr.propTypes={};Fr.filterProps=h2;function Lr(e){return G6(e,v2)}Lr.propTypes={};Lr.filterProps=v2;function uxe(e=8){if(e.mui)return e;const t=m2({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Q_(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Rh(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function bo(e){return typeof e!="number"?e:`${e}px solid`}function Lo(e,t){return Kr({prop:e,themeKey:"borders",transform:t})}const cxe=Lo("border",bo),dxe=Lo("borderTop",bo),fxe=Lo("borderRight",bo),pxe=Lo("borderBottom",bo),hxe=Lo("borderLeft",bo),vxe=Lo("borderColor"),mxe=Lo("borderTopColor"),gxe=Lo("borderRightColor"),yxe=Lo("borderBottomColor"),bxe=Lo("borderLeftColor"),_xe=Lo("outline",bo),xxe=Lo("outlineColor"),X_=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=em(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:yc(t,n)});return ni(e,e.borderRadius,r)}return null};X_.propTypes={};X_.filterProps=["borderRadius"];Q_(cxe,dxe,fxe,pxe,hxe,vxe,mxe,gxe,yxe,bxe,X_,_xe,xxe);const Y_=e=>{if(e.gap!==void 0&&e.gap!==null){const t=em(e.theme,"spacing",8),r=n=>({gap:yc(t,n)});return ni(e,e.gap,r)}return null};Y_.propTypes={};Y_.filterProps=["gap"];const J_=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=em(e.theme,"spacing",8),r=n=>({columnGap:yc(t,n)});return ni(e,e.columnGap,r)}return null};J_.propTypes={};J_.filterProps=["columnGap"];const Z_=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=em(e.theme,"spacing",8),r=n=>({rowGap:yc(t,n)});return ni(e,e.rowGap,r)}return null};Z_.propTypes={};Z_.filterProps=["rowGap"];const wxe=Kr({prop:"gridColumn"}),Sxe=Kr({prop:"gridRow"}),Exe=Kr({prop:"gridAutoFlow"}),Cxe=Kr({prop:"gridAutoColumns"}),Oxe=Kr({prop:"gridAutoRows"}),Pxe=Kr({prop:"gridTemplateColumns"}),Rxe=Kr({prop:"gridTemplateRows"}),$xe=Kr({prop:"gridTemplateAreas"}),kxe=Kr({prop:"gridArea"});Q_(Y_,J_,Z_,wxe,Sxe,Exe,Cxe,Oxe,Pxe,Rxe,$xe,kxe);function Wd(e,t){return t==="grey"?t:e}const jxe=Kr({prop:"color",themeKey:"palette",transform:Wd}),Ixe=Kr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wd}),Txe=Kr({prop:"backgroundColor",themeKey:"palette",transform:Wd});Q_(jxe,Ixe,Txe);function Na(e){return e<=1&&e!==0?`${e*100}%`:e}const Axe=Kr({prop:"width",transform:Na}),g2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||p2[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Na(r)}};return ni(e,e.maxWidth,t)}return null};g2.filterProps=["maxWidth"];const Mxe=Kr({prop:"minWidth",transform:Na}),Fxe=Kr({prop:"height",transform:Na}),Lxe=Kr({prop:"maxHeight",transform:Na}),Dxe=Kr({prop:"minHeight",transform:Na});Kr({prop:"size",cssProperty:"width",transform:Na});Kr({prop:"size",cssProperty:"height",transform:Na});const Nxe=Kr({prop:"boxSizing"});Q_(Axe,g2,Mxe,Fxe,Lxe,Dxe,Nxe);const tm={border:{themeKey:"borders",transform:bo},borderTop:{themeKey:"borders",transform:bo},borderRight:{themeKey:"borders",transform:bo},borderBottom:{themeKey:"borders",transform:bo},borderLeft:{themeKey:"borders",transform:bo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:bo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:X_},color:{themeKey:"palette",transform:Wd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wd},backgroundColor:{themeKey:"palette",transform:Wd},p:{style:Lr},pt:{style:Lr},pr:{style:Lr},pb:{style:Lr},pl:{style:Lr},px:{style:Lr},py:{style:Lr},padding:{style:Lr},paddingTop:{style:Lr},paddingRight:{style:Lr},paddingBottom:{style:Lr},paddingLeft:{style:Lr},paddingX:{style:Lr},paddingY:{style:Lr},paddingInline:{style:Lr},paddingInlineStart:{style:Lr},paddingInlineEnd:{style:Lr},paddingBlock:{style:Lr},paddingBlockStart:{style:Lr},paddingBlockEnd:{style:Lr},m:{style:Fr},mt:{style:Fr},mr:{style:Fr},mb:{style:Fr},ml:{style:Fr},mx:{style:Fr},my:{style:Fr},margin:{style:Fr},marginTop:{style:Fr},marginRight:{style:Fr},marginBottom:{style:Fr},marginLeft:{style:Fr},marginX:{style:Fr},marginY:{style:Fr},marginInline:{style:Fr},marginInlineStart:{style:Fr},marginInlineEnd:{style:Fr},marginBlock:{style:Fr},marginBlockStart:{style:Fr},marginBlockEnd:{style:Fr},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:Y_},rowGap:{style:Z_},columnGap:{style:J_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Na},maxWidth:{style:g2},minWidth:{transform:Na},height:{transform:Na},maxHeight:{transform:Na},minHeight:{transform:Na},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Bxe(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function zxe(e,t){return typeof e=="function"?e(t):e}function K6(){function e(r,n,a,o){const i={[r]:n,theme:a},l=o[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:s,transform:f,style:h}=l;if(n==null)return null;if(s==="typography"&&n==="inherit")return{[r]:n};const v=Rf(a,s)||{};return h?h(i):ni(i,n,b=>{let w=L0(v,f,b);return b===w&&typeof b=="string"&&(w=L0(v,f,`${r}${b==="default"?"":Pe(b)}`,b)),c===!1?w:{[c]:w}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:tm;function l(c){let s=c;if(typeof c=="function")s=c(o);else if(typeof c!="object")return c;if(!s)return null;const f=H6(o.breakpoints),h=Object.keys(f);let v=f;return Object.keys(s).forEach(m=>{const b=zxe(s[m],o);if(b!=null)if(typeof b=="object")if(i[m])v=Rh(v,e(m,b,o,i));else{const w=ni({theme:o},b,O=>({[m]:O}));Bxe(w,b)?v[m]=t({sx:b,theme:o}):v=Rh(v,w)}else v=Rh(v,e(m,b,o,i))}),q6(h,v)}return Array.isArray(a)?a.map(l):l(a)}return t}const np=K6();np.filterProps=["sx"];function Q6(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const Uxe=["breakpoints","palette","spacing","shape"];function ap(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Re(e,Uxe),l=W6(r),c=uxe(a);let s=sa({breakpoints:l,direction:"ltr",components:{},palette:T({mode:"light"},n),spacing:c,shape:T({},Z1e,o)},i);return s.applyStyles=Q6,s=t.reduce((f,h)=>sa(f,h),s),s.unstable_sxConfig=T({},tm,i==null?void 0:i.unstable_sxConfig),s.unstable_sx=function(h){return np({sx:h,theme:this})},s}const Vxe=Object.freeze(Object.defineProperty({__proto__:null,default:ap,private_createBreakpoints:W6,unstable_applyStyles:Q6},Symbol.toStringTag,{value:"Module"}));function Wxe(e){return Object.keys(e).length===0}function y2(e=null){const t=d.useContext(Zv);return!t||Wxe(t)?e:t}const Hxe=ap();function e1(e=Hxe){return y2(e)}function qxe({styles:e,themeId:t,defaultTheme:r={}}){const n=e1(r),a=typeof e=="function"?e(t&&n[t]||n):e;return E.jsx(z6,{styles:a})}const Gxe=["sx"],Kxe=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:tm;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function t1(e){const{sx:t}=e,r=Re(e,Gxe),{systemProps:n,otherProps:a}=Kxe(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const l=t(...i);return ss(l)?T({},n,l):n}:o=T({},n,t),T({},a,{sx:o})}const Qxe=Object.freeze(Object.defineProperty({__proto__:null,default:np,extendSxProp:t1,unstable_createStyleFunctionSx:K6,unstable_defaultSxConfig:tm},Symbol.toStringTag,{value:"Module"})),mL=e=>e,Xxe=()=>{let e=mL;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mL}}},b2=Xxe();function X6(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;tl!=="theme"&&l!=="sx"&&l!=="as"})(np);return d.forwardRef(function(c,s){const f=e1(r),h=t1(c),{className:v,component:m="div"}=h,b=Re(h,Yxe);return E.jsx(o,T({as:m,ref:s,className:de(v,a?a(n):n),theme:t&&f[t]||f},b))})}const Zxe={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 et(e,t,r="Mui"){const n=Zxe[t];return n?`${r}-${n}`:`${b2.generate(e)}-${t}`}function ot(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=et(e,a,r)}),n}const ewe=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Y6(e){const t=`${e}`.match(ewe);return t&&t[1]||""}function J6(e,t=""){return e.displayName||e.name||Y6(e)||t}function gL(e,t,r){const n=J6(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function twe(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return J6(e,"Component");if(typeof e=="object")switch(e.$$typeof){case aC.ForwardRef:return gL(e,e.render,"ForwardRef");case aC.Memo:return gL(e,e.type,"memo");default:return}}}const rwe=Object.freeze(Object.defineProperty({__proto__:null,default:twe,getFunctionName:Y6},Symbol.toStringTag,{value:"Module"})),nwe=["ownerState"],awe=["variants"],owe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iwe(e){return Object.keys(e).length===0}function swe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Zw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const lwe=ap(),uwe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function jg({defaultTheme:e,theme:t,themeId:r}){return iwe(t)?e:t[r]||t}function cwe(e){return e?(t,r)=>r[e]:null}function by(e,t){let{ownerState:r}=t,n=Re(t,nwe);const a=typeof e=="function"?e(T({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>by(o,T({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let l=Re(a,awe);return o.forEach(c=>{let s=!0;typeof c.props=="function"?s=c.props(T({ownerState:r},n,r)):Object.keys(c.props).forEach(f=>{(r==null?void 0:r[f])!==c.props[f]&&n[f]!==c.props[f]&&(s=!1)}),s&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(T({ownerState:r},n,r)):c.style))}),l}return a}function dwe(e={}){const{themeId:t,defaultTheme:r=lwe,rootShouldForwardProp:n=Zw,slotShouldForwardProp:a=Zw}=e,o=i=>np(T({},i,{theme:jg(T({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,l={})=>{U6(i,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:c,slot:s,skipVariantsResolver:f,skipSx:h,overridesResolver:v=cwe(uwe(s))}=l,m=Re(l,owe),b=f!==void 0?f:s&&s!=="Root"&&s!=="root"||!1,w=h||!1;let O,_=Zw;s==="Root"||s==="root"?_=n:s?_=a:swe(i)&&(_=void 0);const y=f2(i,T({shouldForwardProp:_,label:O},m)),x=P=>typeof P=="function"&&P.__emotion_real!==P||ss(P)?C=>by(P,T({},C,{theme:jg({theme:C.theme,defaultTheme:r,themeId:t})})):P,S=(P,...C)=>{let $=x(P);const R=C?C.map(x):[];c&&v&&R.push(M=>{const F=jg(T({},M,{defaultTheme:r,themeId:t}));if(!F.components||!F.components[c]||!F.components[c].styleOverrides)return null;const L=F.components[c].styleOverrides,B={};return Object.entries(L).forEach(([V,H])=>{B[V]=by(H,T({},M,{theme:F}))}),v(M,B)}),c&&!b&&R.push(M=>{var F;const L=jg(T({},M,{defaultTheme:r,themeId:t})),B=L==null||(F=L.components)==null||(F=F[c])==null?void 0:F.variants;return by({variants:B},T({},M,{theme:L}))}),w||R.push(o);const k=R.length-C.length;if(Array.isArray(P)&&k>0){const M=new Array(k).fill("");$=[...P,...M],$.raw=[...P.raw,...M]}const I=y($,...R);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(S.withConfig=y.withConfig),S}}const Z6=dwe();function vv(e,t){const r=T({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=T({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=T({},o),Object.keys(a).forEach(i=>{r[n][i]=vv(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function e9(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:vv(t.components[r].defaultProps,n)}function _2({props:e,name:t,defaultTheme:r,themeId:n}){let a=e1(r);return n&&(a=a[n]||a),e9({theme:a,name:t,props:e})}const qa=typeof window<"u"?d.useLayoutEffect:d.useEffect;function fwe(e,t,r,n,a){const[o,i]=d.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return qa(()=>{let l=!0;if(!r)return;const c=r(e),s=()=>{l&&i(c.matches)};return s(),c.addListener(s),()=>{l=!1,c.removeListener(s)}},[e,r]),o}const t9=d.useSyncExternalStore;function pwe(e,t,r,n,a){const o=d.useCallback(()=>t,[t]),i=d.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:f}=n(e);return()=>f}return o},[o,e,n,a,r]),[l,c]=d.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const f=r(e);return[()=>f.matches,h=>(f.addListener(h),()=>{f.removeListener(h)})]},[o,r,e]);return t9(c,l,i)}function ca(e,t={}){const r=y2(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:l=!1}=e9({name:"MuiUseMediaQuery",props:t,theme:r});let c=typeof e=="function"?e(r):e;return c=c.replace(/^@media( ?)/m,""),(t9!==void 0?pwe:fwe)(c,a,o,i,l)}function r9(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const hwe=Object.freeze(Object.defineProperty({__proto__:null,default:r9},Symbol.toStringTag,{value:"Module"}));function n9(e,t=0,r=1){return r9(e,t,r)}function vwe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function x2(e){if(e.type)return e;if(e.charAt(0)==="#")return x2(vwe(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(xs(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(xs(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function a9(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function $f(e,t){return e=x2(e),t=n9(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,a9(e)}function o9(e,t){if(e=x2(e),t=n9(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return a9(e)}function cC(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function op(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function mwe(e,t){return()=>null}function _y(e,t){var r,n;return d.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function tn(e){return e&&e.ownerDocument||document}function $o(e){return tn(e).defaultView||window}function gwe(e,t){return()=>null}function D0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let yL=0;function ywe(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(yL+=1,r(`mui-${yL}`))},[t]),n}const bL=Dy.useId;function bc(e){if(bL!==void 0){const t=bL();return e??t}return ywe(e)}function bwe(e,t,r,n,a){return null}function kf({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=d.useRef(e!==void 0),[o,i]=d.useState(t),l=a?e:o,c=d.useCallback(s=>{a||i(s)},[]);return[l,c]}function oa(e){const t=d.useRef(e);return qa(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function Ir(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{D0(r,t)})},e)}const _L={};function _we(e,t){const r=d.useRef(_L);return r.current===_L&&(r.current=e(t)),r}const xwe=[];function wwe(e){d.useEffect(e,xwe)}class rm{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new rm}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function zu(){const e=_we(rm.create).current;return wwe(e.disposeEffect),e}let r1=!0,dC=!1;const Swe=new rm,Ewe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Cwe(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Ewe[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Owe(e){e.metaKey||e.altKey||e.ctrlKey||(r1=!0)}function eS(){r1=!1}function Pwe(){this.visibilityState==="hidden"&&dC&&(r1=!0)}function Rwe(e){e.addEventListener("keydown",Owe,!0),e.addEventListener("mousedown",eS,!0),e.addEventListener("pointerdown",eS,!0),e.addEventListener("touchstart",eS,!0),e.addEventListener("visibilitychange",Pwe,!0)}function $we(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return r1||Cwe(t)}function n1(){const e=d.useCallback(a=>{a!=null&&Rwe(a.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(dC=!0,Swe.start(100,()=>{dC=!1}),t.current=!1,!0):!1}function n(a){return $we(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function i9(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let sd;function s9(){if(sd)return sd;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),sd="reverse",e.scrollLeft>0?sd="default":(e.scrollLeft=1,e.scrollLeft===0&&(sd="negative")),document.body.removeChild(e),sd}function kwe(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(s9()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function tt(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const l=t(i);l!==""&&o.push(l),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}function mv(e){return typeof e=="string"}function Id(e,t,r){return e===void 0||mv(e)?t:T({},t,{ownerState:T({},t.ownerState,r)})}function N0(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function xL(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function l9(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const m=de(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),b=T({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),w=T({},r,a,n);return m.length>0&&(w.className=m),Object.keys(b).length>0&&(w.style=b),{props:w,internalRef:void 0}}const i=N0(T({},a,n)),l=xL(n),c=xL(a),s=t(i),f=de(s==null?void 0:s.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),h=T({},s==null?void 0:s.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),v=T({},s,r,c,l);return f.length>0&&(v.className=f),Object.keys(h).length>0&&(v.style=h),{props:v,internalRef:s.ref}}function u9(e,t,r){return typeof e=="function"?e(t,r):e}const jwe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ko(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,i=Re(e,jwe),l=o?{}:u9(n,a),{props:c,internalRef:s}=l9(T({},i,{externalSlotProps:l})),f=Ir(s,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Id(r,T({},c,{ref:f}),a)}const c9=d.createContext(null);function d9(){return d.useContext(c9)}const Iwe=typeof Symbol=="function"&&Symbol.for,Twe=Iwe?Symbol.for("mui.nested"):"__THEME_NESTED__";function Awe(e,t){return typeof t=="function"?t(e):T({},e,t)}function Mwe(e){const{children:t,theme:r}=e,n=d9(),a=d.useMemo(()=>{const o=n===null?r:Awe(n,r);return o!=null&&(o[Twe]=n!==null),o},[r,n]);return E.jsx(c9.Provider,{value:a,children:t})}const Fwe=["value"],f9=d.createContext();function Lwe(e){let{value:t}=e,r=Re(e,Fwe);return E.jsx(f9.Provider,T({value:t??!0},r))}const eu=()=>{const e=d.useContext(f9);return e??!1},p9=d.createContext(void 0);function Dwe({value:e,children:t}){return E.jsx(p9.Provider,{value:e,children:t})}function Nwe(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?vv(a.defaultProps,n):!a.styleOverrides&&!a.variants?vv(a,n):n}function Bwe({props:e,name:t}){const r=d.useContext(p9);return Nwe({props:e,name:t,theme:{components:r}})}const wL={};function SL(e,t,r,n=!1){return d.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),i=e?T({},t,{[e]:o}):o;return n?()=>i:i}return e?T({},t,{[e]:r}):T({},t,r)},[e,t,r,n])}function zwe(e){const{children:t,theme:r,themeId:n}=e,a=y2(wL),o=d9()||wL,i=SL(n,a,r),l=SL(n,o,r,!0),c=i.direction==="rtl";return E.jsx(Mwe,{theme:l,children:E.jsx(Zv.Provider,{value:i,children:E.jsx(Lwe,{value:c,children:E.jsx(Dwe,{value:i==null?void 0:i.components,children:t})})})})}const Uwe=["className","component","disableGutters","fixed","maxWidth","classes"],Vwe=ap(),Wwe=Z6("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Pe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),Hwe=e=>_2({props:e,name:"MuiContainer",defaultTheme:Vwe}),qwe=(e,t)=>{const r=c=>et(t,c),{classes:n,fixed:a,disableGutters:o,maxWidth:i}=e,l={root:["root",i&&`maxWidth${Pe(String(i))}`,a&&"fixed",o&&"disableGutters"]};return tt(l,r,n)};function Gwe(e={}){const{createStyledComponent:t=Wwe,useThemeProps:r=Hwe,componentName:n="MuiContainer"}=e,a=t(({theme:i,ownerState:l})=>T({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!l.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}),({theme:i,ownerState:l})=>l.fixed&&Object.keys(i.breakpoints.values).reduce((c,s)=>{const f=s,h=i.breakpoints.values[f];return h!==0&&(c[i.breakpoints.up(f)]={maxWidth:`${h}${i.breakpoints.unit}`}),c},{}),({theme:i,ownerState:l})=>T({},l.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},l.maxWidth&&l.maxWidth!=="xs"&&{[i.breakpoints.up(l.maxWidth)]:{maxWidth:`${i.breakpoints.values[l.maxWidth]}${i.breakpoints.unit}`}}));return d.forwardRef(function(l,c){const s=r(l),{className:f,component:h="div",disableGutters:v=!1,fixed:m=!1,maxWidth:b="lg"}=s,w=Re(s,Uwe),O=T({},s,{component:h,disableGutters:v,fixed:m,maxWidth:b}),_=qwe(O,n);return E.jsx(a,T({as:h,ownerState:O,className:de(_.root,f),ref:c},w))})}const Kwe=["component","direction","spacing","divider","children","className","useFlexGap"],Qwe=ap(),Xwe=Z6("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ywe(e){return _2({props:e,name:"MuiStack",defaultTheme:Qwe})}function Jwe(e,t){const r=d.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],eSe=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},ni({theme:t},Jw({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=m2(t),a=Object.keys(t.breakpoints.values).reduce((c,s)=>((typeof e.spacing=="object"&&e.spacing[s]!=null||typeof e.direction=="object"&&e.direction[s]!=null)&&(c[s]=!0),c),{}),o=Jw({values:e.direction,base:a}),i=Jw({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((c,s,f)=>{if(!o[c]){const v=s>0?o[f[s-1]]:"column";o[c]=v}}),r=sa(r,ni({theme:t},i,(c,s)=>e.useFlexGap?{gap:yc(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Zwe(s?o[s]:e.direction)}`]:yc(n,c)}}))}return r=exe(t.breakpoints,r),r};function tSe(e={}){const{createStyledComponent:t=Xwe,useThemeProps:r=Ywe,componentName:n="MuiStack"}=e,a=()=>tt({root:["root"]},c=>et(n,c),{}),o=t(eSe);return d.forwardRef(function(c,s){const f=r(c),h=t1(f),{component:v="div",direction:m="column",spacing:b=0,divider:w,children:O,className:_,useFlexGap:y=!1}=h,x=Re(h,Kwe),S={direction:m,spacing:b,useFlexGap:y},P=a();return E.jsx(o,T({as:v,ownerState:S,ref:s,className:de(P.root,_)},x,{children:w?Jwe(O,w):O}))})}function rSe(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Qr={},h9={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(h9);var He=h9.exports;const nSe=Ss(U_e),aSe=Ss(hwe);var v9=He;Object.defineProperty(Qr,"__esModule",{value:!0});var nr=Qr.alpha=b9;Qr.blend=mSe;Qr.colorChannel=void 0;var a1=Qr.darken=S2;Qr.decomposeColor=jo;var oSe=Qr.emphasize=_9,iSe=Qr.getContrastRatio=dSe;Qr.getLuminance=B0;Qr.hexToRgb=m9;Qr.hslToRgb=y9;var o1=Qr.lighten=E2;Qr.private_safeAlpha=fSe;Qr.private_safeColorChannel=void 0;Qr.private_safeDarken=pSe;Qr.private_safeEmphasize=vSe;Qr.private_safeLighten=hSe;Qr.recomposeColor=ip;Qr.rgbToHex=cSe;var EL=v9(nSe),sSe=v9(aSe);function w2(e,t=0,r=1){return(0,sSe.default)(e,t,r)}function m9(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function lSe(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function jo(e){if(e.type)return e;if(e.charAt(0)==="#")return jo(m9(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,EL.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,EL.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const g9=e=>{const t=jo(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};Qr.colorChannel=g9;const uSe=(e,t)=>{try{return g9(e)}catch{return e}};Qr.private_safeColorChannel=uSe;function ip(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function cSe(e){if(e.indexOf("#")===0)return e;const{values:t}=jo(e);return`#${t.map((r,n)=>lSe(n===3?Math.round(255*r):r)).join("")}`}function y9(e){e=jo(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(s,f=(s+r/30)%12)=>a-o*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),ip({type:l,values:c})}function B0(e){e=jo(e);let t=e.type==="hsl"||e.type==="hsla"?jo(y9(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function dSe(e,t){const r=B0(e),n=B0(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function b9(e,t){return e=jo(e),t=w2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ip(e)}function fSe(e,t,r){try{return b9(e,t)}catch{return e}}function S2(e,t){if(e=jo(e),t=w2(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ip(e)}function pSe(e,t,r){try{return S2(e,t)}catch{return e}}function E2(e,t){if(e=jo(e),t=w2(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ip(e)}function hSe(e,t,r){try{return E2(e,t)}catch{return e}}function _9(e,t=.15){return B0(e)>.5?S2(e,t):E2(e,t)}function vSe(e,t,r){try{return _9(e,t)}catch{return e}}function mSe(e,t,r,n=1){const a=(c,s)=>Math.round((c**(1/n)*(1-r)+s**(1/n)*r)**n),o=jo(e),i=jo(t),l=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return ip({type:"rgb",values:l})}const gSe=["mode","contrastThreshold","tonalOffset"],CL={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:dv.white,default:dv.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}},tS={text:{primary:dv.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:dv.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function OL(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=o1(e.main,a):t==="dark"&&(e.dark=a1(e.main,o)))}function ySe(e="light"){return e==="dark"?{main:Eu[200],light:Eu[50],dark:Eu[400]}:{main:Eu[700],light:Eu[400],dark:Eu[800]}}function bSe(e="light"){return e==="dark"?{main:ad[200],light:ad[50],dark:ad[400]}:{main:ad[500],light:ad[300],dark:ad[700]}}function _Se(e="light"){return e==="dark"?{main:nd[500],light:nd[300],dark:nd[700]}:{main:nd[700],light:nd[400],dark:nd[800]}}function xSe(e="light"){return e==="dark"?{main:od[400],light:od[300],dark:od[700]}:{main:od[700],light:od[500],dark:od[900]}}function wSe(e="light"){return e==="dark"?{main:id[400],light:id[300],dark:id[700]}:{main:id[800],light:id[500],dark:id[900]}}function SSe(e="light"){return e==="dark"?{main:Wp[400],light:Wp[300],dark:Wp[700]}:{main:"#ed6c02",light:Wp[500],dark:Wp[900]}}function ESe(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Re(e,gSe),o=e.primary||ySe(t),i=e.secondary||bSe(t),l=e.error||_Se(t),c=e.info||xSe(t),s=e.success||wSe(t),f=e.warning||SSe(t);function h(w){return iSe(w,tS.text.primary)>=r?tS.text.primary:CL.text.primary}const v=({color:w,name:O,mainShade:_=500,lightShade:y=300,darkShade:x=700})=>{if(w=T({},w),!w.main&&w[_]&&(w.main=w[_]),!w.hasOwnProperty("main"))throw new Error(xs(11,O?` (${O})`:"",_));if(typeof w.main!="string")throw new Error(xs(12,O?` (${O})`:"",JSON.stringify(w.main)));return OL(w,"light",y,n),OL(w,"dark",x,n),w.contrastText||(w.contrastText=h(w.main)),w},m={dark:tS,light:CL};return sa(T({common:T({},dv),mode:t,primary:v({color:o,name:"primary"}),secondary:v({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:l,name:"error"}),warning:v({color:f,name:"warning"}),info:v({color:c,name:"info"}),success:v({color:s,name:"success"}),grey:z_e,contrastThreshold:r,getContrastText:h,augmentColor:v,tonalOffset:n},m[t]),a)}const CSe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function OSe(e){return Math.round(e*1e5)/1e5}const PL={textTransform:"uppercase"},RL='"Roboto", "Helvetica", "Arial", sans-serif';function PSe(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=RL,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:s=16,allVariants:f,pxToRem:h}=r,v=Re(r,CSe),m=a/14,b=h||(_=>`${_/s*m}rem`),w=(_,y,x,S,P)=>T({fontFamily:n,fontWeight:_,fontSize:b(y),lineHeight:x},n===RL?{letterSpacing:`${OSe(S/y)}em`}:{},P,f),O={h1:w(o,96,1.167,-1.5),h2:w(o,60,1.2,-.5),h3:w(i,48,1.167,0),h4:w(i,34,1.235,.25),h5:w(i,24,1.334,0),h6:w(l,20,1.6,.15),subtitle1:w(i,16,1.75,.15),subtitle2:w(l,14,1.57,.1),body1:w(i,16,1.5,.15),body2:w(i,14,1.43,.15),button:w(l,14,1.75,.4,PL),caption:w(i,12,1.66,.4),overline:w(i,12,2.66,1,PL),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sa(T({htmlFontSize:s,pxToRem:b,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},O),v,{clone:!1})}const RSe=.2,$Se=.14,kSe=.12;function Er(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${RSe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${$Se})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kSe})`].join(",")}const jSe=["none",Er(0,2,1,-1,0,1,1,0,0,1,3,0),Er(0,3,1,-2,0,2,2,0,0,1,5,0),Er(0,3,3,-2,0,3,4,0,0,1,8,0),Er(0,2,4,-1,0,4,5,0,0,1,10,0),Er(0,3,5,-1,0,5,8,0,0,1,14,0),Er(0,3,5,-1,0,6,10,0,0,1,18,0),Er(0,4,5,-2,0,7,10,1,0,2,16,1),Er(0,5,5,-3,0,8,10,1,0,3,14,2),Er(0,5,6,-3,0,9,12,1,0,3,16,2),Er(0,6,6,-3,0,10,14,1,0,4,18,3),Er(0,6,7,-4,0,11,15,1,0,4,20,3),Er(0,7,8,-4,0,12,17,2,0,5,22,4),Er(0,7,8,-4,0,13,19,2,0,5,24,4),Er(0,7,9,-4,0,14,21,2,0,5,26,4),Er(0,8,9,-5,0,15,22,2,0,6,28,5),Er(0,8,10,-5,0,16,24,2,0,6,30,5),Er(0,8,11,-5,0,17,26,2,0,6,32,5),Er(0,9,11,-5,0,18,28,2,0,7,34,6),Er(0,9,12,-6,0,19,29,2,0,7,36,6),Er(0,10,13,-6,0,20,31,3,0,8,38,7),Er(0,10,13,-6,0,21,33,3,0,8,40,7),Er(0,10,14,-6,0,22,35,3,0,8,42,7),Er(0,11,14,-7,0,23,36,3,0,9,44,8),Er(0,11,15,-7,0,24,38,3,0,9,46,8)],ISe=["duration","easing","delay"],TSe={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)"},ASe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $L(e){return`${Math.round(e)}ms`}function MSe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function FSe(e){const t=T({},TSe,e.easing),r=T({},ASe,e.duration);return T({getAutoHeightDuration:MSe,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=o;return Re(o,ISe),(Array.isArray(a)?a:[a]).map(s=>`${s} ${typeof i=="string"?i:$L(i)} ${l} ${typeof c=="string"?c:$L(c)}`).join(",")}},e,{easing:t,duration:r})}const LSe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},DSe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function z0(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Re(e,DSe);if(e.vars)throw new Error(xs(18));const l=ESe(n),c=ap(e);let s=sa(c,{mixins:rSe(c.breakpoints,r),palette:l,shadows:jSe.slice(),typography:PSe(l,o),transitions:FSe(a),zIndex:T({},LSe)});return s=sa(s,i),s=t.reduce((f,h)=>sa(f,h),s),s.unstable_sxConfig=T({},tm,i==null?void 0:i.unstable_sxConfig),s.unstable_sx=function(h){return np({sx:h,theme:this})},s}const i1=z0();function Ja(){const e=e1(i1);return e[gc]||e}function x9({props:e,name:t}){return _2({props:e,name:t,defaultTheme:i1,themeId:gc})}var nm={},rS={exports:{}},kL;function NSe(){return kL||(kL=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n96}function xy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const rEe=nm.systemDefaultTheme=(0,KSe.default)(),nEe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ig({defaultTheme:e,theme:t,themeId:r}){return eEe(t)?e:t[r]||t}function aEe(e){return e?(t,r)=>r[e]:null}function wy(e,t){let{ownerState:r}=t,n=(0,fC.default)(t,XSe);const a=typeof e=="function"?e((0,fo.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>wy(o,(0,fo.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let l=(0,fC.default)(a,YSe);return o.forEach(c=>{let s=!0;typeof c.props=="function"?s=c.props((0,fo.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(f=>{(r==null?void 0:r[f])!==c.props[f]&&n[f]!==c.props[f]&&(s=!1)}),s&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,fo.default)({ownerState:r},n,r)):c.style))}),l}return a}function oEe(e={}){const{themeId:t,defaultTheme:r=rEe,rootShouldForwardProp:n=xy,slotShouldForwardProp:a=xy}=e,o=i=>(0,QSe.default)((0,fo.default)({},i,{theme:Ig((0,fo.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,l={})=>{(0,IL.internal_processStyles)(i,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:c,slot:s,skipVariantsResolver:f,skipSx:h,overridesResolver:v=aEe(nEe(s))}=l,m=(0,fC.default)(l,JSe),b=f!==void 0?f:s&&s!=="Root"&&s!=="root"||!1,w=h||!1;let O,_=xy;s==="Root"||s==="root"?_=n:s?_=a:tEe(i)&&(_=void 0);const y=(0,IL.default)(i,(0,fo.default)({shouldForwardProp:_,label:O},m)),x=P=>typeof P=="function"&&P.__emotion_real!==P||(0,GSe.isPlainObject)(P)?C=>wy(P,(0,fo.default)({},C,{theme:Ig({theme:C.theme,defaultTheme:r,themeId:t})})):P,S=(P,...C)=>{let $=x(P);const R=C?C.map(x):[];c&&v&&R.push(M=>{const F=Ig((0,fo.default)({},M,{defaultTheme:r,themeId:t}));if(!F.components||!F.components[c]||!F.components[c].styleOverrides)return null;const L=F.components[c].styleOverrides,B={};return Object.entries(L).forEach(([V,H])=>{B[V]=wy(H,(0,fo.default)({},M,{theme:F}))}),v(M,B)}),c&&!b&&R.push(M=>{var F;const L=Ig((0,fo.default)({},M,{defaultTheme:r,themeId:t})),B=L==null||(F=L.components)==null||(F=F[c])==null?void 0:F.variants;return wy({variants:B},(0,fo.default)({},M,{theme:L}))}),w||R.push(o);const k=R.length-C.length;if(Array.isArray(P)&&k>0){const M=new Array(k).fill("");$=[...P,...M],$.raw=[...P.raw,...M]}const I=y($,...R);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(S.withConfig=y.withConfig),S}}function E9(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const In=e=>E9(e)&&e!=="classes",te=qSe({themeId:gc,defaultTheme:i1,rootShouldForwardProp:In}),iEe=["theme"];function sEe(e){let{theme:t}=e,r=Re(e,iEe);const n=t[gc];return E.jsx(zwe,T({},r,{themeId:n?gc:void 0,theme:n||t}))}const TL=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function rt(e){return Bwe(e)}function lEe(e){return et("MuiSvgIcon",e)}ot("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const uEe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],cEe=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(r)}`]};return tt(a,lEe,n)},dEe=te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Pe(r.color)}`],t[`fontSize${Pe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,i,l,c,s,f,h,v,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((s=e.typography)==null||(f=s.pxToRem)==null?void 0:f.call(s,35))||"2.1875rem"}[t.fontSize],color:(h=(v=(e.vars||e).palette)==null||(v=v[t.color])==null?void 0:v.main)!=null?h:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),pC=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:s,inheritViewBox:f=!1,titleAccess:h,viewBox:v="0 0 24 24"}=n,m=Re(n,uEe),b=d.isValidElement(a)&&a.type==="svg",w=T({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:v,hasSvgAsChild:b}),O={};f||(O.viewBox=v);const _=cEe(w);return E.jsxs(dEe,T({as:l,className:de(_.root,o),focusable:"false",color:s,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},O,m,b&&a.props,{ownerState:w,children:[b?a.props.children:a,h?E.jsx("title",{children:h}):null]}))});pC.muiName="SvgIcon";function Za(e,t){function r(n,a){return E.jsx(pC,T({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=pC.muiName,d.memo(d.forwardRef(r))}const fEe={configure:e=>{b2.configure(e)}},pEe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Pe,createChainedFunction:cC,createSvgIcon:Za,debounce:op,deprecatedPropType:mwe,isMuiElement:_y,ownerDocument:tn,ownerWindow:$o,requirePropFactory:gwe,setRef:D0,unstable_ClassNameGenerator:fEe,unstable_useEnhancedEffect:qa,unstable_useId:bc,unsupportedProp:bwe,useControlled:kf,useEventCallback:oa,useForkRef:Ir,useIsFocusVisible:n1},Symbol.toStringTag,{value:"Module"}));function hC(e,t){return hC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},hC(e,t)}function C9(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hC(e,t)}const AL={disabled:!1},U0=ke.createContext(null);var hEe=function(t){return t.scrollTop},uh="unmounted",Cu="exited",Ou="entering",fd="entered",vC="exiting",ii=function(e){C9(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,l=i&&!i.isMounting?n.enter:n.appear,c;return o.appearStatus=null,n.in?l?(c=Cu,o.appearStatus=Ou):c=fd:n.unmountOnExit||n.mountOnEnter?c=uh:c=Cu,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===uh?{status:Cu}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==Ou&&i!==fd&&(o=Ou):(i===Ou||i===fd)&&(o=vC)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,l;return o=i=l=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,l=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:l}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===Ou){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:oh.findDOMNode(this);i&&hEe(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cu&&this.setState({status:uh})},r.performEnter=function(a){var o=this,i=this.props.enter,l=this.context?this.context.isMounting:a,c=this.props.nodeRef?[l]:[oh.findDOMNode(this),l],s=c[0],f=c[1],h=this.getTimeouts(),v=l?h.appear:h.enter;if(!a&&!i||AL.disabled){this.safeSetState({status:fd},function(){o.props.onEntered(s)});return}this.props.onEnter(s,f),this.safeSetState({status:Ou},function(){o.props.onEntering(s,f),o.onTransitionEnd(v,function(){o.safeSetState({status:fd},function(){o.props.onEntered(s,f)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:oh.findDOMNode(this);if(!o||AL.disabled){this.safeSetState({status:Cu},function(){a.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:vC},function(){a.props.onExiting(l),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:Cu},function(){a.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,o.nextCallback=null,a(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:oh.findDOMNode(this),l=a==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],s=c[0],f=c[1];this.props.addEndListener(s,f)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===uh)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=Re(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(U0.Provider,{value:null},typeof i=="function"?i(a,l):ke.cloneElement(ke.Children.only(i),l))},t}(ke.Component);ii.contextType=U0;ii.propTypes={};function ld(){}ii.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ld,onEntering:ld,onEntered:ld,onExit:ld,onExiting:ld,onExited:ld};ii.UNMOUNTED=uh;ii.EXITED=Cu;ii.ENTERING=Ou;ii.ENTERED=fd;ii.EXITING=vC;function vEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C2(e,t){var r=function(o){return t&&d.isValidElement(o)?t(o):o},n=Object.create(null);return e&&d.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function mEe(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,l={};for(var c in t){if(n[c])for(i=0;ie.scrollTop;function jf(e,t){var r,n;const{timeout:a,easing:o,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:i.transitionDelay}}function xEe(e){return et("MuiPaper",e)}ot("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const wEe=["className","component","elevation","square","variant"],SEe=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return tt(o,xEe,a)},EEe=te("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${nr("#fff",TL(t.elevation))}, ${nr("#fff",TL(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),tu=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:i=1,square:l=!1,variant:c="elevation"}=n,s=Re(n,wEe),f=T({},n,{component:o,elevation:i,square:l,variant:c}),h=SEe(f);return E.jsx(EEe,T({as:o,ownerState:f,className:de(h.root,a),ref:r},s))}),CEe=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],OEe=["component","slots","slotProps"],PEe=["component"];function REe(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:i,internalForwardedProps:l}=t,c=Re(t,CEe),{component:s,slots:f={[e]:void 0},slotProps:h={[e]:void 0}}=o;Re(o,OEe);const v=f[e]||n,m=u9(h[e],a),b=l9(T({className:r},c,{externalForwardedProps:void 0,externalSlotProps:m})),{props:{component:w},internalRef:O}=b,_=Re(b.props,PEe),y=Ir(O,m==null?void 0:m.ref,t.ref),x=i?i(_):{},S=T({},a,x),P=w,C=Id(v,T({},e==="root",!f[e]&&l,_,P&&{as:P},{ref:y}),S);return Object.keys(x).forEach($=>{delete C[$]}),[v,C]}function $Ee(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:l,onExited:c,timeout:s}=e,[f,h]=d.useState(!1),v=de(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},b=de(r.child,f&&r.childLeaving,n&&r.childPulsate);return!l&&!f&&h(!0),d.useEffect(()=>{if(!l&&c!=null){const w=setTimeout(c,s);return()=>{clearTimeout(w)}}},[c,l,s]),E.jsx("span",{className:v,style:m,children:E.jsx("span",{className:b})})}const ho=ot("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),kEe=["center","classes","className"];let s1=e=>e,ML,FL,LL,DL;const mC=550,jEe=80,IEe=$s(ML||(ML=s1` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),TEe=$s(FL||(FL=s1` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),AEe=$s(LL||(LL=s1` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),MEe=te("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),FEe=te($Ee,{name:"MuiTouchRipple",slot:"Ripple"})(DL||(DL=s1` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),ho.rippleVisible,IEe,mC,({theme:e})=>e.transitions.easing.easeInOut,ho.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ho.child,ho.childLeaving,TEe,mC,({theme:e})=>e.transitions.easing.easeInOut,ho.childPulsate,AEe,({theme:e})=>e.transitions.easing.easeInOut),LEe=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i}=n,l=Re(n,kEe),[c,s]=d.useState([]),f=d.useRef(0),h=d.useRef(null);d.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const v=d.useRef(!1),m=zu(),b=d.useRef(null),w=d.useRef(null),O=d.useCallback(S=>{const{pulsate:P,rippleX:C,rippleY:$,rippleSize:R,cb:k}=S;s(I=>[...I,E.jsx(FEe,{classes:{ripple:de(o.ripple,ho.ripple),rippleVisible:de(o.rippleVisible,ho.rippleVisible),ripplePulsate:de(o.ripplePulsate,ho.ripplePulsate),child:de(o.child,ho.child),childLeaving:de(o.childLeaving,ho.childLeaving),childPulsate:de(o.childPulsate,ho.childPulsate)},timeout:mC,pulsate:P,rippleX:C,rippleY:$,rippleSize:R},f.current)]),f.current+=1,h.current=k},[o]),_=d.useCallback((S={},P={},C=()=>{})=>{const{pulsate:$=!1,center:R=a||P.pulsate,fakeElement:k=!1}=P;if((S==null?void 0:S.type)==="mousedown"&&v.current){v.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(v.current=!0);const I=k?null:w.current,M=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,L,B;if(R||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)F=Math.round(M.width/2),L=Math.round(M.height/2);else{const{clientX:V,clientY:H}=S.touches&&S.touches.length>0?S.touches[0]:S;F=Math.round(V-M.left),L=Math.round(H-M.top)}if(R)B=Math.sqrt((2*M.width**2+M.height**2)/3),B%2===0&&(B+=1);else{const V=Math.max(Math.abs((I?I.clientWidth:0)-F),F)*2+2,H=Math.max(Math.abs((I?I.clientHeight:0)-L),L)*2+2;B=Math.sqrt(V**2+H**2)}S!=null&&S.touches?b.current===null&&(b.current=()=>{O({pulsate:$,rippleX:F,rippleY:L,rippleSize:B,cb:C})},m.start(jEe,()=>{b.current&&(b.current(),b.current=null)})):O({pulsate:$,rippleX:F,rippleY:L,rippleSize:B,cb:C})},[a,O,m]),y=d.useCallback(()=>{_({},{pulsate:!0})},[_]),x=d.useCallback((S,P)=>{if(m.clear(),(S==null?void 0:S.type)==="touchend"&&b.current){b.current(),b.current=null,m.start(0,()=>{x(S,P)});return}b.current=null,s(C=>C.length>0?C.slice(1):C),h.current=P},[m]);return d.useImperativeHandle(r,()=>({pulsate:y,start:_,stop:x}),[y,_,x]),E.jsx(MEe,T({className:de(ho.root,o.root,i),ref:w},l,{children:E.jsx(O2,{component:null,exit:!0,children:c})}))});function DEe(e){return et("MuiButtonBase",e)}const NEe=ot("MuiButtonBase",["root","disabled","focusVisible"]),BEe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],zEe=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=tt({root:["root",t&&"disabled",r&&"focusVisible"]},DEe,a);return r&&n&&(i.root+=` ${n}`),i},UEe=te("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${NEe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ks=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:l,component:c="button",disabled:s=!1,disableRipple:f=!1,disableTouchRipple:h=!1,focusRipple:v=!1,LinkComponent:m="a",onBlur:b,onClick:w,onContextMenu:O,onDragLeave:_,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:P,onMouseDown:C,onMouseLeave:$,onMouseUp:R,onTouchEnd:k,onTouchMove:I,onTouchStart:M,tabIndex:F=0,TouchRippleProps:L,touchRippleRef:B,type:V}=n,H=Re(n,BEe),W=d.useRef(null),z=d.useRef(null),q=Ir(z,B),{isFocusVisibleRef:ee,onFocus:oe,onBlur:J,ref:we}=n1(),[le,ge]=d.useState(!1);s&&le&&ge(!1),d.useImperativeHandle(a,()=>({focusVisible:()=>{ge(!0),W.current.focus()}}),[]);const[pe,me]=d.useState(!1);d.useEffect(()=>{me(!0)},[]);const xe=pe&&!f&&!s;d.useEffect(()=>{le&&v&&!f&&pe&&z.current.pulsate()},[f,v,le,pe]);function ne(Ve,_t,Wt=h){return oa(Ct=>(_t&&_t(Ct),!Wt&&z.current&&z.current[Ve](Ct),!0))}const Te=ne("start",C),ve=ne("stop",O),$e=ne("stop",_),ye=ne("stop",R),je=ne("stop",Ve=>{le&&Ve.preventDefault(),$&&$(Ve)}),Le=ne("start",M),st=ne("stop",k),Xe=ne("stop",I),U=ne("stop",Ve=>{J(Ve),ee.current===!1&&ge(!1),b&&b(Ve)},!1),K=oa(Ve=>{W.current||(W.current=Ve.currentTarget),oe(Ve),ee.current===!0&&(ge(!0),x&&x(Ve)),y&&y(Ve)}),Z=()=>{const Ve=W.current;return c&&c!=="button"&&!(Ve.tagName==="A"&&Ve.href)},ie=d.useRef(!1),ue=oa(Ve=>{v&&!ie.current&&le&&z.current&&Ve.key===" "&&(ie.current=!0,z.current.stop(Ve,()=>{z.current.start(Ve)})),Ve.target===Ve.currentTarget&&Z()&&Ve.key===" "&&Ve.preventDefault(),S&&S(Ve),Ve.target===Ve.currentTarget&&Z()&&Ve.key==="Enter"&&!s&&(Ve.preventDefault(),w&&w(Ve))}),ce=oa(Ve=>{v&&Ve.key===" "&&z.current&&le&&!Ve.defaultPrevented&&(ie.current=!1,z.current.stop(Ve,()=>{z.current.pulsate(Ve)})),P&&P(Ve),w&&Ve.target===Ve.currentTarget&&Z()&&Ve.key===" "&&!Ve.defaultPrevented&&w(Ve)});let Ee=c;Ee==="button"&&(H.href||H.to)&&(Ee=m);const Ae={};Ee==="button"?(Ae.type=V===void 0?"button":V,Ae.disabled=s):(!H.href&&!H.to&&(Ae.role="button"),s&&(Ae["aria-disabled"]=s));const ft=Ir(r,we,W),De=T({},n,{centerRipple:o,component:c,disabled:s,disableRipple:f,disableTouchRipple:h,focusRipple:v,tabIndex:F,focusVisible:le}),Ze=zEe(De);return E.jsxs(UEe,T({as:Ee,className:de(Ze.root,l),ownerState:De,onBlur:U,onClick:w,onContextMenu:ve,onFocus:K,onKeyDown:ue,onKeyUp:ce,onMouseDown:Te,onMouseLeave:je,onMouseUp:ye,onDragLeave:$e,onTouchEnd:st,onTouchMove:Xe,onTouchStart:Le,ref:ft,tabIndex:s?-1:F,type:V},Ae,H,{children:[i,xe?E.jsx(LEe,T({ref:q,center:o},L)):null]}))});function VEe(e){return et("MuiIconButton",e)}const WEe=ot("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),HEe=["edge","children","className","color","disabled","disableFocusRipple","size"],qEe=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${Pe(n)}`,a&&`edge${Pe(a)}`,`size${Pe(o)}`]};return tt(i,VEe,t)},GEe=te(ks,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Pe(r.color)}`],r.edge&&t[`edge${Pe(r.edge)}`],t[`size${Pe(r.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":T({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${WEe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Br=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:l="default",disabled:c=!1,disableFocusRipple:s=!1,size:f="medium"}=n,h=Re(n,HEe),v=T({},n,{edge:a,color:l,disabled:c,disableFocusRipple:s,size:f}),m=qEe(v);return E.jsx(GEe,T({className:de(m.root,i),centerRipple:!0,focusRipple:!s,disabled:c,ref:r},h,{ownerState:v,children:o}))});function KEe(e){return et("MuiTypography",e)}ot("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const QEe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],XEe=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,l={root:["root",o,e.align!=="inherit"&&`align${Pe(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return tt(l,KEe,i)},YEe=te("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Pe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),NL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},JEe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ZEe=e=>JEe[e]||e,$t=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTypography"}),a=ZEe(n.color),o=t1(T({},n,{color:a})),{align:i="inherit",className:l,component:c,gutterBottom:s=!1,noWrap:f=!1,paragraph:h=!1,variant:v="body1",variantMapping:m=NL}=o,b=Re(o,QEe),w=T({},o,{align:i,color:a,className:l,component:c,gutterBottom:s,noWrap:f,paragraph:h,variant:v,variantMapping:m}),O=c||(h?"p":m[v]||NL[v])||"span",_=XEe(w);return E.jsx(YEe,T({as:O,ref:r,ownerState:w,className:de(_.root,l)},b))});function eCe(e){return et("MuiAppBar",e)}ot("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const tCe=["className","color","enableColorOnDark","position"],rCe=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${Pe(t)}`,`position${Pe(r)}`]};return tt(a,eCe,n)},Tg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,nCe=te(tu,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Pe(r.position)}`],t[`color${Pe(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Tg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Tg(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Tg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Tg(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),aCe=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:l="fixed"}=n,c=Re(n,tCe),s=T({},n,{color:o,position:l,enableColorOnDark:i}),f=rCe(s);return E.jsx(nCe,T({square:!0,component:"header",ownerState:s,elevation:4,className:de(f.root,a,l==="fixed"&&"mui-fixed"),ref:r},c))});var R2={};Object.defineProperty(R2,"__esModule",{value:!0});var O9=R2.default=void 0,oCe=sCe(d),iCe=w9;function P9(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(P9=function(n){return n?r:t})(e)}function sCe(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=P9(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function lCe(e){return Object.keys(e).length===0}function uCe(e=null){const t=oCe.useContext(iCe.ThemeContext);return!t||lCe(t)?e:t}O9=R2.default=uCe;var Oa="top",Io="bottom",To="right",Pa="left",$2="auto",am=[Oa,Io,To,Pa],If="start",gv="end",cCe="clippingParents",R9="viewport",qp="popper",dCe="reference",BL=am.reduce(function(e,t){return e.concat([t+"-"+If,t+"-"+gv])},[]),$9=[].concat(am,[$2]).reduce(function(e,t){return e.concat([t,t+"-"+If,t+"-"+gv])},[]),fCe="beforeRead",pCe="read",hCe="afterRead",vCe="beforeMain",mCe="main",gCe="afterMain",yCe="beforeWrite",bCe="write",_Ce="afterWrite",xCe=[fCe,pCe,hCe,vCe,mCe,gCe,yCe,bCe,_Ce];function Ti(e){return e?(e.nodeName||"").toLowerCase():null}function Ga(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _c(e){var t=Ga(e).Element;return e instanceof t||e instanceof Element}function Co(e){var t=Ga(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function k2(e){if(typeof ShadowRoot>"u")return!1;var t=Ga(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wCe(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Co(o)||!Ti(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var l=a[i];l===!1?o.removeAttribute(i):o.setAttribute(i,l===!0?"":l)}))})}function SCe(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=i.reduce(function(c,s){return c[s]="",c},{});!Co(a)||!Ti(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(c){a.removeAttribute(c)}))})}}const ECe={name:"applyStyles",enabled:!0,phase:"write",fn:wCe,effect:SCe,requires:["computeStyles"]};function ki(e){return e.split("-")[0]}var oc=Math.max,V0=Math.min,Tf=Math.round;function gC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function k9(){return!/^((?!chrome|android).)*safari/i.test(gC())}function Af(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Co(e)&&(a=e.offsetWidth>0&&Tf(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Tf(n.height)/e.offsetHeight||1);var i=_c(e)?Ga(e):window,l=i.visualViewport,c=!k9()&&r,s=(n.left+(c&&l?l.offsetLeft:0))/a,f=(n.top+(c&&l?l.offsetTop:0))/o,h=n.width/a,v=n.height/o;return{width:h,height:v,top:f,right:s+h,bottom:f+v,left:s,x:s,y:f}}function j2(e){var t=Af(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function j9(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&k2(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ws(e){return Ga(e).getComputedStyle(e)}function CCe(e){return["table","td","th"].indexOf(Ti(e))>=0}function ru(e){return((_c(e)?e.ownerDocument:e.document)||window.document).documentElement}function l1(e){return Ti(e)==="html"?e:e.assignedSlot||e.parentNode||(k2(e)?e.host:null)||ru(e)}function zL(e){return!Co(e)||ws(e).position==="fixed"?null:e.offsetParent}function OCe(e){var t=/firefox/i.test(gC()),r=/Trident/i.test(gC());if(r&&Co(e)){var n=ws(e);if(n.position==="fixed")return null}var a=l1(e);for(k2(a)&&(a=a.host);Co(a)&&["html","body"].indexOf(Ti(a))<0;){var o=ws(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function om(e){for(var t=Ga(e),r=zL(e);r&&CCe(r)&&ws(r).position==="static";)r=zL(r);return r&&(Ti(r)==="html"||Ti(r)==="body"&&ws(r).position==="static")?t:r||OCe(e)||t}function I2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $h(e,t,r){return oc(e,V0(t,r))}function PCe(e,t,r){var n=$h(e,t,r);return n>r?r:n}function I9(){return{top:0,right:0,bottom:0,left:0}}function T9(e){return Object.assign({},I9(),e)}function A9(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var RCe=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,T9(typeof t!="number"?t:A9(t,am))};function $Ce(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,l=ki(r.placement),c=I2(l),s=[Pa,To].indexOf(l)>=0,f=s?"height":"width";if(!(!o||!i)){var h=RCe(a.padding,r),v=j2(o),m=c==="y"?Oa:Pa,b=c==="y"?Io:To,w=r.rects.reference[f]+r.rects.reference[c]-i[c]-r.rects.popper[f],O=i[c]-r.rects.reference[c],_=om(o),y=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,x=w/2-O/2,S=h[m],P=y-v[f]-h[b],C=y/2-v[f]/2+x,$=$h(S,C,P),R=c;r.modifiersData[n]=(t={},t[R]=$,t.centerOffset=$-C,t)}}function kCe(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||j9(t.elements.popper,a)&&(t.elements.arrow=a))}const jCe={name:"arrow",enabled:!0,phase:"main",fn:$Ce,effect:kCe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mf(e){return e.split("-")[1]}var ICe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function TCe(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:Tf(r*a)/a||0,y:Tf(n*a)/a||0}}function UL(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,l=e.position,c=e.gpuAcceleration,s=e.adaptive,f=e.roundOffsets,h=e.isFixed,v=i.x,m=v===void 0?0:v,b=i.y,w=b===void 0?0:b,O=typeof f=="function"?f({x:m,y:w}):{x:m,y:w};m=O.x,w=O.y;var _=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),x=Pa,S=Oa,P=window;if(s){var C=om(r),$="clientHeight",R="clientWidth";if(C===Ga(r)&&(C=ru(r),ws(C).position!=="static"&&l==="absolute"&&($="scrollHeight",R="scrollWidth")),C=C,a===Oa||(a===Pa||a===To)&&o===gv){S=Io;var k=h&&C===P&&P.visualViewport?P.visualViewport.height:C[$];w-=k-n.height,w*=c?1:-1}if(a===Pa||(a===Oa||a===Io)&&o===gv){x=To;var I=h&&C===P&&P.visualViewport?P.visualViewport.width:C[R];m-=I-n.width,m*=c?1:-1}}var M=Object.assign({position:l},s&&ICe),F=f===!0?TCe({x:m,y:w},Ga(r)):{x:m,y:w};if(m=F.x,w=F.y,c){var L;return Object.assign({},M,(L={},L[S]=y?"0":"",L[x]=_?"0":"",L.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+w+"px)":"translate3d("+m+"px, "+w+"px, 0)",L))}return Object.assign({},M,(t={},t[S]=y?w+"px":"",t[x]=_?m+"px":"",t.transform="",t))}function ACe(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,l=r.roundOffsets,c=l===void 0?!0:l,s={placement:ki(t.placement),variation:Mf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,UL(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,UL(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const MCe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ACe,data:{}};var Ag={passive:!0};function FCe(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,l=i===void 0?!0:i,c=Ga(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&s.forEach(function(f){f.addEventListener("scroll",r.update,Ag)}),l&&c.addEventListener("resize",r.update,Ag),function(){o&&s.forEach(function(f){f.removeEventListener("scroll",r.update,Ag)}),l&&c.removeEventListener("resize",r.update,Ag)}}const LCe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:FCe,data:{}};var DCe={left:"right",right:"left",bottom:"top",top:"bottom"};function Sy(e){return e.replace(/left|right|bottom|top/g,function(t){return DCe[t]})}var NCe={start:"end",end:"start"};function VL(e){return e.replace(/start|end/g,function(t){return NCe[t]})}function T2(e){var t=Ga(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function A2(e){return Af(ru(e)).left+T2(e).scrollLeft}function BCe(e,t){var r=Ga(e),n=ru(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,c=0;if(a){o=a.width,i=a.height;var s=k9();(s||!s&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:o,height:i,x:l+A2(e),y:c}}function zCe(e){var t,r=ru(e),n=T2(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=oc(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=oc(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-n.scrollLeft+A2(e),c=-n.scrollTop;return ws(a||r).direction==="rtl"&&(l+=oc(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:l,y:c}}function M2(e){var t=ws(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function M9(e){return["html","body","#document"].indexOf(Ti(e))>=0?e.ownerDocument.body:Co(e)&&M2(e)?e:M9(l1(e))}function kh(e,t){var r;t===void 0&&(t=[]);var n=M9(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Ga(n),i=a?[o].concat(o.visualViewport||[],M2(n)?n:[]):n,l=t.concat(i);return a?l:l.concat(kh(l1(i)))}function yC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function UCe(e,t){var r=Af(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function WL(e,t,r){return t===R9?yC(BCe(e,r)):_c(t)?UCe(t,r):yC(zCe(ru(e)))}function VCe(e){var t=kh(l1(e)),r=["absolute","fixed"].indexOf(ws(e).position)>=0,n=r&&Co(e)?om(e):e;return _c(n)?t.filter(function(a){return _c(a)&&j9(a,n)&&Ti(a)!=="body"}):[]}function WCe(e,t,r,n){var a=t==="clippingParents"?VCe(e):[].concat(t),o=[].concat(a,[r]),i=o[0],l=o.reduce(function(c,s){var f=WL(e,s,n);return c.top=oc(f.top,c.top),c.right=V0(f.right,c.right),c.bottom=V0(f.bottom,c.bottom),c.left=oc(f.left,c.left),c},WL(e,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function F9(e){var t=e.reference,r=e.element,n=e.placement,a=n?ki(n):null,o=n?Mf(n):null,i=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,c;switch(a){case Oa:c={x:i,y:t.y-r.height};break;case Io:c={x:i,y:t.y+t.height};break;case To:c={x:t.x+t.width,y:l};break;case Pa:c={x:t.x-r.width,y:l};break;default:c={x:t.x,y:t.y}}var s=a?I2(a):null;if(s!=null){var f=s==="y"?"height":"width";switch(o){case If:c[s]=c[s]-(t[f]/2-r[f]/2);break;case gv:c[s]=c[s]+(t[f]/2-r[f]/2);break}}return c}function yv(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,l=r.boundary,c=l===void 0?cCe:l,s=r.rootBoundary,f=s===void 0?R9:s,h=r.elementContext,v=h===void 0?qp:h,m=r.altBoundary,b=m===void 0?!1:m,w=r.padding,O=w===void 0?0:w,_=T9(typeof O!="number"?O:A9(O,am)),y=v===qp?dCe:qp,x=e.rects.popper,S=e.elements[b?y:v],P=WCe(_c(S)?S:S.contextElement||ru(e.elements.popper),c,f,i),C=Af(e.elements.reference),$=F9({reference:C,element:x,strategy:"absolute",placement:a}),R=yC(Object.assign({},x,$)),k=v===qp?R:C,I={top:P.top-k.top+_.top,bottom:k.bottom-P.bottom+_.bottom,left:P.left-k.left+_.left,right:k.right-P.right+_.right},M=e.modifiersData.offset;if(v===qp&&M){var F=M[a];Object.keys(I).forEach(function(L){var B=[To,Io].indexOf(L)>=0?1:-1,V=[Oa,Io].indexOf(L)>=0?"y":"x";I[L]+=F[V]*B})}return I}function HCe(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,l=r.flipVariations,c=r.allowedAutoPlacements,s=c===void 0?$9:c,f=Mf(n),h=f?l?BL:BL.filter(function(b){return Mf(b)===f}):am,v=h.filter(function(b){return s.indexOf(b)>=0});v.length===0&&(v=h);var m=v.reduce(function(b,w){return b[w]=yv(e,{placement:w,boundary:a,rootBoundary:o,padding:i})[ki(w)],b},{});return Object.keys(m).sort(function(b,w){return m[b]-m[w]})}function qCe(e){if(ki(e)===$2)return[];var t=Sy(e);return[VL(e),t,VL(t)]}function GCe(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,l=i===void 0?!0:i,c=r.fallbackPlacements,s=r.padding,f=r.boundary,h=r.rootBoundary,v=r.altBoundary,m=r.flipVariations,b=m===void 0?!0:m,w=r.allowedAutoPlacements,O=t.options.placement,_=ki(O),y=_===O,x=c||(y||!b?[Sy(O)]:qCe(O)),S=[O].concat(x).reduce(function(le,ge){return le.concat(ki(ge)===$2?HCe(t,{placement:ge,boundary:f,rootBoundary:h,padding:s,flipVariations:b,allowedAutoPlacements:w}):ge)},[]),P=t.rects.reference,C=t.rects.popper,$=new Map,R=!0,k=S[0],I=0;I=0,V=B?"width":"height",H=yv(t,{placement:M,boundary:f,rootBoundary:h,altBoundary:v,padding:s}),W=B?L?To:Pa:L?Io:Oa;P[V]>C[V]&&(W=Sy(W));var z=Sy(W),q=[];if(o&&q.push(H[F]<=0),l&&q.push(H[W]<=0,H[z]<=0),q.every(function(le){return le})){k=M,R=!1;break}$.set(M,q)}if(R)for(var ee=b?3:1,oe=function(ge){var pe=S.find(function(me){var xe=$.get(me);if(xe)return xe.slice(0,ge).every(function(ne){return ne})});if(pe)return k=pe,"break"},J=ee;J>0;J--){var we=oe(J);if(we==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const KCe={name:"flip",enabled:!0,phase:"main",fn:GCe,requiresIfExists:["offset"],data:{_skip:!1}};function HL(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function qL(e){return[Oa,To,Io,Pa].some(function(t){return e[t]>=0})}function QCe(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=yv(t,{elementContext:"reference"}),l=yv(t,{altBoundary:!0}),c=HL(i,n),s=HL(l,a,o),f=qL(c),h=qL(s);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:s,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const XCe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:QCe};function YCe(e,t,r){var n=ki(e),a=[Pa,Oa].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],l=o[1];return i=i||0,l=(l||0)*a,[Pa,To].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function JCe(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=$9.reduce(function(f,h){return f[h]=YCe(h,t.rects,o),f},{}),l=i[t.placement],c=l.x,s=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=i}const ZCe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:JCe};function eOe(e){var t=e.state,r=e.name;t.modifiersData[r]=F9({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const tOe={name:"popperOffsets",enabled:!0,phase:"read",fn:eOe,data:{}};function rOe(e){return e==="x"?"y":"x"}function nOe(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,l=i===void 0?!1:i,c=r.boundary,s=r.rootBoundary,f=r.altBoundary,h=r.padding,v=r.tether,m=v===void 0?!0:v,b=r.tetherOffset,w=b===void 0?0:b,O=yv(t,{boundary:c,rootBoundary:s,padding:h,altBoundary:f}),_=ki(t.placement),y=Mf(t.placement),x=!y,S=I2(_),P=rOe(S),C=t.modifiersData.popperOffsets,$=t.rects.reference,R=t.rects.popper,k=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,I=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(C){if(o){var L,B=S==="y"?Oa:Pa,V=S==="y"?Io:To,H=S==="y"?"height":"width",W=C[S],z=W+O[B],q=W-O[V],ee=m?-R[H]/2:0,oe=y===If?$[H]:R[H],J=y===If?-R[H]:-$[H],we=t.elements.arrow,le=m&&we?j2(we):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:I9(),pe=ge[B],me=ge[V],xe=$h(0,$[H],le[H]),ne=x?$[H]/2-ee-xe-pe-I.mainAxis:oe-xe-pe-I.mainAxis,Te=x?-$[H]/2+ee+xe+me+I.mainAxis:J+xe+me+I.mainAxis,ve=t.elements.arrow&&om(t.elements.arrow),$e=ve?S==="y"?ve.clientTop||0:ve.clientLeft||0:0,ye=(L=M==null?void 0:M[S])!=null?L:0,je=W+ne-ye-$e,Le=W+Te-ye,st=$h(m?V0(z,je):z,W,m?oc(q,Le):q);C[S]=st,F[S]=st-W}if(l){var Xe,U=S==="x"?Oa:Pa,K=S==="x"?Io:To,Z=C[P],ie=P==="y"?"height":"width",ue=Z+O[U],ce=Z-O[K],Ee=[Oa,Pa].indexOf(_)!==-1,Ae=(Xe=M==null?void 0:M[P])!=null?Xe:0,ft=Ee?ue:Z-$[ie]-R[ie]-Ae+I.altAxis,De=Ee?Z+$[ie]+R[ie]-Ae-I.altAxis:ce,Ze=m&&Ee?PCe(ft,Z,De):$h(m?ft:ue,Z,m?De:ce);C[P]=Ze,F[P]=Ze-Z}t.modifiersData[n]=F}}const aOe={name:"preventOverflow",enabled:!0,phase:"main",fn:nOe,requiresIfExists:["offset"]};function oOe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function iOe(e){return e===Ga(e)||!Co(e)?T2(e):oOe(e)}function sOe(e){var t=e.getBoundingClientRect(),r=Tf(t.width)/e.offsetWidth||1,n=Tf(t.height)/e.offsetHeight||1;return r!==1||n!==1}function lOe(e,t,r){r===void 0&&(r=!1);var n=Co(t),a=Co(t)&&sOe(t),o=ru(t),i=Af(e,a,r),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Ti(t)!=="body"||M2(o))&&(l=iOe(t)),Co(t)?(c=Af(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=A2(o))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function uOe(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(l){if(!r.has(l)){var c=t.get(l);c&&a(c)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function cOe(e){var t=uOe(e);return xCe.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function dOe(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function fOe(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var GL={placement:"bottom",modifiers:[],strategy:"absolute"};function KL(){for(var e=arguments.length,t=new Array(e),r=0;r{o||l(mOe(a)||document.body)},[a,o]),qa(()=>{if(i&&!o)return D0(r,i),()=>{D0(r,null)}},[r,i,o]),o){if(d.isValidElement(n)){const s={ref:c};return d.cloneElement(n,s)}return E.jsx(d.Fragment,{children:n})}return E.jsx(d.Fragment,{children:i&&Fv.createPortal(n,i)})});function gOe(e){return et("MuiPopper",e)}ot("MuiPopper",["root"]);const yOe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],bOe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function _Oe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function bC(e){return typeof e=="function"?e():e}function xOe(e){return e.nodeType!==void 0}const wOe=e=>{const{classes:t}=e;return tt({root:["root"]},gOe,t)},SOe={},EOe=d.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:i,disablePortal:l,modifiers:c,open:s,placement:f,popperOptions:h,popperRef:v,slotProps:m={},slots:b={},TransitionProps:w}=t,O=Re(t,yOe),_=d.useRef(null),y=Ir(_,r),x=d.useRef(null),S=Ir(x,v),P=d.useRef(S);qa(()=>{P.current=S},[S]),d.useImperativeHandle(v,()=>x.current,[]);const C=_Oe(f,i),[$,R]=d.useState(C),[k,I]=d.useState(bC(a));d.useEffect(()=>{x.current&&x.current.forceUpdate()}),d.useEffect(()=>{a&&I(bC(a))},[a]),qa(()=>{if(!k||!s)return;const V=z=>{R(z.placement)};let H=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];c!=null&&(H=H.concat(c)),h&&h.modifiers!=null&&(H=H.concat(h.modifiers));const W=vOe(k,_.current,T({placement:C},h,{modifiers:H}));return P.current(W),()=>{W.destroy(),P.current(null)}},[k,l,c,s,h,C]);const M={placement:$};w!==null&&(M.TransitionProps=w);const F=wOe(t),L=(n=b.root)!=null?n:"div",B=ko({elementType:L,externalSlotProps:m.root,externalForwardedProps:O,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:F.root});return E.jsx(L,T({},B,{children:typeof o=="function"?o(M):o}))}),COe=d.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:s,open:f,placement:h="bottom",popperOptions:v=SOe,popperRef:m,style:b,transition:w=!1,slotProps:O={},slots:_={}}=t,y=Re(t,bOe),[x,S]=d.useState(!0),P=()=>{S(!1)},C=()=>{S(!0)};if(!c&&!f&&(!w||x))return null;let $;if(o)$=o;else if(n){const I=bC(n);$=I&&xOe(I)?tn(I).body:tn(null).body}const R=!f&&c&&(!w||x)?"none":void 0,k=w?{in:f,onEnter:P,onExited:C}:void 0;return E.jsx(L9,{disablePortal:l,container:$,children:E.jsx(EOe,T({anchorEl:n,direction:i,disablePortal:l,modifiers:s,ref:r,open:w?!x:f,placement:h,popperOptions:v,popperRef:m,slotProps:O,slots:_},y,{style:T({position:"fixed",top:0,left:0,display:R},b),TransitionProps:k,children:a}))})}),OOe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],POe=te(COe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),D9=d.forwardRef(function(t,r){var n;const a=O9(),o=rt({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:c,componentsProps:s,container:f,disablePortal:h,keepMounted:v,modifiers:m,open:b,placement:w,popperOptions:O,popperRef:_,transition:y,slots:x,slotProps:S}=o,P=Re(o,OOe),C=(n=x==null?void 0:x.root)!=null?n:c==null?void 0:c.Root,$=T({anchorEl:i,container:f,disablePortal:h,keepMounted:v,modifiers:m,open:b,placement:w,popperOptions:O,popperRef:_,transition:y},P);return E.jsx(POe,T({as:l,direction:a==null?void 0:a.direction,slots:{root:C},slotProps:S??s},$,{ref:r}))}),ROe=["onChange","maxRows","minRows","style","value"];function Mg(e){return parseInt(e,10)||0}const $Oe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function kOe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const jOe=d.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:l}=t,c=Re(t,ROe),{current:s}=d.useRef(l!=null),f=d.useRef(null),h=Ir(r,f),v=d.useRef(null),m=d.useRef(null),b=d.useCallback(()=>{const _=f.current,x=$o(_).getComputedStyle(_);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=m.current;S.style.width=x.width,S.value=_.value||t.placeholder||"x",S.value.slice(-1)===` +`&&(S.value+=" ");const P=x.boxSizing,C=Mg(x.paddingBottom)+Mg(x.paddingTop),$=Mg(x.borderBottomWidth)+Mg(x.borderTopWidth),R=S.scrollHeight;S.value="x";const k=S.scrollHeight;let I=R;o&&(I=Math.max(Number(o)*k,I)),a&&(I=Math.min(Number(a)*k,I)),I=Math.max(I,k);const M=I+(P==="border-box"?C+$:0),F=Math.abs(I-R)<=1;return{outerHeightStyle:M,overflowing:F}},[a,o,t.placeholder]),w=d.useCallback(()=>{const _=b();if(kOe(_))return;const y=_.outerHeightStyle,x=f.current;v.current!==y&&(v.current=y,x.style.height=`${y}px`),x.style.overflow=_.overflowing?"hidden":""},[b]);qa(()=>{const _=()=>{w()};let y;const x=op(_),S=f.current,P=$o(S);P.addEventListener("resize",x);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(_),C.observe(S)),()=>{x.clear(),cancelAnimationFrame(y),P.removeEventListener("resize",x),C&&C.disconnect()}},[b,w]),qa(()=>{w()});const O=_=>{s||w(),n&&n(_)};return E.jsxs(d.Fragment,{children:[E.jsx("textarea",T({value:l,onChange:O,ref:h,rows:o,style:i},c)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:T({},$Oe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function js({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const u1=d.createContext(void 0);function si(){return d.useContext(u1)}function N9(e){return E.jsx(qxe,T({},e,{defaultTheme:i1,themeId:gc}))}function QL(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function W0(e,t=!1){return e&&(QL(e.value)&&e.value!==""||t&&QL(e.defaultValue)&&e.defaultValue!=="")}function IOe(e){return e.startAdornment}function TOe(e){return et("MuiInputBase",e)}const Ff=ot("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),AOe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],c1=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Pe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},d1=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},MOe=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:l,fullWidth:c,hiddenLabel:s,multiline:f,readOnly:h,size:v,startAdornment:m,type:b}=e,w={root:["root",`color${Pe(r)}`,n&&"disabled",a&&"error",c&&"fullWidth",i&&"focused",l&&"formControl",v&&v!=="medium"&&`size${Pe(v)}`,f&&"multiline",m&&"adornedStart",o&&"adornedEnd",s&&"hiddenLabel",h&&"readOnly"],input:["input",n&&"disabled",b==="search"&&"inputTypeSearch",f&&"inputMultiline",v==="small"&&"inputSizeSmall",s&&"inputHiddenLabel",m&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return tt(w,TOe,t)},f1=te("div",{name:"MuiInputBase",slot:"Root",overridesResolver:c1})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ff.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),p1=te("input",{name:"MuiInputBase",slot:"Input",overridesResolver:d1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ff.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Ff.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),FOe=E.jsx(N9,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),h1=d.forwardRef(function(t,r){var n;const a=rt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:l,className:c,components:s={},componentsProps:f={},defaultValue:h,disabled:v,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:w=!1,id:O,inputComponent:_="input",inputProps:y={},inputRef:x,maxRows:S,minRows:P,multiline:C=!1,name:$,onBlur:R,onChange:k,onClick:I,onFocus:M,onKeyDown:F,onKeyUp:L,placeholder:B,readOnly:V,renderSuffix:H,rows:W,slotProps:z={},slots:q={},startAdornment:ee,type:oe="text",value:J}=a,we=Re(a,AOe),le=y.value!=null?y.value:J,{current:ge}=d.useRef(le!=null),pe=d.useRef(),me=d.useCallback(Ze=>{},[]),xe=Ir(pe,x,y.ref,me),[ne,Te]=d.useState(!1),ve=si(),$e=js({props:a,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=ve?ve.focused:ne,d.useEffect(()=>{!ve&&v&&ne&&(Te(!1),R&&R())},[ve,v,ne,R]);const ye=ve&&ve.onFilled,je=ve&&ve.onEmpty,Le=d.useCallback(Ze=>{W0(Ze)?ye&&ye():je&&je()},[ye,je]);qa(()=>{ge&&Le({value:le})},[le,Le,ge]);const st=Ze=>{if($e.disabled){Ze.stopPropagation();return}M&&M(Ze),y.onFocus&&y.onFocus(Ze),ve&&ve.onFocus?ve.onFocus(Ze):Te(!0)},Xe=Ze=>{R&&R(Ze),y.onBlur&&y.onBlur(Ze),ve&&ve.onBlur?ve.onBlur(Ze):Te(!1)},U=(Ze,...Ve)=>{if(!ge){const _t=Ze.target||pe.current;if(_t==null)throw new Error(xs(1));Le({value:_t.value})}y.onChange&&y.onChange(Ze,...Ve),k&&k(Ze,...Ve)};d.useEffect(()=>{Le(pe.current)},[]);const K=Ze=>{pe.current&&Ze.currentTarget===Ze.target&&pe.current.focus(),I&&I(Ze)};let Z=_,ie=y;C&&Z==="input"&&(W?ie=T({type:void 0,minRows:W,maxRows:W},ie):ie=T({type:void 0,maxRows:S,minRows:P},ie),Z=jOe);const ue=Ze=>{Le(Ze.animationName==="mui-auto-fill-cancel"?pe.current:{value:"x"})};d.useEffect(()=>{ve&&ve.setAdornedStart(!!ee)},[ve,ee]);const ce=T({},a,{color:$e.color||"primary",disabled:$e.disabled,endAdornment:b,error:$e.error,focused:$e.focused,formControl:ve,fullWidth:w,hiddenLabel:$e.hiddenLabel,multiline:C,size:$e.size,startAdornment:ee,type:oe}),Ee=MOe(ce),Ae=q.root||s.Root||f1,ft=z.root||f.root||{},De=q.input||s.Input||p1;return ie=T({},ie,(n=z.input)!=null?n:f.input),E.jsxs(d.Fragment,{children:[!m&&FOe,E.jsxs(Ae,T({},ft,!mv(Ae)&&{ownerState:T({},ce,ft.ownerState)},{ref:r,onClick:K},we,{className:de(Ee.root,ft.className,c,V&&"MuiInputBase-readOnly"),children:[ee,E.jsx(u1.Provider,{value:null,children:E.jsx(De,T({ownerState:ce,"aria-invalid":$e.error,"aria-describedby":o,autoComplete:i,autoFocus:l,defaultValue:h,disabled:$e.disabled,id:O,onAnimationStart:ue,name:$,placeholder:B,readOnly:V,required:$e.required,rows:W,value:le,onKeyDown:F,onKeyUp:L,type:oe},ie,!mv(De)&&{as:Z,ownerState:T({},ce,ie.ownerState)},{ref:xe,className:de(Ee.input,ie.className,V&&"MuiInputBase-readOnly"),onBlur:Xe,onChange:U,onFocus:st}))}),b,H?H(T({},$e,{startAdornment:ee})):null]}))]})});function LOe(e){return et("MuiInput",e)}const Gp=T({},Ff,ot("MuiInput",["root","underline","input"]));function DOe(e){return et("MuiOutlinedInput",e)}const Gs=T({},Ff,ot("MuiOutlinedInput",["root","notchedOutline","input"]));function NOe(e){return et("MuiFilledInput",e)}const yu=T({},Ff,ot("MuiFilledInput",["root","underline","input"])),B9=Za(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),BOe=Za(E.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function zOe(e){return et("MuiAvatar",e)}ot("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const UOe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],VOe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return tt({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},zOe,t)},WOe=te("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:T({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),HOe=te("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),qOe=te(BOe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function GOe({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=d.useState(!1);return d.useEffect(()=>{if(!r&&!n)return;o(!1);let i=!0;const l=new Image;return l.onload=()=>{i&&o("loaded")},l.onerror=()=>{i&&o("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=r,n&&(l.srcset=n),()=>{i=!1}},[e,t,r,n]),a}const bv=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:i,component:l="div",slots:c={},slotProps:s={},imgProps:f,sizes:h,src:v,srcSet:m,variant:b="circular"}=n,w=Re(n,UOe);let O=null;const _=GOe(T({},f,{src:v,srcSet:m})),y=v||m,x=y&&_!=="error",S=T({},n,{colorDefault:!x,component:l,variant:b}),P=VOe(S),[C,$]=REe("img",{className:P.img,elementType:HOe,externalForwardedProps:{slots:c,slotProps:{img:T({},f,s.img)}},additionalProps:{alt:a,src:v,srcSet:m,sizes:h},ownerState:S});return x?O=E.jsx(C,T({},$)):o||o===0?O=o:y&&a?O=a[0]:O=E.jsx(qOe,{ownerState:S,className:P.fallback}),E.jsx(WOe,T({as:l,ownerState:S,className:de(P.root,i),ref:r},w,{children:O}))}),KOe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],QOe={entering:{opacity:1},entered:{opacity:1}},z9=d.forwardRef(function(t,r){const n=Ja(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:l,easing:c,in:s,onEnter:f,onEntered:h,onEntering:v,onExit:m,onExited:b,onExiting:w,style:O,timeout:_=a,TransitionComponent:y=ii}=t,x=Re(t,KOe),S=d.useRef(null),P=Ir(S,l.ref,r),C=B=>V=>{if(B){const H=S.current;V===void 0?B(H):B(H,V)}},$=C(v),R=C((B,V)=>{P2(B);const H=jf({style:O,timeout:_,easing:c},{mode:"enter"});B.style.webkitTransition=n.transitions.create("opacity",H),B.style.transition=n.transitions.create("opacity",H),f&&f(B,V)}),k=C(h),I=C(w),M=C(B=>{const V=jf({style:O,timeout:_,easing:c},{mode:"exit"});B.style.webkitTransition=n.transitions.create("opacity",V),B.style.transition=n.transitions.create("opacity",V),m&&m(B)}),F=C(b),L=B=>{o&&o(S.current,B)};return E.jsx(y,T({appear:i,in:s,nodeRef:S,onEnter:R,onEntered:k,onEntering:$,onExit:M,onExited:F,onExiting:I,addEndListener:L,timeout:_},x,{children:(B,V)=>d.cloneElement(l,T({style:T({opacity:0,visibility:B==="exited"&&!s?"hidden":void 0},QOe[B],O,l.props.style),ref:P},V))}))});function XOe(e){return et("MuiBackdrop",e)}ot("MuiBackdrop",["root","invisible"]);const YOe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],JOe=e=>{const{classes:t,invisible:r}=e;return tt({root:["root",r&&"invisible"]},XOe,t)},ZOe=te("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),U9=d.forwardRef(function(t,r){var n,a,o;const i=rt({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:s="div",components:f={},componentsProps:h={},invisible:v=!1,open:m,slotProps:b={},slots:w={},TransitionComponent:O=z9,transitionDuration:_}=i,y=Re(i,YOe),x=T({},i,{component:s,invisible:v}),S=JOe(x),P=(n=b.root)!=null?n:h.root;return E.jsx(O,T({in:m,timeout:_},y,{children:E.jsx(ZOe,T({"aria-hidden":!0},P,{as:(a=(o=w.root)!=null?o:f.Root)!=null?a:s,className:de(S.root,c,P==null?void 0:P.className),ownerState:T({},x,P==null?void 0:P.ownerState),classes:S,ref:r,children:l}))}))}),ePe=ot("MuiBox",["root"]),tPe=z0(),aa=Jxe({themeId:gc,defaultTheme:tPe,defaultClassName:ePe.root,generateClassName:b2.generate});function rPe(e){return et("MuiButton",e)}const Fg=ot("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),nPe=d.createContext({}),aPe=d.createContext(void 0),oPe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],iPe=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=e,l={root:["root",o,`${o}${Pe(t)}`,`size${Pe(a)}`,`${o}Size${Pe(a)}`,`color${Pe(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Pe(a)}`],endIcon:["icon","endIcon",`iconSize${Pe(a)}`]},c=tt(l,rPe,i);return T({},i,c)},V9=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),sPe=te(ks,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Pe(r.color)}`],t[`size${Pe(r.size)}`],t[`${r.variant}Size${Pe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Fg.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Fg.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${nr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Fg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Fg.disabled}`]:{boxShadow:"none"}}),lPe=te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Pe(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},V9(e))),uPe=te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Pe(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},V9(e))),nn=d.forwardRef(function(t,r){const n=d.useContext(nPe),a=d.useContext(aPe),o=vv(n,t),i=rt({props:o,name:"MuiButton"}),{children:l,color:c="primary",component:s="button",className:f,disabled:h=!1,disableElevation:v=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:w,fullWidth:O=!1,size:_="medium",startIcon:y,type:x,variant:S="text"}=i,P=Re(i,oPe),C=T({},i,{color:c,component:s,disabled:h,disableElevation:v,disableFocusRipple:m,fullWidth:O,size:_,type:x,variant:S}),$=iPe(C),R=y&&E.jsx(lPe,{className:$.startIcon,ownerState:C,children:y}),k=b&&E.jsx(uPe,{className:$.endIcon,ownerState:C,children:b}),I=a||"";return E.jsxs(sPe,T({ownerState:C,className:de(n.className,$.root,f,I),component:s,disabled:h,focusRipple:!m,focusVisibleClassName:de($.focusVisible,w),ref:r,type:x},P,{classes:$,children:[R,l,k]}))});function cPe(e){return et("MuiCard",e)}ot("MuiCard",["root"]);const dPe=["className","raised"],fPe=e=>{const{classes:t}=e;return tt({root:["root"]},cPe,t)},pPe=te(tu,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),$c=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,i=Re(n,dPe),l=T({},n,{raised:o}),c=fPe(l);return E.jsx(pPe,T({className:de(c.root,a),elevation:o?8:void 0,ref:r,ownerState:l},i))});function hPe(e){return et("MuiCardActions",e)}ot("MuiCardActions",["root","spacing"]);const vPe=["disableSpacing","className"],mPe=e=>{const{classes:t,disableSpacing:r}=e;return tt({root:["root",!r&&"spacing"]},hPe,t)},gPe=te("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),W9=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCardActions"}),{disableSpacing:a=!1,className:o}=n,i=Re(n,vPe),l=T({},n,{disableSpacing:a}),c=mPe(l);return E.jsx(gPe,T({className:de(c.root,o),ownerState:l,ref:r},i))});function yPe(e){return et("MuiCardContent",e)}ot("MuiCardContent",["root"]);const bPe=["className","component"],_Pe=e=>{const{classes:t}=e;return tt({root:["root"]},yPe,t)},xPe=te("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),vo=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,i=Re(n,bPe),l=T({},n,{component:o}),c=_Pe(l);return E.jsx(xPe,T({as:o,className:de(c.root,a),ownerState:l,ref:r},i))});function wPe(e){return et("MuiCardHeader",e)}const XL=ot("MuiCardHeader",["root","avatar","action","content","title","subheader"]),SPe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],EPe=e=>{const{classes:t}=e;return tt({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},wPe,t)},CPe=te("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${XL.title}`]:t.title,[`& .${XL.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),OPe=te("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),PPe=te("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),RPe=te("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),bu=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCardHeader"}),{action:a,avatar:o,className:i,component:l="div",disableTypography:c=!1,subheader:s,subheaderTypographyProps:f,title:h,titleTypographyProps:v}=n,m=Re(n,SPe),b=T({},n,{component:l,disableTypography:c}),w=EPe(b);let O=h;O!=null&&O.type!==$t&&!c&&(O=E.jsx($t,T({variant:o?"body2":"h5",className:w.title,component:"span",display:"block"},v,{children:O})));let _=s;return _!=null&&_.type!==$t&&!c&&(_=E.jsx($t,T({variant:o?"body2":"body1",className:w.subheader,color:"text.secondary",component:"span",display:"block"},f,{children:_}))),E.jsxs(CPe,T({className:de(w.root,i),as:l,ref:r,ownerState:b},m,{children:[o&&E.jsx(OPe,{className:w.avatar,ownerState:b,children:o}),E.jsxs(RPe,{className:w.content,ownerState:b,children:[O,_]}),a&&E.jsx(PPe,{className:w.action,ownerState:b,children:a})]}))});function $Pe(e){return et("PrivateSwitchBase",e)}ot("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const kPe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],jPe=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${Pe(a)}`],input:["input"]};return tt(o,$Pe,t)},IPe=te(ks)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),TPe=te("input",{shouldForwardProp:In})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),H9=d.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:i,defaultChecked:l,disabled:c,disableFocusRipple:s=!1,edge:f=!1,icon:h,id:v,inputProps:m,inputRef:b,name:w,onBlur:O,onChange:_,onFocus:y,readOnly:x,required:S=!1,tabIndex:P,type:C,value:$}=t,R=Re(t,kPe),[k,I]=kf({controlled:a,default:!!l,name:"SwitchBase",state:"checked"}),M=si(),F=q=>{y&&y(q),M&&M.onFocus&&M.onFocus(q)},L=q=>{O&&O(q),M&&M.onBlur&&M.onBlur(q)},B=q=>{if(q.nativeEvent.defaultPrevented)return;const ee=q.target.checked;I(ee),_&&_(q,ee)};let V=c;M&&typeof V>"u"&&(V=M.disabled);const H=C==="checkbox"||C==="radio",W=T({},t,{checked:k,disabled:V,disableFocusRipple:s,edge:f}),z=jPe(W);return E.jsxs(IPe,T({component:"span",className:de(z.root,i),centerRipple:!0,focusRipple:!s,disabled:V,tabIndex:null,role:void 0,onFocus:F,onBlur:L,ownerState:W,ref:r},R,{children:[E.jsx(TPe,T({autoFocus:n,checked:a,defaultChecked:l,className:z.input,disabled:V,id:H?v:void 0,name:w,onChange:B,readOnly:x,ref:b,required:S,ownerState:W,tabIndex:P,type:C},C==="checkbox"&&$===void 0?{}:{value:$},m)),k?o:h]}))}),APe=Za(E.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),MPe=Za(E.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),FPe=Za(E.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function LPe(e){return et("MuiCheckbox",e)}const aS=ot("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),DPe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],NPe=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${Pe(n)}`,`size${Pe(a)}`]},i=tt(o,LPe,t);return T({},t,i)},BPe=te(H9,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Pe(r.size)}`],r.color!=="default"&&t[`color${Pe(r.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${aS.checked}, &.${aS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${aS.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),zPe=E.jsx(MPe,{}),UPe=E.jsx(APe,{}),VPe=E.jsx(FPe,{}),Lf=d.forwardRef(function(t,r){var n,a;const o=rt({props:t,name:"MuiCheckbox"}),{checkedIcon:i=zPe,color:l="primary",icon:c=UPe,indeterminate:s=!1,indeterminateIcon:f=VPe,inputProps:h,size:v="medium",className:m}=o,b=Re(o,DPe),w=s?f:c,O=s?f:i,_=T({},o,{color:l,indeterminate:s,size:v}),y=NPe(_);return E.jsx(BPe,T({type:"checkbox",inputProps:T({"data-indeterminate":s},h),icon:d.cloneElement(w,{fontSize:(n=w.props.fontSize)!=null?n:v}),checkedIcon:d.cloneElement(O,{fontSize:(a=O.props.fontSize)!=null?a:v}),ownerState:_,ref:r,className:de(y.root,m)},b,{classes:y}))});function WPe(e){return et("MuiCircularProgress",e)}ot("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const HPe=["className","color","disableShrink","size","style","thickness","value","variant"];let v1=e=>e,YL,JL,ZL,eD;const Ks=44,qPe=$s(YL||(YL=v1` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),GPe=$s(JL||(JL=v1` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),KPe=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${Pe(n)}`],svg:["svg"],circle:["circle",`circle${Pe(r)}`,a&&"circleDisableShrink"]};return tt(o,WPe,t)},QPe=te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Pe(r.color)}`]]}})(({ownerState:e,theme:t})=>T({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Rc(ZL||(ZL=v1` + animation: ${0} 1.4s linear infinite; + `),qPe)),XPe=te("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),YPe=te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Pe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>T({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Rc(eD||(eD=v1` + animation: ${0} 1.4s ease-in-out infinite; + `),GPe)),lp=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:l=40,style:c,thickness:s=3.6,value:f=0,variant:h="indeterminate"}=n,v=Re(n,HPe),m=T({},n,{color:o,disableShrink:i,size:l,thickness:s,value:f,variant:h}),b=KPe(m),w={},O={},_={};if(h==="determinate"){const y=2*Math.PI*((Ks-s)/2);w.strokeDasharray=y.toFixed(3),_["aria-valuenow"]=Math.round(f),w.strokeDashoffset=`${((100-f)/100*y).toFixed(3)}px`,O.transform="rotate(-90deg)"}return E.jsx(QPe,T({className:de(b.root,a),style:T({width:l,height:l},O,c),ownerState:m,ref:r,role:"progressbar"},_,v,{children:E.jsx(XPe,{className:b.svg,ownerState:m,viewBox:`${Ks/2} ${Ks/2} ${Ks} ${Ks}`,children:E.jsx(YPe,{className:b.circle,style:w,ownerState:m,cx:Ks,cy:Ks,r:(Ks-s)/2,fill:"none",strokeWidth:s})})}))});function tD(e){return e.substring(2).toLowerCase()}function JPe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=Ir(t.ref,l),h=oa(b=>{const w=s.current;s.current=!1;const O=tn(l.current);if(!c.current||!l.current||"clientX"in b&&JPe(b,O))return;if(i.current){i.current=!1;return}let _;b.composedPath?_=b.composedPath().indexOf(l.current)>-1:_=!O.documentElement.contains(b.target)||l.current.contains(b.target),!_&&(r||!w)&&a(b)}),v=b=>w=>{s.current=!0;const O=t.props[b];O&&O(w)},m={ref:f};return o!==!1&&(m[o]=v(o)),d.useEffect(()=>{if(o!==!1){const b=tD(o),w=tn(l.current),O=()=>{i.current=!0};return w.addEventListener(b,h),w.addEventListener("touchmove",O),()=>{w.removeEventListener(b,h),w.removeEventListener("touchmove",O)}}},[h,o]),n!==!1&&(m[n]=v(n)),d.useEffect(()=>{if(n!==!1){const b=tD(n),w=tn(l.current);return w.addEventListener(b,h),()=>{w.removeEventListener(b,h)}}},[h,n]),E.jsx(d.Fragment,{children:d.cloneElement(t,m)})}const ud=Gwe({createStyledComponent:te("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Pe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>rt({props:e,name:"MuiContainer"})}),eRe=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),tRe=e=>T({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),rRe=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,l])=>{var c;n[e.getColorSchemeSelector(i).replace(/\s*&/,"")]={colorScheme:(c=l.palette)==null?void 0:c.mode}});let a=T({html:eRe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},tRe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return o&&(a=[a,o]),a};function nRe(e){const t=rt({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return E.jsxs(d.Fragment,{children:[E.jsx(N9,{styles:a=>rRe(a,n)}),r]})}function aRe(e){const t=tn(e);return t.body===e?$o(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function jh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rD(e){return parseInt($o(e).getComputedStyle(e).paddingRight,10)||0}function oRe(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function nD(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,i=>{const l=o.indexOf(i)===-1,c=!oRe(i);l&&c&&jh(i,a)})}function oS(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function iRe(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(aRe(n)){const i=i9(tn(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${rD(n)+i}px`;const l=tn(n).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${rD(c)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=tn(n).body;else{const i=n.parentElement,l=$o(n);o=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:l})=>{o?i.style.setProperty(l,o):i.style.removeProperty(l)})}}function sRe(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class lRe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&jh(t.modalRef,!1);const a=sRe(r);nD(r,t.mount,t.modalRef,a,!0);const o=oS(this.containers,i=>i.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=oS(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=iRe(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=oS(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&jh(t.modalRef,r),nD(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const i=o.modals[o.modals.length-1];i.modalRef&&jh(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const uRe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cRe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function dRe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function fRe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||dRe(e))}function pRe(e){const t=[],r=[];return Array.from(e.querySelectorAll(uRe)).forEach((n,a)=>{const o=cRe(n);o===-1||!fRe(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function hRe(){return!0}function vRe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=pRe,isEnabled:i=hRe,open:l}=e,c=d.useRef(!1),s=d.useRef(null),f=d.useRef(null),h=d.useRef(null),v=d.useRef(null),m=d.useRef(!1),b=d.useRef(null),w=Ir(t.ref,b),O=d.useRef(null);d.useEffect(()=>{!l||!b.current||(m.current=!r)},[r,l]),d.useEffect(()=>{if(!l||!b.current)return;const x=tn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{a||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),d.useEffect(()=>{if(!l||!b.current)return;const x=tn(b.current),S=$=>{O.current=$,!(n||!i()||$.key!=="Tab")&&x.activeElement===b.current&&$.shiftKey&&(c.current=!0,f.current&&f.current.focus())},P=()=>{const $=b.current;if($===null)return;if(!x.hasFocus()||!i()||c.current){c.current=!1;return}if($.contains(x.activeElement)||n&&x.activeElement!==s.current&&x.activeElement!==f.current)return;if(x.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!m.current)return;let R=[];if((x.activeElement===s.current||x.activeElement===f.current)&&(R=o(b.current)),R.length>0){var k,I;const M=!!((k=O.current)!=null&&k.shiftKey&&((I=O.current)==null?void 0:I.key)==="Tab"),F=R[0],L=R[R.length-1];typeof F!="string"&&typeof L!="string"&&(M?L.focus():F.focus())}else $.focus()};x.addEventListener("focusin",P),x.addEventListener("keydown",S,!0);const C=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(C),x.removeEventListener("focusin",P),x.removeEventListener("keydown",S,!0)}},[r,n,a,i,l,o]);const _=x=>{h.current===null&&(h.current=x.relatedTarget),m.current=!0,v.current=x.target;const S=t.props.onFocus;S&&S(x)},y=x=>{h.current===null&&(h.current=x.relatedTarget),m.current=!0};return E.jsxs(d.Fragment,{children:[E.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:s,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:w,onFocus:_}),E.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:f,"data-testid":"sentinelEnd"})]})}function mRe(e){return typeof e=="function"?e():e}function gRe(e){return e?e.props.hasOwnProperty("in"):!1}const yRe=new lRe;function bRe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=yRe,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:l,children:c,onClose:s,open:f,rootRef:h}=e,v=d.useRef({}),m=d.useRef(null),b=d.useRef(null),w=Ir(b,h),[O,_]=d.useState(!f),y=gRe(c);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>tn(m.current),P=()=>(v.current.modalRef=b.current,v.current.mount=m.current,v.current),C=()=>{a.mount(P(),{disableScrollLock:n}),b.current&&(b.current.scrollTop=0)},$=oa(()=>{const H=mRe(t)||S().body;a.add(P(),H),b.current&&C()}),R=d.useCallback(()=>a.isTopModal(P()),[a]),k=oa(H=>{m.current=H,H&&(f&&R()?C():b.current&&jh(b.current,x))}),I=d.useCallback(()=>{a.remove(P(),x)},[x,a]);d.useEffect(()=>()=>{I()},[I]),d.useEffect(()=>{f?$():(!y||!o)&&I()},[f,I,y,o,$]);const M=H=>W=>{var z;(z=H.onKeyDown)==null||z.call(H,W),!(W.key!=="Escape"||W.which===229||!R())&&(r||(W.stopPropagation(),s&&s(W,"escapeKeyDown")))},F=H=>W=>{var z;(z=H.onClick)==null||z.call(H,W),W.target===W.currentTarget&&s&&s(W,"backdropClick")};return{getRootProps:(H={})=>{const W=N0(e);delete W.onTransitionEnter,delete W.onTransitionExited;const z=T({},W,H);return T({role:"presentation"},z,{onKeyDown:M(z),ref:w})},getBackdropProps:(H={})=>{const W=H;return T({"aria-hidden":!0},W,{onClick:F(W),open:f})},getTransitionProps:()=>{const H=()=>{_(!1),i&&i()},W=()=>{_(!0),l&&l(),o&&I()};return{onEnter:cC(H,c==null?void 0:c.props.onEnter),onExited:cC(W,c==null?void 0:c.props.onExited)}},rootRef:w,portalRef:k,isTopModal:R,exited:O,hasTransition:y}}function _Re(e){return et("MuiModal",e)}ot("MuiModal",["root","hidden","backdrop"]);const xRe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],wRe=e=>{const{open:t,exited:r,classes:n}=e;return tt({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},_Re,n)},SRe=te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),ERe=te(U9,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),F2=d.forwardRef(function(t,r){var n,a,o,i,l,c;const s=rt({name:"MuiModal",props:t}),{BackdropComponent:f=ERe,BackdropProps:h,className:v,closeAfterTransition:m=!1,children:b,container:w,component:O,components:_={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:P=!1,disablePortal:C=!1,disableRestoreFocus:$=!1,disableScrollLock:R=!1,hideBackdrop:k=!1,keepMounted:I=!1,onBackdropClick:M,open:F,slotProps:L,slots:B}=s,V=Re(s,xRe),H=T({},s,{closeAfterTransition:m,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:P,disablePortal:C,disableRestoreFocus:$,disableScrollLock:R,hideBackdrop:k,keepMounted:I}),{getRootProps:W,getBackdropProps:z,getTransitionProps:q,portalRef:ee,isTopModal:oe,exited:J,hasTransition:we}=bRe(T({},H,{rootRef:r})),le=T({},H,{exited:J}),ge=wRe(le),pe={};if(b.props.tabIndex===void 0&&(pe.tabIndex="-1"),we){const{onEnter:ye,onExited:je}=q();pe.onEnter=ye,pe.onExited=je}const me=(n=(a=B==null?void 0:B.root)!=null?a:_.Root)!=null?n:SRe,xe=(o=(i=B==null?void 0:B.backdrop)!=null?i:_.Backdrop)!=null?o:f,ne=(l=L==null?void 0:L.root)!=null?l:y.root,Te=(c=L==null?void 0:L.backdrop)!=null?c:y.backdrop,ve=ko({elementType:me,externalSlotProps:ne,externalForwardedProps:V,getSlotProps:W,additionalProps:{ref:r,as:O},ownerState:le,className:de(v,ne==null?void 0:ne.className,ge==null?void 0:ge.root,!le.open&&le.exited&&(ge==null?void 0:ge.hidden))}),$e=ko({elementType:xe,externalSlotProps:Te,additionalProps:h,getSlotProps:ye=>z(T({},ye,{onClick:je=>{M&&M(je),ye!=null&&ye.onClick&&ye.onClick(je)}})),className:de(Te==null?void 0:Te.className,h==null?void 0:h.className,ge==null?void 0:ge.backdrop),ownerState:le});return!I&&!F&&(!we||J)?null:E.jsx(L9,{ref:ee,container:w,disablePortal:C,children:E.jsxs(me,T({},ve,{children:[!k&&f?E.jsx(xe,T({},$e)):null,E.jsx(vRe,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:$,isEnabled:oe,open:F,children:d.cloneElement(b,pe)})]}))})});function CRe(e){return et("MuiDialog",e)}const iS=ot("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),q9=d.createContext({}),ORe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],PRe=te(U9,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),RRe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container",`scroll${Pe(r)}`],paper:["paper",`paperScroll${Pe(r)}`,`paperWidth${Pe(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return tt(i,CRe,t)},$Re=te(F2,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),kRe=te("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Pe(r.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),jRe=te(tu,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Pe(r.scroll)}`],t[`paperWidth${Pe(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${iS.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${iS.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${iS.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),im=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialog"}),a=Ja(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,BackdropComponent:c,BackdropProps:s,children:f,className:h,disableEscapeKeyDown:v=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:w="sm",onBackdropClick:O,onClick:_,onClose:y,open:x,PaperComponent:S=tu,PaperProps:P={},scroll:C="paper",TransitionComponent:$=z9,transitionDuration:R=o,TransitionProps:k}=n,I=Re(n,ORe),M=T({},n,{disableEscapeKeyDown:v,fullScreen:m,fullWidth:b,maxWidth:w,scroll:C}),F=RRe(M),L=d.useRef(),B=z=>{L.current=z.target===z.currentTarget},V=z=>{_&&_(z),L.current&&(L.current=null,O&&O(z),y&&y(z,"backdropClick"))},H=bc(l),W=d.useMemo(()=>({titleId:H}),[H]);return E.jsx($Re,T({className:de(F.root,h),closeAfterTransition:!0,components:{Backdrop:PRe},componentsProps:{backdrop:T({transitionDuration:R,as:c},s)},disableEscapeKeyDown:v,onClose:y,open:x,ref:r,onClick:V,ownerState:M},I,{children:E.jsx($,T({appear:!0,in:x,timeout:R,role:"presentation"},k,{children:E.jsx(kRe,{className:de(F.container),onMouseDown:B,ownerState:M,children:E.jsx(jRe,T({as:S,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":H},P,{className:de(F.paper,P.className),ownerState:M,children:E.jsx(q9.Provider,{value:W,children:f})}))})}))}))});function IRe(e){return et("MuiDialogActions",e)}ot("MuiDialogActions",["root","spacing"]);const TRe=["className","disableSpacing"],ARe=e=>{const{classes:t,disableSpacing:r}=e;return tt({root:["root",!r&&"spacing"]},IRe,t)},MRe=te("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),L2=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,i=Re(n,TRe),l=T({},n,{disableSpacing:o}),c=ARe(l);return E.jsx(MRe,T({className:de(c.root,a),ownerState:l,ref:r},i))});function FRe(e){return et("MuiDialogContent",e)}ot("MuiDialogContent",["root","dividers"]);function LRe(e){return et("MuiDialogTitle",e)}const DRe=ot("MuiDialogTitle",["root"]),NRe=["className","dividers"],BRe=e=>{const{classes:t,dividers:r}=e;return tt({root:["root",r&&"dividers"]},FRe,t)},zRe=te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${DRe.root} + &`]:{paddingTop:0}})),sm=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,i=Re(n,NRe),l=T({},n,{dividers:o}),c=BRe(l);return E.jsx(zRe,T({className:de(c.root,a),ownerState:l,ref:r},i))});function URe(e){return et("MuiDialogContentText",e)}ot("MuiDialogContentText",["root"]);const VRe=["children","className"],WRe=e=>{const{classes:t}=e,n=tt({root:["root"]},URe,t);return T({},t,n)},HRe=te($t,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),m1=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Re(n,VRe),i=WRe(o);return E.jsx(HRe,T({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:de(i.root,a)},n,{classes:i}))}),qRe=["className","id"],GRe=e=>{const{classes:t}=e;return tt({root:["root"]},LRe,t)},KRe=te($t,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),lm=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,i=Re(n,qRe),l=n,c=GRe(l),{titleId:s=o}=d.useContext(q9);return E.jsx(KRe,T({component:"h2",className:de(c.root,a),ownerState:l,ref:r,variant:"h6",id:o??s},i))});function QRe(e){return et("MuiDivider",e)}const aD=ot("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),XRe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],YRe=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:i,textAlign:l,variant:c}=e;return tt({root:["root",t&&"absolute",c,o&&"light",i==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",l==="right"&&i!=="vertical"&&"textAlignRight",l==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},QRe,n)},JRe=te("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:nr(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),ZRe=te("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),_v=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:i,component:l=o?"div":"hr",flexItem:c=!1,light:s=!1,orientation:f="horizontal",role:h=l!=="hr"?"separator":void 0,textAlign:v="center",variant:m="fullWidth"}=n,b=Re(n,XRe),w=T({},n,{absolute:a,component:l,flexItem:c,light:s,orientation:f,role:h,textAlign:v,variant:m}),O=YRe(w);return E.jsx(JRe,T({as:l,className:de(O.root,i),role:h,ref:r,ownerState:w},b,{children:o?E.jsx(ZRe,{className:O.wrapper,ownerState:w,children:o}):null}))});_v.muiSkipListHighlight=!0;const e2e=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function t2e(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=$o(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const s=o.getComputedStyle(t);i=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}let l=0,c=0;if(i&&i!=="none"&&typeof i=="string"){const s=i.split("(")[1].split(")")[0].split(",");l=parseInt(s[4],10),c=parseInt(s[5],10)}return e==="left"?a?`translateX(${a.right+l-n.left}px)`:`translateX(${o.innerWidth+l-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-l}px)`:`translateX(-${n.left+n.width-l}px)`:e==="up"?a?`translateY(${a.bottom+c-n.top}px)`:`translateY(${o.innerHeight+c-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-c}px)`:`translateY(-${n.top+n.height-c}px)`}function r2e(e){return typeof e=="function"?e():e}function Lg(e,t,r){const n=r2e(r),a=t2e(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const G9=d.forwardRef(function(t,r){const n=Ja(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:c,container:s,direction:f="down",easing:h=a,in:v,onEnter:m,onEntered:b,onEntering:w,onExit:O,onExited:_,onExiting:y,style:x,timeout:S=o,TransitionComponent:P=ii}=t,C=Re(t,e2e),$=d.useRef(null),R=Ir(c.ref,$,r),k=z=>q=>{z&&(q===void 0?z($.current):z($.current,q))},I=k((z,q)=>{Lg(f,z,s),P2(z),m&&m(z,q)}),M=k((z,q)=>{const ee=jf({timeout:S,style:x,easing:h},{mode:"enter"});z.style.webkitTransition=n.transitions.create("-webkit-transform",T({},ee)),z.style.transition=n.transitions.create("transform",T({},ee)),z.style.webkitTransform="none",z.style.transform="none",w&&w(z,q)}),F=k(b),L=k(y),B=k(z=>{const q=jf({timeout:S,style:x,easing:h},{mode:"exit"});z.style.webkitTransition=n.transitions.create("-webkit-transform",q),z.style.transition=n.transitions.create("transform",q),Lg(f,z,s),O&&O(z)}),V=k(z=>{z.style.webkitTransition="",z.style.transition="",_&&_(z)}),H=z=>{i&&i($.current,z)},W=d.useCallback(()=>{$.current&&Lg(f,$.current,s)},[f,s]);return d.useEffect(()=>{if(v||f==="down"||f==="right")return;const z=op(()=>{$.current&&Lg(f,$.current,s)}),q=$o($.current);return q.addEventListener("resize",z),()=>{z.clear(),q.removeEventListener("resize",z)}},[f,v,s]),d.useEffect(()=>{v||W()},[v,W]),E.jsx(P,T({nodeRef:$,onEnter:I,onEntered:F,onEntering:M,onExit:B,onExited:V,onExiting:L,addEndListener:H,appear:l,in:v,timeout:S},C,{children:(z,q)=>d.cloneElement(c,T({ref:R,style:T({visibility:z==="exited"&&!v?"hidden":void 0},x,c.props.style)},q))}))});function n2e(e){return et("MuiDrawer",e)}ot("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const a2e=["BackdropProps"],o2e=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],K9=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},i2e=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Pe(r)}`,n!=="temporary"&&`paperAnchorDocked${Pe(r)}`]};return tt(a,n2e,t)},s2e=te(F2,{name:"MuiDrawer",slot:"Root",overridesResolver:K9})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),oD=te("div",{shouldForwardProp:In,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:K9})({flex:"0 0 auto"}),l2e=te(tu,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Pe(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${Pe(r.anchor)}`]]}})(({theme:e,ownerState:t})=>T({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Q9={left:"right",right:"left",top:"down",bottom:"up"};function u2e(e){return["left","right"].indexOf(e)!==-1}function c2e({direction:e},t){return e==="rtl"&&u2e(t)?Q9[t]:t}const d2e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDrawer"}),a=Ja(),o=eu(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:c,children:s,className:f,elevation:h=16,hideBackdrop:v=!1,ModalProps:{BackdropProps:m}={},onClose:b,open:w=!1,PaperProps:O={},SlideProps:_,TransitionComponent:y=G9,transitionDuration:x=i,variant:S="temporary"}=n,P=Re(n.ModalProps,a2e),C=Re(n,o2e),$=d.useRef(!1);d.useEffect(()=>{$.current=!0},[]);const R=c2e({direction:o?"rtl":"ltr"},l),I=T({},n,{anchor:l,elevation:h,open:w,variant:S},C),M=i2e(I),F=E.jsx(l2e,T({elevation:S==="temporary"?h:0,square:!0},O,{className:de(M.paper,O.className),ownerState:I,children:s}));if(S==="permanent")return E.jsx(oD,T({className:de(M.root,M.docked,f),ownerState:I,ref:r},C,{children:F}));const L=E.jsx(y,T({in:w,direction:Q9[R],timeout:x,appear:$.current},_,{children:F}));return S==="persistent"?E.jsx(oD,T({className:de(M.root,M.docked,f),ownerState:I,ref:r},C,{children:L})):E.jsx(s2e,T({BackdropProps:T({},c,m,{transitionDuration:x}),className:de(M.root,M.modal,f),open:w,ownerState:I,onClose:b,hideBackdrop:v,ref:r},C,P,{children:L}))});function f2e(e){return et("MuiFab",e)}const iD=ot("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),p2e=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],h2e=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${Pe(a)}`,t==="inherit"?"colorInherit":t]},i=tt(o,f2e,n);return T({},n,i)},v2e=te(ks,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>In(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Pe(r.size)}`],r.color==="inherit"&&t.colorInherit,t[Pe(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return T({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${iD.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>T({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${iD.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),m2e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFab"}),{children:a,className:o,color:i="default",component:l="button",disabled:c=!1,disableFocusRipple:s=!1,focusVisibleClassName:f,size:h="large",variant:v="circular"}=n,m=Re(n,p2e),b=T({},n,{color:i,component:l,disabled:c,disableFocusRipple:s,size:h,variant:v}),w=h2e(b);return E.jsx(v2e,T({className:de(w.root,o),component:l,disabled:c,focusRipple:!s,focusVisibleClassName:de(w.focusVisible,f),ownerState:b,ref:r},m,{classes:w,children:a}))}),g2e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],y2e=e=>{const{classes:t,disableUnderline:r}=e,a=tt({root:["root",!r&&"underline"],input:["input"]},NOe,t);return T({},t,a)},b2e=te(f1,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...c1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${yu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${yu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${yu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${yu.disabled}, .${yu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${yu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),_2e=te(p1,{name:"MuiFilledInput",slot:"Input",overridesResolver:d1})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),D2=d.forwardRef(function(t,r){var n,a,o,i;const l=rt({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:s,fullWidth:f=!1,inputComponent:h="input",multiline:v=!1,slotProps:m,slots:b={},type:w="text"}=l,O=Re(l,g2e),_=T({},l,{fullWidth:f,inputComponent:h,multiline:v,type:w}),y=y2e(l),x={root:{ownerState:_},input:{ownerState:_}},S=m??s?sa(x,m??s):x,P=(n=(a=b.root)!=null?a:c.Root)!=null?n:b2e,C=(o=(i=b.input)!=null?i:c.Input)!=null?o:_2e;return E.jsx(h1,T({slots:{root:P,input:C},componentsProps:S,fullWidth:f,inputComponent:h,multiline:v,ref:r,type:w},O,{classes:y}))});D2.muiName="Input";function x2e(e){return et("MuiFormControl",e)}ot("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const w2e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],S2e=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${Pe(r)}`,n&&"fullWidth"]};return tt(a,x2e,t)},E2e=te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${Pe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),X9=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:l="div",disabled:c=!1,error:s=!1,focused:f,fullWidth:h=!1,hiddenLabel:v=!1,margin:m="none",required:b=!1,size:w="medium",variant:O="outlined"}=n,_=Re(n,w2e),y=T({},n,{color:i,component:l,disabled:c,error:s,fullWidth:h,hiddenLabel:v,margin:m,required:b,size:w,variant:O}),x=S2e(y),[S,P]=d.useState(()=>{let L=!1;return a&&d.Children.forEach(a,B=>{if(!_y(B,["Input","Select"]))return;const V=_y(B,["Select"])?B.props.input:B;V&&IOe(V.props)&&(L=!0)}),L}),[C,$]=d.useState(()=>{let L=!1;return a&&d.Children.forEach(a,B=>{_y(B,["Input","Select"])&&(W0(B.props,!0)||W0(B.props.inputProps,!0))&&(L=!0)}),L}),[R,k]=d.useState(!1);c&&R&&k(!1);const I=f!==void 0&&!c?f:R;let M;const F=d.useMemo(()=>({adornedStart:S,setAdornedStart:P,color:i,disabled:c,error:s,filled:C,focused:I,fullWidth:h,hiddenLabel:v,size:w,onBlur:()=>{k(!1)},onEmpty:()=>{$(!1)},onFilled:()=>{$(!0)},onFocus:()=>{k(!0)},registerEffect:M,required:b,variant:O}),[S,i,c,s,C,I,h,v,M,b,w,O]);return E.jsx(u1.Provider,{value:F,children:E.jsx(E2e,T({as:l,ownerState:y,className:de(x.root,o),ref:r},_,{children:a}))})}),up=tSe({createStyledComponent:te("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>rt({props:e,name:"MuiStack"})});function C2e(e){return et("MuiFormControlLabel",e)}const ch=ot("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),O2e=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],P2e=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:o}=e,i={root:["root",r&&"disabled",`labelPlacement${Pe(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return tt(i,C2e,t)},R2e=te("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ch.label}`]:t.label},t.root,t[`labelPlacement${Pe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ch.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${ch.label}`]:{[`&.${ch.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),$2e=te("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ch.error}`]:{color:(e.vars||e).palette.error.main}})),_C=d.forwardRef(function(t,r){var n,a;const o=rt({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:l={},control:c,disabled:s,disableTypography:f,label:h,labelPlacement:v="end",required:m,slotProps:b={}}=o,w=Re(o,O2e),O=si(),_=(n=s??c.props.disabled)!=null?n:O==null?void 0:O.disabled,y=m??c.props.required,x={disabled:_,required:y};["checked","name","onChange","value","inputRef"].forEach(k=>{typeof c.props[k]>"u"&&typeof o[k]<"u"&&(x[k]=o[k])});const S=js({props:o,muiFormControl:O,states:["error"]}),P=T({},o,{disabled:_,labelPlacement:v,required:y,error:S.error}),C=P2e(P),$=(a=b.typography)!=null?a:l.typography;let R=h;return R!=null&&R.type!==$t&&!f&&(R=E.jsx($t,T({component:"span"},$,{className:de(C.label,$==null?void 0:$.className),children:R}))),E.jsxs(R2e,T({className:de(C.root,i),ownerState:P,ref:r},w,{children:[d.cloneElement(c,x),y?E.jsxs(up,{display:"block",children:[R,E.jsxs($2e,{ownerState:P,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):R]}))});function k2e(e){return et("MuiFormGroup",e)}ot("MuiFormGroup",["root","row","error"]);const j2e=["className","row"],I2e=e=>{const{classes:t,row:r,error:n}=e;return tt({root:["root",r&&"row",n&&"error"]},k2e,t)},T2e=te("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),A2e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormGroup"}),{className:a,row:o=!1}=n,i=Re(n,j2e),l=si(),c=js({props:n,muiFormControl:l,states:["error"]}),s=T({},n,{row:o,error:c.error}),f=I2e(s);return E.jsx(T2e,T({className:de(f.root,a),ownerState:s,ref:r},i))});function M2e(e){return et("MuiFormHelperText",e)}const sD=ot("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var lD;const F2e=["children","className","component","disabled","error","filled","focused","margin","required","variant"],L2e=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:i,focused:l,required:c}=e,s={root:["root",a&&"disabled",o&&"error",n&&`size${Pe(n)}`,r&&"contained",l&&"focused",i&&"filled",c&&"required"]};return tt(s,M2e,t)},D2e=te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Pe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${sD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${sD.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),N2=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p"}=n,l=Re(n,F2e),c=si(),s=js({props:n,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=T({},n,{component:i,contained:s.variant==="filled"||s.variant==="outlined",variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),h=L2e(f);return E.jsx(D2e,T({as:i,ownerState:f,className:de(h.root,o),ref:r},l,{children:a===" "?lD||(lD=E.jsx("span",{className:"notranslate",children:"​"})):a}))});function N2e(e){return et("MuiFormLabel",e)}const Ih=ot("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),B2e=["children","className","color","component","disabled","error","filled","focused","required"],z2e=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:i,required:l}=e,c={root:["root",`color${Pe(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return tt(c,N2e,t)},U2e=te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ih.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ih.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ih.error}`]:{color:(e.vars||e).palette.error.main}})),V2e=te("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ih.error}`]:{color:(e.vars||e).palette.error.main}})),W2e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:i="label"}=n,l=Re(n,B2e),c=si(),s=js({props:n,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=T({},n,{color:s.color||"primary",component:i,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),h=z2e(f);return E.jsxs(U2e,T({as:i,ownerState:f,className:de(h.root,o),ref:r},l,{children:[a,s.required&&E.jsxs(V2e,{ownerState:f,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),H2e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function xC(e){return`scale(${e}, ${e**2})`}const q2e={entering:{opacity:1,transform:xC(1)},entered:{opacity:1,transform:"none"}},sS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xv=d.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:l,onEnter:c,onEntered:s,onEntering:f,onExit:h,onExited:v,onExiting:m,style:b,timeout:w="auto",TransitionComponent:O=ii}=t,_=Re(t,H2e),y=zu(),x=d.useRef(),S=Ja(),P=d.useRef(null),C=Ir(P,o.ref,r),$=V=>H=>{if(V){const W=P.current;H===void 0?V(W):V(W,H)}},R=$(f),k=$((V,H)=>{P2(V);const{duration:W,delay:z,easing:q}=jf({style:b,timeout:w,easing:i},{mode:"enter"});let ee;w==="auto"?(ee=S.transitions.getAutoHeightDuration(V.clientHeight),x.current=ee):ee=W,V.style.transition=[S.transitions.create("opacity",{duration:ee,delay:z}),S.transitions.create("transform",{duration:sS?ee:ee*.666,delay:z,easing:q})].join(","),c&&c(V,H)}),I=$(s),M=$(m),F=$(V=>{const{duration:H,delay:W,easing:z}=jf({style:b,timeout:w,easing:i},{mode:"exit"});let q;w==="auto"?(q=S.transitions.getAutoHeightDuration(V.clientHeight),x.current=q):q=H,V.style.transition=[S.transitions.create("opacity",{duration:q,delay:W}),S.transitions.create("transform",{duration:sS?q:q*.666,delay:sS?W:W||q*.333,easing:z})].join(","),V.style.opacity=0,V.style.transform=xC(.75),h&&h(V)}),L=$(v),B=V=>{w==="auto"&&y.start(x.current||0,V),n&&n(P.current,V)};return E.jsx(O,T({appear:a,in:l,nodeRef:P,onEnter:k,onEntered:I,onEntering:R,onExit:F,onExited:L,onExiting:M,addEndListener:B,timeout:w==="auto"?null:w},_,{children:(V,H)=>d.cloneElement(o,T({style:T({opacity:0,transform:xC(.75),visibility:V==="exited"&&!l?"hidden":void 0},q2e[V],b,o.props.style),ref:C},H))}))});xv.muiSupportAuto=!0;const G2e=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],K2e=e=>{const{classes:t,disableUnderline:r}=e,a=tt({root:["root",!r&&"underline"],input:["input"]},LOe,t);return T({},t,a)},Q2e=te(f1,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...c1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gp.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gp.disabled}, .${Gp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Gp.disabled}:before`]:{borderBottomStyle:"dotted"}})}),X2e=te(p1,{name:"MuiInput",slot:"Input",overridesResolver:d1})({}),g1=d.forwardRef(function(t,r){var n,a,o,i;const l=rt({props:t,name:"MuiInput"}),{disableUnderline:c,components:s={},componentsProps:f,fullWidth:h=!1,inputComponent:v="input",multiline:m=!1,slotProps:b,slots:w={},type:O="text"}=l,_=Re(l,G2e),y=K2e(l),S={root:{ownerState:{disableUnderline:c}}},P=b??f?sa(b??f,S):S,C=(n=(a=w.root)!=null?a:s.Root)!=null?n:Q2e,$=(o=(i=w.input)!=null?i:s.Input)!=null?o:X2e;return E.jsx(h1,T({slots:{root:C,input:$},slotProps:P,fullWidth:h,inputComponent:v,multiline:m,ref:r,type:O},_,{classes:y}))});g1.muiName="Input";function Y2e(e){return et("MuiInputAdornment",e)}const uD=ot("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var cD;const J2e=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Z2e=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Pe(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},e$e=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,l={root:["root",r&&"disablePointerEvents",a&&`position${Pe(a)}`,i,n&&"hiddenLabel",o&&`size${Pe(o)}`]};return tt(l,Y2e,t)},t$e=te("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Z2e})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${uD.positionStart}&:not(.${uD.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Hd=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:i="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:s,variant:f}=n,h=Re(n,J2e),v=si()||{};let m=f;f&&v.variant,v&&!m&&(m=v.variant);const b=T({},n,{hiddenLabel:v.hiddenLabel,size:v.size,disablePointerEvents:l,position:s,variant:m}),w=e$e(b);return E.jsx(u1.Provider,{value:null,children:E.jsx(t$e,T({as:i,ownerState:b,className:de(w.root,o),ref:r},h,{children:typeof a=="string"&&!c?E.jsx($t,{color:"text.secondary",children:a}):E.jsxs(d.Fragment,{children:[s==="start"?cD||(cD=E.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})});function r$e(e){return et("MuiInputLabel",e)}ot("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const n$e=["disableAnimation","margin","shrink","variant","className"],a$e=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:l}=e,c={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${Pe(n)}`,i],asterisk:[l&&"asterisk"]},s=tt(c,r$e,t);return T({},t,s)},o$e=te(W2e,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ih.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Y9=d.forwardRef(function(t,r){const n=rt({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:i}=n,l=Re(n,n$e),c=si();let s=o;typeof s>"u"&&c&&(s=c.filled||c.focused||c.adornedStart);const f=js({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),h=T({},n,{disableAnimation:a,formControl:c,shrink:s,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),v=a$e(h);return E.jsx(o$e,T({"data-shrink":s,ownerState:h,ref:r,className:de(v.root,i)},l,{classes:v}))});function i$e(e){return et("MuiLinearProgress",e)}ot("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const s$e=["className","color","value","valueBuffer","variant"];let cp=e=>e,dD,fD,pD,hD,vD,mD;const wC=4,l$e=$s(dD||(dD=cp` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`)),u$e=$s(fD||(fD=cp` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`)),c$e=$s(pD||(pD=cp` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`)),d$e=e=>{const{classes:t,variant:r,color:n}=e,a={root:["root",`color${Pe(n)}`,r],dashed:["dashed",`dashedColor${Pe(n)}`],bar1:["bar",`barColor${Pe(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${Pe(n)}`,r==="buffer"&&`color${Pe(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return tt(a,i$e,t)},B2=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?o1(e.palette[t].main,.62):a1(e.palette[t].main,.5),f$e=te("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Pe(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>T({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:B2(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),p$e=te("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${Pe(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=B2(t,e.color);return T({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Rc(hD||(hD=cp` + animation: ${0} 3s infinite linear; + `),c$e)),h$e=te("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Pe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>T({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${wC}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${wC}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Rc(vD||(vD=cp` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `),l$e)),v$e=te("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Pe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>T({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:B2(t,e.color),transition:`transform .${wC}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Rc(mD||(mD=cp` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `),u$e)),m$e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiLinearProgress"}),{className:a,color:o="primary",value:i,valueBuffer:l,variant:c="indeterminate"}=n,s=Re(n,s$e),f=T({},n,{color:o,variant:c}),h=d$e(f),v=eu(),m={},b={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&i!==void 0){m["aria-valuenow"]=Math.round(i),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let w=i-100;v&&(w=-w),b.bar1.transform=`translateX(${w}%)`}if(c==="buffer"&&l!==void 0){let w=(l||0)-100;v&&(w=-w),b.bar2.transform=`translateX(${w}%)`}return E.jsxs(f$e,T({className:de(h.root,a),ownerState:f,role:"progressbar"},m,{ref:r},s,{children:[c==="buffer"?E.jsx(p$e,{className:h.dashed,ownerState:f}):null,E.jsx(h$e,{className:h.bar1,ownerState:f,style:b.bar1}),c==="determinate"?null:E.jsx(v$e,{className:h.bar2,ownerState:f,style:b.bar2})]}))});function g$e(e){return et("MuiLink",e)}const y$e=ot("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),J9={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},b$e=e=>J9[e]||e,_$e=({theme:e,ownerState:t})=>{const r=b$e(t.color),n=Rf(e,`palette.${r}`,!1)||t.color,a=Rf(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:nr(n,.4)},x$e=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],w$e=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${Pe(a)}`,r==="button"&&"button",n&&"focusVisible"]};return tt(o,g$e,t)},S$e=te($t,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Pe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>T({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&T({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:_$e({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${y$e.focusVisible}`]:{outline:"auto"}})),E$e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:i="a",onBlur:l,onFocus:c,TypographyClasses:s,underline:f="always",variant:h="inherit",sx:v}=n,m=Re(n,x$e),{isFocusVisibleRef:b,onBlur:w,onFocus:O,ref:_}=n1(),[y,x]=d.useState(!1),S=Ir(r,_),P=k=>{w(k),b.current===!1&&x(!1),l&&l(k)},C=k=>{O(k),b.current===!0&&x(!0),c&&c(k)},$=T({},n,{color:o,component:i,focusVisible:y,underline:f,variant:h}),R=w$e($);return E.jsx(S$e,T({color:o,className:de(R.root,a),classes:s,component:i,onBlur:P,onFocus:C,ref:S,ownerState:$,variant:h,sx:[...Object.keys(J9).includes(o)?[]:[{color:o}],...Array.isArray(v)?v:[v]]},m))}),wv=d.createContext({});function C$e(e){return et("MuiList",e)}ot("MuiList",["root","padding","dense","subheader"]);const O$e=["children","className","component","dense","disablePadding","subheader"],P$e=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return tt({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},C$e,t)},R$e=te("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),$$e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:l=!1,disablePadding:c=!1,subheader:s}=n,f=Re(n,O$e),h=d.useMemo(()=>({dense:l}),[l]),v=T({},n,{component:i,dense:l,disablePadding:c}),m=P$e(v);return E.jsx(wv.Provider,{value:h,children:E.jsxs(R$e,T({as:i,className:de(m.root,o),ref:r,ownerState:v},f,{children:[s,a]}))})});function k$e(e){return et("MuiListItemIcon",e)}const gD=ot("MuiListItemIcon",["root","alignItemsFlexStart"]),j$e=["className"],I$e=e=>{const{alignItems:t,classes:r}=e;return tt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},k$e,r)},T$e=te("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>T({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Vu=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Re(n,j$e),i=d.useContext(wv),l=T({},n,{alignItems:i.alignItems}),c=I$e(l);return E.jsx(T$e,T({className:de(c.root,a),ownerState:l,ref:r},o))});function A$e(e){return et("MuiListItemText",e)}const H0=ot("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),M$e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],F$e=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return tt({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},A$e,t)},L$e=te("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${H0.primary}`]:t.primary},{[`& .${H0.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Td=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:l=!1,primary:c,primaryTypographyProps:s,secondary:f,secondaryTypographyProps:h}=n,v=Re(n,M$e),{dense:m}=d.useContext(wv);let b=c??a,w=f;const O=T({},n,{disableTypography:i,inset:l,primary:!!b,secondary:!!w,dense:m}),_=F$e(O);return b!=null&&b.type!==$t&&!i&&(b=E.jsx($t,T({variant:m?"body2":"body1",className:_.primary,component:s!=null&&s.variant?void 0:"span",display:"block"},s,{children:b}))),w!=null&&w.type!==$t&&!i&&(w=E.jsx($t,T({variant:"body2",className:_.secondary,color:"text.secondary",display:"block"},h,{children:w}))),E.jsxs(L$e,T({className:de(_.root,o),ownerState:O,ref:r},v,{children:[b,w]}))}),D$e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function yD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Z9(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Kp(e,t,r,n,a,o){let i=!1,l=a(e,t,t?r:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const c=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Z9(l,o)||c)l=a(e,l,r);else return l.focus(),!0}return!1}const eU=d.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:l,disabledItemsFocusable:c=!1,disableListWrap:s=!1,onKeyDown:f,variant:h="selectedMenu"}=t,v=Re(t,D$e),m=d.useRef(null),b=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qa(()=>{a&&m.current.focus()},[a]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,{direction:S})=>{const P=!m.current.style.width;if(x.clientHeight{const S=m.current,P=x.key,C=tn(S).activeElement;if(P==="ArrowDown")x.preventDefault(),Kp(S,C,s,c,lS);else if(P==="ArrowUp")x.preventDefault(),Kp(S,C,s,c,yD);else if(P==="Home")x.preventDefault(),Kp(S,null,s,c,lS);else if(P==="End")x.preventDefault(),Kp(S,null,s,c,yD);else if(P.length===1){const $=b.current,R=P.toLowerCase(),k=performance.now();$.keys.length>0&&(k-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&R!==$.keys[0]&&($.repeating=!1)),$.lastTime=k,$.keys.push(R);const I=C&&!$.repeating&&Z9(C,$);$.previousKeyMatched&&(I||Kp(S,C,!1,c,lS,$))?x.preventDefault():$.previousKeyMatched=!1}f&&f(x)},O=Ir(m,r);let _=-1;d.Children.forEach(i,(x,S)=>{if(!d.isValidElement(x)){_===S&&(_+=1,_>=i.length&&(_=-1));return}x.props.disabled||(h==="selectedMenu"&&x.props.selected||_===-1)&&(_=S),_===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(_+=1,_>=i.length&&(_=-1))});const y=d.Children.map(i,(x,S)=>{if(S===_){const P={};return o&&(P.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(P.tabIndex=0),d.cloneElement(x,P)}return x});return E.jsx($$e,T({role:"menu",ref:O,className:l,onKeyDown:w,tabIndex:a?0:-1},v,{children:y}))});function N$e(e){return et("MuiPopover",e)}ot("MuiPopover",["root","paper"]);const B$e=["onEntering"],z$e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],U$e=["slotProps"];function bD(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function _D(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function xD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function uS(e){return typeof e=="function"?e():e}const V$e=e=>{const{classes:t}=e;return tt({root:["root"],paper:["paper"]},N$e,t)},W$e=te(F2,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tU=te(tu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),z2=d.forwardRef(function(t,r){var n,a,o;const i=rt({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:h="anchorEl",children:v,className:m,container:b,elevation:w=8,marginThreshold:O=16,open:_,PaperProps:y={},slots:x,slotProps:S,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:C=xv,transitionDuration:$="auto",TransitionProps:{onEntering:R}={},disableScrollLock:k=!1}=i,I=Re(i.TransitionProps,B$e),M=Re(i,z$e),F=(n=S==null?void 0:S.paper)!=null?n:y,L=d.useRef(),B=Ir(L,F.ref),V=T({},i,{anchorOrigin:s,anchorReference:h,elevation:w,marginThreshold:O,externalPaperSlotProps:F,transformOrigin:P,TransitionComponent:C,transitionDuration:$,TransitionProps:I}),H=V$e(V),W=d.useCallback(()=>{if(h==="anchorPosition")return f;const ye=uS(c),Le=(ye&&ye.nodeType===1?ye:tn(L.current).body).getBoundingClientRect();return{top:Le.top+bD(Le,s.vertical),left:Le.left+_D(Le,s.horizontal)}},[c,s.horizontal,s.vertical,f,h]),z=d.useCallback(ye=>({vertical:bD(ye,P.vertical),horizontal:_D(ye,P.horizontal)}),[P.horizontal,P.vertical]),q=d.useCallback(ye=>{const je={width:ye.offsetWidth,height:ye.offsetHeight},Le=z(je);if(h==="none")return{top:null,left:null,transformOrigin:xD(Le)};const st=W();let Xe=st.top-Le.vertical,U=st.left-Le.horizontal;const K=Xe+je.height,Z=U+je.width,ie=$o(uS(c)),ue=ie.innerHeight-O,ce=ie.innerWidth-O;if(O!==null&&Xeue){const Ee=K-ue;Xe-=Ee,Le.vertical+=Ee}if(O!==null&&Uce){const Ee=Z-ce;U-=Ee,Le.horizontal+=Ee}return{top:`${Math.round(Xe)}px`,left:`${Math.round(U)}px`,transformOrigin:xD(Le)}},[c,h,W,z,O]),[ee,oe]=d.useState(_),J=d.useCallback(()=>{const ye=L.current;if(!ye)return;const je=q(ye);je.top!==null&&(ye.style.top=je.top),je.left!==null&&(ye.style.left=je.left),ye.style.transformOrigin=je.transformOrigin,oe(!0)},[q]);d.useEffect(()=>(k&&window.addEventListener("scroll",J),()=>window.removeEventListener("scroll",J)),[c,k,J]);const we=(ye,je)=>{R&&R(ye,je),J()},le=()=>{oe(!1)};d.useEffect(()=>{_&&J()}),d.useImperativeHandle(l,()=>_?{updatePosition:()=>{J()}}:null,[_,J]),d.useEffect(()=>{if(!_)return;const ye=op(()=>{J()}),je=$o(c);return je.addEventListener("resize",ye),()=>{ye.clear(),je.removeEventListener("resize",ye)}},[c,_,J]);let ge=$;$==="auto"&&!C.muiSupportAuto&&(ge=void 0);const pe=b||(c?tn(uS(c)).body:void 0),me=(a=x==null?void 0:x.root)!=null?a:W$e,xe=(o=x==null?void 0:x.paper)!=null?o:tU,ne=ko({elementType:xe,externalSlotProps:T({},F,{style:ee?F.style:T({},F.style,{opacity:0})}),additionalProps:{elevation:w,ref:B},ownerState:V,className:de(H.paper,F==null?void 0:F.className)}),Te=ko({elementType:me,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:pe,open:_},ownerState:V,className:de(H.root,m)}),{slotProps:ve}=Te,$e=Re(Te,U$e);return E.jsx(me,T({},$e,!mv(me)&&{slotProps:ve,disableScrollLock:k},{children:E.jsx(C,T({appear:!0,in:_,onEntering:we,onExited:le,timeout:ge},I,{children:E.jsx(xe,T({},ne,{children:v}))}))}))});function H$e(e){return et("MuiMenu",e)}ot("MuiMenu",["root","paper","list"]);const q$e=["onEntering"],G$e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],K$e={vertical:"top",horizontal:"right"},Q$e={vertical:"top",horizontal:"left"},X$e=e=>{const{classes:t}=e;return tt({root:["root"],paper:["paper"],list:["list"]},H$e,t)},Y$e=te(z2,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),J$e=te(tU,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Z$e=te(eU,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),y1=d.forwardRef(function(t,r){var n,a;const o=rt({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:c,disableAutoFocusItem:s=!1,MenuListProps:f={},onClose:h,open:v,PaperProps:m={},PopoverClasses:b,transitionDuration:w="auto",TransitionProps:{onEntering:O}={},variant:_="selectedMenu",slots:y={},slotProps:x={}}=o,S=Re(o.TransitionProps,q$e),P=Re(o,G$e),C=eu(),$=T({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:f,onEntering:O,PaperProps:m,transitionDuration:w,TransitionProps:S,variant:_}),R=X$e($),k=i&&!s&&v,I=d.useRef(null),M=(z,q)=>{I.current&&I.current.adjustStyleForScrollbar(z,{direction:C?"rtl":"ltr"}),O&&O(z,q)},F=z=>{z.key==="Tab"&&(z.preventDefault(),h&&h(z,"tabKeyDown"))};let L=-1;d.Children.map(l,(z,q)=>{d.isValidElement(z)&&(z.props.disabled||(_==="selectedMenu"&&z.props.selected||L===-1)&&(L=q))});const B=(n=y.paper)!=null?n:J$e,V=(a=x.paper)!=null?a:m,H=ko({elementType:y.root,externalSlotProps:x.root,ownerState:$,className:[R.root,c]}),W=ko({elementType:B,externalSlotProps:V,ownerState:$,className:R.paper});return E.jsx(Y$e,T({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?K$e:Q$e,slots:{paper:B,root:y.root},slotProps:{root:H,paper:W},open:v,ref:r,transitionDuration:w,TransitionProps:T({onEntering:M},S),ownerState:$},P,{classes:b,children:E.jsx(Z$e,T({onKeyDown:F,actions:I,autoFocus:i&&(L===-1||s),autoFocusItem:k,variant:_},f,{className:de(R.list,f.className),children:l}))}))});function eke(e){return et("MuiMenuItem",e)}const Qp=ot("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),tke=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],rke=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},nke=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=e,c=tt({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},eke,i);return T({},i,c)},ake=te(ks,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:rke})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${aD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${aD.inset}`]:{marginLeft:52},[`& .${H0.root}`]:{marginTop:0,marginBottom:0},[`& .${H0.inset}`]:{paddingLeft:36},[`& .${gD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${gD.root} svg`]:{fontSize:"1.25rem"}}))),za=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:s,role:f="menuitem",tabIndex:h,className:v}=n,m=Re(n,tke),b=d.useContext(wv),w=d.useMemo(()=>({dense:i||b.dense||!1,disableGutters:c}),[b.dense,i,c]),O=d.useRef(null);qa(()=>{a&&O.current&&O.current.focus()},[a]);const _=T({},n,{dense:w.dense,divider:l,disableGutters:c}),y=nke(n),x=Ir(O,r);let S;return n.disabled||(S=h!==void 0?h:-1),E.jsx(wv.Provider,{value:w,children:E.jsx(ake,T({ref:x,role:f,tabIndex:S,component:o,focusVisibleClassName:de(y.focusVisible,s),className:de(y.root,v)},m,{ownerState:_,classes:y}))})});function rU(e){return et("MuiNativeSelect",e)}const U2=ot("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),oke=["className","disabled","error","IconComponent","inputRef","variant"],ike=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,l={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${Pe(r)}`,o&&"iconOpen",n&&"disabled"]};return tt(l,rU,t)},nU=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${U2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ske=te("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:In,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${U2.multiple}`]:t.multiple}]}})(nU),aU=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${U2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),lke=te("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Pe(r.variant)}`],r.open&&t.iconOpen]}})(aU),oU=d.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:l,variant:c="standard"}=t,s=Re(t,oke),f=T({},t,{disabled:a,variant:c,error:o}),h=ike(f);return E.jsxs(d.Fragment,{children:[E.jsx(ske,T({ownerState:f,className:de(h.select,n),disabled:a,ref:l||r},s)),t.multiple?null:E.jsx(lke,{as:i,ownerState:f,className:h.icon})]})}),uke=["className","children","classes","IconComponent","input","inputProps","variant"],cke=["root"],dke=e=>{const{classes:t}=e;return tt({root:["root"]},rU,t)},fke=E.jsx(g1,{}),SC=d.forwardRef(function(t,r){const n=rt({name:"MuiNativeSelect",props:t}),{className:a,children:o,classes:i={},IconComponent:l=B9,input:c=fke,inputProps:s}=n,f=Re(n,uke),h=si(),v=js({props:n,muiFormControl:h,states:["variant"]}),m=T({},n,{classes:i}),b=dke(m),w=Re(i,cke);return E.jsx(d.Fragment,{children:d.cloneElement(c,T({inputComponent:oU,inputProps:T({children:o,classes:w,IconComponent:l,variant:v.variant,type:void 0},s,c?c.props.inputProps:{}),ref:r},f,{className:de(b.root,c.props.className,a)}))})});SC.muiName="Select";var wD;const pke=["children","classes","className","label","notched"],hke=te("fieldset",{shouldForwardProp:In})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),vke=te("legend",{shouldForwardProp:In})(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function mke(e){const{className:t,label:r,notched:n}=e,a=Re(e,pke),o=r!=null&&r!=="",i=T({},e,{notched:n,withLabel:o});return E.jsx(hke,T({"aria-hidden":!0,className:t,ownerState:i},a,{children:E.jsx(vke,{ownerState:i,children:o?E.jsx("span",{children:r}):wD||(wD=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const gke=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],yke=e=>{const{classes:t}=e,n=tt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},DOe,t);return T({},t,n)},bke=te(f1,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:c1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Gs.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Gs.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Gs.focused} .${Gs.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Gs.error} .${Gs.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Gs.disabled} .${Gs.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),_ke=te(mke,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),xke=te(p1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:d1})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),V2=d.forwardRef(function(t,r){var n,a,o,i,l;const c=rt({props:t,name:"MuiOutlinedInput"}),{components:s={},fullWidth:f=!1,inputComponent:h="input",label:v,multiline:m=!1,notched:b,slots:w={},type:O="text"}=c,_=Re(c,gke),y=yke(c),x=si(),S=js({props:c,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P=T({},c,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:f,hiddenLabel:S.hiddenLabel,multiline:m,size:S.size,type:O}),C=(n=(a=w.root)!=null?a:s.Root)!=null?n:bke,$=(o=(i=w.input)!=null?i:s.Input)!=null?o:xke;return E.jsx(h1,T({slots:{root:C,input:$},renderSuffix:R=>E.jsx(_ke,{ownerState:P,className:y.notchedOutline,label:v!=null&&v!==""&&S.required?l||(l=E.jsxs(d.Fragment,{children:[v," ","*"]})):v,notched:typeof b<"u"?b:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:f,inputComponent:h,multiline:m,ref:r,type:O},_,{classes:T({},y,{notchedOutline:null})}))});V2.muiName="Input";function wke(e){return et("MuiPagination",e)}ot("MuiPagination",["root","ul","outlined","text"]);const Ske=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function Eke(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:i=!1,hidePrevButton:l=!1,onChange:c,page:s,showFirstButton:f=!1,showLastButton:h=!1,siblingCount:v=1}=e,m=Re(e,Ske),[b,w]=kf({controlled:s,default:a,name:r,state:"page"}),O=(k,I)=>{s||w(I),c&&c(k,I)},_=(k,I)=>{const M=I-k+1;return Array.from({length:M},(F,L)=>k+L)},y=_(1,Math.min(t,n)),x=_(Math.max(n-t+1,t+1),n),S=Math.max(Math.min(b-v,n-t-v*2-1),t+2),P=Math.min(Math.max(b+v,t+v*2+2),x.length>0?x[0]-2:n-1),C=[...f?["first"]:[],...l?[]:["previous"],...y,...S>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...x,...i?[]:["next"],...h?["last"]:[]],$=k=>{switch(k){case"first":return 1;case"previous":return b-1;case"next":return b+1;case"last":return n;default:return null}},R=C.map(k=>typeof k=="number"?{onClick:I=>{O(I,k)},type:"page",page:k,selected:k===b,disabled:o,"aria-current":k===b?"true":void 0}:{onClick:I=>{O(I,$(k))},type:k,page:$(k),selected:!1,disabled:o||k.indexOf("ellipsis")===-1&&(k==="next"||k==="last"?b>=n:b<=1)});return T({items:R},m)}function Cke(e){return et("MuiPaginationItem",e)}const uo=ot("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),EC=Za(E.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),CC=Za(E.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),SD=Za(E.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),ED=Za(E.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Oke=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],iU=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Pe(r.size)}`],r.variant==="text"&&t[`text${Pe(r.color)}`],r.variant==="outlined"&&t[`outlined${Pe(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},Pke=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:i,type:l,variant:c}=e,s={root:["root",`size${Pe(o)}`,c,i,r!=="standard"&&`color${Pe(r)}`,r!=="standard"&&`${c}${Pe(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return tt(s,Cke,t)},Rke=te("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:iU})(({theme:e,ownerState:t})=>T({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${uo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),$ke=te(ks,{name:"MuiPaginationItem",slot:"Root",overridesResolver:iU})(({theme:e,ownerState:t})=>T({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${uo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${uo.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${uo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${uo.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>T({},t.variant==="text"&&{[`&.${uo.selected}`]:T({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${uo.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${uo.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${uo.selected}`]:T({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:nr(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:nr(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nr(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${uo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nr(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${uo.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),kke=te("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>T({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),jke=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:i,components:l={},disabled:c=!1,page:s,selected:f=!1,shape:h="circular",size:v="medium",slots:m={},type:b="page",variant:w="text"}=n,O=Re(n,Oke),_=T({},n,{color:o,disabled:c,selected:f,shape:h,size:v,type:b,variant:w}),y=eu(),x=Pke(_),P=(y?{previous:m.next||l.next||ED,next:m.previous||l.previous||SD,last:m.first||l.first||EC,first:m.last||l.last||CC}:{previous:m.previous||l.previous||SD,next:m.next||l.next||ED,first:m.first||l.first||EC,last:m.last||l.last||CC})[b];return b==="start-ellipsis"||b==="end-ellipsis"?E.jsx(Rke,{ref:r,ownerState:_,className:de(x.root,a),children:"…"}):E.jsxs($ke,T({ref:r,ownerState:_,component:i,disabled:c,className:de(x.root,a)},O,{children:[b==="page"&&s,P?E.jsx(kke,{as:P,ownerState:_,className:x.icon}):null]}))}),Ike=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Tke=e=>{const{classes:t,variant:r}=e;return tt({root:["root",r],ul:["ul"]},wke,t)},Ake=te("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Mke=te("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Fke(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Lke=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:i="standard",count:l=1,defaultPage:c=1,disabled:s=!1,getItemAriaLabel:f=Fke,hideNextButton:h=!1,hidePrevButton:v=!1,renderItem:m=R=>E.jsx(jke,T({},R)),shape:b="circular",showFirstButton:w=!1,showLastButton:O=!1,siblingCount:_=1,size:y="medium",variant:x="text"}=n,S=Re(n,Ike),{items:P}=Eke(T({},n,{componentName:"Pagination"})),C=T({},n,{boundaryCount:a,color:i,count:l,defaultPage:c,disabled:s,getItemAriaLabel:f,hideNextButton:h,hidePrevButton:v,renderItem:m,shape:b,showFirstButton:w,showLastButton:O,siblingCount:_,size:y,variant:x}),$=Tke(C);return E.jsx(Ake,T({"aria-label":"pagination navigation",className:de($.root,o),ownerState:C,ref:r},S,{children:E.jsx(Mke,{className:$.ul,ownerState:C,children:P.map((R,k)=>E.jsx("li",{children:m(T({},R,{color:i,"aria-label":f(R.type,R.page,R.selected),shape:b,size:y,variant:x}))},k))})}))});function Dke(e){return et("MuiSelect",e)}const Xp=ot("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var CD;const Nke=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Bke=te("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Xp.select}`]:t.select},{[`&.${Xp.select}`]:t[r.variant]},{[`&.${Xp.error}`]:t.error},{[`&.${Xp.multiple}`]:t.multiple}]}})(nU,{[`&.${Xp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),zke=te("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Pe(r.variant)}`],r.open&&t.iconOpen]}})(aU),Uke=te("input",{shouldForwardProp:e=>E9(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function OD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Vke(e){return e==null||typeof e=="string"&&!e.trim()}const Wke=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,l={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${Pe(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return tt(l,Dke,t)},Hke=d.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:i,autoWidth:l,children:c,className:s,defaultOpen:f,defaultValue:h,disabled:v,displayEmpty:m,error:b=!1,IconComponent:w,inputRef:O,labelId:_,MenuProps:y={},multiple:x,name:S,onBlur:P,onChange:C,onClose:$,onFocus:R,onOpen:k,open:I,readOnly:M,renderValue:F,SelectDisplayProps:L={},tabIndex:B,value:V,variant:H="standard"}=t,W=Re(t,Nke),[z,q]=kf({controlled:V,default:h,name:"Select"}),[ee,oe]=kf({controlled:I,default:f,name:"Select"}),J=d.useRef(null),we=d.useRef(null),[le,ge]=d.useState(null),{current:pe}=d.useRef(I!=null),[me,xe]=d.useState(),ne=Ir(r,O),Te=d.useCallback(qe=>{we.current=qe,qe&&ge(qe)},[]),ve=le==null?void 0:le.parentNode;d.useImperativeHandle(ne,()=>({focus:()=>{we.current.focus()},node:J.current,value:z}),[z]),d.useEffect(()=>{f&&ee&&le&&!pe&&(xe(l?null:ve.clientWidth),we.current.focus())},[le,l]),d.useEffect(()=>{i&&we.current.focus()},[i]),d.useEffect(()=>{if(!_)return;const qe=tn(we.current).getElementById(_);if(qe){const pt=()=>{getSelection().isCollapsed&&we.current.focus()};return qe.addEventListener("click",pt),()=>{qe.removeEventListener("click",pt)}}},[_]);const $e=(qe,pt)=>{qe?k&&k(pt):$&&$(pt),pe||(xe(l?null:ve.clientWidth),oe(qe))},ye=qe=>{qe.button===0&&(qe.preventDefault(),we.current.focus(),$e(!0,qe))},je=qe=>{$e(!1,qe)},Le=d.Children.toArray(c),st=qe=>{const pt=Le.find(Me=>Me.props.value===qe.target.value);pt!==void 0&&(q(pt.props.value),C&&C(qe,pt))},Xe=qe=>pt=>{let Me;if(pt.currentTarget.hasAttribute("tabindex")){if(x){Me=Array.isArray(z)?z.slice():[];const Ge=z.indexOf(qe.props.value);Ge===-1?Me.push(qe.props.value):Me.splice(Ge,1)}else Me=qe.props.value;if(qe.props.onClick&&qe.props.onClick(pt),z!==Me&&(q(Me),C)){const Ge=pt.nativeEvent||pt,wt=new Ge.constructor(Ge.type,Ge);Object.defineProperty(wt,"target",{writable:!0,value:{value:Me,name:S}}),C(wt,qe)}x||$e(!1,pt)}},U=qe=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(qe.key)!==-1&&(qe.preventDefault(),$e(!0,qe))},K=le!==null&&ee,Z=qe=>{!K&&P&&(Object.defineProperty(qe,"target",{writable:!0,value:{value:z,name:S}}),P(qe))};delete W["aria-invalid"];let ie,ue;const ce=[];let Ee=!1;(W0({value:z})||m)&&(F?ie=F(z):Ee=!0);const Ae=Le.map(qe=>{if(!d.isValidElement(qe))return null;let pt;if(x){if(!Array.isArray(z))throw new Error(xs(2));pt=z.some(Me=>OD(Me,qe.props.value)),pt&&Ee&&ce.push(qe.props.children)}else pt=OD(z,qe.props.value),pt&&Ee&&(ue=qe.props.children);return d.cloneElement(qe,{"aria-selected":pt?"true":"false",onClick:Xe(qe),onKeyUp:Me=>{Me.key===" "&&Me.preventDefault(),qe.props.onKeyUp&&qe.props.onKeyUp(Me)},role:"option",selected:pt,value:void 0,"data-value":qe.props.value})});Ee&&(x?ce.length===0?ie=null:ie=ce.reduce((qe,pt,Me)=>(qe.push(pt),Me{const{classes:t}=e;return t},W2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>In(e)&&e!=="variant",slot:"Root"},Qke=te(g1,W2)(""),Xke=te(V2,W2)(""),Yke=te(D2,W2)(""),b1=d.forwardRef(function(t,r){const n=rt({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:i={},className:l,defaultOpen:c=!1,displayEmpty:s=!1,IconComponent:f=B9,id:h,input:v,inputProps:m,label:b,labelId:w,MenuProps:O,multiple:_=!1,native:y=!1,onClose:x,onOpen:S,open:P,renderValue:C,SelectDisplayProps:$,variant:R="outlined"}=n,k=Re(n,qke),I=y?oU:Hke,M=si(),F=js({props:n,muiFormControl:M,states:["variant","error"]}),L=F.variant||R,B=T({},n,{variant:L,classes:i}),V=Kke(B),H=Re(V,Gke),W=v||{standard:E.jsx(Qke,{ownerState:B}),outlined:E.jsx(Xke,{label:b,ownerState:B}),filled:E.jsx(Yke,{ownerState:B})}[L],z=Ir(r,W.ref);return E.jsx(d.Fragment,{children:d.cloneElement(W,T({inputComponent:I,inputProps:T({children:o,error:F.error,IconComponent:f,variant:L,type:void 0,multiple:_},y?{id:h}:{autoWidth:a,defaultOpen:c,displayEmpty:s,labelId:w,MenuProps:O,onClose:x,onOpen:S,open:P,renderValue:C,SelectDisplayProps:T({id:h},$)},m,{classes:m?sa(H,m.classes):H},v?v.props.inputProps:{})},(_&&y||s)&&L==="outlined"?{notched:!0}:{},{ref:z,className:de(W.props.className,l,V.root)},!v&&{variant:L},k))})});b1.muiName="Select";function Jke(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,i=zu();d.useEffect(()=>{if(!a)return;function _(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&(n==null||n(y,"escapeKeyDown"))}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[a,n]);const l=oa((_,y)=>{n==null||n(_,y)}),c=oa(_=>{!n||_==null||i.start(_,()=>{l(null,"timeout")})});d.useEffect(()=>(a&&c(t),i.clear),[a,t,c,i]);const s=_=>{n==null||n(_,"clickaway")},f=i.clear,h=d.useCallback(()=>{t!=null&&c(o??t*.5)},[t,o,c]),v=_=>y=>{const x=_.onBlur;x==null||x(y),h()},m=_=>y=>{const x=_.onFocus;x==null||x(y),f()},b=_=>y=>{const x=_.onMouseEnter;x==null||x(y),f()},w=_=>y=>{const x=_.onMouseLeave;x==null||x(y),h()};return d.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",h),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",f)}},[r,a,h,f]),{getRootProps:(_={})=>{const y=T({},N0(e),N0(_));return T({role:"presentation"},_,y,{onBlur:v(y),onFocus:m(y),onMouseEnter:b(y),onMouseLeave:w(y)})},onClickAway:s}}function Zke(e){return et("MuiSnackbarContent",e)}ot("MuiSnackbarContent",["root","message","action"]);const eje=["action","className","message","role"],tje=e=>{const{classes:t}=e;return tt({root:["root"],action:["action"],message:["message"]},Zke,t)},rje=te(tu,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=oSe(e.palette.background.default,t);return T({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),nje=te("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),aje=te("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),oje=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:i,role:l="alert"}=n,c=Re(n,eje),s=n,f=tje(s);return E.jsxs(rje,T({role:l,square:!0,elevation:6,className:de(f.root,o),ownerState:s,ref:r},c,{children:[E.jsx(nje,{className:f.message,ownerState:s,children:i}),a?E.jsx(aje,{className:f.action,ownerState:s,children:a}):null]}))});function ije(e){return et("MuiSnackbar",e)}ot("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const sje=["onEnter","onExited"],lje=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],uje=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${Pe(r.vertical)}${Pe(r.horizontal)}`]};return tt(n,ije,t)},PD=te("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${Pe(r.anchorOrigin.vertical)}${Pe(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return T({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:T({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),cje=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSnackbar"}),a=Ja(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:s=null,children:f,className:h,ClickAwayListenerProps:v,ContentProps:m,disableWindowBlurListener:b=!1,message:w,open:O,TransitionComponent:_=xv,transitionDuration:y=o,TransitionProps:{onEnter:x,onExited:S}={}}=n,P=Re(n.TransitionProps,sje),C=Re(n,lje),$=T({},n,{anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:s,disableWindowBlurListener:b,TransitionComponent:_,transitionDuration:y}),R=uje($),{getRootProps:k,onClickAway:I}=Jke(T({},$)),[M,F]=d.useState(!0),L=ko({elementType:PD,getSlotProps:k,externalForwardedProps:C,ownerState:$,additionalProps:{ref:r},className:[R.root,h]}),B=H=>{F(!0),S&&S(H)},V=(H,W)=>{F(!1),x&&x(H,W)};return!O&&M?null:E.jsx(ZPe,T({onClickAway:I},v,{children:E.jsx(PD,T({},L,{children:E.jsx(_,T({appear:!0,in:O,timeout:y,direction:l==="top"?"down":"up",onEnter:V,onExited:B},P,{children:f||E.jsx(oje,T({message:w,action:i},m))}))}))}))});function dje(e){return et("MuiTooltip",e)}const wl=ot("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),fje=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function pje(e){return Math.round(e*1e5)/1e5}const hje=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Pe(o.split("-")[0])}`],arrow:["arrow"]};return tt(i,dje,t)},vje=te(D9,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${wl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${wl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${wl.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${wl.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),mje=te("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Pe(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:nr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${pje(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${wl.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${wl.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${wl.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${wl.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),gje=te("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:nr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Dg=!1;const RD=new rm;let Yp={x:0,y:0};function Ng(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const kn=d.forwardRef(function(t,r){var n,a,o,i,l,c,s,f,h,v,m,b,w,O,_,y,x,S,P;const C=rt({props:t,name:"MuiTooltip"}),{arrow:$=!1,children:R,components:k={},componentsProps:I={},describeChild:M=!1,disableFocusListener:F=!1,disableHoverListener:L=!1,disableInteractive:B=!1,disableTouchListener:V=!1,enterDelay:H=100,enterNextDelay:W=0,enterTouchDelay:z=700,followCursor:q=!1,id:ee,leaveDelay:oe=0,leaveTouchDelay:J=1500,onClose:we,onOpen:le,open:ge,placement:pe="bottom",PopperComponent:me,PopperProps:xe={},slotProps:ne={},slots:Te={},title:ve,TransitionComponent:$e=xv,TransitionProps:ye}=C,je=Re(C,fje),Le=d.isValidElement(R)?R:E.jsx("span",{children:R}),st=Ja(),Xe=eu(),[U,K]=d.useState(),[Z,ie]=d.useState(null),ue=d.useRef(!1),ce=B||q,Ee=zu(),Ae=zu(),ft=zu(),De=zu(),[Ze,Ve]=kf({controlled:ge,default:!1,name:"Tooltip",state:"open"});let _t=Ze;const Wt=bc(ee),Ct=d.useRef(),qe=oa(()=>{Ct.current!==void 0&&(document.body.style.WebkitUserSelect=Ct.current,Ct.current=void 0),De.clear()});d.useEffect(()=>qe,[qe]);const pt=lt=>{RD.clear(),Dg=!0,Ve(!0),le&&!_t&&le(lt)},Me=oa(lt=>{RD.start(800+oe,()=>{Dg=!1}),Ve(!1),we&&_t&&we(lt),Ee.start(st.transitions.duration.shortest,()=>{ue.current=!1})}),Ge=lt=>{ue.current&<.type!=="touchstart"||(U&&U.removeAttribute("title"),Ae.clear(),ft.clear(),H||Dg&&W?Ae.start(Dg?W:H,()=>{pt(lt)}):pt(lt))},wt=lt=>{Ae.clear(),ft.start(oe,()=>{Me(lt)})},{isFocusVisibleRef:Ot,onBlur:dr,onFocus:Pr,ref:an}=n1(),[,$a]=d.useState(!1),Tn=lt=>{dr(lt),Ot.current===!1&&($a(!1),wt(lt))},li=lt=>{U||K(lt.currentTarget),Pr(lt),Ot.current===!0&&($a(!0),Ge(lt))},nu=lt=>{ue.current=!0;const Tr=Le.props;Tr.onTouchStart&&Tr.onTouchStart(lt)},Is=lt=>{nu(lt),ft.clear(),Ee.clear(),qe(),Ct.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",De.start(z,()=>{document.body.style.WebkitUserSelect=Ct.current,Ge(lt)})},zi=lt=>{Le.props.onTouchEnd&&Le.props.onTouchEnd(lt),qe(),ft.start(J,()=>{Me(lt)})};d.useEffect(()=>{if(!_t)return;function lt(Tr){(Tr.key==="Escape"||Tr.key==="Esc")&&Me(Tr)}return document.addEventListener("keydown",lt),()=>{document.removeEventListener("keydown",lt)}},[Me,_t]);const hp=Ir(Le.ref,an,K,r);!ve&&ve!==0&&(_t=!1);const au=d.useRef(),X=lt=>{const Tr=Le.props;Tr.onMouseMove&&Tr.onMouseMove(lt),Yp={x:lt.clientX,y:lt.clientY},au.current&&au.current.update()},ae={},fe=typeof ve=="string";M?(ae.title=!_t&&fe&&!L?ve:null,ae["aria-describedby"]=_t?Wt:null):(ae["aria-label"]=fe?ve:null,ae["aria-labelledby"]=_t&&!fe?Wt:null);const Se=T({},ae,je,Le.props,{className:de(je.className,Le.props.className),onTouchStart:nu,ref:hp},q?{onMouseMove:X}:{}),We={};V||(Se.onTouchStart=Is,Se.onTouchEnd=zi),L||(Se.onMouseOver=Ng(Ge,Se.onMouseOver),Se.onMouseLeave=Ng(wt,Se.onMouseLeave),ce||(We.onMouseOver=Ge,We.onMouseLeave=wt)),F||(Se.onFocus=Ng(li,Se.onFocus),Se.onBlur=Ng(Tn,Se.onBlur),ce||(We.onFocus=li,We.onBlur=Tn));const dt=d.useMemo(()=>{var lt;let Tr=[{name:"arrow",enabled:!!Z,options:{element:Z,padding:4}}];return(lt=xe.popperOptions)!=null&<.modifiers&&(Tr=Tr.concat(xe.popperOptions.modifiers)),T({},xe.popperOptions,{modifiers:Tr})},[Z,xe]),mt=T({},C,{isRtl:Xe,arrow:$,disableInteractive:ce,placement:pe,PopperComponentProp:me,touch:ue.current}),Ye=hje(mt),nt=(n=(a=Te.popper)!=null?a:k.Popper)!=null?n:vje,Qe=(o=(i=(l=Te.transition)!=null?l:k.Transition)!=null?i:$e)!=null?o:xv,ut=(c=(s=Te.tooltip)!=null?s:k.Tooltip)!=null?c:mje,Pt=(f=(h=Te.arrow)!=null?h:k.Arrow)!=null?f:gje,Tt=Id(nt,T({},xe,(v=ne.popper)!=null?v:I.popper,{className:de(Ye.popper,xe==null?void 0:xe.className,(m=(b=ne.popper)!=null?b:I.popper)==null?void 0:m.className)}),mt),zr=Id(Qe,T({},ye,(w=ne.transition)!=null?w:I.transition),mt),Zt=Id(ut,T({},(O=ne.tooltip)!=null?O:I.tooltip,{className:de(Ye.tooltip,(_=(y=ne.tooltip)!=null?y:I.tooltip)==null?void 0:_.className)}),mt),Dt=Id(Pt,T({},(x=ne.arrow)!=null?x:I.arrow,{className:de(Ye.arrow,(S=(P=ne.arrow)!=null?P:I.arrow)==null?void 0:S.className)}),mt);return E.jsxs(d.Fragment,{children:[d.cloneElement(Le,Se),E.jsx(nt,T({as:me??D9,placement:pe,anchorEl:q?{getBoundingClientRect:()=>({top:Yp.y,left:Yp.x,right:Yp.x,bottom:Yp.y,width:0,height:0})}:U,popperRef:au,open:U?_t:!1,id:Wt,transition:!0},We,Tt,{popperOptions:dt,children:({TransitionProps:lt})=>E.jsx(Qe,T({timeout:st.transitions.duration.shorter},lt,zr,{children:E.jsxs(ut,T({},Zt,{children:[ve,$?E.jsx(Pt,T({},Dt,{ref:ie})):null]}))}))}))]})});function yje(e){return et("MuiSwitch",e)}const Yn=ot("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),bje=["className","color","edge","size","sx"],_je=e=>{const{classes:t,edge:r,size:n,color:a,checked:o,disabled:i}=e,l={root:["root",r&&`edge${Pe(r)}`,`size${Pe(n)}`],switchBase:["switchBase",`color${Pe(a)}`,o&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=tt(l,yje,t);return T({},t,c)},xje=te("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Pe(r.edge)}`],t[`size${Pe(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Yn.thumb}`]:{width:16,height:16},[`& .${Yn.switchBase}`]:{padding:4,[`&.${Yn.checked}`]:{transform:"translateX(16px)"}}}}]}),wje=te(H9,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Yn.input}`]:t.input},r.color!=="default"&&t[`color${Pe(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Yn.checked}`]:{transform:"translateX(20px)"},[`&.${Yn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Yn.checked} + .${Yn.track}`]:{opacity:.5},[`&.${Yn.disabled} + .${Yn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Yn.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Yn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?o1(e.palette[t].main,.62):a1(e.palette[t].main,.55)}`}},[`&.${Yn.checked} + .${Yn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Sje=te("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Eje=te("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),sU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSwitch"}),{className:a,color:o="primary",edge:i=!1,size:l="medium",sx:c}=n,s=Re(n,bje),f=T({},n,{color:o,edge:i,size:l}),h=_je(f),v=E.jsx(Eje,{className:h.thumb,ownerState:f});return E.jsxs(xje,{className:de(h.root,a),sx:c,ownerState:f,children:[E.jsx(wje,T({type:"checkbox",icon:v,checkedIcon:v,ref:r,ownerState:f},s,{classes:T({},h,{root:h.switchBase})})),E.jsx(Sje,{className:h.track,ownerState:f})]})});function Cje(e){return et("MuiTab",e)}const Qs=ot("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Oje=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Pje=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:o,label:i,selected:l,disabled:c}=e,s={root:["root",o&&i&&"labelIcon",`textColor${Pe(r)}`,n&&"fullWidth",a&&"wrapped",l&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return tt(s,Cje,t)},Rje=te(ks,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Pe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Qs.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Qs.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Qs.selected}`]:{opacity:1},[`&.${Qs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Qs.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Qs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Qs.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Qs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),lU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:l,icon:c,iconPosition:s="top",indicator:f,label:h,onChange:v,onClick:m,onFocus:b,selected:w,selectionFollowsFocus:O,textColor:_="inherit",value:y,wrapped:x=!1}=n,S=Re(n,Oje),P=T({},n,{disabled:o,disableFocusRipple:i,selected:w,icon:!!c,iconPosition:s,label:!!h,fullWidth:l,textColor:_,wrapped:x}),C=Pje(P),$=c&&h&&d.isValidElement(c)?d.cloneElement(c,{className:de(C.iconWrapper,c.props.className)}):c,R=I=>{!w&&v&&v(I,y),m&&m(I)},k=I=>{O&&!w&&v&&v(I,y),b&&b(I)};return E.jsxs(Rje,T({focusRipple:!i,className:de(C.root,a),ref:r,role:"tab","aria-selected":w,disabled:o,onClick:R,onFocus:k,ownerState:P,tabIndex:w?0:-1},S,{children:[s==="top"||s==="start"?E.jsxs(d.Fragment,{children:[$,h]}):E.jsxs(d.Fragment,{children:[h,$]}),f]}))}),uU=d.createContext();function $je(e){return et("MuiTable",e)}ot("MuiTable",["root","stickyHeader"]);const kje=["className","component","padding","size","stickyHeader"],jje=e=>{const{classes:t,stickyHeader:r}=e;return tt({root:["root",r&&"stickyHeader"]},$je,t)},Ije=te("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),$D="table",cU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTable"}),{className:a,component:o=$D,padding:i="normal",size:l="medium",stickyHeader:c=!1}=n,s=Re(n,kje),f=T({},n,{component:o,padding:i,size:l,stickyHeader:c}),h=jje(f),v=d.useMemo(()=>({padding:i,size:l,stickyHeader:c}),[i,l,c]);return E.jsx(uU.Provider,{value:v,children:E.jsx(Ije,T({as:o,role:o===$D?null:"table",ref:r,className:de(h.root,a),ownerState:f},s))})}),_1=d.createContext();function Tje(e){return et("MuiTableBody",e)}ot("MuiTableBody",["root"]);const Aje=["className","component"],Mje=e=>{const{classes:t}=e;return tt({root:["root"]},Tje,t)},Fje=te("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Lje={variant:"body"},kD="tbody",dU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableBody"}),{className:a,component:o=kD}=n,i=Re(n,Aje),l=T({},n,{component:o}),c=Mje(l);return E.jsx(_1.Provider,{value:Lje,children:E.jsx(Fje,T({className:de(c.root,a),as:o,ref:r,role:o===kD?null:"rowgroup",ownerState:l},i))})});function Dje(e){return et("MuiTableCell",e)}const Nje=ot("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Bje=["align","className","component","padding","scope","size","sortDirection","variant"],zje=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,l={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${Pe(n)}`,a!=="normal"&&`padding${Pe(a)}`,`size${Pe(o)}`]};return tt(l,Dje,t)},Uje=te("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Pe(r.size)}`],r.padding!=="normal"&&t[`padding${Pe(r.padding)}`],r.align!=="inherit"&&t[`align${Pe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?o1(nr(e.palette.divider,1),.88):a1(nr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Nje.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),zn=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:i,padding:l,scope:c,size:s,sortDirection:f,variant:h}=n,v=Re(n,Bje),m=d.useContext(uU),b=d.useContext(_1),w=b&&b.variant==="head";let O;i?O=i:O=w?"th":"td";let _=c;O==="td"?_=void 0:!_&&w&&(_="col");const y=h||b&&b.variant,x=T({},n,{align:a,component:O,padding:l||(m&&m.padding?m.padding:"normal"),size:s||(m&&m.size?m.size:"medium"),sortDirection:f,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),S=zje(x);let P=null;return f&&(P=f==="asc"?"ascending":"descending"),E.jsx(Uje,T({as:O,ref:r,className:de(S.root,o),"aria-sort":P,scope:_,ownerState:x},v))});function Vje(e){return et("MuiTableHead",e)}ot("MuiTableHead",["root"]);const Wje=["className","component"],Hje=e=>{const{classes:t}=e;return tt({root:["root"]},Vje,t)},qje=te("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Gje={variant:"head"},jD="thead",fU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableHead"}),{className:a,component:o=jD}=n,i=Re(n,Wje),l=T({},n,{component:o}),c=Hje(l);return E.jsx(_1.Provider,{value:Gje,children:E.jsx(qje,T({as:o,className:de(c.root,a),ref:r,role:o===jD?null:"rowgroup",ownerState:l},i))})});function Kje(e){return et("MuiToolbar",e)}ot("MuiToolbar",["root","gutters","regular","dense"]);const Qje=["className","component","disableGutters","variant"],Xje=e=>{const{classes:t,disableGutters:r,variant:n}=e;return tt({root:["root",!r&&"gutters",n]},Kje,t)},Yje=te("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),dp=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:l="regular"}=n,c=Re(n,Qje),s=T({},n,{component:o,disableGutters:i,variant:l}),f=Xje(s);return E.jsx(Yje,T({as:o,className:de(f.root,a),ref:r,ownerState:s},c))}),pU=Za(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),hU=Za(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Jje=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],Zje=d.forwardRef(function(t,r){var n,a,o,i,l,c,s,f;const{backIconButtonProps:h,count:v,disabled:m=!1,getItemAriaLabel:b,nextIconButtonProps:w,onPageChange:O,page:_,rowsPerPage:y,showFirstButton:x,showLastButton:S,slots:P={},slotProps:C={}}=t,$=Re(t,Jje),R=eu(),k=ne=>{O(ne,0)},I=ne=>{O(ne,_-1)},M=ne=>{O(ne,_+1)},F=ne=>{O(ne,Math.max(0,Math.ceil(v/y)-1))},L=(n=P.firstButton)!=null?n:Br,B=(a=P.lastButton)!=null?a:Br,V=(o=P.nextButton)!=null?o:Br,H=(i=P.previousButton)!=null?i:Br,W=(l=P.firstButtonIcon)!=null?l:EC,z=(c=P.lastButtonIcon)!=null?c:CC,q=(s=P.nextButtonIcon)!=null?s:hU,ee=(f=P.previousButtonIcon)!=null?f:pU,oe=R?B:L,J=R?V:H,we=R?H:V,le=R?L:B,ge=R?C.lastButton:C.firstButton,pe=R?C.nextButton:C.previousButton,me=R?C.previousButton:C.nextButton,xe=R?C.firstButton:C.lastButton;return E.jsxs("div",T({ref:r},$,{children:[x&&E.jsx(oe,T({onClick:k,disabled:m||_===0,"aria-label":b("first",_),title:b("first",_)},ge,{children:R?E.jsx(z,T({},C.lastButtonIcon)):E.jsx(W,T({},C.firstButtonIcon))})),E.jsx(J,T({onClick:I,disabled:m||_===0,color:"inherit","aria-label":b("previous",_),title:b("previous",_)},pe??h,{children:R?E.jsx(q,T({},C.nextButtonIcon)):E.jsx(ee,T({},C.previousButtonIcon))})),E.jsx(we,T({onClick:M,disabled:m||(v!==-1?_>=Math.ceil(v/y)-1:!1),color:"inherit","aria-label":b("next",_),title:b("next",_)},me??w,{children:R?E.jsx(ee,T({},C.previousButtonIcon)):E.jsx(q,T({},C.nextButtonIcon))})),S&&E.jsx(le,T({onClick:F,disabled:m||_>=Math.ceil(v/y)-1,"aria-label":b("last",_),title:b("last",_)},xe,{children:R?E.jsx(W,T({},C.firstButtonIcon)):E.jsx(z,T({},C.lastButtonIcon))}))]}))});function eIe(e){return et("MuiTablePagination",e)}const Th=ot("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var ID;const tIe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],rIe=te(zn,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),nIe=te(dp,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>T({[`& .${Th.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Th.actions}`]:{flexShrink:0,marginLeft:20}})),aIe=te("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),oIe=te("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>T({},e.typography.body2,{flexShrink:0})),iIe=te(b1,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>T({[`& .${Th.selectIcon}`]:t.selectIcon,[`& .${Th.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Th.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),sIe=te(za,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),lIe=te("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>T({},e.typography.body2,{flexShrink:0}));function uIe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function cIe(e){return`Go to ${e} page`}const dIe=e=>{const{classes:t}=e;return tt({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},eIe,t)},TD=d.forwardRef(function(t,r){var n;const a=rt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=Zje,backIconButtonProps:i,className:l,colSpan:c,component:s=zn,count:f,disabled:h=!1,getItemAriaLabel:v=cIe,labelDisplayedRows:m=uIe,labelRowsPerPage:b="Rows per page:",nextIconButtonProps:w,onPageChange:O,onRowsPerPageChange:_,page:y,rowsPerPage:x,rowsPerPageOptions:S=[10,25,50,100],SelectProps:P={},showFirstButton:C=!1,showLastButton:$=!1,slotProps:R={},slots:k={}}=a,I=Re(a,tIe),M=a,F=dIe(M),L=(n=R==null?void 0:R.select)!=null?n:P,B=L.native?"option":sIe;let V;(s===zn||s==="td")&&(V=c||1e3);const H=bc(L.id),W=bc(L.labelId),z=()=>f===-1?(y+1)*x:x===-1?f:Math.min(f,(y+1)*x);return E.jsx(rIe,T({colSpan:V,ref:r,as:s,ownerState:M,className:de(F.root,l)},I,{children:E.jsxs(nIe,{className:F.toolbar,children:[E.jsx(aIe,{className:F.spacer}),S.length>1&&E.jsx(oIe,{className:F.selectLabel,id:W,children:b}),S.length>1&&E.jsx(iIe,T({variant:"standard"},!L.variant&&{input:ID||(ID=E.jsx(h1,{}))},{value:x,onChange:_,id:H,labelId:W},L,{classes:T({},L.classes,{root:de(F.input,F.selectRoot,(L.classes||{}).root),select:de(F.select,(L.classes||{}).select),icon:de(F.selectIcon,(L.classes||{}).icon)}),disabled:h,children:S.map(q=>d.createElement(B,T({},!mv(B)&&{ownerState:M},{className:F.menuItem,key:q.label?q.label:q,value:q.value?q.value:q}),q.label?q.label:q))})),E.jsx(lIe,{className:F.displayedRows,children:m({from:f===0?0:y*x+1,to:z(),count:f===-1?-1:f,page:y})}),E.jsx(o,{className:F.actions,backIconButtonProps:i,count:f,nextIconButtonProps:w,onPageChange:O,page:y,rowsPerPage:x,showFirstButton:C,showLastButton:$,slotProps:R.actions,slots:k.actions,getItemAriaLabel:v,disabled:h})]})}))});function fIe(e){return et("MuiTableRow",e)}const AD=ot("MuiTableRow",["root","selected","hover","head","footer"]),pIe=["className","component","hover","selected"],hIe=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return tt({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},fIe,t)},vIe=te("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${AD.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${AD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),MD="tr",Sv=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableRow"}),{className:a,component:o=MD,hover:i=!1,selected:l=!1}=n,c=Re(n,pIe),s=d.useContext(_1),f=T({},n,{component:o,hover:i,selected:l,head:s&&s.variant==="head",footer:s&&s.variant==="footer"}),h=hIe(f);return E.jsx(vIe,T({as:o,ref:r,className:de(h.root,a),role:o===MD?null:"row",ownerState:f},c))}),mIe=Za(E.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function gIe(e){return et("MuiTableSortLabel",e)}const cS=ot("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),yIe=["active","children","className","direction","hideSortIcon","IconComponent"],bIe=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${Pe(r)}`]};return tt(a,gIe,t)},_Ie=te(ks,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${cS.icon}`]:{opacity:.5}},[`&.${cS.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${cS.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),xIe=te("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${Pe(r.direction)}`]]}})(({theme:e,ownerState:t})=>T({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),wIe=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:i,direction:l="asc",hideSortIcon:c=!1,IconComponent:s=mIe}=n,f=Re(n,yIe),h=T({},n,{active:a,direction:l,hideSortIcon:c,IconComponent:s}),v=bIe(h);return E.jsxs(_Ie,T({className:de(v.root,i),component:"span",disableRipple:!0,ownerState:h,ref:r},f,{children:[o,c&&!a?null:E.jsx(xIe,{as:s,className:de(v.icon),ownerState:h})]}))});function SIe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function EIe(e,t,r,n={},a=()=>{}){const{ease:o=SIe,duration:i=300}=n;let l=null;const c=t[e];let s=!1;const f=()=>{s=!0},h=v=>{if(s){a(new Error("Animation cancelled"));return}l===null&&(l=v);const m=Math.min(1,(v-l)/i);if(t[e]=o(m)*(r-c)+c,m>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(h)};return c===r?(a(new Error("Element already at target position")),f):(requestAnimationFrame(h),f)}const CIe=["onChange"],OIe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function PIe(e){const{onChange:t}=e,r=Re(e,CIe),n=d.useRef(),a=d.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return qa(()=>{const i=op(()=>{const c=n.current;o(),c!==n.current&&t(n.current)}),l=$o(a.current);return l.addEventListener("resize",i),()=>{i.clear(),l.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{o(),t(n.current)},[t]),E.jsx("div",T({style:OIe,ref:a},r))}function RIe(e){return et("MuiTabScrollButton",e)}const $Ie=ot("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),kIe=["className","slots","slotProps","direction","orientation","disabled"],jIe=e=>{const{classes:t,orientation:r,disabled:n}=e;return tt({root:["root",r,n&&"disabled"]},RIe,t)},IIe=te(ks,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${$Ie.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),TIe=d.forwardRef(function(t,r){var n,a;const o=rt({props:t,name:"MuiTabScrollButton"}),{className:i,slots:l={},slotProps:c={},direction:s}=o,f=Re(o,kIe),h=eu(),v=T({isRtl:h},o),m=jIe(v),b=(n=l.StartScrollButtonIcon)!=null?n:pU,w=(a=l.EndScrollButtonIcon)!=null?a:hU,O=ko({elementType:b,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),_=ko({elementType:w,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return E.jsx(IIe,T({component:"div",className:de(m.root,i),ref:r,role:null,ownerState:v,tabIndex:null},f,{children:s==="left"?E.jsx(b,T({},O)):E.jsx(w,T({},_))}))});function AIe(e){return et("MuiTabs",e)}const dS=ot("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),MIe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],FD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,LD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Bg=(e,t,r)=>{let n=!1,a=r(e,t);for(;a;){if(a===e.firstChild){if(n)return;n=!0}const o=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||o)a=r(e,a);else{a.focus();return}}},FIe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:i,scrollButtonsHideMobile:l,classes:c}=e;return tt({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},AIe,c)},LIe=te("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${dS.scrollButtons}`]:t.scrollButtons},{[`& .${dS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${dS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),DIe=te("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),NIe=te("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),BIe=te("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),zIe=te(PIe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),DD={},vU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTabs"}),a=Ja(),o=eu(),{"aria-label":i,"aria-labelledby":l,action:c,centered:s=!1,children:f,className:h,component:v="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:w,orientation:O="horizontal",ScrollButtonComponent:_=TIe,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:P={},TabIndicatorProps:C={},TabScrollButtonProps:$={},textColor:R="primary",value:k,variant:I="standard",visibleScrollbar:M=!1}=n,F=Re(n,MIe),L=I==="scrollable",B=O==="vertical",V=B?"scrollTop":"scrollLeft",H=B?"top":"left",W=B?"bottom":"right",z=B?"clientHeight":"clientWidth",q=B?"height":"width",ee=T({},n,{component:v,allowScrollButtonsMobile:m,indicatorColor:b,orientation:O,vertical:B,scrollButtons:y,textColor:R,variant:I,visibleScrollbar:M,fixed:!L,hideScrollbar:L&&!M,scrollableX:L&&!B,scrollableY:L&&B,centered:s&&!L,scrollButtonsHideMobile:!m}),oe=FIe(ee),J=ko({elementType:S.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:ee}),we=ko({elementType:S.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:ee}),[le,ge]=d.useState(!1),[pe,me]=d.useState(DD),[xe,ne]=d.useState(!1),[Te,ve]=d.useState(!1),[$e,ye]=d.useState(!1),[je,Le]=d.useState({overflow:"hidden",scrollbarWidth:0}),st=new Map,Xe=d.useRef(null),U=d.useRef(null),K=()=>{const Me=Xe.current;let Ge;if(Me){const Ot=Me.getBoundingClientRect();Ge={clientWidth:Me.clientWidth,scrollLeft:Me.scrollLeft,scrollTop:Me.scrollTop,scrollLeftNormalized:kwe(Me,o?"rtl":"ltr"),scrollWidth:Me.scrollWidth,top:Ot.top,bottom:Ot.bottom,left:Ot.left,right:Ot.right}}let wt;if(Me&&k!==!1){const Ot=U.current.children;if(Ot.length>0){const dr=Ot[st.get(k)];wt=dr?dr.getBoundingClientRect():null}}return{tabsMeta:Ge,tabMeta:wt}},Z=oa(()=>{const{tabsMeta:Me,tabMeta:Ge}=K();let wt=0,Ot;if(B)Ot="top",Ge&&Me&&(wt=Ge.top-Me.top+Me.scrollTop);else if(Ot=o?"right":"left",Ge&&Me){const Pr=o?Me.scrollLeftNormalized+Me.clientWidth-Me.scrollWidth:Me.scrollLeft;wt=(o?-1:1)*(Ge[Ot]-Me[Ot]+Pr)}const dr={[Ot]:wt,[q]:Ge?Ge[q]:0};if(isNaN(pe[Ot])||isNaN(pe[q]))me(dr);else{const Pr=Math.abs(pe[Ot]-dr[Ot]),an=Math.abs(pe[q]-dr[q]);(Pr>=1||an>=1)&&me(dr)}}),ie=(Me,{animation:Ge=!0}={})=>{Ge?EIe(V,Xe.current,Me,{duration:a.transitions.duration.standard}):Xe.current[V]=Me},ue=Me=>{let Ge=Xe.current[V];B?Ge+=Me:(Ge+=Me*(o?-1:1),Ge*=o&&s9()==="reverse"?-1:1),ie(Ge)},ce=()=>{const Me=Xe.current[z];let Ge=0;const wt=Array.from(U.current.children);for(let Ot=0;OtMe){Ot===0&&(Ge=Me);break}Ge+=dr[z]}return Ge},Ee=()=>{ue(-1*ce())},Ae=()=>{ue(ce())},ft=d.useCallback(Me=>{Le({overflow:null,scrollbarWidth:Me})},[]),De=()=>{const Me={};Me.scrollbarSizeListener=L?E.jsx(zIe,{onChange:ft,className:de(oe.scrollableX,oe.hideScrollbar)}):null;const wt=L&&(y==="auto"&&(xe||Te)||y===!0);return Me.scrollButtonStart=wt?E.jsx(_,T({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:J},orientation:O,direction:o?"right":"left",onClick:Ee,disabled:!xe},$,{className:de(oe.scrollButtons,$.className)})):null,Me.scrollButtonEnd=wt?E.jsx(_,T({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:we},orientation:O,direction:o?"left":"right",onClick:Ae,disabled:!Te},$,{className:de(oe.scrollButtons,$.className)})):null,Me},Ze=oa(Me=>{const{tabsMeta:Ge,tabMeta:wt}=K();if(!(!wt||!Ge)){if(wt[H]Ge[W]){const Ot=Ge[V]+(wt[W]-Ge[W]);ie(Ot,{animation:Me})}}}),Ve=oa(()=>{L&&y!==!1&&ye(!$e)});d.useEffect(()=>{const Me=op(()=>{Xe.current&&Z()});let Ge;const wt=Pr=>{Pr.forEach(an=>{an.removedNodes.forEach($a=>{var Tn;(Tn=Ge)==null||Tn.unobserve($a)}),an.addedNodes.forEach($a=>{var Tn;(Tn=Ge)==null||Tn.observe($a)})}),Me(),Ve()},Ot=$o(Xe.current);Ot.addEventListener("resize",Me);let dr;return typeof ResizeObserver<"u"&&(Ge=new ResizeObserver(Me),Array.from(U.current.children).forEach(Pr=>{Ge.observe(Pr)})),typeof MutationObserver<"u"&&(dr=new MutationObserver(wt),dr.observe(U.current,{childList:!0})),()=>{var Pr,an;Me.clear(),Ot.removeEventListener("resize",Me),(Pr=dr)==null||Pr.disconnect(),(an=Ge)==null||an.disconnect()}},[Z,Ve]),d.useEffect(()=>{const Me=Array.from(U.current.children),Ge=Me.length;if(typeof IntersectionObserver<"u"&&Ge>0&&L&&y!==!1){const wt=Me[0],Ot=Me[Ge-1],dr={root:Xe.current,threshold:.99},Pr=li=>{ne(!li[0].isIntersecting)},an=new IntersectionObserver(Pr,dr);an.observe(wt);const $a=li=>{ve(!li[0].isIntersecting)},Tn=new IntersectionObserver($a,dr);return Tn.observe(Ot),()=>{an.disconnect(),Tn.disconnect()}}},[L,y,$e,f==null?void 0:f.length]),d.useEffect(()=>{ge(!0)},[]),d.useEffect(()=>{Z()}),d.useEffect(()=>{Ze(DD!==pe)},[Ze,pe]),d.useImperativeHandle(c,()=>({updateIndicator:Z,updateScrollButtons:Ve}),[Z,Ve]);const _t=E.jsx(BIe,T({},C,{className:de(oe.indicator,C.className),ownerState:ee,style:T({},pe,C.style)}));let Wt=0;const Ct=d.Children.map(f,Me=>{if(!d.isValidElement(Me))return null;const Ge=Me.props.value===void 0?Wt:Me.props.value;st.set(Ge,Wt);const wt=Ge===k;return Wt+=1,d.cloneElement(Me,T({fullWidth:I==="fullWidth",indicator:wt&&!le&&_t,selected:wt,selectionFollowsFocus:x,onChange:w,textColor:R,value:Ge},Wt===1&&k===!1&&!Me.props.tabIndex?{tabIndex:0}:{}))}),qe=Me=>{const Ge=U.current,wt=tn(Ge).activeElement;if(wt.getAttribute("role")!=="tab")return;let dr=O==="horizontal"?"ArrowLeft":"ArrowUp",Pr=O==="horizontal"?"ArrowRight":"ArrowDown";switch(O==="horizontal"&&o&&(dr="ArrowRight",Pr="ArrowLeft"),Me.key){case dr:Me.preventDefault(),Bg(Ge,wt,LD);break;case Pr:Me.preventDefault(),Bg(Ge,wt,FD);break;case"Home":Me.preventDefault(),Bg(Ge,null,FD);break;case"End":Me.preventDefault(),Bg(Ge,null,LD);break}},pt=De();return E.jsxs(LIe,T({className:de(oe.root,h),ownerState:ee,ref:r,as:v},F,{children:[pt.scrollButtonStart,pt.scrollbarSizeListener,E.jsxs(DIe,{className:oe.scroller,ownerState:ee,style:{overflow:je.overflow,[B?`margin${o?"Left":"Right"}`:"marginBottom"]:M?void 0:-je.scrollbarWidth},ref:Xe,children:[E.jsx(NIe,{"aria-label":i,"aria-labelledby":l,"aria-orientation":O==="vertical"?"vertical":null,className:oe.flexContainer,ownerState:ee,onKeyDown:qe,ref:U,role:"tablist",children:Ct}),le&&_t]}),pt.scrollButtonEnd]}))});function UIe(e){return et("MuiTextField",e)}ot("MuiTextField",["root"]);const VIe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],WIe={standard:g1,filled:D2,outlined:V2},HIe=e=>{const{classes:t}=e;return tt({root:["root"]},UIe,t)},qIe=te(X9,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),um=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:l,color:c="primary",defaultValue:s,disabled:f=!1,error:h=!1,FormHelperTextProps:v,fullWidth:m=!1,helperText:b,id:w,InputLabelProps:O,inputProps:_,InputProps:y,inputRef:x,label:S,maxRows:P,minRows:C,multiline:$=!1,name:R,onBlur:k,onChange:I,onFocus:M,placeholder:F,required:L=!1,rows:B,select:V=!1,SelectProps:H,type:W,value:z,variant:q="outlined"}=n,ee=Re(n,VIe),oe=T({},n,{autoFocus:o,color:c,disabled:f,error:h,fullWidth:m,multiline:$,required:L,select:V,variant:q}),J=HIe(oe),we={};q==="outlined"&&(O&&typeof O.shrink<"u"&&(we.notched=O.shrink),we.label=S),V&&((!H||!H.native)&&(we.id=void 0),we["aria-describedby"]=void 0);const le=bc(w),ge=b&&le?`${le}-helper-text`:void 0,pe=S&&le?`${le}-label`:void 0,me=WIe[q],xe=E.jsx(me,T({"aria-describedby":ge,autoComplete:a,autoFocus:o,defaultValue:s,fullWidth:m,multiline:$,name:R,rows:B,maxRows:P,minRows:C,type:W,value:z,id:le,inputRef:x,onBlur:k,onChange:I,onFocus:M,placeholder:F,inputProps:_},we,y));return E.jsxs(qIe,T({className:de(J.root,l),disabled:f,error:h,fullWidth:m,ref:r,required:L,color:c,variant:q,ownerState:oe},ee,{children:[S!=null&&S!==""&&E.jsx(Y9,T({htmlFor:le,id:pe},O,{children:S})),V?E.jsx(b1,T({"aria-describedby":ge,id:le,labelId:pe,value:z,input:xe},H,{children:i})):xe,b&&E.jsx(N2,T({id:ge},v,{children:b}))]}))}),GIe=["getTrigger","target"];function KIe(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.currentn}const QIe=typeof window<"u"?window:null;function mU(e={}){const{getTrigger:t=KIe,target:r=QIe}=e,n=Re(e,GIe),a=d.useRef(),[o,i]=d.useState(()=>t(a,n));return d.useEffect(()=>{const l=()=>{i(t(a,T({target:r},n)))};return l(),r.addEventListener("scroll",l,{passive:!0}),()=>{r.removeEventListener("scroll",l,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var H2={},fS={};const XIe=Ss(pEe);var ND;function Ke(){return ND||(ND=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=XIe}(fS)),fS}var YIe=He;Object.defineProperty(H2,"__esModule",{value:!0});var cm=H2.default=void 0,JIe=YIe(Ke()),ZIe=E;cm=H2.default=(0,JIe.default)((0,ZIe.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Ah=function(){return Ah=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{t[r]=jU(e[r])}),t}function t$(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return pd(e)&&pd(t)&&Object.keys(t).forEach(a=>{pd(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&pd(e[a])?n[a]=t$(e[a],t[a],r):r.clone?n[a]=pd(t[a])?jU(t[a]):t[a]:n[a]=t[a]}),n}var IU={typography:{h6:{fontWeight:400}},sidebar:{width:240,closedWidth:50},components:{MuiAutocomplete:{defaultProps:{fullWidth:!0},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiTextField:{defaultProps:{variant:"filled",margin:"dense",size:"small",fullWidth:!0},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiFormControl:{defaultProps:{variant:"filled",margin:"dense",size:"small",fullWidth:!0}},RaSimpleFormIterator:{defaultProps:{fullWidth:!0}},RaTranslatableInputs:{defaultProps:{fullWidth:!0}}}},rAe=t$(IU,{palette:{background:{default:"#fafafb"},secondary:{light:"#6ec6ff",main:"#2196f3",dark:"#0069c0",contrastText:"#fff"}},components:{MuiFilledInput:{styleOverrides:{root:{backgroundColor:"rgba(0, 0, 0, 0.04)","&$disabled":{backgroundColor:"rgba(0, 0, 0, 0.04)"}}}}}}),nAe=t$(IU,{palette:{mode:"dark",primary:{main:"#90caf9"},background:{default:"#313131"}}}),aAe=function(){var e=Be(),t=w1(),r=t.darkTheme,n=t.defaultTheme,a=ca("(prefers-color-scheme: dark)",{noSsr:!0}),o=kU(n||(a&&r?"dark":"light")),i=o[0],l=o[1],c=function(){l(i==="dark"?"light":"dark")},s=e("ra.action.toggle_theme",{_:"Toggle Theme"});return ke.createElement(kn,{title:s,enterDelay:300},ke.createElement(Br,{color:"inherit",onClick:c,"aria-label":s},i==="dark"?ke.createElement($U,null):ke.createElement(RU,null)))},TC=function(){return TC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(mFe,null):null,t&&d.createElement(aAe,null),d.createElement(kTe,null))},lAe=d.createElement(sAe,null),uAe=d.createElement(OU,null),Pu="RaAppBar",Wu={appBar:"".concat(Pu,"-appBar"),toolbar:"".concat(Pu,"-toolbar"),menuButton:"".concat(Pu,"-menuButton"),menuButtonIconClosed:"".concat(Pu,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(Pu,"-menuButtonIconOpen"),title:"".concat(Pu,"-title")},cAe=te(aCe,{name:Pu,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Wu.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Wu.menuButton)]={marginRight:"0.2em"},t["& .".concat(Wu.title)]={},t}),r$={},dAe=He;Object.defineProperty(r$,"__esModule",{value:!0});var TU=r$.default=void 0,fAe=dAe(Ke()),pAe=E;TU=r$.default=(0,fAe.default)((0,pAe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var n$={},hAe=He;Object.defineProperty(n$,"__esModule",{value:!0});var AU=n$.default=void 0,vAe=hAe(Ke()),mAe=E;AU=n$.default=(0,vAe.default)((0,mAe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var Fh=function(){return Fh=Object.assign||function(e){for(var t,r=1,n=arguments.length;rP.getBoundingClientRect().bottom?S=y.lastChild:S=y.firstChild}S&&y===S.closest("ul")?a(_.dataset.index,c.current):(O.preventDefault(),O.stopPropagation()),_.classList.remove("drag-active"),document.removeEventListener("dragover",h)},w=function(O){O.preventDefault(),O.dataTransfer.dropEffect="move"};return d.createElement(VAe,{key:o,draggable:a?"true":void 0,onDrag:a?m:void 0,onDragStart:a?v:void 0,onDragEnd:a?b:void 0,onDragOver:a?w:void 0,"data-index":i},d.createElement("label",{htmlFor:"switch_".concat(i)},d.createElement(sU,{checked:t,onChange:n,name:i,id:"switch_".concat(i),size:"small",sx:{mr:.5,ml:-.5}}),d.createElement($t,{variant:"body2",component:"span"},d.createElement(Ro,{label:r,source:o,resource:l}))),a&&d.createElement(zU,{className:"dragIcon",color:"disabled",fontSize:"small"}))},VAe=te("li",{name:"RaFieldToggle",overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{display:"flex",justifyContent:"space-between",paddingLeft:0,"& svg":{cursor:"move"},"&.drag-active":{background:"transparent",color:"transparent",outline:"1px solid ".concat(t.palette.action.selected),"& .MuiSwitch-root, & svg":{visibility:"hidden"}}}}),Xs=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nS?P=Xs(Xs(Xs(Xs([],l.slice(0,S),!0),[l[x]],!1),l.slice(S,x),!0),l.slice(x+1),!0):P=Xs(Xs(Xs(Xs([],l.slice(0,x),!0),l.slice(x+1,S+1),!0),[l[x]],!1),l.slice(S+1),!0),c(P),v(function(C){return P.filter(function($){return C.includes($.index)}).map(function($){return $.index})})}},w=function(){v([])},O=function(){v(l.map(function(_){return _.index}))};return d.createElement(aa,{pt:.5},d.createElement(aa,{component:"ul",sx:{paddingInlineStart:0,m:0}},l.map(function(_){return d.createElement(UU,{key:_.index,source:_.source,label:_.label,index:_.index,selected:h.includes(_.index),onToggle:m,onMove:b})})),d.createElement(aa,{onDrop:function(_){return _.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},d.createElement(nn,{size:"small",onClick:w},o("ra.inspector.hideAll",{_:"Hide All"})),d.createElement(nn,{size:"small",onClick:O},o("ra.inspector.showAll",{_:"Show All"}))))},p$={},HAe=He;Object.defineProperty(p$,"__esModule",{value:!0});var VU=p$.default=void 0,qAe=HAe(Ke()),GAe=E;VU=p$.default=(0,qAe.default)((0,GAe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");var h$={},KAe=He;Object.defineProperty(h$,"__esModule",{value:!0});var WU=h$.default=void 0,QAe=KAe(Ke()),XAe=E;WU=h$.default=(0,QAe.default)((0,XAe.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");var YAe=function(){var e=Be();return x6("ra.configurable.inspector.title",{_:"Inspector"}),d.createElement($t,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},HU=function(){var e=a2(),t=e.isEnabled,r=e.disable,n=e.title,a=e.titleOptions,o=e.editor,i=e.preferenceKey,l=d.useRef(!1),c=l_e(i),s=Ja(),f=Be(),h=d.useState(0),v=h[0],m=h[1],b=$n("ra.inspector.position",{x:(document==null?void 0:document.body.clientWidth)-s.breakpoints.values.sm/2-8,y:8}),w=b[0],O=b[1],_=d.useState(),y=_[0],x=_[1],S=function($){var R=document==null?void 0:document.elementFromPoint($.clientX,$.clientY);(R==null?void 0:R.id)==="inspector-dialog-title"&&(l.current=!0,$.dataTransfer.effectAllowed="move",$.dataTransfer.setData("inspector",""),setTimeout(function(){$.target.classList.add("hide")},0),x({x:$.clientX-w.x,y:$.clientY-w.y}))},P=function($){l.current&&y&&(O({x:$.clientX-y.x,y:$.clientY-y.y}),$.target.classList.remove("hide"),l.current=!1)};d.useEffect(function(){if(t){var $=function(R){R.dataTransfer.types.includes("inspector")&&R.preventDefault()};return document==null||document.addEventListener("dragover",$),function(){document==null||document.removeEventListener("dragover",$)}}},[t]),d.useEffect(function(){if(t){var $=function(){window==null||window.requestAnimationFrame(function(){O(function(R){return{x:Math.min(R.x,(document==null?void 0:document.body.clientWidth)-s.breakpoints.values.sm/2-8),y:Math.min(R.y,(window==null?void 0:window.innerHeight)-50)}})})};return $(),window==null||window.addEventListener("resize",$),function(){window==null||window.removeEventListener("resize",$)}}},[t,O,s.breakpoints.values.sm]);var C=function(){c(),m(function($){return $+1})};return t?d.createElement(JAe,{className:Lh.modal,elevation:3,draggable:!0,onDragStart:S,onDragEnd:P,sx:{left:w.x,top:w.y}},d.createElement("div",{className:Lh.title},d.createElement($t,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},n&&f(n,a)),d.createElement("span",{id:"inspector-toolbar"}),i&&d.createElement(Br,{"aria-label":f("ra.action.remove"),onClick:C,size:"small"},d.createElement(WU,{fontSize:"inherit"})),d.createElement(Br,{"aria-label":f("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},d.createElement(VU,{fontSize:"inherit"}))),d.createElement("div",{className:Lh.content,key:v},d.createElement(_6,{value:i},o||d.createElement(YAe,null)))):null},Oy="RaInspector",Lh={modal:"".concat(Oy,"-modal"),title:"".concat(Oy,"-title"),content:"".concat(Oy,"-content")},JAe=te(tu,{name:Oy,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"fixed",zIndex:r.zIndex.modal+1,width:r.breakpoints.values.sm/2,transition:r.transitions.create(["height","width"]),"&.hide":{display:"none"}},t["& .".concat(Lh.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(Lh.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});HU.displayName="Inspector";var Sl=function(){return Sl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var c=n===!1?d.createElement(DU,J0({title:r,defaultTitle:t},a)):d.createElement(eMe,J0({title:r,defaultTitle:t,preferenceKey:n},a));return d.createElement(d.Fragment,null,Fv.createPortal(c,i))},LC=function(){return LC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0,I=LFe(O===!1||O===void 0?void 0:!O,s||!k||$||R);n2(h==="submit"&&(c&&(c.onSuccess||c.onError)||v),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var M=d.useCallback(function(B){return WD(void 0,void 0,void 0,function(){var V;return HD(this,function(H){switch(H.label){case 0:return S!=null&&S.save?[4,S.save(B,Nh(Nh({},c),{transform:v}))]:[3,2];case 1:V=H.sent(),H.label=2;case 2:return V!=null&&Iz(V,x.setError),[2]}})})},[x.setError,S,c,v]),F=d.useCallback(function(B){return WD(void 0,void 0,void 0,function(){return HD(this,function(V){switch(V.label){case 0:return l&&l(B),B.defaultPrevented?[2]:h!=="button"?[3,2]:(B.stopPropagation(),[4,x.handleSubmit(M)(B)]);case 1:V.sent(),V.label=2;case 2:return[2]}})})},[l,h,x,M]),L=i&&y(i,{_:i});return d.createElement(FFe,Nh({variant:b,type:h,color:r,"aria-label":L,disabled:I,onClick:F},_),R?d.createElement(lp,{sx:TFe,size:14,thickness:3,color:"inherit"}):a,L)},TFe={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},AFe=d.createElement(l8,null),MFe="RaSaveButton",FFe=te(nn,{name:MFe,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),LFe=function(e,t){return typeof e>"u"?t:e},DFe=function(){return ke.createElement(BFe,{onClick:zFe,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},NFe="RaSkipNavigationButton",BFe=te(cr,{name:NFe,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),zFe=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},ZC=function(){return ZC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]=a-1,color:"primary"},d.createElement(v8,{fontSize:"small"})))},pLe=d.forwardRef(function(e,t){var r=e.children,n=e.disabled,a=e.disableReordering,o=e.disableRemove,i=e.getItemLabel,l=e.index,c=e.inline,s=e.record,f=e.removeButton,h=f===void 0?d.createElement(oLe,null):f,v=e.reOrderButtons,m=v===void 0?d.createElement(fLe,null):v,b=Vt(e);if(!b)throw new Error("SimpleFormIteratorItem must be used in a ResourceContextProvider or be passed a resource prop.");var w=C1(),O=w.total,_=w.reOrder,y=w.remove,x=function(R){return typeof o=="boolean"?o:o&&o(R)},S=d.useMemo(function(){return{index:l,total:O,reOrder:function(R){return _(l,R)},remove:function(){return y(l)}}},[l,O,_,y]),P=typeof i=="function"?i(l):i,C=YR(),$=d.useMemo(function(){return{getSource:function(R){return R?C.getSource("".concat(l,".").concat(R)):C.getSource("".concat(l))},getLabel:function(R){return C.getLabel(R)}}},[l,C]);return d.createElement(f8.Provider,{value:S},d.createElement("li",{className:cn.line,ref:t},P!=null&&P!==!1&&d.createElement($t,{variant:"body2",className:cn.index},P),d.createElement(k_,{value:$},d.createElement(Kl,{value:s},d.createElement(up,{className:de(cn.form),direction:c?{xs:"column",sm:"row"}:"column",gap:c?2:0},r))),!n&&d.createElement("span",{className:cn.action},!a&&m,!x(s)&&h)))}),j$={},hLe=He;Object.defineProperty(j$,"__esModule",{value:!0});var m8=j$.default=void 0,vLe=hLe(Ke()),mLe=E;m8=j$.default=(0,vLe.default)((0,mLe.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline");var iO=function(){return iO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){var we=M[0];we.id;var le=SLe(we,["id"]);oe.current=le;for(var ge in oe.current)oe.current[ge]=null}var pe=d.useCallback(function(ve){ve===void 0&&(ve=void 0);var $e=ve;ve==null&&($e=oe.current,d.Children.count(i)===1&&d.isValidElement(d.Children.only(i))&&!d.Children.only(i).props.source&&!d.Children.only(i).type!==XE?$e="":($e=$e||{},d.Children.forEach(i,function(ye){var je;d.isValidElement(ye)&&ye.type!==XE&&ye.props.source&&($e[ye.props.source]=(je=ye.props.defaultValue)!==null&&je!==void 0?je:null)}))),I($e),H("".concat(P,".").concat(M.length),{defaultValue:$e})},[I,i,H,P,M.length]),me=d.useCallback(function(ve,$e){F(ve,$e)},[F]),xe=d.useCallback(function(){B([]),R(!1)},[B]),ne=qt(ee,P),Te=d.useMemo(function(){return{total:M.length,add:pe,remove:J,reOrder:me,source:P}},[pe,M.length,me,J,P]);return M?d.createElement(d8.Provider,{value:Te},d.createElement(ELe,{className:de(l,x&&"fullwidth",s&&"disabled"),sx:S},d.createElement("ul",{className:cn.list},M.map(function(ve,$e){return d.createElement(pLe,{key:ve.id,disabled:s,disableRemove:b,disableReordering:w,fields:M,getItemLabel:y,index:$e,onRemoveField:J,onReorder:me,record:ne&&ne[$e]||{},removeButton:a,reOrderButtons:o,resource:c,inline:O},i)})),!s&&!(h&&(v||b))&&d.createElement("div",{className:cn.buttons},!h&&d.createElement("div",{className:cn.add},n),M.length>0&&!v&&!b&&d.createElement("div",{className:cn.clear},d.createElement(a$,{isOpen:$,title:q("ra.action.clear_array_input"),content:q("ra.message.clear_array_input"),onConfirm:xe,onClose:function(){return R(!1)}}),d.createElement(wLe,{onClick:function(){return R(!0)}}))))):null},ELe=te("div",{name:pi,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n,a=e.theme;return t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}},t["& .".concat(cn.line)]=(r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(a.palette.divider)},r[a.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(cn.index)]=(n={display:"flex",alignItems:"top",marginRight:a.spacing(1),marginTop:a.spacing(1)},n[a.breakpoints.down("md")]={display:"none"},n),t["& .".concat(cn.form)]={},t["&.fullwidth > ul > li > .".concat(cn.form)]={flex:2},t["& .".concat(cn.inline)]={flexDirection:"row",columnGap:"1em"},t["& .".concat(cn.action)]={marginTop:a.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(cn.buttons)]={display:"flex"},t["& .".concat(cn.add)]={borderBottom:"none"},t["& .".concat(cn.clear)]={borderBottom:"none"},t["& .".concat(cn.line,":hover > .").concat(cn.action)]={visibility:"visible"},t}),CLe=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function l(f){try{s(n.next(f))}catch(h){i(h)}}function c(f){try{s(n.throw(f))}catch(h){i(h)}}function s(f){f.done?o(f.value):a(f.value).then(l,c)}s((n=n.apply(e,t||[])).next())})},OLe=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(s){return function(f){return c([s,f])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(r=0)),r;)try{if(n=1,a&&(o=s[0]&2?a.return:s[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;switch(a=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,a=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"u")throw new Error("DatagridRow expects an id prop");var S=b8(),P=Be(),C=Kt(e);if(!C)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var $=Vt(e),R=Rs(e),k=R.hasShow||R.hasEdit;if(!$)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var I=(!S||!S.isRowExpandable||S.isRowExpandable(C))&&i,M=qye($,h,S&&S.expandSingle),F=M[0],L=M[1],B=d.useState(function(){return qD(I,a,c)}),V=B[0],H=B[1];d.useEffect(function(){var J=qD(I,a,c);J!==V&&H(J)},[I,V,a,c]);var W=Li(),z=d.useCallback(function(J){L(),J.stopPropagation()},[L]),q=d.useCallback(function(J){!y||!v||(v(h,J),J.stopPropagation())},[h,v,y]),ee=Nz(),oe=d.useCallback(function(J){return LLe(void 0,void 0,void 0,function(){var we;return DLe(this,function(le){switch(le.label){case 0:return J.persist(),[4,ee({record:C,resource:$,link:typeof m=="function"?function(ge,pe){return m(ge.id,pe,ge)}:m})];case 1:return we=le.sent(),m==="expand"?(z(J),[2]):m==="toggleSelection"?(q(J),[2]):we===!1||we==null?[2]:(W(we,{state:{_scrollToTop:!0}}),[2])}})})},[C,$,m,W,z,q,ee]);return ke.createElement(ke.Fragment,null,ke.createElement(Sv,cO({ref:t,className:de(o,(r={},r[vt.expandable]=I,r[vt.selectable]=y,r[vt.clickableRow]=m??k,r)),key:h,style:O,hover:f,onClick:oe},x),i&&ke.createElement(zn,{padding:"none",className:vt.expandIconCell},I&&ke.createElement(FLe,{className:de(vt.expandIcon,(n={},n[vt.expanded]=F,n)),expanded:F,onClick:z,expandContentId:"".concat(h,"-expand")})),c&&ke.createElement(zn,{padding:"checkbox"},ke.createElement(Lf,{"aria-label":P("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(vt.checkbox),checked:y&&w,onClick:q,disabled:!y})),ke.Children.map(a,function(J,we){return d.isValidElement(J)?ke.createElement(y8,{key:"".concat(h,"-").concat(J.props.source||we),className:de("column-".concat(J.props.source),vt.rowCell),record:C,field:J,resource:$}):null})),I&&F&&ke.createElement(Sv,{key:"".concat(h,"-expand"),id:"".concat(h,"-expand"),className:vt.expandedPanel},ke.createElement(zn,{colSpan:V},d.isValidElement(i)?i:d.createElement(i))))}),NLe=function(e,t){e.children,e.expand;var r=dO(e,["children","expand"]);t.children,t.expand;var n=dO(t,["children","expand"]);return $B(r,n)},x8=d.memo(_8,NLe);x8.displayName="PureDatagridRow";var fb=function(){return fb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=aDe&&(o=nDe,i=!1,t=new JLe(t));e:for(;++a0&&x.length>0&&x.every(function(S){return m.includes(S)}),onChange:y,onClick:function(S){return S.stopPropagation()}})),d.Children.map(t,function(S,P){return d.isValidElement(S)?d.createElement(HLe,{className:de(vt.headerCell,"column-".concat(S.props.source)),sort:f,field:S,isSorting:(f==null?void 0:f.field)===(S.props.sortBy||S.props.source),key:S.props.source||P,updateSort:_||void 0}):null})))};E8.displayName="DatagridHeader";var vDe=function(e){var t=e.children,r=e.value;return ke.createElement(T$.Provider,{value:r},t)},M$={},mDe=He;Object.defineProperty(M$,"__esModule",{value:!0});var C8=M$.default=void 0,gDe=mDe(Ke()),yDe=E;C8=M$.default=(0,gDe.default)((0,yDe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var pO=function(){return pO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?d.createElement(d.Fragment,null,e("ra.navigation.no_filtered_results",{resource:t,_:"No results found with the current filters."})," ",d.createElement(cr,{onClick:function(){return a({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,_:"No results found."})))},Ov=function(){return Ov=Object.assign||function(e){for(var t,r=1,n=arguments.length;rR?k=Ys(Ys(Ys(Ys([],c.slice(0,R),!0),[c[$]],!1),c.slice(R,$),!0),c.slice($+1),!0):k=Ys(Ys(Ys(Ys([],c.slice(0,$),!0),c.slice($+1,R+1),!0),[c[$]],!1),c.slice(R+1),!0),s(k),m(function(I){return k.filter(function(M){return I.includes(M.index)}).map(function(M){return M.index})})}};return d.createElement(d.Fragment,null,w?d.createElement(kn,{title:O},d.createElement(Br,hb({"aria-label":O,color:"primary",onClick:_,size:"large"},YD(e)),d.createElement(hO,null))):d.createElement(TDe,hb({size:"small",onClick:_,startIcon:d.createElement(hO,null)},YD(e)),O),d.createElement(z2,{open:!!o,anchorEl:o,onClose:y,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},d.createElement(aa,{component:"ul",p:1,my:0},c.map(function(P){return d.createElement(UU,{key:P.index,source:P.source,label:P.label,index:P.index,selected:v.includes(P.index),onToggle:x,onMove:S})}))))},TDe=te(nn,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),YD=function(e){e.resource,e.preferenceKey;var t=IDe(e,["resource","preferenceKey"]);return t},ADe=function(e){var t,r=e.filterElement,n=e.handleHide,a=e.className,o=Vt(e),i=Be();return d.createElement(MDe,{"data-source":r.props.source,className:de("filter-field",a)},d.cloneElement(r,{resource:o,record:FDe,size:(t=r.props.size)!==null&&t!==void 0?t:"small",helperText:!1,defaultValue:void 0}),!r.props.alwaysOn&&d.createElement(Br,{className:de("hide-filter",vb.hideButton),onClick:n,"data-key":r.props.source,title:i("ra.action.remove_filter"),size:"small"},d.createElement(R$,null)),d.createElement("div",{className:vb.spacer}," "))},vO="RaFilterFormInput",vb={spacer:"".concat(vO,"-spacer"),hideButton:"".concat(vO,"-hideButton")},MDe=te("div",{name:vO,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",alignItems:"flex-end",pointerEvents:"auto"},t[r.breakpoints.down("sm")]={width:"100%"},t["& .".concat(vb.spacer)]={width:r.spacing(2)},t["& .".concat(vb.hideButton)]={marginBottom:r.spacing(1)},t}),FDe={},O1=d.createContext(void 0),Ml=function(){return Ml=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1] element instead.")})},[r]);var f=function(){if(!r)return[];var m=o.getValues();return r.filter(function(b){var w=qt(m,b.props.source);return b.props.alwaysOn||c[b.props.source]||!k8(w)})},h=d.useCallback(function(m){return s(m.currentTarget.dataset.key)},[s]),v=d.useMemo(function(){return{getSource:function(m){return m},getLabel:function(m){return"resources.".concat(a,".fields.").concat(m)}}},[a]);return d.createElement(k_,{value:v},d.createElement(HDe,Ml({className:t},UDe(n),{onSubmit:zDe}),f().map(function(m){return d.createElement(ADe,{key:m.key||m.props.source,filterElement:m,handleHide:h,resource:a,className:mb.filterFormInput})}),d.createElement("div",{className:mb.clearFix})))},zDe=function(e){return e.preventDefault(),!1},UDe=function(e){e.hasCreate,e.resource;var t=L$(e,["hasCreate","resource"]);return t},VDe=function(e,t){return Ml(Ml({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return i_(Ml({},r),n.props.source,n.props.defaultValue)},{})),e)},WDe=function(e){return e.preventDefault(),e.stopPropagation(),!1},mO="RaFilterForm",mb={clearFix:"".concat(mO,"-clearFix"),filterFormInput:"".concat(mO,"-filterFormInput")},HDe=te("form",{name:mO,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(mb.clearFix)]={clear:"right"},t["& .".concat(mb.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),qDe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=$8(e,a,t),n},(r=PB(t))!==null&&r!==void 0?r:{})},$8=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return qt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var i,l=$8(e[t],o,(i=(r||{})[t])!==null&&i!==void 0?i:{});return a[o]=l,a},{});return Object.keys(n).length?n:""}return qt(r,t,"")},k8=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return k8(e[t])}):!1},D$={},GDe=He;Object.defineProperty(D$,"__esModule",{value:!0});var wc=D$.default=void 0,KDe=GDe(Ke()),QDe=E;wc=D$.default=(0,KDe.default)((0,QDe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var N$={},XDe=He;Object.defineProperty(N$,"__esModule",{value:!0});var j8=N$.default=void 0,YDe=XDe(Ke()),JDe=E;j8=N$.default=(0,YDe.default)((0,JDe.jsx)("path",{d:"M21 7h-2v2h-2V7h-2V5h2V3h2v2h2zm-2 14-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1z"}),"BookmarkAdd");var B$={},ZDe=He;Object.defineProperty(B$,"__esModule",{value:!0});var I8=B$.default=void 0,eNe=ZDe(Ke()),tNe=E;I8=B$.default=(0,eNe.default)((0,tNe.jsx)("path",{d:"M21 7h-6V5h6zm-2 3.9c-.32.07-.66.1-1 .1-2.76 0-5-2.24-5-5 0-1.13.37-2.16 1-3H7c-1.1 0-2 .9-2 2v16l7-3 7 3z"}),"BookmarkRemove");var z$={},rNe=He;Object.defineProperty(z$,"__esModule",{value:!0});var T8=z$.default=void 0,nNe=rNe(Ke()),aNe=E;T8=z$.default=(0,nNe.default)((0,aNe.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder");var U$={},oNe=He;Object.defineProperty(U$,"__esModule",{value:!0});var A8=U$.default=void 0,iNe=oNe(Ke()),sNe=E;A8=U$.default=(0,iNe.default)((0,sNe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var V$={},lNe=He;Object.defineProperty(V$,"__esModule",{value:!0});var M8=V$.default=void 0,uNe=lNe(Ke()),cNe=E;M8=V$.default=(0,uNe.default)((0,cNe.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank");var W$={},dNe=He;Object.defineProperty(W$,"__esModule",{value:!0});var F8=W$.default=void 0,fNe=dNe(Ke()),pNe=E;F8=W$.default=(0,fNe.default)((0,pNe.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox");var hNe=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.onHide,o=e.autoFocus,i=e.displayed,l=Vt(e),c=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),s=d.useCallback(function(){a({source:r.props.source})},[r.props.source,a]);return d.createElement(za,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i?s:c,autoFocus:o,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":i},d.createElement(Vu,null,i?d.createElement(F8,{fontSize:"small"}):d.createElement(M8,{fontSize:"small"})),d.createElement(Td,null,d.createElement(Ro,{label:r.props.label,source:r.props.source,resource:l})))}),H$=function(e){return $n("".concat(e,".savedQueries"),[])},q$=function(e){return Array.isArray(e)?e.filter(function(t){return vNe(t)}):[]},vNe=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},mNe=function(e){var t=e.open,r=e.onClose,n=Be(),a=Hn(),o=a.resource,i=a.filterValues,l=a.displayedFilters,c=a.sort,s=a.perPage,f=H$(o),h=f[0],v=f[1],m=d.useState(""),b=m[0],w=m[1],O=function(x){w(x.target.value)},_=function(x){x.preventDefault(),y()},y=function(){var x={label:b,value:{filter:i,sort:c,perPage:s,displayedFilters:l}},S=q$(h);v(S.concat(x)),w(""),r()};return d.createElement(im,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(lm,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(sm,null,d.createElement("form",{onSubmit:_},d.createElement(um,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:b,onChange:O}))),d.createElement(L2,null,d.createElement(nn,{onClick:r},n("ra.action.cancel")),d.createElement(nn,{onClick:y,color:"primary"},n("ra.action.save"))))},JD=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var f=H$(c||"")[0],h=Li(),v=Hn(),m=v.displayedFilters,b=m===void 0?{}:m,w=v.filterValues,O=v.perPage,_=v.setFilters,y=v.showFilter,x=v.hideFilter,S=v.sort,P=!Eo(w,{}),C=q$(f),$=C.some(function(me){return Eo(me.value,{filter:w,sort:S,perPage:O,displayedFilters:b})}),R=d.useState(!1),k=R[0],I=R[1],M=d.useRef();if(l===void 0)throw new Error("The component requires the prop to be set");var F=l.filter(function(me){return!me.props.alwaysOn}),L=d.useCallback(function(me){me.preventDefault(),I(!0),M.current=me.currentTarget},[M,I]),B=d.useCallback(function(){I(!1)},[I]),V=d.useCallback(function(me){var xe=me.source,ne=me.defaultValue;y(xe,ne===""?void 0:ne),setTimeout(function(){var Te=document.querySelector("input[name='".concat(xe,"']"));Te&&Te.focus()},50),I(!1)},[y,I]),H=d.useCallback(function(me){var xe=me.source;x(xe),I(!1)},[x,I]),W=d.useState(!1),z=W[0],q=W[1],ee=function(){q(!1)},oe=function(){I(!1),q(!0)},J=d.useState(!1),we=J[0],le=J[1],ge=function(){le(!1)},pe=function(){I(!1),le(!0)};return F.length===0&&C.length===0&&!P?null:d.createElement(xNe,gO({className:r},bNe(i)),d.createElement(cr,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:L,variant:o,size:a},d.createElement(A8,null)),d.createElement(y1,{open:k,anchorEl:M.current,onClose:B},F.map(function(me,xe){return d.createElement(hNe,{key:me.props.source,filter:me,displayed:!!b[me.props.source],resource:c,onShow:V,onHide:H,autoFocus:xe===0})}),(P||C.length>0)&&d.createElement(_v,null),C.map(function(me,xe){return Eo(me.value,{filter:w,sort:S,perPage:O,displayedFilters:b})?d.createElement(za,{onClick:pe,key:xe},d.createElement(Vu,null,d.createElement(I8,{fontSize:"small"})),d.createElement(Td,null,s("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:me.label}))):d.createElement(za,{onClick:function(){var ne,Te;h({search:vc.stringify({filter:JSON.stringify(me.value.filter),sort:(ne=me.value.sort)===null||ne===void 0?void 0:ne.field,order:(Te=me.value.sort)===null||Te===void 0?void 0:Te.order,page:1,perPage:me.value.perPage,displayedFilters:JSON.stringify(me.value.displayedFilters)})}),I(!1)},key:xe},d.createElement(Vu,null,d.createElement(T8,{fontSize:"small"})),d.createElement(Td,null,me.label))}),P&&!$&&!n&&d.createElement(za,{onClick:oe},d.createElement(Vu,null,d.createElement(j8,{fontSize:"small"})),d.createElement(Td,null,s("ra.saved_queries.new_label",{_:"Save current query..."}))),P&&d.createElement(za,{onClick:function(){_({},{}),I(!1)}},d.createElement(Vu,null,d.createElement(wc,{fontSize:"small"})),d.createElement(Td,null,s("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&d.createElement(d.Fragment,null,d.createElement(mNe,{open:z,onClose:ee}),d.createElement(gNe,{open:we,onClose:ge})))},bNe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=L8(e,["displayedFilters","filterValues","showFilter"]);return t},_Ne="RaFilterButton",xNe=te("div",{name:_Ne,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),G$={},wNe=He;Object.defineProperty(G$,"__esModule",{value:!0});var D8=G$.default=void 0,SNe=wNe(Ke()),ENe=E;D8=G$.default=(0,SNe.default)((0,ENe.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");var yO=function(){return yO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r_-1)throw new Error(w("ra.navigation.page_out_of_boundaries",{page:R+1}));m(R+1)},[_,m,w]),x=d.useCallback(function($){b($.target.value)},[b]),S=d.useCallback(function($){var R=$.from,k=$.to,I=$.count;return I===-1&&s?w("ra.navigation.partial_page_range_info",{offsetBegin:R,offsetEnd:k,_:"%{from}-%{to} of more than %{to}"}):w("ra.navigation.page_range_info",{offsetBegin:R,offsetEnd:k,total:I===-1?k:I,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[w,s]),P=d.useCallback(function($){return w("ra.navigation.".concat($),{_:"Go to ".concat($," page")})},[w]);if(c)return d.createElement(dp,{variant:"dense"});if(v===0||f<1||v!=null&&f>_)return o!=null,null;if(O)return d.createElement(TD,gb({count:v??-1,rowsPerPage:h,page:f-1,onPageChange:y,rowsPerPageOptions:kNe,component:"span",labelDisplayedRows:S},cv(i)));var C=n||(!c&&v!=null?CNe:void 0);return d.createElement(TD,gb({count:v??-1,rowsPerPage:h,page:f-1,onPageChange:y,onRowsPerPageChange:x,ActionsComponent:C,nextIconButtonProps:{disabled:!s},component:"span",labelRowsPerPage:w("ra.navigation.page_rows_per_page"),labelDisplayedRows:S,getItemAriaLabel:P,rowsPerPageOptions:r},cv(i)))}),$Ne=[5,10,25,50],kNe=[],yb=function(){return yb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof pe.target.value>"u")){var me=pe.target,xe=me.valueAsDate!==void 0&&me.valueAsDate!==null&&!isNaN(new Date(me.valueAsDate).getTime())?b?b(me.valueAsDate):me.valueAsDate:b?b(me.value):Hg(me.value);xe!==""&&xe!=null&&(P.onChange(xe),F.current=!0)}},z=function(pe){f&&f(pe),H.current=!0},q=function(){if(H.current=!1,!!L.current){var pe=L.current.valueAsDate!==void 0&&L.current.valueAsDate!==null&&!isNaN(new Date(L.current.valueAsDate).getTime())?b?b(L.current.valueAsDate):Hg(L.current.valueAsDate):b?b(L.current.value):Hg(L.current.value);pe!==P.value&&P.onChange(pe??""),V&&V()}},ee=C.error,oe=C.invalid,J=i!==!1||oe,we=P.ref,le=P.name,ge=o_e([we,L]);return d.createElement(um,yb({id:$,inputRef:ge,name:le,defaultValue:a(B.current),key:I,type:"datetime-local",onChange:W,onFocus:z,onBlur:q,className:de("ra-input","ra-input-".concat(h),t),size:"small",variant:O,margin:l,error:oe,disabled:_||y,readOnly:y,helperText:J?d.createElement(xc,{error:ee==null?void 0:ee.message,helperText:i}):null,label:d.createElement(Ro,{label:o,source:h,resource:v,isRequired:R}),InputLabelProps:MNe},pp(x)))},B8=function(e){return e===void 0&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},TNe=B8(4),Wg=B8(2),eN=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=TNe(e.getFullYear()),r=Wg(e.getMonth()+1),n=Wg(e.getDate()),a=Wg(e.getHours()),o=Wg(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(a,":").concat(o)},ANe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,MNe={shrink:!0},Hg=function(e){return e==null||e===""?"":e instanceof Date?eN(e):ANe.test(e)?e:eN(new Date(e))},bb=function(){return bb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof xe.target.value>"u")){var ne=xe.target;ee(ne.value);var Te=ne.valueAsNumber!==void 0&&ne.valueAsNumber!==null&&!isNaN(ne.valueAsNumber)?v?v(ne.valueAsNumber):ne.valueAsNumber:v?v(ne.value):zNe(ne.value);I.onChange(Te)}},we=function(xe){h&&h(xe),oe.current=!0},le=function(){H&&H(),oe.current=!1;var xe=o(I.value);ee(function(ne){return ne!==xe?xe:ne})},ge=i!==!1||L,pe=I.ref,me=rN(I,["ref"]);return d.createElement(um,nl({id:B},me,{inputRef:pe,value:q,onChange:J,onFocus:we,onBlur:le,className:de("ra-input","ra-input-".concat(b),t),type:"number",size:"small",variant:S,error:L,disabled:C||$,readOnly:$,helperText:ge?d.createElement(xc,{error:F==null?void 0:F.message,helperText:i}):null,label:d.createElement(Ro,{label:l,source:b,resource:m,isRequired:V}),margin:c,inputProps:nl(nl({},W),{readOnly:$})},pp(R)))},zNe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},UNe=function(e){return e==null||isNaN(e)?"":e.toString()},Q$={},VNe=He;Object.defineProperty(Q$,"__esModule",{value:!0});var X$=Q$.default=void 0,WNe=VNe(Ke()),HNe=E;X$=Q$.default=(0,WNe.default)((0,HNe.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var Y$={},qNe=He;Object.defineProperty(Y$,"__esModule",{value:!0});var U8=Y$.default=void 0,GNe=qNe(Ke()),KNe=E;U8=Y$.default=(0,GNe.default)((0,KNe.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var _b=function(){return _b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r isn't designed to be used with a label prop. Use if you need a label.");return d.createElement(ZNe,_O({hiddenLabel:!0,label:"",resettable:!0,placeholder:n("ra.action.search"),InputProps:{endAdornment:d.createElement(Hd,{position:"end"},d.createElement(D8,{color:"disabled"}))},size:"small"},r))},JNe="RaSearchInput",ZNe=te(fn,{name:JNe,overridesResolver:function(e,t){return t.root}})({marginTop:0}),Df=function(){return Df=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"u"||!h.message?"ra.auth.sign_in_error":h.message,{type:"error",messageArgs:{_:typeof h=="string"?h:h&&h.message?h.message:void 0}})})};return d.createElement(i3e,{onSubmit:s,mode:"onChange",noValidate:!0,className:r},d.createElement(vo,{className:Xd.content},d.createElement(fn,{autoFocus:!0,source:"username",label:l("ra.auth.username"),autoComplete:"username",validate:Va()}),d.createElement(fn,{source:"password",label:l("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Va()}),d.createElement(nn,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:Xd.button},a?d.createElement(lp,{className:Xd.icon,size:19,thickness:3}):l("ra.auth.sign_in"))))},ky="RaLoginForm",Xd={content:"".concat(ky,"-content"),button:"".concat(ky,"-button"),icon:"".concat(ky,"-icon")},i3e=te(y_,{name:ky,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(Xd.content)]={width:300},t["& .".concat(Xd.button)]={marginTop:r.spacing(2)},t["& .".concat(Xd.icon)]={margin:r.spacing(.3)},t}),xO=function(){return xO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&f?_3e:r;return a?d.createElement(w3e,CO({className:de("edit-page",o)},s),c!==!1&&d.createElement(kc,{title:c,defaultTitle:m,preferenceKey:"".concat(v,".edit.title")}),w,d.createElement("div",{className:de(Zd.main,(t={},t[Zd.noActions]=!w,t))},d.createElement(l,{className:Zd.card},b?a:d.createElement(vo,null," ")),n)):null},Ty="RaEdit",Zd={main:"".concat(Ty,"-main"),noActions:"".concat(Ty,"-noActions"),card:"".concat(Ty,"-card")},w3e=te("div",{name:Ty,overridesResolver:function(e,t){return t.root}})((Jp={},Jp["& .".concat(Zd.main)]={display:"flex",alignItems:"flex-start"},Jp["& .".concat(Zd.noActions)]={marginTop:"1em"},Jp["& .".concat(Zd.card)]={flex:"1 1 auto"},Jp)),OO=function(){return OO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t.toString():""},$O=function(){return $O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")throw new Error("the value prop is required at runtime");var m=function(){return d.createElement(L3e,wb({label:c,count:a,value:h,icon:i,className:r,syncWithLocation:f,onChange:s},N3e(v)))},b=function(){return d.createElement(ebe,{name:h.toString()},d.createElement(up,wb({alignItems:"flex-start",style:o?D3e:void 0,className:n,id:"tabpanel-".concat(h),"aria-labelledby":"tabheader-".concat(h),"aria-hidden":o||void 0},v),t))};return l==="header"?m():b()};vi.displayName="FormTab";var D3e={display:"none"},N3e=function(e){e.classes,e.ref,e.margin;var t=X8(e,["classes","ref","margin"]);return t},Sb=function(){return Sb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&O?X3e:r;return!a||!w&&s?null:d.createElement(J3e,jO({className:de("show-page",o)},h),f!==!1&&d.createElement(kc,{title:f,defaultTitle:b,preferenceKey:"".concat(m,".show.title")}),_!==!1&&_,d.createElement("div",{className:de(tf.main,(t={},t[tf.noActions]=!_,t))},d.createElement(l,{className:tf.card},a),n))},My="RaShow",tf={main:"".concat(My,"-main"),noActions:"".concat(My,"-noActions"),card:"".concat(My,"-card")},J3e=te("div",{name:My,overridesResolver:function(e,t){return t.root}})((Zp={},Zp["& .".concat(tf.main)]={display:"flex"},Zp["& .".concat(tf.noActions)]={marginTop:"1em"},Zp["& .".concat(tf.card)]={flex:"1 1 auto"},Zp)),IO=function(){return IO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var m=Zl(e);if(m==null||m==="")return r?d.createElement($t,Pb({component:"span",variant:"body2",className:t},Ai(h)),r&&v(r,{_:r})):null;var b=f(m),w="";if(b)if(i&&c)w=mS?b.toLocaleString(n,a):b.toLocaleString();else if(c){var O=a??(typeof m=="string"&&m.length<=10?{timeZone:"UTC"}:void 0);w=mS?b.toLocaleDateString(n,O):b.toLocaleDateString()}else i&&(w=mS?b.toLocaleTimeString(n,a):b.toLocaleTimeString());return d.createElement($t,Pb({component:"span",variant:"body2",className:t},Ai(h)),w)};rV.displayName="DateFieldImpl";var Pn=Tc(rV),u4e=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},mS=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),AO=function(){return AO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),El=function(e){var t=e.children,r=e.debounce,n=e.filter,a=n===void 0?S4e:n,o=e.page,i=o===void 0?1:o,l=e.pagination,c=l===void 0?null:l,s=e.perPage,f=s===void 0?25:s,h=e.reference,v=e.resource,m=e.sort,b=m===void 0?E4e:m,w=e.source,O=w===void 0?"id":w,_=e.storeKey,y=e.target,x=e.queryOptions,S=Kt(e),P=o0e({debounce:r,filter:a,page:i,perPage:f,record:S,reference:h,resource:v,sort:b,source:O,storeKey:_,target:y,queryOptions:x});return ke.createElement(Jl,{value:h},ke.createElement(BR,{value:P},t,c))},S4e={},E4e={field:"id",order:"DESC"},kb=function(){return kb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")},zh=function(){return zh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")throw new Error(t)}function sN(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function mV(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var lN;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lN||(lN={}));function o5e(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function i5e(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?mV(e):e;return{pathname:r?r.startsWith("/")?r:s5e(r,t):t,search:u5e(n),hash:c5e(a)}}function s5e(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function yS(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function l5e(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function gV(e,t){let r=l5e(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function yV(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=mV(e):(a=HO({},e),Ii(!a.pathname||!a.pathname.includes("?"),yS("?","pathname","search",a)),Ii(!a.pathname||!a.pathname.includes("#"),yS("#","pathname","hash",a)),Ii(!a.search||!a.search.includes("#"),yS("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,l;if(i==null)l=r;else{let h=t.length-1;if(!n&&i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),h-=1;a.pathname=v.join("/")}l=h>=0?t[h]:"/"}let c=i5e(a,l),s=i&&i!=="/"&&i.endsWith("/"),f=(o||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(s||f)&&(c.pathname+="/"),c}const bV=e=>e.join("/").replace(/\/\/+/g,"/"),u5e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,c5e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,_V=["post","put","patch","delete"];new Set(_V);const d5e=["get",..._V];new Set(d5e);/** + * React Router v6.30.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function qO(){return qO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),d.useCallback(function(s,f){if(f===void 0&&(f={}),!l.current)return;if(typeof s=="number"){n.go(s);return}let h=yV(s,JSON.parse(i),o,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:bV([t,h.pathname])),(f.replace?n.replace:n.push)(h,f.state,f)},[t,n,i,o,e])}function EV(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(gm),{matches:a}=d.useContext(k1),{pathname:o}=nk(),i=JSON.stringify(gV(a,n.v7_relativeSplatPath));return d.useMemo(()=>yV(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}var CV=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(CV||{}),OV=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(OV||{});function v5e(e){let t=d.useContext(xV);return t||Ii(!1),t}function m5e(e){let t=d.useContext(k1);return t||Ii(!1),t}function g5e(e){let t=m5e(),r=t.matches[t.matches.length-1];return r.route.id||Ii(!1),r.route.id}function y5e(){let{router:e}=v5e(CV.UseNavigateStable),t=g5e(OV.UseNavigateStable),r=d.useRef(!1);return SV(()=>{r.current=!0}),d.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,qO({fromRouteId:t},o)))},[e,t])}function b5e(e){Ii(!1)}new Promise(()=>{});/** + * React Router DOM v6.30.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function GO(){return GO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function x5e(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function w5e(e,t){return e.button===0&&(!t||t==="_self")&&!x5e(e)}const S5e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],E5e="6";try{window.__reactRouterVersion=E5e}catch{}const C5e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",O5e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,PV=d.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:c,to:s,preventScrollReset:f,viewTransition:h}=t,v=_5e(t,S5e),{basename:m}=d.useContext(gm),b,w=!1;if(typeof s=="string"&&O5e.test(s)&&(b=s,C5e))try{let x=new URL(window.location.href),S=s.startsWith("//")?new URL(x.protocol+s):new URL(s),P=o5e(S.pathname,m);S.origin===x.origin&&P!=null?s=P+S.search+S.hash:w=!0}catch{}let O=f5e(s,{relative:a}),_=P5e(s,{replace:i,state:l,target:c,preventScrollReset:f,relative:a,viewTransition:h});function y(x){n&&n(x),x.defaultPrevented||_(x)}return d.createElement("a",GO({},v,{href:b||O,onClick:w||o?n:y,ref:r,target:c}))});var uN;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uN||(uN={}));var cN;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cN||(cN={}));function P5e(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=t===void 0?{}:t,c=p5e(),s=nk(),f=EV(e,{relative:i});return d.useCallback(h=>{if(w5e(h,r)){h.preventDefault();let v=n!==void 0?n:sN(s)===sN(f);c(e,{replace:v,state:a,preventScrollReset:o,relative:i,viewTransition:l})}},[s,c,f,n,a,r,e,o,i,l])}var RV={exports:{}};/* @license +Papa Parse +v5.4.1 +https://github.com/mholt/PapaParse +License: MIT +*/(function(e,t){(function(r,n){e.exports=n()})(Zo,function r(){var n=typeof self<"u"?self:typeof window<"u"?window:n!==void 0?n:{},a=!n.document&&!!n.postMessage,o=n.IS_PAPA_WORKER||!1,i={},l=0,c={parse:function(R,k){var I=(k=k||{}).dynamicTyping||!1;if($(I)&&(k.dynamicTypingFunction=I,I={}),k.dynamicTyping=I,k.transform=!!$(k.transform)&&k.transform,k.worker&&c.WORKERS_SUPPORTED){var M=function(){if(!c.WORKERS_SUPPORTED)return!1;var L=(V=n.URL||n.webkitURL||null,H=r.toString(),c.BLOB_URL||(c.BLOB_URL=V.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",H,")();"],{type:"text/javascript"})))),B=new n.Worker(L),V,H;return B.onmessage=y,B.id=l++,i[B.id]=B}();return M.userStep=k.step,M.userChunk=k.chunk,M.userComplete=k.complete,M.userError=k.error,k.step=$(k.step),k.chunk=$(k.chunk),k.complete=$(k.complete),k.error=$(k.error),delete k.worker,void M.postMessage({input:R,config:k,workerId:M.id})}var F=null;return c.NODE_STREAM_INPUT,typeof R=="string"?(R=function(L){return L.charCodeAt(0)===65279?L.slice(1):L}(R),F=k.download?new h(k):new m(k)):R.readable===!0&&$(R.read)&&$(R.on)?F=new b(k):(n.File&&R instanceof File||R instanceof Object)&&(F=new v(k)),F.stream(R)},unparse:function(R,k){var I=!1,M=!0,F=",",L=`\r +`,B='"',V=B+B,H=!1,W=null,z=!1;(function(){if(typeof k=="object"){if(typeof k.delimiter!="string"||c.BAD_DELIMITERS.filter(function(J){return k.delimiter.indexOf(J)!==-1}).length||(F=k.delimiter),(typeof k.quotes=="boolean"||typeof k.quotes=="function"||Array.isArray(k.quotes))&&(I=k.quotes),typeof k.skipEmptyLines!="boolean"&&typeof k.skipEmptyLines!="string"||(H=k.skipEmptyLines),typeof k.newline=="string"&&(L=k.newline),typeof k.quoteChar=="string"&&(B=k.quoteChar),typeof k.header=="boolean"&&(M=k.header),Array.isArray(k.columns)){if(k.columns.length===0)throw new Error("Option columns is empty");W=k.columns}k.escapeChar!==void 0&&(V=k.escapeChar+B),(typeof k.escapeFormulae=="boolean"||k.escapeFormulae instanceof RegExp)&&(z=k.escapeFormulae instanceof RegExp?k.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var q=new RegExp(O(B),"g");if(typeof R=="string"&&(R=JSON.parse(R)),Array.isArray(R)){if(!R.length||Array.isArray(R[0]))return ee(null,R,H);if(typeof R[0]=="object")return ee(W||Object.keys(R[0]),R,H)}else if(typeof R=="object")return typeof R.data=="string"&&(R.data=JSON.parse(R.data)),Array.isArray(R.data)&&(R.fields||(R.fields=R.meta&&R.meta.fields||W),R.fields||(R.fields=Array.isArray(R.data[0])?R.fields:typeof R.data[0]=="object"?Object.keys(R.data[0]):[]),Array.isArray(R.data[0])||typeof R.data[0]=="object"||(R.data=[R.data])),ee(R.fields||[],R.data||[],H);throw new Error("Unable to serialize unrecognized input");function ee(J,we,le){var ge="";typeof J=="string"&&(J=JSON.parse(J)),typeof we=="string"&&(we=JSON.parse(we));var pe=Array.isArray(J)&&0=this._config.preview;if(o)n.postMessage({results:L,workerId:c.WORKER_ID,finished:V});else if($(this._config.chunk)&&!I){if(this._config.chunk(L,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);L=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(L.data),this._completeResults.errors=this._completeResults.errors.concat(L.errors),this._completeResults.meta=L.meta),this._completed||!V||!$(this._config.complete)||L&&L.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),V||L&&L.meta.paused||this._nextChunk(),L}this._halted=!0},this._sendError=function(k){$(this._config.error)?this._config.error(k):o&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:k,finished:!1})}}function h(R){var k;(R=R||{}).chunkSize||(R.chunkSize=c.RemoteChunkSize),f.call(this,R),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(I){this._input=I,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(k=new XMLHttpRequest,this._config.withCredentials&&(k.withCredentials=this._config.withCredentials),a||(k.onload=C(this._chunkLoaded,this),k.onerror=C(this._chunkError,this)),k.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var I=this._config.downloadRequestHeaders;for(var M in I)k.setRequestHeader(M,I[M])}if(this._config.chunkSize){var F=this._start+this._config.chunkSize-1;k.setRequestHeader("Range","bytes="+this._start+"-"+F)}try{k.send(this._config.downloadRequestBody)}catch(L){this._chunkError(L.message)}a&&k.status===0&&this._chunkError()}},this._chunkLoaded=function(){k.readyState===4&&(k.status<200||400<=k.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:k.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(I){var M=I.getResponseHeader("Content-Range");return M===null?-1:parseInt(M.substring(M.lastIndexOf("/")+1))}(k),this.parseChunk(k.responseText)))},this._chunkError=function(I){var M=k.statusText||I;this._sendError(new Error(M))}}function v(R){var k,I;(R=R||{}).chunkSize||(R.chunkSize=c.LocalChunkSize),f.call(this,R);var M=typeof FileReader<"u";this.stream=function(F){this._input=F,I=F.slice||F.webkitSlice||F.mozSlice,M?((k=new FileReader).onload=C(this._chunkLoaded,this),k.onerror=C(this._chunkError,this)):k=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(F.target.result)},this._chunkError=function(){this._sendError(k.error)}}function m(R){var k;f.call(this,R=R||{}),this.stream=function(I){return k=I,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var I,M=this._config.chunkSize;return M?(I=k.substring(0,M),k=k.substring(M)):(I=k,k=""),this._finished=!k,this.parseChunk(I)}}}function b(R){f.call(this,R=R||{});var k=[],I=!0,M=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(F){this._input=F,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){M&&k.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),k.length?this.parseChunk(k.shift()):I=!0},this._streamData=C(function(F){try{k.push(typeof F=="string"?F:F.toString(this._config.encoding)),I&&(I=!1,this._checkIsFinished(),this.parseChunk(k.shift()))}catch(L){this._streamError(L)}},this),this._streamError=C(function(F){this._streamCleanUp(),this._sendError(F)},this),this._streamEnd=C(function(){this._streamCleanUp(),M=!0,this._streamData("")},this),this._streamCleanUp=C(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function w(R){var k,I,M,F=Math.pow(2,53),L=-F,B=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,V=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,H=this,W=0,z=0,q=!1,ee=!1,oe=[],J={data:[],errors:[],meta:{}};if($(R.step)){var we=R.step;R.step=function(ne){if(J=ne,pe())ge();else{if(ge(),J.data.length===0)return;W+=ne.data.length,R.preview&&W>R.preview?I.abort():(J.data=J.data[0],we(J,H))}}}function le(ne){return R.skipEmptyLines==="greedy"?ne.join("").trim()==="":ne.length===1&&ne[0].length===0}function ge(){return J&&M&&(xe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),M=!1),R.skipEmptyLines&&(J.data=J.data.filter(function(ne){return!le(ne)})),pe()&&function(){if(!J)return;function ne(ve,$e){$(R.transformHeader)&&(ve=R.transformHeader(ve,$e)),oe.push(ve)}if(Array.isArray(J.data[0])){for(var Te=0;pe()&&Te=oe.length?"__parsed_extra":oe[ye]),R.transform&&(st=R.transform(st,Le)),st=me(Le,st),Le==="__parsed_extra"?(je[Le]=je[Le]||[],je[Le].push(st)):je[Le]=st}return R.header&&(ye>oe.length?xe("FieldMismatch","TooManyFields","Too many fields: expected "+oe.length+" fields but parsed "+ye,z+$e):ye=U.length/2?`\r +`:"\r"}(ne,$e)),M=!1,R.delimiter)$(R.delimiter)&&(R.delimiter=R.delimiter(ne),J.meta.delimiter=R.delimiter);else{var ye=function(Le,st,Xe,U,K){var Z,ie,ue,ce;K=K||[","," ","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var Ee=0;Ee=B)return Ct(!0)}else for(Ae=W,W++;;){if((Ae=q.indexOf(k,Ae+1))===-1)return oe||xe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:me.length,index:W}),_t();if(Ae===J-1)return _t(q.substring(W,Ae).replace(Ee,k));if(k!==H||q[Ae+1]!==H){if(k===H||Ae===0||q[Ae-1]!==H){ue!==-1&&ue=B)return Ct(!0);break}xe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:me.length,index:W}),Ae++}}else Ae++}return _t();function Ze(pt){me.push(pt),Te=W}function Ve(pt){var Me=0;if(pt!==-1){var Ge=q.substring(Ae+1,pt);Ge&&Ge.trim()===""&&(Me=Ge.length)}return Me}function _t(pt){return oe||(pt===void 0&&(pt=q.substring(W)),ne.push(pt),W=J,Ze(ne),pe&&qe()),Ct()}function Wt(pt){W=pt,Ze(ne),ne=[],ce=q.indexOf(M,W)}function Ct(pt){return{data:me,errors:xe,meta:{delimiter:I,linebreak:M,aborted:z,truncated:!!pt,cursor:Te+(ee||0)}}}function qe(){L(Ct()),me=[],xe=[]}},this.abort=function(){z=!0},this.getCharIndex=function(){return W}}function y(R){var k=R.data,I=i[k.workerId],M=!1;if(k.error)I.userError(k.error,k.file);else if(k.results&&k.results.data){var F={abort:function(){M=!0,x(k.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:S,resume:S};if($(I.userStep)){for(var L=0;L{var r;return(r=/^@(?[a-zA-Z0-9._=\-/]+):(?[a-zA-Z0-9\-.]+\.[a-zA-Z]+)$/.exec(e))==null?void 0:r.groups},T5e=e=>/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e),A5e=async e=>{const t=`https://${e}/.well-known/matrix/client`;try{return(await mc(t,{method:"GET"})).json["m.homeserver"].base_url}catch{return`https://${e}`}},M5e=async e=>{const t=`${e}/_synapse/admin/v1/server_version`;return(await mc(t,{method:"GET"})).json.server_version},F5e=async e=>{const t=`${e}/_matrix/client/versions`;return(await mc(t,{method:"GET"})).json},L5e=async e=>{const t=`${e}/_matrix/client/r0/login`;return(await mc(t,{method:"GET"})).json.flows},D5e=e=>`${Ut.getItem("base_url")}/_matrix/media/v1/download/${e}?allow_redirect=true`;function pN(){const e=Ut.getItem("home_server"),t="0123456789abcdefghijklmnopqrstuvwxyz";return`@${Array.from(crypto.getRandomValues(new Uint32Array(8))).map(n=>t[n%t.length]).join("")}:${e}`}function N5e(e=20){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(r=>t[r%t.length]).join("")}const bS=!0,B5e=["id","displayname"].sort();function Gg({value:e,text:t}){const r=kV();return E.jsx("option",{value:e,children:r(t)})}const z5e=()=>{const[e,t]=d.useState([]),[r,n]=d.useState(null),[a,o]=d.useState(null),[i,l]=d.useState(!0),[c,s]=d.useState(null),[f,h]=d.useState(null),[v,m]=d.useState(""),[b,w]=d.useState("stop"),[O,_]=d.useState(!0),[y,x]=d.useState("ignore"),S=kV(),P=gr(),C=Xa(),$=async le=>{if(c!==null)return;t([]),n(null),o(null),h(null);const ge=le.target.files?le.target.files[0]:null;if(ge){if(ge.size>1e8){const pe=S("import_users.errors.unreasonably_big",{size:(ge.size/1048576).toFixed(2)});P(pe),n(pe);return}try{dN.parse(ge,{header:!0,skipEmptyLines:!0,complete:pe=>{pe.errors&&n(pe.errors.map(me=>me.toString())),R(pe,{setValues:t,setStats:o,setError:n})}})}catch{return n("Unknown error"),null}}},R=({data:le,meta:ge,errors:pe},{setValues:me,setStats:xe,setError:ne})=>{const Te=B5e.filter(ye=>{var je;return!((je=ge.fields)!=null&&je.includes(ye))});if(Te.length>0)return ne(S("import_users.error.required_field",{field:Te[0]})),!1;const ve={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:le.length},$e=pe.map(ye=>ye.message);return le.forEach((ye,je)=>{var Le,st,Xe;ye.user_type===void 0||ye.user_type===""?ve.user_types.default++:ve.user_types[ye.user_type]+=1,(Le=ge.fields)!=null&&Le.includes("name")&&delete ye.name,(st=ge.fields)!=null&&st.includes("user_type")&&delete ye.user_type,(Xe=ge.fields)!=null&&Xe.includes("is_admin")&&delete ye.is_admin,["is_guest","admin","deactivated"].forEach(U=>{ye[U]==="true"?(ve[U]++,ye[U]=!0):(ye[U]!=="false"&&ye[U]!==""&&$e.push(S("import_users.error.invalid_value",{field:U,row:je})),ye[U]=!1)}),ye.password!==void 0&&ye.password!==""&&ve.password++,ye.avatar_url!==void 0&&ye.avatar_url!==""&&ve.avatar_url++,ye.id!==void 0&&ye.id!==""&&ve.id++}),$e.length>0&&ne($e),xe(ve),me(le),!0},k=async()=>{if(c!==null){P("import_users.errors.already_in_progress");return}const le=await I(C,e,b,O,y,i,s,n);h(le),m(dN.unparse(le.skippedRecords)),console.log("Skipped records:"),console.log(v)},I=async(le,ge,pe,me,xe,ne,Te,ve)=>{const $e=[],ye=[],je=[],Le={total:0,id:0,is_guest:0,admin:0,password:0};let st=0;const Xe=ge.length;try{Te({done:st,limit:Xe});for(const U of ge){const K={...U};(xe==="ignore"||K.id===void 0)&&(K.id=pN()),(me===!1||U.password===void 0)&&(K.password=N5e()),bS&&console.log("will check for existence of record "+JSON.stringify(K));let Z=0;const ie=ue=>le.getOne("users",{id:ue.id}).then(async()=>{if(bS&&console.log("already existed"),xe==="update"||pe==="skip")$e.push(ue);else{if(pe==="stop")throw new Error(S("import_users.error.id_exits",{id:ue.id}));{const ce=Object.assign({},ue,{id:pN()});Z++,Z>512?(console.warn("retry loop got stuck? pathological situation?"),$e.push(ue)):await ie(ce)}}},async()=>{bS&&console.log("OK to create record "+ue.id+" ("+ue.displayname+")."),ne||await le.create("users",{data:ue}),je.push(ue)});await ie(K),st++,Te({done:st,limit:ge.length})}Te(null)}catch(U){ve(S("import_users.error.at_entry",{entry:st+1,message:U instanceof Error?U.message:String(U)})),Te(null)}return{skippedRecords:$e,erroredRecords:ye,succeededRecords:je,totalRecordCount:Xe,changeStats:Le,wasDryRun:ne}},M=()=>{const le=document.createElement("a");console.log(v);const ge=new Blob([v],{type:"text/comma-separated-values"});le.href=URL.createObjectURL(ge),le.download="skippedRecords.csv",document.body.appendChild(le),le.click()},F=async le=>{if(c!==null)return;const ge=le.target.value;w(ge)},L=le=>{c===null&&_(le.target.checked)},B=async le=>{if(c!==null)return;const ge=le.target.value;x(ge)},V=le=>{c===null&&l(le.target.checked)},H=a&&!f&&[E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.importstats.header")}),E.jsxs(vo,{children:[E.jsx("div",{children:S("import_users.cards.importstats.users_total",a.total)}),E.jsx("div",{children:S("import_users.cards.importstats.guest_count",a.is_guest)}),E.jsx("div",{children:S("import_users.cards.importstats.admin_count",a.admin)})]})]}),E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.ids.header")}),E.jsxs(vo,{children:[E.jsx("div",{children:a.id===a.total?S("import_users.cards.ids.all_ids_present"):S("import_users.cards.ids.count_ids_present",a.id)}),a.id>0?E.jsx("div",{children:E.jsxs(SC,{onChange:B,value:y,disabled:c!==null,children:[E.jsx(Gg,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),E.jsx(Gg,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.passwords.header")}),E.jsxs(vo,{children:[E.jsx("div",{children:a.password===a.total?S("import_users.cards.passwords.all_passwords_present"):S("import_users.cards.passwords.count_passwords_present",a.password)}),a.password>0?E.jsx("div",{children:E.jsx(_C,{control:E.jsx(Lf,{checked:O,disabled:c!==null,onChange:L}),label:S("import_users.cards.passwords.use_passwords")})}):""]})]})],W=a&&!f&&E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.conflicts.header")}),E.jsx(vo,{children:E.jsx("div",{children:E.jsxs(SC,{onChange:F,value:b,disabled:c!==null,children:[E.jsx(Gg,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),E.jsx(Gg,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),z=r&&E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.error.error")}),E.jsx(vo,{children:(Array.isArray(r)?r:[r]).map(le=>E.jsx("div",{children:le}))})]}),q=!f&&E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.upload.header")}),E.jsxs(vo,{children:[S("import_users.cards.upload.explanation"),E.jsx("a",{href:"./data/example.csv",children:"example.csv"}),E.jsx("br",{}),E.jsx("br",{}),E.jsx("input",{type:"file",onChange:$,disabled:c!==null})]})]}),ee=f&&E.jsxs(vo,{children:[E.jsx(bu,{title:S("import_users.cards.results.header")}),E.jsxs("div",{children:[S("import_users.cards.results.total",f.totalRecordCount),E.jsx("br",{}),S("import_users.cards.results.successful",f.succeededRecords.length),E.jsx("br",{}),f.skippedRecords.length?[S("import_users.cards.results.skipped",f.skippedRecords.length),E.jsx("div",{children:E.jsx("button",{onClick:M,children:S("import_users.cards.results.download_skipped")})}),E.jsx("br",{})]:"",f.erroredRecords.length?[S("import_users.cards.results.skipped",f.erroredRecords.length),E.jsx("br",{})]:"",E.jsx("br",{}),f.wasDryRun&&[S("import_users.cards.results.simulated_only"),E.jsx("br",{})]]})]}),oe=!e||e.length===0||f?void 0:E.jsxs(W9,{children:[E.jsx(_C,{control:E.jsx(Lf,{checked:i,onChange:V,disabled:c!==null}),label:S("import_users.cards.startImport.simulate_only")}),E.jsx(nn,{size:"large",onClick:k,disabled:c!==null,children:S("import_users.cards.startImport.run_import")}),c!==null?E.jsxs("div",{children:[c.done," of ",c.limit," done"]}):null]}),J=[];q&&J.push(q),z&&J.push(z),W&&J.push(W),H&&J.push(...H),oe&&J.push(oe),ee&&J.push(ee);const we=E.jsx($c,{children:J});return[E.jsx(kc,{defaultTitle:S("import_users.title")}),we]},U5e=z5e,Ly={ra:{action:{add_filter:"Filter hinzufügen",add:"Neu",back:"Zurück",bulk_actions:"Ein Element ausgewählt |||| %{smart_count} Elemente ausgewählt",cancel:"Abbrechen",clear_array_input:"Liste löschen",clear_input_value:"Eingabe löschen",clone:"Klonen",confirm:"Bestätigen",create:"Erstellen",create_item:"%{item} erstellen",delete:"Löschen",edit:"Bearbeiten",export:"Exportieren",list:"Liste",refresh:"Neu laden",remove_filter:"Filter entfernen",remove_all_filters:"Alle Filter entfernen",remove:"Entfernen",save:"Speichern",search:"Suchen",select_all:"Alles auswählen",select_row:"Reihe auswählen",show:"Anzeigen",sort:"Sortieren",undo:"Rückgängig machen",unselect:"Abwählen",expand:"Erweitern",close:"Schließen",open_menu:"Menü öffnen",close_menu:"Menü schließen",update:"Aktualisieren",move_up:"Nach oben",move_down:"Nach unten",open:"Öffnen",toggle_theme:"Theme wechseln",select_columns:"Spalten"},boolean:{true:"Ja",false:"Nein",null:" "},page:{create:"%{name} erstellen",dashboard:"Dashboard",edit:"%{name} %{recordRepresentation}",error:"Etwas ist schiefgelaufen",list:"%{name}",loading:"Laden",not_found:"Nicht gefunden",show:"%{name} %{recordRepresentation}",empty:"Noch kein %{name}.",invite:"Neu erstellen?"},input:{file:{upload_several:"Dateien hier ablegen, oder zum Auswählen klicken.",upload_single:"Dateien hier ablegen, oder zum Auswählen klicken."},image:{upload_several:"Bilder hier ablegen, oder zum Auswählen klicken.",upload_single:"Bild hier ablegen, oder zum Auswählen klicken."},references:{all_missing:"Die Daten der Referenz können nicht gefunden werden.",many_missing:"Mindestens eine Referenz scheint nicht mehr verfügbar zu sein.",single_missing:"Die Referenz scheint nicht mehr verfügbar zu sein."},password:{toggle_visible:"Passwort verbergen",toggle_hidden:"Passwort einblenden"}},message:{about:"Über",are_you_sure:"Sind Sie sicher?",auth_error:"Bei der Validierung des Authentifizierungstokens ist ein Fehler aufgetreten.",bulk_delete_content:"Sicher, dass Sie %{name} löschen wollen? |||| Sicher, dass Sie diese %{smart_count} Elemente löschen wollen?",bulk_delete_title:"%{name} löschen |||| %{smart_count} %{name} löschen",bulk_update_content:"Sicher, dass Sie %{name} aktualisieren wollen? |||| Sicher, dass Sie %{smart_count} Elemente aktualisieren wollen?",bulk_update_title:"%{name} aktualisieren |||| %{smart_count} %{name} aktualisieren",clear_array_input:"Sicher, dass Sie die ganze Liste löschen wollen?",delete_content:"Sicher, dass Sie dieses Element löschen wollen?",delete_title:"%{name} #%{id} löschen",details:"Details",error:"Ein Fehler trat auf, Ihre Anfrage konnte nicht verarbeitet werden.",invalid_form:"Das Formular ist ungültig. Bitte überprüfen Sie Ihre Eingaben.",loading:"Die Seite wird geladen, noch einen Moment.",no:"Nein",not_found:"Sie eine falsche URL aufgerufen oder eingegeben.",yes:"Ja",unsaved_changes:"Einige Änderungen wurden nicht gespeichert. Sicher, dass Sie diese nicht übernehmen wollen?"},navigation:{no_results:"Keine Ergebnisse gefunden.",no_more_results:"Es gibt keine Seite %{page}. Versuche eine vorherige.",page_out_of_boundaries:"Es gibt keine Seite %{page}.",page_out_from_end:"Es gibt keine Seite mehr nach dieser.",page_out_from_begin:"Es gibt keine Seite vor Seite 1.",page_range_info:"%{offsetBegin}-%{offsetEnd} von %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} von mehr als %{offsetEnd}",current_page:"Seite %{page}",page:"Gehe zu Seite %{page}",first:"Gehe zur ersten Seite",last:"Gehe zur letzten Seite",next:"Gehe zur nächsten Seite",previous:"Gehe zur vorherigen Seite",page_rows_per_page:"Reihen pro Seite:",skip_nav:"Zum Inhalt springen"},sort:{sort_by:"Nach %{field} %{order} sortieren",ASC:"Aufsteigend",DESC:"Absteigend"},auth:{auth_check_error:"Bitte anmelden um fortzufahren",user_menu:"Profil",username:"Nutzername",password:"Passwort",sign_in:"Anmelden",sign_in_error:"Anmeldung fehlgeschlagen, bitte erneut versuchen.",logout:"Abmelden"},notification:{updated:"Element aktualisiert |||| %{smart_count} Elemente aktualisiert",created:"Element erstellt",deleted:"Element gelöscht |||| %{smart_count} Elemente gelöscht",bad_item:"Fehlerhaftes Element",item_doesnt_exist:"Element existiert nicht",http_error:"Kommunikation mit Server fehlgeschlagen",data_provider_error:"DataProvider-Fehler. Mehr Details in der Konsole.",i18n_error:"Die Übersetzungen für die ausgewählte Sprache können nicht geladen werden",canceled:"Aktion abgebrochen",logged_out:"Ihre Sitzung ist abgelaufen, bitte erneut verbinden.",not_authorized:"Sie sind nicht berechtigt, auf diese Ressource zuzugreifen."},validation:{required:"Erforderlich",minLength:"Muss mindestens %{min} Zeichen betragen",maxLength:"Darf %{max} Zeichen oder weniger betragen",minValue:"Muss mindestens %{min} betragen",maxValue:"Darf %{max} oder weniger betragen",number:"Muss eine Nummer sein",email:"Muss eine gültige E-Mail sein",oneOf:"Muss eine der folgenden Optionen sein: %{options}",regex:"Muss einem gewissen Format entsprechen (regexp): %{pattern}"},saved_queries:{label:"Gespeicherte Anfragen",query_name:"Name der Anfrage",new_label:"Speichere aktuelle Anfrage...",new_dialog_title:"Speichere aktuelle Anfrage als",remove_label:"Gespeicherte Anfrage löschen",remove_label_with_name:'Anfrage "%{name}" löschen',remove_dialog_title:"Gespeicherte Anfrage löschen?",remove_message:"Sicher, dass Sie diese Anfrage aus der Liste der gespeicherten löschen wollen?",help:"Liste filtern und diese Anfrage für später speichern"},configurable:{customize:"Anpassen",configureMode:"Diese Seite anpassen",inspector:{title:"Inspektor",content:"Bewegen Sie den Mauszeigen über die UI-Elemente, um sie zu konfigurieren",reset:"Einstellungen zurücksetzen",hideAll:"Alles verbergen",showAll:"Alles anzeigen"},Datagrid:{title:"Datagrid",unlabeled:"Unbekannte Spalte #%{column}"},SimpleForm:{title:"Formular",unlabeled:"Unbenannter Input #%{input}"},SimpleList:{title:"Liste",primaryText:"Primärtext",secondaryText:"Sekundärtext",tertiaryText:"Tertiärtext"}}}},V5e={ra:{message:{are_you_sure:"Bist du sicher?",bulk_delete_content:"Sicher, dass du %{name} löschen willst? |||| Sicher, dass du diese %{smart_count} Elemente löschen willst?",bulk_update_content:"Sicher, dass du %{name} aktualisieren willst? |||| Sicher, dass du %{smart_count} Elemente aktualisieren willst?",clear_array_input:"Sicher, dass du die ganze Liste löschen willst?",delete_content:"Sicher, dass du dieses Element löschen willst?",error:"Ein Fehler trat auf, Deine Anfrage konnte nicht verarbeitet werden.",invalid_form:"Das Formular ist ungültig. Bitte überprüfe Deine Eingaben.",not_found:"Du hast eine falsche URL aufgerufen oder eingegeben.",unsaved_changes:"Einige Änderungen wurden nicht gespeichert. Sicher, dass du diese nicht übernehmen willst?"},notification:{logged_out:"Deine Sitzung ist abgelaufen, bitte erneut verbinden.",not_authorized:"Du bist nicht berechtigt, auf diese Ressource zuzugreifen."},saved_queries:{remove_message:"Sicher, dass du diese Anfrage aus der Liste der gespeicherten löschen willst?"},configurable:{inspector:{content:"Bewege den Mauszeigen über die UI-Elemente, um sie zu konfigurieren"}}}};PR(Ly,V5e);const W5e={...Ly,ra:{...Ly.ra,navigation:{...Ly.ra.navigation,no_filtered_results:"Keine Ergebnisse",clear_filters:"Alle Filter entfernen"}},synapseadmin:{auth:{base_url:"Heimserver URL",welcome:"Willkommen bei Synapse-admin",server_version:"Synapse Version",supports_specs:"unterstützt Matrix-Specs",username_error:"Bitte vollständigen Nutzernamen angeben: '@user:domain'",protocol_error:"Die URL muss mit 'http://' oder 'https://' beginnen",url_error:"Keine gültige Matrix Server URL",sso_sign_in:"Anmeldung mit SSO"},users:{invalid_user_id:"Lokaler Anteil der Matrix Benutzer-ID ohne Homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Raumdetails",tabs:{basic:"Allgemein",members:"Mitglieder",detail:"Details",permission:"Berechtigungen"}},reports:{tabs:{basic:"Allgemein",detail:"Details"}}},import_users:{error:{at_entry:"Bei Eintrag %{entry}: %{message}",error:"Fehler",required_field:"Pflichtfeld '%{field}' fehlt",invalid_value:"Ungültiger Wert in Zeile %{row}. Feld '%{field}' darf nur die Werte 'true' oder 'false' enthalten",unreasonably_big:"Datei ist zu groß für den Import (%{size} Megabytes)",already_in_progress:"Es läuft bereits ein Import",id_exits:"ID %{id} existiert bereits"},title:"Benutzer aus CSV importieren",goToPdf:"Gehe zum PDF",cards:{importstats:{header:"Benutzer importieren",users_total:"%{smart_count} Benutzer in der CSV Datei |||| %{smart_count} Benutzer in der CSV Datei",guest_count:"%{smart_count} Gast |||| %{smart_count} Gäste",admin_count:"%{smart_count} Server Administrator |||| %{smart_count} Server Administratoren"},conflicts:{header:"Konfliktstrategie",mode:{stop:"Stoppe bei Fehlern",skip:"Zeige Fehler und überspringe fehlerhafte Einträge"}},ids:{header:"IDs",all_ids_present:"IDs in jedem Eintrag vorhanden",count_ids_present:"%{smart_count} Eintrag mit ID |||| %{smart_count} Einträge mit IDs",mode:{ignore:"Ignoriere IDs der CSV-Datei und erstelle neue",update:"Aktualisiere existierende Benutzer"}},passwords:{header:"Passwörter",all_passwords_present:"Passwörter in jedem Eintrag vorhanden",count_passwords_present:"%{smart_count} Eintrag mit Passwort |||| %{smart_count} Einträge mit Passwörtern",use_passwords:"Verwende Passwörter aus der CSV Datei"},upload:{header:"CSV Datei importieren",explanation:"Hier können Sie eine Datei mit kommagetrennten Daten hochladen, die verwendet werden um Benutzer anzulegen oder zu ändern. Die Datei muss mindestens die Felder 'id' und 'displayname' enthalten. Hier können Sie eine Beispieldatei herunterladen und anpassen: "},startImport:{simulate_only:"Nur simulieren",run_import:"Importieren"},results:{header:"Ergebnis",total:"%{smart_count} Eintrag insgesamt |||| %{smart_count} Einträge insgesamt",successful:"%{smart_count} Einträge erfolgreich importiert",skipped:"%{smart_count} Einträge übersprungen",download_skipped:"Übersprungene Einträge herunterladen",with_error:"%{smart_count} Eintrag mit Fehlern ||| %{smart_count} Einträge mit Fehlern",simulated_only:"Import-Vorgang war nur simuliert"}}},delete_media:{name:"Medien",fields:{before_ts:"Letzter Zugriff vor",size_gt:"Größer als (in Bytes)",keep_profiles:"Behalte Profilbilder"},action:{send:"Medien löschen",send_success:"Anfrage erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:"Diese API löscht die lokalen Medien von der Festplatte des eigenen Servers. Dies umfasst alle lokalen Miniaturbilder und Kopien von Medien. Diese API wirkt sich nicht auf Medien aus, die sich in externen Medien-Repositories befinden."}},resources:{users:{name:"Benutzer",email:"E-Mail",msisdn:"Telefon",threepid:"E-Mail / Telefon",fields:{avatar:"Avatar",id:"Benutzer-ID",name:"Name",is_guest:"Gast",admin:"Server Administrator",locked:"Gesperrt",deactivated:"Deaktiviert",erased:"Gelöscht",guests:"Zeige Gäste",show_deactivated:"Zeige deaktivierte Benutzer",user_id:"Suche Benutzer",displayname:"Anzeigename",password:"Passwort",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Adresse",creation_ts_ms:"Zeitpunkt der Erstellung",consent_version:"Zugestimmte Geschäftsbedingungen",auth_provider:"Provider",user_type:"Benutzertyp"},helper:{password:"Durch die Änderung des Passworts wird der Benutzer von allen Sitzungen abgemeldet.",deactivate:"Sie müssen ein Passwort angeben, um ein Konto wieder zu aktivieren.",erase:"DSGVO konformes Löschen der Benutzerdaten"},action:{erase:"Lösche Benutzerdaten"}},rooms:{name:"Raum |||| Räume",fields:{room_id:"Raum-ID",name:"Name",canonical_alias:"Alias",joined_members:"Mitglieder",joined_local_members:"Lokale Mitglieder",joined_local_devices:"Lokale Endgeräte",state_events:"Zustandsereignisse / Komplexität",version:"Version",is_encrypted:"Verschlüsselt",encryption:"Verschlüsselungs-Algorithmus",federatable:"Fö­de­rierbar",public:"Sichtbar im Raumverzeichnis",creator:"Ersteller",join_rules:"Beitrittsregeln",guest_access:"Gastzugriff",history_visibility:"Historie-Sichtbarkeit",topic:"Thema",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Öffentlich",knock:"Auf Anfrage",invite:"Nur auf Einladung",private:"Privat"},guest_access:{can_join:"Gäste können beitreten",forbidden:"Gäste können nicht beitreten"},history_visibility:{invited:"Ab Einladung",joined:"Ab Beitritt",shared:"Ab Setzen der Einstellung",world_readable:"Jeder"},unencrypted:"Nicht verschlüsselt"},action:{erase:{title:"Raum löschen",content:"Sind Sie sicher dass Sie den Raum löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden. Alle Nachrichten und Medien, die der Raum beinhaltet werden vom Server gelöscht!"}}},reports:{name:"Gemeldetes Ereignis |||| Gemeldete Ereignisse",fields:{id:"ID",received_ts:"Meldezeit",user_id:"Meldender",name:"Raumname",score:"Wert",reason:"Grund",event_id:"Event-ID",event_json:{origin:"Ursprungsserver",origin_server_ts:"Sendezeit",type:"Eventtyp",content:{msgtype:"Inhaltstyp",body:"Nachrichteninhalt",format:"Nachrichtenformat",formatted_body:"Formatierter Nachrichteninhalt",algorithm:"Verschlüsselungsalgorithmus",info:{mimetype:"Typ"},url:"URL"}}},action:{erase:{title:"Gemeldetes Event löschen",content:"Sind Sie sicher dass Sie das gemeldete Event löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden."}}},connections:{name:"Verbindungen",fields:{last_seen:"Datum",ip:"IP-Adresse",user_agent:"User Agent"}},devices:{name:"Gerät |||| Geräte",fields:{device_id:"Geräte-ID",display_name:"Gerätename",last_seen_ts:"Zeitstempel",last_seen_ip:"IP-Adresse"},action:{erase:{title:"Entferne %{id}",content:'Möchten Sie das Gerät "%{name}" wirklich entfernen?',success:"Gerät erfolgreich entfernt.",failure:"Beim Entfernen ist ein Fehler aufgetreten."}}},users_media:{name:"Medien",fields:{media_id:"Medien ID",media_length:"Größe",media_type:"Typ",upload_name:"Dateiname",quarantined_by:"Zur Quarantäne hinzugefügt",safe_from_quarantine:"Schutz vor Quarantäne",created_ts:"Erstellt",last_access_ts:"Letzter Zugriff"},action:{open:"Mediendatei in neuem Fenster öffnen"}},protect_media:{action:{create:"Ungeschützt, Schutz erstellen",delete:"Geschützt, Schutz aufheben",none:"In Quarantäne",send_success:"Erfolgreich den Schutz-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},quarantine_media:{action:{name:"Quarantäne",create:"Zur Quarantäne hinzufügen",delete:"In Quarantäne, Quarantäne aufheben",none:"Geschützt vor Quarantäne",send_success:"Erfolgreich den Quarantäne-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App-Anzeigename",app_id:"App ID",device_display_name:"Geräte-Anzeigename",kind:"Art",lang:"Sprache",profile_tag:"Profil-Tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Serverbenachrichtigungen",send:"Servernachricht versenden",fields:{body:"Nachricht"},action:{send:"Sende Nachricht",send_success:"Nachricht erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:'Sendet eine Serverbenachrichtigung an die ausgewählten Nutzer. Hierfür muss das Feature "Server Notices" auf dem Server aktiviert sein.'}},user_media_statistics:{name:"Dateien je Benutzer",fields:{media_count:"Anzahl der Dateien",media_length:"Größe der Dateien"}},forward_extremities:{name:"Vorderextremitäten",fields:{id:"Event-ID",received_ts:"Zeitstempel",depth:"Tiefe",state_group:"Zustandsgruppe"}},room_state:{name:"Zustandsereignisse",fields:{type:"Typ",content:"Inhalt",origin_server_ts:"Sendezeit",sender:"Absender"}},room_directory:{name:"Raumverzeichnis",fields:{world_readable:"Gastbenutzer dürfen ohne Beitritt lesen",guest_can_join:"Gastbenutzer dürfen beitreten"},action:{title:"Raum aus Verzeichnis löschen |||| %{smart_count} Räume aus Verzeichnis löschen",content:"Möchten Sie den Raum wirklich aus dem Raumverzeichnis löschen? |||| Möchten Sie die %{smart_count} Räume wirklich aus dem Raumverzeichnis löschen?",erase:"Lösche aus Verzeichnis",create:"Eintragen ins Verzeichnis",send_success:"Raum erfolgreich eingetragen.",send_failure:"Beim Entfernen ist ein Fehler aufgetreten."}},destinations:{name:"Föderation",fields:{destination:"Ziel",failure_ts:"Fehlerzeitpunkt",retry_last_ts:"Letzter Wiederholungsversuch",retry_interval:"Wiederholungsintervall",last_successful_stream_ordering:"letzte erfogreicher Stream",stream_ordering:"Stream"},action:{reconnect:"Neu verbinden"}},registration_tokens:{name:"Registrierungstoken",fields:{token:"Token",valid:"Gültige Token",uses_allowed:"Anzahl",pending:"Ausstehend",completed:"Abgeschlossen",expiry_time:"Ablaufzeit",length:"Länge"},helper:{length:"Länge des Tokens, wenn kein Token vorgegeben wird."}}}},H5e={...vV,synapseadmin:{auth:{base_url:"Homeserver URL",welcome:"Welcome to Synapse-admin",server_version:"Synapse version",supports_specs:"supports Matrix specs",username_error:"Please enter fully qualified user ID: '@user:domain'",protocol_error:"URL has to start with 'http://' or 'https://'",url_error:"Not a valid Matrix server URL",sso_sign_in:"Sign in with SSO"},users:{invalid_user_id:"Localpart of a Matrix user-id without homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Room details",tabs:{basic:"Basic",members:"Members",detail:"Details",permission:"Permissions"}},reports:{tabs:{basic:"Basic",detail:"Details"}}},import_users:{error:{at_entry:"At entry %{entry}: %{message}",error:"Error",required_field:"Required field '%{field}' is not present",invalid_value:"Invalid value on line %{row}. '%{field}' field may only be 'true' or 'false'",unreasonably_big:"Refused to load unreasonably big file of %{size} megabytes",already_in_progress:"An import run is already in progress",id_exits:"ID %{id} already present"},title:"Import users via CSV",goToPdf:"Go to PDF",cards:{importstats:{header:"Import users",users_total:"%{smart_count} user in CSV file |||| %{smart_count} users in CSV file",guest_count:"%{smart_count} guest |||| %{smart_count} guests",admin_count:"%{smart_count} admin |||| %{smart_count} admins"},conflicts:{header:"Conflict strategy",mode:{stop:"Stop on conflict",skip:"Show error and skip on conflict"}},ids:{header:"IDs",all_ids_present:"IDs present on every entry",count_ids_present:"%{smart_count} entry with ID |||| %{smart_count} entries with IDs",mode:{ignore:"Ignore IDs in CSV and create new ones",update:"Update existing records"}},passwords:{header:"Passwords",all_passwords_present:"Passwords present on every entry",count_passwords_present:"%{smart_count} entry with password |||| %{smart_count} entries with passwords",use_passwords:"Use passwords from CSV"},upload:{header:"Input CSV file",explanation:"Here you can upload a file with comma separated values that is processed to create or update users. The file must include the fields 'id' and 'displayname'. You can download and adapt an example file here: "},startImport:{simulate_only:"Simulate only",run_import:"Import"},results:{header:"Import results",total:"%{smart_count} entry in total |||| %{smart_count} entries in total",successful:"%{smart_count} entries successfully imported",skipped:"%{smart_count} entries skipped",download_skipped:"Download skipped records",with_error:"%{smart_count} entry with errors |||| %{smart_count} entries with errors",simulated_only:"Run was only simulated"}}},delete_media:{name:"Media",fields:{before_ts:"last access before",size_gt:"Larger then (in bytes)",keep_profiles:"Keep profile images"},action:{send:"Delete media",send_success:"Request successfully sent.",send_failure:"An error has occurred."},helper:{send:"This API deletes the local media from the disk of your own server. This includes any local thumbnails and copies of media downloaded. This API will not affect media that has been uploaded to external media repositories."}},resources:{users:{name:"User |||| Users",email:"Email",msisdn:"Phone",threepid:"Email / Phone",fields:{avatar:"Avatar",id:"User-ID",name:"Name",is_guest:"Guest",admin:"Server Administrator",locked:"Locked",deactivated:"Deactivated",erased:"Erased",guests:"Show guests",show_deactivated:"Show deactivated users",show_locked:"Show locked users",user_id:"Search user",displayname:"Displayname",password:"Password",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Address",creation_ts_ms:"Creation timestamp",consent_version:"Consent version",auth_provider:"Provider",user_type:"User type"},helper:{password:"Changing password will log user out of all sessions.",deactivate:"You must provide a password to re-activate an account.",erase:"Mark the user as GDPR-erased"},action:{erase:"Erase user data"}},rooms:{name:"Room |||| Rooms",fields:{room_id:"Room-ID",name:"Name",canonical_alias:"Alias",joined_members:"Members",joined_local_members:"Local members",joined_local_devices:"Local devices",state_events:"State events / Complexity",version:"Version",is_encrypted:"Encrypted",encryption:"Encryption",federatable:"Federatable",public:"Visible in room directory",creator:"Creator",join_rules:"Join rules",guest_access:"Guest access",history_visibility:"History visibility",topic:"Topic",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Public",knock:"Knock",invite:"Invite",private:"Private"},guest_access:{can_join:"Guests can join",forbidden:"Guests can not join"},history_visibility:{invited:"Since invited",joined:"Since joined",shared:"Since shared",world_readable:"Anyone"},unencrypted:"Unencrypted"},action:{erase:{title:"Delete room",content:"Are you sure you want to delete the room? This cannot be undone. All messages and shared media in the room will be deleted from the server!"}}},reports:{name:"Reported event |||| Reported events",fields:{id:"ID",received_ts:"report time",user_id:"announcer",name:"name of the room",score:"score",reason:"reason",event_id:"event ID",event_json:{origin:"origin server",origin_server_ts:"time of send",type:"event type",content:{msgtype:"content type",body:"content",format:"format",formatted_body:"formatted content",algorithm:"algorithm",url:"URL",info:{mimetype:"Type"}}}},action:{erase:{title:"Delete reported event",content:"Are you sure you want to delete the reported event? This cannot be undone."}}},connections:{name:"Connections",fields:{last_seen:"Date",ip:"IP address",user_agent:"User agent"}},devices:{name:"Device |||| Devices",fields:{device_id:"Device-ID",display_name:"Device name",last_seen_ts:"Timestamp",last_seen_ip:"IP address"},action:{erase:{title:"Removing %{id}",content:'Are you sure you want to remove the device "%{name}"?',success:"Device successfully removed.",failure:"An error has occurred."}}},users_media:{name:"Media",fields:{media_id:"Media ID",media_length:"File Size (in Bytes)",media_type:"Type",upload_name:"File name",quarantined_by:"Quarantined by",safe_from_quarantine:"Safe from quarantine",created_ts:"Created",last_access_ts:"Last access"},action:{open:"Open media file in new window"}},protect_media:{action:{create:"Unprotected, create protection",delete:"Protected, remove protection",none:"In quarantine",send_success:"Successfully changed the protection status.",send_failure:"An error has occurred."}},quarantine_media:{action:{name:"Quarantine",create:"Add to quarantine",delete:"In quarantine, unquarantine",none:"Protected from quarantine",send_success:"Successfully changed the quarantine status.",send_failure:"An error has occurred."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App display name",app_id:"App ID",device_display_name:"Device display name",kind:"Kind",lang:"Language",profile_tag:"Profile tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Server Notices",send:"Send server notices",fields:{body:"Message"},action:{send:"Send note",send_success:"Server notice successfully sent.",send_failure:"An error has occurred."},helper:{send:'Sends a server notice to the selected users. The feature "Server Notices" has to be activated at the server.'}},user_media_statistics:{name:"Users' media",fields:{media_count:"Media count",media_length:"Media length"}},forward_extremities:{name:"Forward Extremities",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Depth",state_group:"State group"}},room_state:{name:"State events",fields:{type:"Type",content:"Content",origin_server_ts:"time of send",sender:"Sender"}},room_directory:{name:"Room directory",fields:{world_readable:"guest users may view without joining",guest_can_join:"guest users may join"},action:{title:"Delete room from directory |||| Delete %{smart_count} rooms from directory",content:"Are you sure you want to remove this room from directory? |||| Are you sure you want to remove these %{smart_count} rooms from directory?",erase:"Delete from room directory",create:"Publish in room directory",send_success:"Room successfully published.",send_failure:"An error has occurred."}},destinations:{name:"Federation",fields:{destination:"Destination",failure_ts:"Failure timestamp",retry_last_ts:"Last retry timestamp",retry_interval:"Retry interval",last_successful_stream_ordering:"Last successful stream",stream_ordering:"Stream"},action:{reconnect:"Reconnect"}},registration_tokens:{name:"Registration tokens",fields:{token:"Token",valid:"Valid token",uses_allowed:"Uses allowed",pending:"Pending",completed:"Completed",expiry_time:"Expiry time",length:"Length"},helper:{length:"Length of the token if no token is given."}}}};var q5e={ra:{action:{add_filter:"Ajouter un filtre",add:"Ajouter",back:"Retour",bulk_actions:"%{smart_count} sélectionné |||| %{smart_count} sélectionnés",cancel:"Annuler",clear_array_input:"Vider la liste",clear_input_value:"Vider le champ",clone:"Dupliquer",confirm:"Confirmer",create:"Créer",create_item:"Créer %{item}",delete:"Supprimer",edit:"Éditer",export:"Exporter",list:"Liste",refresh:"Actualiser",remove_filter:"Supprimer ce filtre",remove_all_filters:"Supprimer tous les filtres",remove:"Supprimer",save:"Enregistrer",select_all:"Tout sélectionner",select_row:"Sélectionner cette ligne",search:"Rechercher",show:"Afficher",sort:"Trier",undo:"Annuler",unselect:"Désélectionner",expand:"Étendre",close:"Fermer",open_menu:"Ouvrir le menu",close_menu:"Fermer le menu",update:"Modifier",move_up:"Déplacer vers le haut",move_down:"Déplacer vers le bas",open:"Ouvrir",toggle_theme:"Thème clair/sombre",select_columns:"Colonnes",update_application:"Recharger l'application"},boolean:{true:"Oui",false:"Non",null:" "},page:{create:"Créer %{name}",dashboard:"Tableau de bord",edit:"%{name} %{recordRepresentation}",error:"Un problème est survenu",list:"%{name}",loading:"Chargement",not_found:"Page manquante",show:"%{name} %{recordRepresentation}",empty:"Pas encore de %{name}.",invite:"Voulez-vous en créer un ?"},input:{file:{upload_several:"Déposez les fichiers à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez le fichier à uploader, ou cliquez pour le sélectionner."},image:{upload_several:"Déposez les images à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez l'image à uploader, ou cliquez pour la sélectionner."},references:{all_missing:"Impossible de trouver des données de références.",many_missing:"Au moins une des références associées semble ne plus être disponible.",single_missing:"La référence associée ne semble plus disponible."},password:{toggle_visible:"Cacher le mot de passe",toggle_hidden:"Montrer le mot de passe"}},message:{about:"Au sujet de",are_you_sure:"Êtes-vous sûr ?",auth_error:"Une erreur est survenue lors de la validation de votre jeton d'authentification.",bulk_delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ? |||| Êtes-vous sûr(e) de vouloir supprimer ces %{smart_count} éléments ?",bulk_delete_title:"Supprimer %{name} |||| Supprimer %{smart_count} %{name}",bulk_update_content:"Êtes-vous sûr(e) de vouloir modifier cet élément ? |||| Êtes-vous sûr(e) de vouloir modifier ces %{smart_count} éléments ?",bulk_update_title:"Modifier %{name} |||| Modifier %{smart_count} %{name}",clear_array_input:"Êtes-vous sûr(e) de vouloir supprimer tous les éléments de la liste ?",delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ?",delete_title:"Supprimer %{name} #%{id}",details:"Détails",error:"En raison d'une erreur côté navigateur, votre requête n'a pas pu aboutir.",invalid_form:"Le formulaire n'est pas valide.",loading:"La page est en cours de chargement, merci de bien vouloir patienter.",no:"Non",not_found:"L'URL saisie est incorrecte, ou vous avez suivi un mauvais lien.",yes:"Oui",unsaved_changes:"Certains changements n'ont pas été enregistrés. Êtes-vous sûr(e) de vouloir quitter cette page ?"},navigation:{clear_filters:"Effacer les filtres",no_filtered_results:"Aucun résultat trouvé avec les filtres actuels.",no_results:"Aucun résultat",no_more_results:"La page numéro %{page} est en dehors des limites. Essayez la page précédente.",page_out_of_boundaries:"La page %{page} est en dehors des limites",page_out_from_end:"Fin de la pagination",page_out_from_begin:"La page doit être supérieure à 1",page_range_info:"%{offsetBegin}-%{offsetEnd} sur %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} sur plus de %{offsetEnd}",page_rows_per_page:"Lignes par page :",current_page:"Page %{page}",page:"Aller à la page %{page}",first:"Aller à la première page",last:"Aller à la dernière page",next:"Aller à la prochaine page",previous:"Aller à la page précédente",skip_nav:"Aller au contenu"},sort:{sort_by:"Trier par %{field} %{order}",ASC:"croissant",DESC:"décroissant"},auth:{auth_check_error:"Merci de vous connecter pour continuer",user_menu:"Profil",username:"Identifiant",password:"Mot de passe",sign_in:"Connexion",sign_in_error:"Échec de l'authentification, merci de réessayer",logout:"Déconnexion"},notification:{updated:"Élément mis à jour |||| %{smart_count} éléments mis à jour",created:"Élément créé",deleted:"Élément supprimé |||| %{smart_count} éléments supprimés",bad_item:"Élément inconnu",item_doesnt_exist:"L'élément n'existe pas",http_error:"Erreur de communication avec le serveur",data_provider_error:"Erreur dans le dataProvider. Plus de détails dans la console.",i18n_error:"Erreur de chargement des traductions pour la langue sélectionnée",canceled:"Action annulée",logged_out:"Votre session a pris fin, veuillez vous reconnecter.",not_authorized:"Vous n'êtes pas autorisé(e) à accéder à cette ressource.",application_update_available:"Une mise à jour est disponible."},validation:{required:"Ce champ est requis",minLength:"Minimum %{min} caractères",maxLength:"Maximum %{max} caractères",minValue:"Minimum %{min}",maxValue:"Maximum %{max}",number:"Doit être un nombre",email:"Doit être un email",oneOf:"Doit être au choix: %{options}",regex:"Doit respecter un format spécifique (regexp): %{pattern}",unique:"Doit être unique"},saved_queries:{label:"Mes requêtes",query_name:"Nom de la requête",new_label:"Ajouter à mes requêtes...",new_dialog_title:"Ajouter la requête en cours à mes requêtes",remove_label:"Retirer de mes requêtes",remove_label_with_name:'Retirer "%{name}" des mes requêtes',remove_dialog_title:"Effacer de mes requêtes ?",remove_message:"Etes-vous sûr(e) de vouloir supprimer cette requête de votre liste de requêtes ?",help:"Filtrez la liste et ajoutez cette requête à votre liste"},configurable:{customize:"Personnaliser",configureMode:"Configurer cette page",inspector:{title:"Inspecteur",content:"Sélectionner un composant pour le configurer",reset:"Réinitialiser",hideAll:"Masquer tout",showAll:"Afficher tout"},Datagrid:{title:"Tableau",unlabeled:"Colonne #%{column}"},SimpleForm:{title:"Formulaire",unlabeled:"Champ #%{input}"},SimpleList:{title:"Liste",primaryText:"Texte principal",secondaryText:"Texte secondaire",tertiaryText:"Texte annexe"}}}};const G5e={...q5e,synapseadmin:{auth:{base_url:"URL du serveur d’accueil",welcome:"Bienvenue sur Synapse-admin",server_version:"Version du serveur Synapse",username_error:"Veuillez entrer un nom d'utilisateur complet : « @utilisateur:domaine »",protocol_error:"L'URL doit commencer par « http:// » ou « https:// »",url_error:"L'URL du serveur Matrix n'est pas valide",sso_sign_in:"Se connecter avec l’authentification unique"},users:{invalid_user_id:"Partie locale d'un identifiant utilisateur Matrix sans le nom du serveur d’accueil.",tabs:{sso:"Authentification unique"}},rooms:{tabs:{basic:"Informations de base",members:"Membres",detail:"Détails",permission:"Permissions"}},reports:{tabs:{basic:"Informations de base",detail:"Détails"}}},import_users:{error:{at_entry:"Pour l'entrée %{entry} : %{message}",error:"Erreur",required_field:"Le champ requis « %{field} » est manquant",invalid_value:"Valeur non valide à la ligne %{row}. Le champ « %{field} » ne peut être que « true » ou « false »",unreasonably_big:"Refus de charger un fichier trop volumineux de %{size} mégaoctets",already_in_progress:"Un import est déjà en cours",id_exits:"L'identifiant %{id} déjà présent"},title:"Importer des utilisateurs à partir d'un fichier CSV",goToPdf:"Voir le PDF",cards:{importstats:{header:"Importer des utilisateurs",users_total:"%{smart_count} utilisateur dans le fichier CSV |||| %{smart_count} utilisateurs dans le fichier CSV",guest_count:"%{smart_count} visiteur |||| %{smart_count} visiteurs",admin_count:"%{smart_count} administrateur |||| %{smart_count} administrateurs"},conflicts:{header:"Stratégie de résolution des conflits",mode:{stop:"S'arrêter en cas de conflit",skip:"Afficher l'erreur et ignorer le conflit"}},ids:{header:"Identifiants",all_ids_present:"Identifiants présents pour chaque entrée",count_ids_present:"%{smart_count} entrée avec identifiant |||| %{smart_count} entrées avec identifiant",mode:{ignore:"Ignorer les identifiants dans le ficher CSV et en créer de nouveaux",update:"Mettre à jour les enregistrements existants"}},passwords:{header:"Mots de passe",all_passwords_present:"Mots de passe présents pour chaque entrée",count_passwords_present:"%{smart_count} entrée avec mot de passe |||| %{smart_count} entrées avec mot de passe",use_passwords:"Utiliser les mots de passe provenant du fichier CSV"},upload:{header:"Fichier CSV en entrée",explanation:"Vous pouvez télécharger ici un fichier contenant des valeurs séparées par des virgules qui sera traité pour créer ou mettre à jour des utilisateurs. Le fichier doit inclure les champs « id » et « displayname ». Vous pouvez télécharger et adapter un fichier d'exemple ici : "},startImport:{simulate_only:"Simuler",run_import:"Importer"},results:{header:"Résultats de l'import",total:"%{smart_count} entrée au total |||| %{smart_count} entrées au total",successful:"%{smart_count} entrées importées avec succès",skipped:"%{smart_count} entrées ignorées",download_skipped:"Télécharger les entrées ignorées",with_error:"%{smart_count} entrée avec des erreurs ||| %{smart_count} entrées avec des erreurs",simulated_only:"L'import était simulé"}}},delete_media:{name:"Media",fields:{before_ts:"Dernier accès avant",size_gt:"Plus grand que (en octets)",keep_profiles:"Conserver les images de profil"},action:{send:"Supprimer le média",send_success:"Requête envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Cette API supprime les médias locaux du disque de votre propre serveur. Cela inclut toutes les vignettes locales et les copies des médias téléchargés. Cette API n'affectera pas les médias qui ont été téléversés dans des dépôts de médias externes."}},resources:{users:{name:"Utilisateur |||| Utilisateurs",email:"Adresse électronique",msisdn:"Numéro de téléphone",threepid:"Adresse électronique / Numéro de téléphone",fields:{avatar:"Avatar",id:"Identifiant",name:"Nom",is_guest:"Visiteur",admin:"Administrateur du serveur",locked:"Verrouillé",deactivated:"Désactivé",guests:"Afficher les visiteurs",show_deactivated:"Afficher les utilisateurs désactivés",user_id:"Rechercher un utilisateur",displayname:"Nom d'affichage",password:"Mot de passe",avatar_url:"URL de l'avatar",avatar_src:"Avatar",medium:"Type",threepids:"Identifiants tiers",address:"Adresse",creation_ts_ms:"Date de création",consent_version:"Version du consentement",auth_provider:"Fournisseur d'identité"},helper:{deactivate:"Vous devrez fournir un mot de passe pour réactiver le compte.",erase:"Marquer l'utilisateur comme effacé conformément au RGPD"},action:{erase:"Effacer les données de l'utilisateur"}},rooms:{name:"Salon |||| Salons",fields:{room_id:"Identifiant du salon",name:"Nom",canonical_alias:"Alias",joined_members:"Membres",joined_local_members:"Membres locaux",joined_local_devices:"Appareils locaux",state_events:"Événements d'État / Complexité",version:"Version",is_encrypted:"Chiffré",encryption:"Chiffrement",federatable:"Fédérable",public:"Visible dans le répertoire des salons",creator:"Créateur",join_rules:"Règles d'adhésion",guest_access:"Accès des visiteurs",history_visibility:"Visibilité de l'historique",topic:"Sujet",avatar:"Avatar"},helper:{forward_extremities:"Les extrémités avant sont les événements feuilles à la fin d'un graphe orienté acyclique (DAG) dans un salon, c'est-à-dire les événements qui n'ont pas de descendants. Plus il y en a dans un salon, plus la résolution d'état que Synapse doit effectuer est importante (indice : c'est une opération coûteuse). Bien que Synapse dispose d'un algorithme pour éviter qu'un trop grand nombre de ces événements n'existent en même temps dans un salon, des bogues peuvent parfois les faire réapparaître. Si un salon présente plus de 10 extrémités avant, cela vaut la peine d'y prêter attention et éventuellement de les supprimer en utilisant les requêtes SQL mentionnées dans la discussion traitant du problème https://github.com/matrix-org/synapse/issues/1760."},enums:{join_rules:{public:"Public",knock:"Sur demande",invite:"Sur invitation",private:"Privé"},guest_access:{can_join:"Les visiteurs peuvent rejoindre le salon",forbidden:"Les visiteurs ne peuvent pas rejoindre le salon"},history_visibility:{invited:"Depuis l'invitation",joined:"Depuis l'adhésion",shared:"Depuis le partage",world_readable:"Tout le monde"},unencrypted:"Non chiffré"},action:{erase:{title:"Supprimer le salon",content:"Voulez-vous vraiment supprimer le salon ? Cette opération ne peut être annulée. Tous les messages et médias partagés du salon seront supprimés du serveur !"}}},reports:{name:"Événement signalé |||| Événements signalés",fields:{id:"Identifiant",received_ts:"Date du rapport",user_id:"Rapporteur",name:"Nom du salon",score:"Score",reason:"Motif",event_id:"Identifiant de l'événement",event_json:{origin:"Serveur d'origine",origin_server_ts:"Date d'envoi",type:"Type d'événement",content:{msgtype:"Type de contenu",body:"Contenu",format:"Format",formatted_body:"Contenu mis en forme",algorithm:"Algorithme"}}}},connections:{name:"Connexions",fields:{last_seen:"Date",ip:"Adresse IP",user_agent:"Agent utilisateur"}},devices:{name:"Appareil |||| Appareils",fields:{device_id:"Identifiant de l'appareil",display_name:"Nom de l'appareil",last_seen_ts:"Date",last_seen_ip:"Adresse IP"},action:{erase:{title:"Suppression de %{id}",content:"Voulez-vous vraiment supprimer l'appareil « %{name} » ?",success:"Appareil supprimé avec succès",failure:"Une erreur s'est produite"}}},users_media:{name:"Media",fields:{media_id:"Identifiant du média",media_length:"Taille du fichier (en octets)",media_type:"Type",upload_name:"Nom du fichier",quarantined_by:"Mis en quarantaine par",safe_from_quarantine:"Protection contre la mise en quarantaine",created_ts:"Date de création",last_access_ts:"Dernier accès"}},protect_media:{action:{create:"Protéger",delete:"Révoquer la protection",none:"En quarantaine",send_success:"Le statut de protection a été modifié avec succès",send_failure:"Une erreur s'est produite"}},quarantine_media:{action:{name:"Quarantaine",create:"Mettre en quarantaine",delete:"Révoquer la mise en quarantaine",none:"Protégé contre la mise en quarantaine",send_success:"Le statut de la quarantaine a été modifié avec succès",send_failure:"Une erreur s'est produite"}},pushers:{name:"Émetteur de notifications |||| Émetteurs de notifications",fields:{app:"Application",app_display_name:"Nom d'affichage de l'application",app_id:"Identifiant de l'application",device_display_name:"Nom d'affichage de l'appareil",kind:"Type",lang:"Langue",profile_tag:"Profil",pushkey:"Identifiant de l'émetteur",data:{url:"URL"}}},servernotices:{name:"Annonces du serveur",send:"Envoyer des « Annonces du serveur »",fields:{body:"Message"},action:{send:"Envoyer une annonce",send_success:"Annonce envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Envoie une annonce au nom du serveur aux utilisateurs sélectionnés. La fonction « Annonces du serveur » doit être activée sur le serveur."}},user_media_statistics:{name:"Médias des utilisateurs",fields:{media_count:"Nombre de médias",media_length:"Taille des médias"}},forward_extremities:{name:"Extrémités avant",fields:{id:"Identifiant de l'événement",received_ts:"Date de réception",depth:"Profondeur",state_group:"Groupe d'état"}},room_state:{name:"Événements d'état",fields:{type:"Type",content:"Contenu",origin_server_ts:"Date d'envoi",sender:"Expéditeur"}},room_directory:{name:"Répertoire des salons",fields:{world_readable:"Tout utilisateur peut avoir un aperçu du salon, sans en devenir membre",guest_can_join:"Les visiteurs peuvent rejoindre le salon"},action:{title:"Supprimer un salon du répertoire |||| Supprimer %{smart_count} salons du répertoire",content:"Voulez-vous vraiment supprimer ce salon du répertoire ? |||| Voulez-vous vraiment supprimer ces %{smart_count} salons du répertoire ?",erase:"Supprimer du répertoire des salons",create:"Publier dans le répertoire des salons",send_success:"Salon publié avec succès",send_failure:"Une erreur s'est produite"}},registration_tokens:{name:"Jetons d'inscription",fields:{token:"Jeton",valid:"Jeton valide",uses_allowed:"Nombre d'inscription autorisées",pending:"Nombre d'inscription en cours",completed:"Nombre d'inscription accomplie",expiry_time:"Date d'expiration",length:"Longueur"},helper:{length:"Longueur du jeton généré aléatoirement si aucun jeton n'est pas spécifié"}}}};var K5e={ra:{action:{add_filter:"Aggiungi un filtro",add:"Aggiungi",back:"Indietro",bulk_actions:"%{smart_count} selezionati",cancel:"Annulla",clear_input_value:"Svuota il modulo",clone:"Duplica",confirm:"Conferma",create:"Crea",delete:"Cancella",edit:"Modifica",export:"Esporta",list:"Elenco",refresh:"Aggiorna",remove_filter:"Rimuovi questo filtro",remove:"Rimuovi",save:"Salva",search:"Ricerca",show:"Mostra",sort:"Ordina",undo:"Annulla",unselect:"Annulla selezione",expand:"Espandi",close:"Chiudi",open_menu:"Apri il menu",close_menu:"Chiudi il menu"},boolean:{true:"Si",false:"No",null:" "},page:{create:"Aggiungi %{name}",dashboard:"Cruscotto",edit:"%{name} %{id}",error:"Qualcosa non ha funzionato",list:"%{name}",loading:"Caricamento in corso",not_found:"Non trovato",show:"%{name} %{id}",empty:"Nessun %{name} ancora.",invite:"Vuoi aggiungerne uno?"},input:{file:{upload_several:"Trascina i files da caricare, oppure clicca per selezionare.",upload_single:"Trascina il file da caricare, oppure clicca per selezionarlo."},image:{upload_several:"Trascina le immagini da caricare, oppure clicca per selezionarle.",upload_single:"Trascina l'immagine da caricare, oppure clicca per selezionarla."},references:{all_missing:"Impossibile trovare i riferimenti associati.",many_missing:"Almeno uno dei riferimenti associati non sembra più disponibile.",single_missing:"Il riferimento associato non sembra più disponibile."}},password:{toggle_visible:"Nascondi la password",toggle_hidden:"Mostra la password"},message:{about:"Informazioni",are_you_sure:"Sei sicuro ?",bulk_delete_content:"Sei sicuro di voler cancellare questo %{name}? |||| Sei sicuro di voler eliminare questi %{smart_count}?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name} items",delete_content:"Are you sure you want to delete this item?",delete_title:"Cancella %{name} #%{id}",details:"Dettagli",error:"Un errore locale è occorso e la tua richiesta non è stata completata.",invalid_form:"Il modulo non è valido. Si prega di verificare la presenza di errori.",loading:"La pagina si sta caricando, solo un momento per favore",no:"No",not_found:"Hai inserito un URL errato, oppure hai cliccato un link errato",yes:"Si",unsaved_changes:"Alcune modifiche non sono state salvate. Sei sicuro di volerle ignorare?"},navigation:{no_results:"Nessun risultato trovato",no_more_results:"La pagina numero %{page} è fuori dell'intervallo. Prova la pagina precedente.",page_out_of_boundaries:"Il numero di pagina %{page} è fuori dei limiti",page_out_from_end:"Fine della paginazione",page_out_from_begin:"Il numero di pagina deve essere maggiore di 1",page_range_info:"%{offsetBegin}-%{offsetEnd} di %{total}",page_rows_per_page:"Righe per pagina",next:"Successivo",prev:"Precedente",skip_nav:"Vai al contenuto"},sort:{sort_by:"Ordina per %{field} %{order}",ASC:"cresente",DESC:"decrescente"},auth:{auth_check_error:"È necessario accedere per continuare",user_menu:"Profilo",username:"Nome utente",password:"Password",sign_in:"Login",sign_in_error:"Autenticazione fallita, riprovare.",logout:"Disconnessione"},notification:{updated:"Record aggiornato |||| %{smart_count} records aggiornati",created:"Record creato",deleted:"Record eliminato |||| %{smart_count} records eliminati",bad_item:"Record errato",item_doesnt_exist:"Record inesistente",http_error:"Errore di comunicazione con il server dati",data_provider_error:"Errore del data provider. Controlla la console per i dettagli.",i18n_error:"Traduzioni non trovate per il linguaggio specificato",canceled:"Azione annullata",logged_out:"La sessione è stata terminata, si prega di ripetere l'autenticazione."},validation:{required:"Campo obbligatorio",minLength:"Deve essere lungo %{min} caratteri almeno",maxLength:"Deve essere lungo %{max} caratteri al massimo",minValue:"Deve essere almeno %{min}",maxValue:"Deve essere al massimo %{max}",number:"Deve essere un numero",email:"Deve essere un valido indirizzo email",oneOf:"Deve essere uno di: %{options}",regex:"Deve rispettare il formato (espressione regolare): %{pattern}"}}};const Q5e=bn(K5e),X5e={...Q5e,synapseadmin:{auth:{base_url:"URL dell'homeserver",welcome:"Benvenuto in Synapse-admin",server_version:"Versione di Synapse",username_error:"Per favore inserisci un ID utente completo: '@utente:dominio'",protocol_error:"L'URL deve iniziare per 'http://' o 'https://'",url_error:"URL del server Matrix non valido",sso_sign_in:"Accedi con SSO"},users:{invalid_user_id:"ID utente non valido su questo homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Semplice",members:"Membro",detail:"Dettagli",permission:"Permessi"}},reports:{tabs:{basic:"Semplice",detail:"Dettagli"}}},import_users:{error:{at_entry:"Alla voce %{entry}: %{message}",error:"Errore",required_field:"Il campo '%{field}' non è presente",invalid_value:"Valore non valido alla riga %{row}. '%{field}' Il campo può essere solo 'true' o 'false'",unreasonably_big:"Impossibile caricare un file così grosso (%{size} megabyte)",already_in_progress:"Un import è attualmente già in caricamento",id_exits:"L'ID %{id} è già presente"},title:"Importa utenti tramite file CSV",goToPdf:"Vai al PDF",cards:{importstats:{header:"Importa utenti",users_total:"%{smart_count} utente nel file CSV |||| %{smart_count} utenti nel file CSV",guest_count:"%{smart_count} ospite |||| %{smart_count} ospiti",admin_count:"%{smart_count} amministratore |||| %{smart_count} amministratori"},conflicts:{header:"Strategia di conflitto",mode:{stop:"Stoppa al conflitto",skip:"Mostra l'errore e ignora il conflitto"}},ids:{header:"ID",all_ids_present:"ID presenti in ogni voce",count_ids_present:"%{smart_count} voce con ID |||| %{smart_count} voci con ID",mode:{ignore:"Ignora gli ID nel file CSV e creane di nuovi",update:"Aggiorna le voci esistenti"}},passwords:{header:"Passwords",all_passwords_present:"Password presenti in ogni voce",count_passwords_present:"%{smart_count} voce con password |||| %{smart_count} voci con password",use_passwords:"Usa le password dal file CSV"},upload:{header:"Input file CSV",explanation:"Qui puoi caricare un file con valori separati da virgole che verrà poi utilizzato per creare o aggiornare gli utenti. Il file deve includere i campi 'id' and 'displayname'. Puoi scaricare un file di esempio per adattarlo: "},startImport:{simulate_only:"Solo simulazione",run_import:"Importa"},results:{header:"Importa i risultati",total:"%{smart_count} voce in totale |||| %{smart_count} voci in totale",successful:"%{smart_count} voci importate con successo",skipped:"%{smart_count} voci ignorate",download_skipped:"Scarica le voci ignorate",with_error:"%{smart_count} voce con errori ||| %{smart_count} voci con errori",simulated_only:"Il processo era stato solamente simulato"}}},delete_media:{name:"Media",fields:{before_ts:"ultimo accesso effettuato prima",size_gt:"Più grande di (in byte)",keep_profiles:"Mantieni le immagini del profilo"},action:{send:"Cancella media",send_success:"Richiesta inviata con successo.",send_failure:"C'è stato un errore."},helper:{send:"Questa API cancella i media locali dal disco del tuo server. Questo include anche ogni miniatura e copia del media scaricato. Questa API non inciderà sui media che sono stati caricati nei repository esterni."}},resources:{users:{name:"Utente |||| Utenti",email:"Email",msisdn:"Telefono",threepid:"Email / Telefono",fields:{avatar:"Avatar",id:"ID utente",name:"Nome",is_guest:"Ospite",admin:"Amministratore",locked:"Bloccato",deactivated:"Disattivato",guests:"Mostra gli ospiti",show_deactivated:"Mostra gli utenti disattivati",user_id:"Cerca utente",displayname:"Nickname",password:"Password",avatar_url:"URL dell'avatar",avatar_src:"Avatar",medium:"Medium",threepids:"3PID",address:"Indirizzo",creation_ts_ms:"Creazione del timestamp",consent_version:"Versione minima richiesta",auth_provider:"Provider",user_type:"Tipo d'utente"},helper:{password:"Cambiando la password l'utente verrà disconnesso da tutte le sessioni attive.",deactivate:"Devi fornire una password per riattivare l'account.",erase:"Constrassegna l'utente come cancellato dal GDPR"},action:{erase:"Cancella i dati dell'utente"}},rooms:{name:"Stanza |||| Stanze",fields:{room_id:"ID della stanza",name:"Nome",canonical_alias:"Alias",joined_members:"Membri",joined_local_members:"Membri locali",joined_local_devices:"Dispositivi locali",state_events:"Eventi di stato / Complessità",version:"Versione",is_encrypted:"Criptato",encryption:"Crittografia",federatable:"Federabile",public:"Visibile nella cartella della stanza",creator:"Creatore",join_rules:"Regole per entrare",guest_access:"Entra come ospite",history_visibility:"Visibilità temporale",topic:"Topic",avatar:"Avatar"},helper:{},enums:{join_rules:{public:"Pubblica",knock:"Bussa",invite:"Invita",private:"Privata"},guest_access:{can_join:"Gli utenti ospiti possono entrare",forbidden:"Gli utenti ospiti non possono entrare"},history_visibility:{invited:"Dall'invito",joined:"Dall'entrata",shared:"Dalla condivisione",world_readable:"Chiunque"},unencrypted:"Non criptata"},action:{erase:{title:"Cancella stanza",content:"Sei sicuro di voler eliminare questa stanza? Questa azione è definitiva. Tutti i messaggi e i media condivisi in questa stanza verranno eliminati dal server!"}}},reports:{name:"Evento segnalato |||| Eventi segnalati",fields:{id:"ID",received_ts:"Orario del report",user_id:"richiedente",name:"nome della stanza",score:"punteggio",reason:"ragione",event_id:"ID dell'evento",event_json:{origin:"server di origine",origin_server_ts:"ora dell'invio",type:"tipo di evento",content:{msgtype:"tipo di contenuto",body:"contenuto",format:"formato",formatted_body:"contenuto formattato",algorithm:"algoritmo"}}}},connections:{name:"Connessioni",fields:{last_seen:"Data",ip:"Indirizzo IP",user_agent:"agente utente"}},devices:{name:"Dispositivo |||| Dispositivi",fields:{device_id:"ID del dispositivo",display_name:"Nome del dispositivo",last_seen_ts:"Timestamp",last_seen_ip:"Indirizzo IP"},action:{erase:{title:"Rimozione del dispositivo %{id}",content:'Sei sicuro di voler rimuovere il dispositivo "%{name}"?',success:"Dispositivo rimosso con successo.",failure:"C'è stato un errore."}}},users_media:{name:"Media",fields:{media_id:"ID del media",media_length:"Peso del file (in Byte)",media_type:"Tipo",upload_name:"Nome del file",quarantined_by:"In quarantena da",safe_from_quarantine:"Protetto dalla quarantena",created_ts:"Creato",last_access_ts:"Ultimo accesso"}},protect_media:{action:{create:"Non protetto, proteggi",delete:"Protetto, rimuovi protezione",none:"In quarantena",send_success:"Stato della protezione cambiato con successo.",send_failure:"C'è stato un errore."}},quarantine_media:{action:{name:"Quarantina",create:"Aggiungi alla quarantena",delete:"In quarantena, rimuovi dalla quarantena",none:"Protetto dalla quarantena",send_success:"Stato della quarantena cambiato con successo.",send_failure:"C'è stato un errore."}},pushers:{name:"Pusher |||| Pusher",fields:{app:"App",app_display_name:"Nome dell'app",app_id:"ID dell'app",device_display_name:"Nome del dispositivo",kind:"Tipo",lang:"Lingua",profile_tag:"Tag del profilo",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Avvisi del server",send:"Invia avvisi",fields:{body:"Messaggio"},action:{send:"Invia nota",send_success:"Avviso inviato con successo.",send_failure:"C'è stato un errore."},helper:{send:'Invia un avviso dal server agli utenti selezionati. La feature "Avvisi del server" è stata attivata sul server.'}},user_media_statistics:{name:"Media degli utenti",fields:{media_count:"Numero media",media_length:"Lunghezza media"}},forward_extremities:{name:"Invia estremità",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Profondità",state_group:"State group"}},room_state:{name:"Eventi di stato",fields:{type:"Tipo",content:"Contenuto",origin_server_ts:"Ora dell'invio",sender:"Mittente"}},room_directory:{name:"Elenco delle stanze",fields:{world_readable:"gli utenti ospite possono vedere senza entrare",guest_can_join:"gli utenti ospite possono entrare"},action:{title:"Cancella stanza dall'elenco |||| Cancella %{smart_count} stanze dall'elenco",content:"Sei sicuro di voler rimuovere questa stanza dall'elenco? |||| Sei sicuro di voler rimuovere %{smart_count} stanze dall'elenco?",erase:"Rimuovi dall'elenco",create:"Crea",send_success:"Stanza creata con successo.",send_failure:"C'è stato un errore."}},destinations:{name:"Federazione",fields:{destination:"Destinazione",failure_ts:"Timestamp dell'errore",retry_last_ts:"Tentativo ultimo timestamp",retry_interval:"Intervallo dei tentativi",last_successful_stream_ordering:"Ultimo flusso riuscito con successo",stream_ordering:"Flusso"},action:{reconnect:"Riconnetti"}},registration_tokens:{name:"Token di registrazione",fields:{token:"Token",valid:"Token valido",uses_allowed:"Usi permessi",pending:"In attesa",completed:"Completato",expiry_time:"Data della scadenza",length:"Lunghezza"},helper:{length:"Lunghezza del token se non viene dato alcun token."}}}},_S={ra:{action:{add_filter:"Добавить фильтр",add:"Добавить",back:"Назад",bulk_actions:"1 выбран |||| %{smart_count} выбрано |||| %{smart_count} выбрано",cancel:"Отмена",clear_array_input:"Очистить список",clear_input_value:"Очистить",clone:"Дублировать",confirm:"Подтвердить",create:"Создать",create_item:"Создать %{item}",delete:"Удалить",edit:"Редактировать",export:"Экспорт",list:"Список",refresh:"Обновить",remove_filter:"Убрать фильтр",remove_all_filters:"Убрать все фильтры",remove:"Удалить",save:"Сохранить",search:"Поиск",select_all:"Выбрать все",select_row:"Выбрать эту запись",show:"Просмотр",sort:"Сортировка",undo:"Отменить",unselect:"Не выбрано",expand:"Раскрыть",close:"Закрыть",open_menu:"Открыть меню",close_menu:"Закрыть меню",update:"Обновить",move_up:"Переместить вверх",move_down:"Переместить вниз",open:"Открыть",toggle_theme:"Переключить тему",select_columns:"Столбцы",update_application:"Обновить приложение"},boolean:{true:"Да",false:"Нет",null:" "},page:{create:"Создать %{name}",dashboard:"Главная",edit:"%{name} %{recordRepresentation}",error:"Что-то пошло не так",list:"%{name}",loading:"Загрузка",not_found:"Не найдено",show:"%{name} %{recordRepresentation}",empty:"Нет %{name}.",invite:"Вы хотите добавить еще одну?"},input:{file:{upload_several:"Перетащите файлы сюда или нажмите для выбора.",upload_single:"Перетащите файл сюда или нажмите для выбора."},image:{upload_several:"Перетащите изображения сюда или нажмите для выбора.",upload_single:"Перетащите изображение сюда или нажмите для выбора."},references:{all_missing:"Связанных данных не найдено",many_missing:"Некоторые из связанных данных недоступны",single_missing:"Связанный объект недоступен"},password:{toggle_visible:"Скрыть пароль",toggle_hidden:"Показать пароль"}},message:{about:"Справка",are_you_sure:"Вы уверены?",auth_error:"Произошла ошибка при валидации токена аутентификации",bulk_delete_content:"Вы уверены, что хотите удалить %{name}? |||| Вы уверены, что хотите удалить %{smart_count} объектов? |||| Вы уверены, что хотите удалить %{smart_count} объектов?",bulk_delete_title:"Удалить %{name} |||| Удалить %{smart_count} %{name} |||| Удалить %{smart_count} %{name}",bulk_update_content:"Вы уверены, что хотите обновить %{name}? |||| Вы уверены, что хотите обновить %{smart_count} объектов?",bulk_update_title:"Обновить %{name} |||| Обновить %{smart_count} %{name}",clear_array_input:"Вы уверены, что хотите очистить весь список?",delete_content:"Вы уверены что хотите удалить этот объект",delete_title:"Удалить %{name} #%{id}",details:"Описание",error:"В процессе запроса возникла ошибка, и он не может быть завершен",invalid_form:"Форма заполнена неверно, проверьте, пожалуйста, ошибки",loading:"Идет загрузка, пожалуйста, подождите...",no:"Нет",not_found:"Ошибка URL или вы следуете по неверной ссылке",yes:"Да",unsaved_changes:"Некоторые из ваших изменений не были сохранены. Вы уверены, что хотите их игнорировать?"},navigation:{no_results:"Результатов не найдено",no_more_results:"Страница %{page} выходит за пределы нумерации, попробуйте предыдущую",page_out_of_boundaries:"Страница %{page} вне границ",page_out_from_end:"Невозможно переместиться дальше последней страницы",page_out_from_begin:"Номер страницы не может быть меньше 1",page_range_info:"%{offsetBegin}-%{offsetEnd} из %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} из более %{offsetEnd}",current_page:"Страница %{page}",page:"На %{page} страницу",first:"На первую страницу",last:"На последнюю страницу",next:"Следующая",prev:"Предыдущая",previous:"Предыдущая",page_rows_per_page:"Строк на странице:",skip_nav:"Перейти к содержанию"},sort:{sort_by:"Сортировать по %{field} %{order}",ASC:"возрастанию",DESC:"убыванию"},auth:{auth_check_error:"Пожалуйста, авторизуйтесь для продолжения работы",user_menu:"Профиль",username:"Имя пользователя",password:"Пароль",sign_in:"Войти",sign_in_error:"Ошибка аутентификации, попробуйте снова",logout:"Выйти"},notification:{updated:"Элемент обновлен |||| %{smart_count} обновлено |||| %{smart_count} обновлено",created:"Элемент создан",deleted:"Элемент удален |||| %{smart_count} удалено |||| %{smart_count} удалено",bad_item:"Элемент не валиден",item_doesnt_exist:"Элемент не существует",http_error:"Ошибка сервера",data_provider_error:"Ошибка dataProvider, проверьте консоль",i18n_error:"Не удалось загрузить перевод для указанного языка",canceled:"Операция отменена",logged_out:"Ваша сессия завершена, попробуйте переподключиться/войти снова",not_authorized:"У вас нет доступа к этому ресурсу",application_update_available:"Имеется новая версия приложения."},validation:{required:"Обязательно для заполнения",minLength:"Минимальное кол-во символов %{min}",maxLength:"Максимальное кол-во символов %{max}",minValue:"Минимальное значение %{min}",maxValue:"Значение может быть %{max} или меньше",number:"Должно быть цифрой",email:"Некорректный email",oneOf:"Должно быть одним из: %{options}",regex:"Должно быть в формате (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Сохраненные запросы",query_name:"Имя запроса",new_label:"Сохранить текущий запрос...",new_dialog_title:"Сохранить текущий запрос как",remove_label:"Удалить сохраненный запрос",remove_label_with_name:'Удалить запрос "%{name}"',remove_dialog_title:"Удалить сохраненный запрос?",remove_message:"Вы уверены, что хотите удалить этот запрос из списка сохраненных запросов?",help:"Отфильтровать список и сохранить запрос на будущее"},configurable:{customize:"Настроить",configureMode:"Настроить эту страницу",inspector:{title:"Инспектор",content:"Наведите на UI-элементы приложения, чтобы настроить",reset:"Сбросить настройки",hideAll:"Скрыть все",showAll:"Показать все"},Datagrid:{title:"Таблица данных",unlabeled:"Безымянный столбец #%{column}"},SimpleForm:{title:"Форма",unlabeled:"Безымянное поле ввода #%{input}"},SimpleList:{title:"Список",primaryText:"Первичный текст",secondaryText:"Вторичный текст",tertiaryText:"Третичный текст"}}}},Y5e={..._S,ra:{..._S.ra,navigation:{..._S.ra.navigation,no_filtered_results:"Нет результатов",clear_filters:"Все фильтры сбросить"}},synapseadmin:{auth:{base_url:"Адрес домашнего сервера",welcome:"Добро пожаловать в Synapse-admin",server_version:"Версия Synapse",supports_specs:"поддерживает спецификации Matrix",username_error:"Пожалуйста, укажите полный ID пользователя: '@user:domain'",protocol_error:"Адрес должен начинаться с 'http://' или 'https://'",url_error:"Неверный адрес сервера Matrix",sso_sign_in:"Вход через SSO"},users:{invalid_user_id:"Локальная часть ID пользователя Matrix без адреса домашнего сервера.",tabs:{sso:"SSO"}},rooms:{details:"Данные комнаты",tabs:{basic:"Основные",members:"Участники",detail:"Подробности",permission:"Права доступа"}},reports:{tabs:{basic:"Основные",detail:"Подробности"}}},import_users:{error:{at_entry:"В записи %{entry}: %{message}",error:"Ошибка",required_field:"Отсутствует обязательное поле '%{field}'",invalid_value:"Неверное значение в строке %{row}. Поле '%{field}' может быть либо 'true', либо 'false'",unreasonably_big:"Отказано в загрузке слишком большого файла размером %{size} мегабайт",already_in_progress:"Импорт уже в процессе",id_exits:"ID %{id} уже существует"},title:"Импорт пользователей из CSV",goToPdf:"Перейти к PDF",cards:{importstats:{header:"Импорт пользователей",users_total:"%{smart_count} пользователь в CSV файле |||| %{smart_count} пользователя в CSV файле |||| %{smart_count} пользователей в CSV файле",guest_count:"%{smart_count} гость |||| %{smart_count} гостя |||| %{smart_count} гостей",admin_count:"%{smart_count} администратор |||| %{smart_count} администратора |||| %{smart_count} администраторов"},conflicts:{header:"Стратегия разрешения конфликтов",mode:{stop:"Остановка при конфликте",skip:"Показать ошибку и пропустить при конфликте"}},ids:{header:"Идентификаторы",all_ids_present:"Идентификаторы присутствуют в каждой записи",count_ids_present:"%{smart_count} запись с ID |||| %{smart_count} записи с ID |||| %{smart_count} записей с ID",mode:{ignore:"Игнорировать идентификаторы в CSV и создать новые",update:"Обновить существующие записи"}},passwords:{header:"Пароли",all_passwords_present:"Пароли присутствуют в каждой записи",count_passwords_present:"%{smart_count} запись с паролем |||| %{smart_count} записи с паролями |||| %{smart_count} записей с паролями",use_passwords:"Использовать пароли из CSV"},upload:{header:"Загрузить CSV файл",explanation:"Здесь вы можете загрузить файл со значениями, разделёнными запятыми, которые будут использованы для создания или обновления данных пользователей. В файле должны быть поля 'id' и 'displayname'. Вы можете скачать и изменить файл-образец отсюда: "},startImport:{simulate_only:"Только симулировать",run_import:"Импорт"},results:{header:"Результаты импорта",total:"%{smart_count} запись всего |||| %{smart_count} записи всего |||| %{smart_count} записей всего",successful:"%{smart_count} запись успешно импортирована |||| %{smart_count} записи успешно импортированы |||| %{smart_count} записей успешно импортированы",skipped:"%{smart_count} запись пропущена |||| %{smart_count} записи пропущены |||| %{smart_count} записей пропущено",download_skipped:"Скачать пропущенные записи",with_error:"%{smart_count} запись с ошибкой |||| %{smart_count} записи с ошибками |||| %{smart_count} записей с ошибками",simulated_only:"Импорт был симулирован"}}},delete_media:{name:"Файлы",fields:{before_ts:"Последнее обращение до",size_gt:"Более чем (в байтах)",keep_profiles:"Сохранить аватары"},action:{send:"Удалить файлы",send_success:"Запрос успешно отправлен.",send_failure:"Произошла ошибка."},helper:{send:"Это API удаляет локальные файлы с вашего собственного сервера, включая локальные миниатюры и копии скачанных файлов. Данный API не затрагивает файлы, загруженные во внешние хранилища."}},resources:{users:{name:"Пользователь |||| Пользователи",email:"Почта",msisdn:"Телефон",threepid:"Почта / Телефон",fields:{avatar:"Аватар",id:"ID пользователя",name:"Имя",is_guest:"Гость",admin:"Администратор сервера",locked:"Заблокирован",deactivated:"Деактивирован",erased:"Удалён",guests:"Показывать гостей",show_deactivated:"Показывать деактивированных",user_id:"Поиск пользователя",displayname:"Отображаемое имя",password:"Пароль",avatar_url:"Адрес аватары",avatar_src:"Аватар",medium:"Тип",threepids:"3PID'ы",address:"Адрес",creation_ts_ms:"Дата создания",consent_version:"Версия соглашения",auth_provider:"Провайдер",user_type:"Тип пользователя"},helper:{password:"Смена пароля завершит все сессии пользователя.",deactivate:"Вы должны предоставить пароль для реактивации учётной записи.",erase:"Пометить пользователя как удалённого в соответствии с GDPR"},action:{erase:"Удалить данные пользователя"}},rooms:{name:"Комната |||| Комнаты",fields:{room_id:"ID комнаты",name:"Название",canonical_alias:"Псевдоним",joined_members:"Участники",joined_local_members:"Локальные участники",joined_local_devices:"Локальные устройства",state_events:"События состояния / Сложность",version:"Версия",is_encrypted:"Зашифровано",encryption:"Шифрование",federatable:"Федерация",public:"Отображается в каталоге комнат",creator:"Создатель",join_rules:"Правила входа",guest_access:"Гостевой доступ",history_visibility:"Видимость истории",topic:"Тема",avatar:"Аватар"},helper:{forward_extremities:"Оконечности — это события-листья в конце ориентированного ациклического графа (DAG) в комнате, т.е. события без дочерних элементов. Чем больше их в комнате, тем больше Synapse работает над разрешением состояния (это дорогостоящая операция). Хотя Synapse старается не допускать существования слишком большого числа таких событий в комнате, из-за ошибок они иногда снова появляются. Если в комнате >10 оконечностей, стоит найти комнату-виновника и попробовать удалить их с помощью SQL-запросов из #1760."},enums:{join_rules:{public:"Для всех",knock:"Надо постучать",invite:"По приглашению",private:"Приватная"},guest_access:{can_join:"Гости могут войти",forbidden:"Гости не могут войти"},history_visibility:{invited:"С момента приглашения",joined:"С момента входа",shared:"С момента открытия доступа",world_readable:"Для всех"},unencrypted:"Без шифрования"},action:{erase:{title:"Удалить комнату",content:"Действительно удалить эту комнату? Это действие будет невозможно отменить. Все сообщения и файлы в комнате будут удалены с сервера!"}}},reports:{name:"Жалоба |||| Жалобы",fields:{id:"ID",received_ts:"Дата и время жалобы",user_id:"Автор жалобы",name:"Название комнаты",score:"Баллы",reason:"Причина",event_id:"ID события",event_json:{origin:"Исходнный сервер",origin_server_ts:"Дата и время отправки",type:"Тип события",content:{msgtype:"Тип содержимого",body:"Содержимое",format:"Формат",formatted_body:"Форматированное содержимое",algorithm:"Алгоритм",url:"Ссылка",info:{mimetype:"Тип"}}}},action:{erase:{title:"Удалить жалобу",content:"Действительно удалить жалобу? Это действие будет невозможно отменить."}}},connections:{name:"Подключения",fields:{last_seen:"Дата",ip:"IP адрес",user_agent:"Юзер-агент"}},devices:{name:"Устройство |||| Устройства",fields:{device_id:"ID устройства",display_name:"Название",last_seen_ts:"Дата и время",last_seen_ip:"IP адрес"},action:{erase:{title:"Удаление %{id}",content:'Действительно удалить устройство "%{name}"?',success:"Устройство успешно удалено.",failure:"Произошла ошибка."}}},users_media:{name:"Файлы",fields:{media_id:"ID файла",media_length:"Размер файла (в байтах)",media_type:"Тип",upload_name:"Имя файла",quarantined_by:"На карантине",safe_from_quarantine:"Защитить от карантина",created_ts:"Создано",last_access_ts:"Последний доступ"},action:{open:"Открыть файл в новом окне"}},protect_media:{action:{create:"Не защищён, установить защиту",delete:"Защищён, снять защиту",none:"На карантине",send_success:"Статус защиты успешно изменён.",send_failure:"Произошла ошибка."}},quarantine_media:{action:{name:"Карантин",create:"Поместить на карантин",delete:"На карантине, снять карантин",none:"Защищено от карантина",send_success:"Статус карантина успешно изменён.",send_failure:"Произошла ошибка."}},pushers:{name:"Пушер |||| Пушеры",fields:{app:"Приложение",app_display_name:"Название приложения",app_id:"ID приложения",device_display_name:"Название устройства",kind:"Вид",lang:"Язык",profile_tag:"Тег профиля",pushkey:"Ключ",data:{url:"URL"}}},servernotices:{name:"Серверные уведомления",send:"Отправить серверные уведомления",fields:{body:"Сообщение"},action:{send:"Отправить",send_success:"Серверное уведомление успешно отправлено.",send_failure:"Произошла ошибка."},helper:{send:'Отправить серверное уведомление выбранным пользователям. На сервере должна быть активна функция "Server Notices".'}},user_media_statistics:{name:"Файлы пользователей",fields:{media_count:"Количество файлов",media_length:"Размер файлов"}},forward_extremities:{name:"Оконечности",fields:{id:"ID события",received_ts:"Дата и время",depth:"Глубина",state_group:"Группа состояния"}},room_state:{name:"События состояния",fields:{type:"Тип",content:"Содержимое",origin_server_ts:"Дата отправки",sender:"Отправитель"}},room_directory:{name:"Каталог комнат",fields:{world_readable:"Гости могут просматривать без входа",guest_can_join:"Гости могут войти"},action:{title:"Удалить комнату из каталога |||| Удалить %{smart_count} комнаты из каталога |||| Удалить %{smart_count} комнат из каталога",content:"Действительно удалить комнату из каталога? |||| Действительно удалить %{smart_count} комнаты из каталога? |||| Действительно удалить %{smart_count} комнат из каталога?",erase:"Удалить из каталога комнат",create:"Опубликовать в каталоге комнат",send_success:"Комната успешно опубликована.",send_failure:"Произошла ошибка."}},destinations:{name:"Федерация",fields:{destination:"Назначение",failure_ts:"Дата и время ошибки",retry_last_ts:"Дата и время последней попытки",retry_interval:"Интервал между попытками",last_successful_stream_ordering:"Последний успешный поток",stream_ordering:"Поток"},action:{reconnect:"Переподключиться"}},registration_tokens:{name:"Токены регистрации",fields:{token:"Токен",valid:"Рабочий токен",uses_allowed:"Количество использований",pending:"Ожидает",completed:"Завершено",expiry_time:"Дата окончания",length:"Длина"},helper:{length:"Длина токена, если токен не задан."}}}};var jV={};Object.defineProperty(jV,"__esModule",{value:!0});var J5e={ra:{action:{add:"增加",add_filter:"添加搜索条件",back:"回退",bulk_actions:"选中1项 |||| 选中%{smart_count}项",cancel:"取消",clear_array_input:"清空列表",clear_input_value:"清空输入",clone:"克隆",close:"关闭",close_menu:"关闭菜单",confirm:"确认",create:"新建",create_item:"新建 %{item}",delete:"删除",edit:"编辑",expand:"展开",export:"导出",list:"列表",move_down:"下移",move_up:"上移",open:"打开",open_menu:"打开菜单",refresh:"刷新",remove:"删除",remove_all_filters:"移除所有检索",remove_filter:"移除检索",save:"保存",search:"检索",select_all:"选择所有",select_columns:"列",select_row:"选择此行",show:"查看",sort:"排序",toggle_theme:"切换主题",undo:"撤销",unselect:"反选",update:"更新",update_application:"重载应用"},auth:{auth_check_error:"请登录以继续",user_menu:"设置",username:"用户名",password:"密码",sign_in:"登录",sign_in_error:"验证失败, 请重试",logout:"登出"},boolean:{true:"是",false:"否",null:" "},configurable:{customize:"自定义",configureMode:"配置此页面",inspector:{title:"Inspector",content:"悬停应用程序UI元素来配置它们",reset:"重置设置",hideAll:"隐藏所有",showAll:"显示所有"},Datagrid:{title:"数据网格",unlabeled:"未设置标签的列 #%{column}"},SimpleForm:{title:"表单",unlabeled:"未设置标签的输入框 #%{input}"},SimpleList:{title:"列表",primaryText:"主要的文本",secondaryText:"二级文本",tertiaryText:"三级文本"}},input:{file:{upload_several:"将文件集合拖拽到这里, 或点击这里选择文件集合.",upload_single:"将文件拖拽到这里, 或点击这里选择文件."},image:{upload_several:"将图片文件集合拖拽到这里, 或点击这里选择图片文件集合.",upload_single:"将图片文件拖拽到这里, 或点击这里选择图片文件."},password:{toggle_visible:"隐藏密码",toggle_hidden:"显示密码"},references:{all_missing:"未找到参考数据.",many_missing:"至少有一条参考数据不再可用.",single_missing:"关联的参考数据不再可用."}},message:{about:"关于",are_you_sure:"您确定操作?",bulk_delete_content:"您确定要删除 %{name}? |||| 您确定要删除 %{smart_count} 项?",bulk_delete_title:"删除 %{name} |||| 删除 %{smart_count}项 %{name} ",delete_content:"您确定要删除该条目?",delete_title:"删除 %{name} #%{id}",error:"客户端错误导致请求未完成.",invalid_form:"表单输入无效. 请检查错误提示",loading:"正在加载页面, 请稍候",no:"否",not_found:"您输入了错误的URL或者错误的链接.",unsaved_changes:"修改未保存. 放弃修改吗?",yes:"是",auth_error:"身份认证出错",bulk_update_content:"是否确实要更新此 %{name}? |||| 是否确实要更新这些 %{smart_count} ?",bulk_update_title:"更新 %{name} |||| 更新 %{smart_count} %{name}",clear_array_input:"您确定要清除整个列表吗?",details:"详情"},navigation:{no_results:"结果为空",no_more_results:"页码 %{page} 超出边界. 试试上一页.",page_out_of_boundaries:"页码 %{page} 超出边界",page_out_from_end:"已到最末页",page_out_from_begin:"已到最前页",page_range_info:"%{offsetBegin}-%{offsetEnd} / %{total}",page_rows_per_page:"每页行数:",next:"向后",prev:"向前",skip_nav:"跳到内容",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}",current_page:"页码 %{page}",page:"跳到页码 %{page}",first:"第一页",last:"最后一页",previous:"向前"},notification:{updated:"条目已更新 |||| %{smart_count} 项条目已更新",created:"条目已新建",deleted:"条目已删除 |||| %{smart_count} 项条目已删除",bad_item:"不正确的条目",item_doesnt_exist:"条目不存在",http_error:"与服务通信出错",canceled:"取消动作",data_provider_error:"dataProvider错误. 请检查console的详细信息.",i18n_error:"无法加载指定语言包",logged_out:"会话失效, 请重连.",not_authorized:"你没有权限访问此资源.",application_update_available:"新版本可用."},page:{create:"新建 %{name}",dashboard:"概览",edit:"%{name} #%{id}",empty:"无 %{name} ",error:"出现错误",invite:"要增加吗?",list:"%{name} 列表",loading:"加载中",not_found:"未发现",show:"%{name} #%{id}"},saved_queries:{label:"保存查询",query_name:"查询名称",new_label:"保存当前查询...",new_dialog_title:"保存当前查询为",remove_label:"删除保存的查询",remove_label_with_name:'删除查询 "%{name}"',remove_dialog_title:"删除保存的查询?",remove_message:"确定要从保存的查询列表中删除该项吗?",help:"过滤列表,并保存此查询"},sort:{sort_by:"按 %{field} %{order}",ASC:"升序",DESC:"降序"},validation:{required:"必填",minLength:"必须不少于 %{min} 个字符",maxLength:"必须不多于 %{max} 个字符",minValue:"必须不小于 %{min}",maxValue:"必须不大于 %{max}",number:"必须为数字",email:"必须是有效的邮箱",oneOf:"必须为: %{options}其中一项",regex:"必须符合指定的格式 (regexp): %{pattern}"}}},xS=jV.default=J5e;const Z5e={...xS,ra:{...xS.ra,navigation:{...xS.ra.navigation,no_filtered_results:"没有结果",clear_filters:"清除所有过滤器"}},synapseadmin:{auth:{base_url:"服务器 URL",welcome:"欢迎来到 Synapse-admin",server_version:"Synapse 版本",username_error:"请输入完整有效的用户 ID: '@user:domain'",protocol_error:"URL 需要以'http://'或'https://'作为起始",url_error:"不是一个有效的 Matrix 服务器地址",sso_sign_in:"使用 SSO 登录"},users:{invalid_user_id:"必须要是一个有效的 Matrix 用户 ID ,例如 @user_id:homeserver",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"基本",members:"成员",detail:"细节",permission:"权限"}},reports:{tabs:{basic:"基本",detail:"细节"}}},import_users:{error:{at_entry:"在条目 %{entry}: %{message}",error:"错误",required_field:"需要的值 '%{field}' 未被设置。",invalid_value:"第 %{row} 行出现无效值。 '%{field}' 只可以是 'true' 或 'false'。",unreasonably_big:"拒绝加载过大的文件: %{size} MB",already_in_progress:"一个导入进程已经在运行中",id_exits:"ID %{id} 已经存在"},title:"通过 CSV 导入用户",goToPdf:"转到 PDF",cards:{importstats:{header:"导入用户",users_total:"%{smart_count} 用户在 CSV 文件中 |||| %{smart_count} 用户在 CSV 文件中",guest_count:"%{smart_count} 访客 |||| %{smart_count} 访客",admin_count:"%{smart_count} 管理员 |||| %{smart_count} 管理员"},conflicts:{header:"冲突处理策略",mode:{stop:"在冲突处停止",skip:"显示错误并跳过冲突"}},ids:{header:"IDs",all_ids_present:"每条记录的 ID",count_ids_present:"%{smart_count} 个含 ID 的记录 |||| %{smart_count} 个含 ID 的记录",mode:{ignore:"忽略 CSV 中的 ID 并创建新的",update:"更新已经存在的记录"}},passwords:{header:"密码",all_passwords_present:"每条记录的密码",count_passwords_present:"%{smart_count} 个含密码的记录 |||| %{smart_count} 个含密码的记录",use_passwords:"使用 CSV 中标记的密码"},upload:{header:"导入 CSV 文件",explanation:"在这里,你可以上传一个用逗号分隔的文件,用于创建或更新用户。该文件必须包括 'id' 和 'displayname' 字段。你可以在这里下载并修改一个示例文件:"},startImport:{simulate_only:"模拟模式",run_import:"导入"},results:{header:"导入结果",total:"共计 %{smart_count} 条记录 |||| 共计 %{smart_count} 条记录",successful:"%{smart_count} 条记录导入成功",skipped:"跳过 %{smart_count} 条记录",download_skipped:"下载跳过的记录",with_error:"%{smart_count} 条记录出现错误 ||| %{smart_count} 条记录出现错误",simulated_only:"只是一次模拟运行"}}},delete_media:{name:"媒体文件",fields:{before_ts:"最后访问时间",size_gt:"大于 (字节)",keep_profiles:"保留头像"},action:{send:"删除媒体",send_success:"请求发送成功。",send_failure:"出现了一个错误。"},helper:{send:"这个API会删除您硬盘上的本地媒体。包含了任何的本地缓存和下载的媒体备份。这个API不会影响上传到外部媒体存储库上的媒体文件。"}},resources:{users:{name:"用户",email:"邮箱",msisdn:"电话",threepid:"邮箱 / 电话",fields:{avatar:"邮箱",id:"用户 ID",name:"用户名",is_guest:"访客",admin:"服务器管理员",deactivated:"被禁用",guests:"显示访客",show_deactivated:"显示被禁用的账户",user_id:"搜索用户",displayname:"显示名字",password:"密码",avatar_url:"头像 URL",avatar_src:"头像",medium:"Medium",threepids:"3PIDs",address:"地址",creation_ts_ms:"创建时间戳",consent_version:"协议版本"},helper:{deactivate:"您必须提供一串密码来激活账户。",erase:"将用户标记为根据 GDPR 的要求抹除了"},action:{erase:"抹除用户信息"}},rooms:{name:"房间",fields:{room_id:"房间 ID",name:"房间名",canonical_alias:"别名",joined_members:"成员",joined_local_members:"本地成员",state_events:"状态事件",version:"版本",is_encrypted:"已经加密",encryption:"加密",federatable:"可联合的",public:"公开",creator:"创建者",join_rules:"加入规则",guest_access:"访客访问",history_visibility:"历史可见性"},enums:{join_rules:{public:"公开",knock:"申请",invite:"邀请",private:"私有"},guest_access:{can_join:"访客可以加入",forbidden:"访客不可加入"},history_visibility:{invited:"自从被邀请",joined:"自从加入",shared:"自从分享",world_readable:"任何人"},unencrypted:"未加密"}},reports:{name:"报告事件",fields:{id:"ID",received_ts:"报告时间",user_id:"报告者",name:"房间名",score:"分数",reason:"原因",event_id:"事件 ID",event_json:{origin:"原始服务器",origin_server_ts:"发送时间",type:"事件类型",content:{msgtype:"内容类型",body:"内容",format:"格式",formatted_body:"格式化的数据",algorithm:"算法"}}}},connections:{name:"连接",fields:{last_seen:"日期",ip:"IP 地址",user_agent:"用户代理 (UA)"}},devices:{name:"设备",fields:{device_id:"设备 ID",display_name:"设备名",last_seen_ts:"时间戳",last_seen_ip:"IP 地址"},action:{erase:{title:"移除 %{id}",content:'您确定要移除设备 "%{name}"?',success:"设备移除成功。",failure:"出现了一个错误。"}}},users_media:{name:"媒体文件",fields:{media_id:"媒体文件 ID",media_length:"长度",media_type:"类型",upload_name:"文件名",quarantined_by:"被隔离",safe_from_quarantine:"取消隔离",created_ts:"创建",last_access_ts:"上一次访问"}},pushers:{name:"发布者",fields:{app:"App",app_display_name:"App 名称",app_id:"App ID",device_display_name:"设备显示名",kind:"类型",lang:"语言",profile_tag:"数据标签",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"服务器提示",send:"发送服务器提示",fields:{body:"信息"},action:{send:"发送提示",send_success:"服务器提示发送成功。",send_failure:"出现了一个错误。"},helper:{send:'向选中的用户发送服务器提示。服务器配置中的 "服务器提示(Server Notices)" 选项需要被设置为启用。'}},user_media_statistics:{name:"用户的媒体文件",fields:{media_count:"媒体文件统计",media_length:"媒体文件长度"}}}},IV=d.createContext({}),eBe=()=>d.useContext(IV),tBe=te(aa)(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"calc(100vh - 1rem)",alignItems:"center",justifyContent:"flex-start",background:"url(./images/floating-cogs.svg)",backgroundColor:"#f9f9f9",backgroundRepeat:"no-repeat",backgroundSize:"cover","& .card":{width:"30rem",marginTop:"6rem",marginBottom:"6rem"},"& .avatar":{margin:"1rem",display:"flex",justifyContent:"center"},"& .icon":{backgroundColor:e.palette.grey[500]},"& .hint":{marginTop:"1em",marginBottom:"1em",display:"flex",justifyContent:"center",color:e.palette.grey[600]},"& .form":{padding:"0 1rem 1rem 1rem"},"& .select":{marginBottom:"2rem"},"& .actions":{padding:"0 1rem 1rem 1rem"},"& .serverVersion":{color:e.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",marginLeft:"0.5rem"},"& .matrixVersions":{color:e.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.8rem",marginBottom:"1rem",marginLeft:"0.5rem"}})),rBe=()=>{const e=g6(),t=gr(),{restrictBaseUrl:r}=eBe(),n=typeof r=="string",a=Array.isArray(r),o=!(n||a),[i,l]=d.useState(!1),[c,s]=d.useState(!0),[f,h]=$R(),v=kR(),m=Be(),b=n?r:Ut.getItem("base_url"),[w,O]=d.useState(""),_=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(_){const C=_[1];console.log("SSO token is",C),window.history.replaceState({},"",window.location.href.replace(_[0],"#").split("#")[0]);const $=Ut.getItem("sso_base_url");if(Ut.removeItem("sso_base_url"),$){const R={base_url:$,username:null,password:null,loginToken:C};console.log("Base URL is:",$),console.log("SSO Token is:",C),console.log("Let's try token login..."),e(R).catch(k=>{alert(typeof k=="string"?k:typeof k>"u"||!k.message?"ra.auth.sign_in_error":k.message),console.error(k)})}}const y=C=>C.match(/^(http|https):\/\//)?C.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:m("synapseadmin.auth.url_error"):m("synapseadmin.auth.protocol_error"),x=C=>{l(!0),e(C).catch($=>{l(!1),t(typeof $=="string"?$:typeof $>"u"||!$.message?"ra.auth.sign_in_error":$.message,{type:"warning"})})},S=()=>{Ut.setItem("sso_base_url",w);const C=`${w}/_matrix/client/r0/login/sso/redirect?redirectUrl=${encodeURIComponent(window.location.href)}`;window.location.href=C},P=({formData:C})=>{const $=Mo(),[R,k]=d.useState(""),[I,M]=d.useState(""),F=()=>{var B;if(C.base_url||n)return;const L=(B=I5e(C.username))==null?void 0:B.domain;L&&A5e(L).then(V=>{(o||a&&r.includes(V))&&$.setValue("base_url",V)})};return d.useEffect(()=>{C.base_url===""&&a&&$.setValue("base_url",r[0]),T5e(C.base_url)&&(M5e(C.base_url).then(L=>k(`${m("synapseadmin.auth.server_version")} ${L}`)).catch(()=>k("")),F5e(C.base_url).then(L=>M(`${m("synapseadmin.auth.supports_specs")} ${L.versions.join(", ")}`)).catch(()=>M("")),L5e(C.base_url).then(L=>{const B=L.find(H=>H.type==="m.login.password")!==void 0,V=L.find(H=>H.type==="m.login.sso")!==void 0;s(B),O(V?C.base_url:"")}).catch(()=>O("")))},[C.base_url,$]),E.jsxs(E.Fragment,{children:[E.jsx(aa,{children:E.jsx(fn,{autoFocus:!0,source:"username",label:"ra.auth.username",autoComplete:"username",disabled:i||!c,onBlur:F,resettable:!0,validate:Va()})}),E.jsx(aa,{children:E.jsx(J$,{source:"password",label:"ra.auth.password",type:"password",autoComplete:"current-password",disabled:i||!c,resettable:!0,validate:Va()})}),E.jsx(aa,{children:E.jsx(fn,{source:"base_url",label:"synapseadmin.auth.base_url",select:a,autoComplete:"url",disabled:i,readOnly:n,resettable:o,validate:[Va(),y],children:a&&r.map(L=>E.jsx(za,{value:L,children:L},L))})}),E.jsx($t,{className:"serverVersion",children:R}),E.jsx($t,{className:"matrixVersions",children:I})]})};return E.jsxs(y_,{defaultValues:{base_url:b},onSubmit:x,mode:"onTouched",children:[E.jsx(tBe,{children:E.jsxs($c,{className:"card",children:[E.jsx(aa,{className:"avatar",children:i?E.jsx(lp,{size:25,thickness:2}):E.jsx(bv,{className:"icon",children:E.jsx(cm,{})})}),E.jsx(aa,{className:"hint",children:m("synapseadmin.auth.welcome")}),E.jsxs(aa,{className:"form",children:[E.jsx(b1,{value:f,onChange:C=>h(C.target.value),fullWidth:!0,disabled:i,className:"select",children:v.map(C=>E.jsx(za,{value:C.locale,children:C.name},C.locale))}),E.jsx(XE,{children:C=>E.jsx(P,{...C})}),E.jsxs(W9,{className:"actions",children:[E.jsx(nn,{variant:"contained",type:"submit",color:"primary",disabled:i||!c,fullWidth:!0,children:m("ra.auth.sign_in")}),E.jsx(nn,{variant:"contained",color:"secondary",onClick:S,disabled:i||w==="",fullWidth:!0,children:m("synapseadmin.auth.sso_sign_in")})]})]})]})}),E.jsx(e8,{})]})};var ak={},nBe=He;Object.defineProperty(ak,"__esModule",{value:!0});var TV=ak.default=void 0,aBe=nBe(Ke()),oBe=E;TV=ak.default=(0,aBe.default)((0,oBe.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var ok={},iBe=He;Object.defineProperty(ok,"__esModule",{value:!0});var AV=ok.default=void 0,sBe=iBe(Ke()),lBe=E;AV=ok.default=(0,sBe.default)((0,lBe.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.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"}),"CloudQueue");var ik={},uBe=He;Object.defineProperty(ik,"__esModule",{value:!0});var Mc=ik.default=void 0,cBe=uBe(Ke()),dBe=E;Mc=ik.default=(0,cBe.default)((0,dBe.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2z"}),"FolderShared");const Vn={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},sk=e=>new Date(e).getTime(),fBe=e=>{if(e==null)return"";const t=new Date(e),r="00",n=t.getFullYear().toString(),a=(r+(t.getMonth()+1).toString()).slice(-2),o=(r+t.getDate().toString()).slice(-2),i=(r+t.getHours().toString()).slice(-2),l=(r+t.getMinutes().toString()).slice(-2);return`${n}-${a}-${o}T${i}:${l}`},MV=()=>E.jsx(Ic,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),pBe=[E.jsx(R1,{source:"destination",alwaysOn:!0})],FV=()=>{const e=Kt(),t=Ni(),r=gr(),[n,{isLoading:a}]=Hv();if(!e||!e.failure_ts)return null;const o=i=>{i.stopPropagation(),n("destinations",{id:e.id},{onSuccess:()=>{r("ra.notification.updated",{messageArgs:{smart_count:1}}),t()},onError:()=>{r("ra.message.error",{type:"error"})}})};return E.jsx(cr,{label:"resources.destinations.action.reconnect",onClick:o,disabled:a,children:E.jsx(TV,{})})},hBe=()=>E.jsx(Do,{children:E.jsx(FV,{})}),vBe=()=>{const e=Kt(),t=Be();return E.jsxs("span",{children:[t("resources.destinations.name",1)," ",e==null?void 0:e.destination]})},mBe=e=>{const t=Kt(e);return e.source&&Lv.get(t,e.source)===0?E.jsx(Pn,{...e,record:{...t,[e.source]:null}}):E.jsx(Pn,{...e})},gBe=e=>{const{palette:{error:t,mode:r}}=Ja(),n=a=>({backgroundColor:a.retry_last_ts>0?o9(t[r],.5):void 0,"& > td":r==="dark"?{color:a.retry_last_ts>0?"black":"white","& > button":{color:Eu[700]}}:void 0});return E.jsx(Ac,{...e,filters:pBe,pagination:E.jsx(MV,{}),sort:{field:"destination",order:"ASC"},children:E.jsxs(Un,{rowSx:n,rowClick:a=>`${a}/show/rooms`,bulkActionButtons:!1,children:[E.jsx(ze,{source:"destination"}),E.jsx(Pn,{source:"failure_ts",showTime:!0,options:Vn}),E.jsx(mBe,{source:"retry_last_ts",showTime:!0,options:Vn}),E.jsx(ze,{source:"retry_interval"}),E.jsx(ze,{source:"last_successful_stream_ordering"}),E.jsx(FV,{})]})})},yBe=e=>{const t=Be();return E.jsx(Z$,{actions:E.jsx(hBe,{}),title:E.jsx(vBe,{}),...e,children:E.jsxs($1,{children:[E.jsxs(Jo,{label:"status",icon:E.jsx(jc,{}),children:[E.jsx(ze,{source:"destination"}),E.jsx(Pn,{source:"failure_ts",showTime:!0,options:Vn}),E.jsx(Pn,{source:"retry_last_ts",showTime:!0,options:Vn}),E.jsx(ze,{source:"retry_interval"}),E.jsx(ze,{source:"last_successful_stream_ordering"})]}),E.jsx(Jo,{label:t("resources.rooms.name",{smart_count:2}),icon:E.jsx(Mc,{}),path:"rooms",children:E.jsx(El,{reference:"destination_rooms",target:"destination",label:!1,pagination:E.jsx(MV,{}),perPage:50,children:E.jsxs(Un,{style:{width:"100%"},rowClick:r=>`/rooms/${r}/show`,children:[E.jsx(ze,{source:"room_id",label:"resources.rooms.fields.room_id"}),E.jsx(ze,{source:"stream_ordering",sortable:!1}),E.jsx(hs,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:E.jsx(ze,{source:"name",sortable:!1})})]})})})]})})},bBe={name:"destinations",icon:AV,list:gBe,show:yBe};var lk={},_Be=He;Object.defineProperty(lk,"__esModule",{value:!0});var LV=lk.default=void 0,xBe=_Be(Ke()),wBe=E;LV=lk.default=(0,xBe.default)((0,wBe.jsx)("path",{d:"M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2m-9 7.5h-2v-2h2zm0-4.5h-2v-2h2zm0-4.5h-2v-2h2z"}),"ConfirmationNumber");const SBe=[qR(/^[A-Za-z0-9._~-]{0,64}$/)],DV=[Az()],EBe=[Az(),Y0e(64)],CBe=[E.jsx(Oi,{source:"valid",alwaysOn:!0})],OBe=e=>E.jsx(Ac,{...e,filters:CBe,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:E.jsxs(Un,{rowClick:"edit",children:[E.jsx(ze,{source:"token",sortable:!1}),E.jsx(ji,{source:"uses_allowed",sortable:!1}),E.jsx(ji,{source:"pending",sortable:!1}),E.jsx(ji,{source:"completed",sortable:!1}),E.jsx(Pn,{source:"expiry_time",showTime:!0,options:Vn,sortable:!1})]})}),PBe=e=>E.jsx(W8,{...e,redirect:"list",children:E.jsxs(mm,{toolbar:E.jsx(vm,{children:E.jsx(E1,{alwaysEnable:!0})}),children:[E.jsx(fn,{source:"token",autoComplete:"off",validate:SBe,resettable:!0}),E.jsx(Qd,{source:"length",validate:EBe,helperText:"resources.registration_tokens.helper.length",step:1}),E.jsx(Qd,{source:"uses_allowed",validate:DV,step:1}),E.jsx(K$,{source:"expiry_time",parse:sk})]})}),RBe=e=>E.jsx(H8,{...e,children:E.jsxs(mm,{children:[E.jsx(fn,{source:"token",disabled:!0}),E.jsx(Qd,{source:"pending",disabled:!0}),E.jsx(Qd,{source:"completed",disabled:!0}),E.jsx(Qd,{source:"uses_allowed",validate:DV,step:1}),E.jsx(K$,{source:"expiry_time",parse:sk,format:fBe})]})}),$Be={name:"registration_tokens",icon:LV,list:OBe,edit:RBe,create:PBe};var uk={},kBe=He;Object.defineProperty(uk,"__esModule",{value:!0});var ck=uk.default=void 0,jBe=kBe(Ke()),IBe=E;ck=uk.default=(0,jBe.default)((0,IBe.jsx)("path",{d:"M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-3.21 14.21-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9z"}),"Pageview");var dk={},TBe=He;Object.defineProperty(dk,"__esModule",{value:!0});var NV=dk.default=void 0,ABe=TBe(Ke()),MBe=E;NV=dk.default=(0,ABe.default)((0,MBe.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");var fk={},FBe=He;Object.defineProperty(fk,"__esModule",{value:!0});var KO=fk.default=void 0,LBe=FBe(Ke()),DBe=E;KO=fk.default=(0,LBe.default)((0,DBe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");var pk={},NBe=He;Object.defineProperty(pk,"__esModule",{value:!0});var hk=pk.default=void 0,BBe=NBe(Ke()),zBe=E;hk=pk.default=(0,BBe.default)((0,zBe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var vk={},UBe=He;Object.defineProperty(vk,"__esModule",{value:!0});var mk=vk.default=void 0,VBe=UBe(Ke()),WBe=E;mk=vk.default=(0,VBe.default)((0,WBe.jsx)("path",{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3zM14 5h-3l-1-1H6L5 5H2v2h12z"}),"DeleteSweep");var gk={},HBe=He;Object.defineProperty(gk,"__esModule",{value:!0});var BV=gk.default=void 0,qBe=HBe(Ke()),GBe=E;BV=gk.default=(0,qBe.default)((0,GBe.jsx)("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H15v-8h5V8zm-1 7V3.5L18.5 9zm4 12.66V16h5.66v2h-2.24l2.95 2.95-1.41 1.41L19 19.41v2.24h-2z"}),"FileOpen");var yk={},KBe=He;Object.defineProperty(yk,"__esModule",{value:!0});var zV=yk.default=void 0,QBe=KBe(Ke()),XBe=E;zV=yk.default=(0,QBe.default)((0,XBe.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"}),"LockOpen");const YBe=({open:e,onClose:t,onSubmit:r})=>{const n=Be(),a=o=>E.jsxs(vm,{...o,children:[E.jsx(E1,{label:"delete_media.action.send",icon:E.jsx(mk,{})}),E.jsx(cr,{label:"ra.action.cancel",onClick:t,children:E.jsx(hk,{})})]});return E.jsxs(im,{open:e,onClose:t,children:[E.jsx(lm,{children:n("delete_media.action.send")}),E.jsxs(sm,{children:[E.jsx(m1,{children:n("delete_media.helper.send")}),E.jsxs(mm,{toolbar:E.jsx(a,{}),onSubmit:r,children:[E.jsx(K$,{source:"before_ts",label:"delete_media.fields.before_ts",defaultValue:0,parse:sk}),E.jsx(Qd,{source:"size_gt",label:"delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),E.jsx(Oi,{source:"keep_profiles",label:"delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},JBe=e=>{const t=Ja(),[r,n]=d.useState(!1),a=gr(),o=Xa(),{mutate:i,isPending:l}=Cc({mutationFn:f=>o.deleteMedia(f),onSuccess:()=>{a("delete_media.action.send_success"),s()},onError:()=>{a("delete_media.action.send_failure",{type:"error"})}}),c=()=>n(!0),s=()=>n(!1);return E.jsxs(E.Fragment,{children:[E.jsx(cr,{...e,label:"delete_media.action.send",onClick:c,disabled:l,sx:{color:t.palette.error.main,"&:hover":{backgroundColor:$f(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:E.jsx(mk,{})}),E.jsx(YBe,{open:r,onClose:s,onSubmit:i})]})},ZBe=e=>{const t=Kt(),r=Be(),n=Ni(),a=gr(),[o,{isLoading:i}]=Wv(),[l]=Hv();if(!t)return null;const c=()=>{o("protect_media",{data:t},{onSuccess:()=>{a("resources.protect_media.action.send_success"),n()},onError:()=>a("resources.protect_media.action.send_failure",{type:"error"})})},s=()=>{l("protect_media",{id:t.id},{onSuccess:()=>{a("resources.protect_media.action.send_success"),n()},onError:()=>a("resources.protect_media.action.send_failure",{type:"error"})})};return E.jsxs(E.Fragment,{children:[t.quarantined_by&&E.jsx(kn,{title:r("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:E.jsx("div",{children:E.jsx(cr,{...e,disabled:!0,children:E.jsx(wc,{})})})}),t.safe_from_quarantine&&E.jsx(kn,{title:r("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:E.jsx("div",{children:E.jsx(cr,{...e,onClick:s,disabled:i,children:E.jsx(cm,{})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&E.jsx(kn,{title:r("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:E.jsx("div",{children:E.jsx(cr,{...e,onClick:c,disabled:i,children:E.jsx(zV,{})})})})]})},eze=e=>{const t=Kt(),r=Be(),n=Ni(),a=gr(),[o,{isLoading:i}]=Wv(),[l]=Hv();if(!t)return null;const c=()=>{o("quarantine_media",{data:t},{onSuccess:()=>{a("resources.quarantine_media.action.send_success"),n()},onError:()=>a("resources.quarantine_media.action.send_failure",{type:"error"})})},s=()=>{l("quarantine_media",{id:t.id,previousData:t},{onSuccess:()=>{a("resources.quarantine_media.action.send_success"),n()},onError:()=>a("resources.quarantine_media.action.send_failure",{type:"error"})})};return E.jsxs(E.Fragment,{children:[t.safe_from_quarantine&&E.jsx(kn,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:E.jsx("div",{children:E.jsx(cr,{...e,disabled:!0,children:E.jsx(wc,{})})})}),t.quarantined_by&&E.jsx(kn,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:E.jsx("div",{children:E.jsx(cr,{...e,onClick:s,disabled:i,children:E.jsx(KO,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&E.jsx(kn,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:E.jsx("div",{children:E.jsx(cr,{...e,onClick:c,disabled:i,children:E.jsx(KO,{})})})})]})},UV=({media_id:e,label:t})=>{const r=Be(),n=D5e(e);return E.jsxs(aa,{style:{whiteSpace:"pre"},children:[E.jsx(kn,{title:r("resources.users_media.action.open"),children:E.jsx("span",{children:E.jsx(cr,{component:PV,to:n,target:"_blank",rel:"noopener",style:{minWidth:0,paddingLeft:0,paddingRight:0},children:E.jsx(BV,{})})})}),t]})},tze=({source:e})=>{var a;const t=Ut.getItem("home_server"),r=Kt();if(!r)return null;const n=(a=Lv.get(r,e))==null?void 0:a.toString();return n?E.jsx(UV,{media_id:`${t}/${n}`,label:n}):null},rze=({source:e})=>{var a;const t=Kt();if(!t)return null;const r=(a=Lv.get(t,e))==null?void 0:a.toString();if(!r)return null;const n=r.replace("mxc://","");return E.jsx(UV,{media_id:n,label:r})},nze=()=>E.jsx(Ic,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),aze=e=>{const t=Be();return E.jsx(Z$,{...e,actions:E.jsx(oze,{}),children:E.jsxs($1,{children:[E.jsxs(Jo,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:E.jsx(jc,{}),children:[E.jsx(Pn,{source:"received_ts",showTime:!0,options:Vn,sortable:!0}),E.jsx(hs,{source:"user_id",reference:"users",children:E.jsx(ze,{source:"id"})}),E.jsx(ji,{source:"score"}),E.jsx(ze,{source:"reason"}),E.jsx(ze,{source:"name"}),E.jsx(ze,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),E.jsx(hs,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:E.jsx(ze,{source:"id"})})]}),E.jsxs(Jo,{label:"synapseadmin.reports.tabs.detail",icon:E.jsx(ck,{}),path:"detail",children:[E.jsx(Pn,{source:"event_json.origin_server_ts",showTime:!0,options:Vn,sortable:!0}),E.jsx(hs,{source:"sender",reference:"users",children:E.jsx(ze,{source:"id"})}),E.jsx(ze,{source:"sender",label:"Sender (raw user ID)"}),E.jsx(ze,{source:"event_id"}),E.jsx(ze,{source:"event_json.origin"}),E.jsx(ze,{source:"event_json.type"}),E.jsx(ze,{source:"event_json.content.msgtype"}),E.jsx(ze,{source:"event_json.content.body"}),E.jsx(ze,{source:"event_json.content.info.mimetype"}),E.jsx(rze,{source:"event_json.content.url"}),E.jsx(ze,{source:"event_json.content.format"}),E.jsx(ze,{source:"event_json.content.formatted_body"}),E.jsx(ze,{source:"event_json.content.algorithm"}),E.jsx(ze,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})})},oze=()=>{const e=Kt();return E.jsx(Do,{children:E.jsx(fp,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},ize=e=>E.jsx(Ac,{...e,pagination:E.jsx(nze,{}),sort:{field:"received_ts",order:"DESC"},children:E.jsxs(Un,{rowClick:"show",bulkActionButtons:!1,children:[E.jsx(ze,{source:"id",sortable:!1}),E.jsx(Pn,{source:"received_ts",showTime:!0,options:Vn,sortable:!0}),E.jsx(ze,{sortable:!1,source:"user_id"}),E.jsx(ze,{sortable:!1,source:"name"}),E.jsx(ze,{sortable:!1,source:"score"})]})}),sze={name:"reports",icon:NV,list:ize,show:aze},bk=({source:e,...t})=>{var s;const r=Kt(t),n=(s=Lv.get(r,e))==null?void 0:s.toString(),{alt:a,classes:o,sizes:i,sx:l,variant:c}=t;return E.jsx(bv,{alt:a,classes:o,sizes:i,src:n,sx:l,variant:c})},lze=()=>E.jsx(Ic,{rowsPerPageOptions:[100,500,1e3,2e3]}),uze=e=>{const t=Be();return E.jsx(fp,{...e,label:"resources.room_directory.action.erase",redirect:!1,mutationMode:"pessimistic",confirmTitle:t("resources.room_directory.action.title",{smart_count:1}),confirmContent:t("resources.room_directory.action.content",{smart_count:1}),resource:"room_directory",icon:E.jsx(Mc,{})})},VV=e=>E.jsx(S1,{...e,label:"resources.room_directory.action.erase",mutationMode:"pessimistic",confirmTitle:"resources.room_directory.action.title",confirmContent:"resources.room_directory.action.content",resource:"room_directory",icon:E.jsx(Mc,{})}),cze=e=>{const{selectedIds:t}=Hn(),r=gr(),n=Ni(),a=uz("rooms"),o=Xa(),{mutate:i,isPending:l}=Cc({mutationFn:()=>o.createMany("room_directory",{ids:t,data:{}}),onSuccess:()=>{r("resources.room_directory.action.send_success"),a(),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})});return E.jsx(cr,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:l,children:E.jsx(Mc,{})})},dze=e=>{const t=Kt(),r=gr(),n=Ni(),[a,{isLoading:o}]=Wv();if(!t)return;const i=()=>{a("room_directory",{data:{id:t.id}},{onSuccess:()=>{r("resources.room_directory.action.send_success"),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})})};return E.jsx(cr,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:o,children:E.jsx(Mc,{})})},fze=()=>E.jsxs(Do,{children:[E.jsx(R8,{}),E.jsx(hm,{})]}),pze=()=>E.jsx(Ac,{pagination:E.jsx(lze,{}),perPage:100,actions:E.jsx(fze,{}),children:E.jsxs(P8,{rowClick:e=>"/rooms/"+e+"/show",bulkActionButtons:E.jsx(VV,{}),omit:["room_id","canonical_alias","topic"],children:[E.jsx(bk,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),E.jsx(ze,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),E.jsx(ze,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),E.jsx(ze,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),E.jsx(ze,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),E.jsx(ji,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),E.jsx(xo,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),E.jsx(xo,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})}),hze={name:"room_directory",icon:Mc,list:pze};var _k={},vze=He;Object.defineProperty(_k,"__esModule",{value:!0});var WV=_k.default=void 0,mze=vze(Ke()),gze=E;WV=_k.default=(0,mze.default)((0,gze.jsx)("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event");var xk={},yze=He;Object.defineProperty(xk,"__esModule",{value:!0});var HV=xk.default=void 0,bze=yze(Ke()),_ze=E;HV=xk.default=(0,bze.default)((0,_ze.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward");var wk={},xze=He;Object.defineProperty(wk,"__esModule",{value:!0});var Sk=wk.default=void 0,wze=xze(Ke()),Sze=E;Sk=wk.default=(0,wze.default)((0,Sze.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 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"}),"Group");var Ek={},Eze=He;Object.defineProperty(Ek,"__esModule",{value:!0});var QO=Ek.default=void 0,Cze=Eze(Ke()),Oze=E;QO=Ek.default=(0,Cze.default)((0,Oze.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Https");var Ck={},Pze=He;Object.defineProperty(Ck,"__esModule",{value:!0});var qV=Ck.default=void 0,Rze=Pze(Ke()),$ze=E;qV=Ck.default=(0,Rze.default)((0,$ze.jsx)("path",{d:"M21 21.78 4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H9.66L20 18.34V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5-2.56 0-4.64 1.93-4.94 4.4L8.9 7.24z"}),"NoEncryption");const kze=()=>E.jsx(Ic,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),jze=()=>{const e=Kt(),t=Be();let r="";return e&&(r=e.name!==""?e.name:e.id),E.jsxs("span",{children:[t("resources.rooms.name",1)," ",r]})},Ize=()=>{const e=Kt(),t=e!=null&&e.public?E.jsx(uze,{}):E.jsx(dze,{});return E.jsxs(Do,{children:[t,E.jsx(fp,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},Tze=e=>{const t=Be();return E.jsx(Z$,{...e,actions:E.jsx(Ize,{}),title:E.jsx(jze,{}),children:E.jsxs($1,{children:[E.jsxs(Jo,{label:"synapseadmin.rooms.tabs.basic",icon:E.jsx(jc,{}),children:[E.jsx(ze,{source:"room_id"}),E.jsx(ze,{source:"name"}),E.jsx(ze,{source:"topic"}),E.jsx(ze,{source:"canonical_alias"}),E.jsx(hs,{source:"creator",reference:"users",children:E.jsx(ze,{source:"id"})})]}),E.jsxs(Jo,{label:"synapseadmin.rooms.tabs.detail",icon:E.jsx(ck,{}),path:"detail",children:[E.jsx(ze,{source:"joined_members"}),E.jsx(ze,{source:"joined_local_members"}),E.jsx(ze,{source:"joined_local_devices"}),E.jsx(ze,{source:"state_events"}),E.jsx(ze,{source:"version"}),E.jsx(ze,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),E.jsx(Jo,{label:"synapseadmin.rooms.tabs.members",icon:E.jsx(Sk,{}),path:"members",children:E.jsx(El,{reference:"room_members",target:"room_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},rowClick:r=>"/users/"+r,bulkActionButtons:!1,children:[E.jsx(ze,{source:"id",sortable:!1,label:"resources.users.fields.id"}),E.jsx(hs,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:E.jsx(ze,{source:"displayname",sortable:!1})})]})})}),E.jsxs(Jo,{label:"synapseadmin.rooms.tabs.permission",icon:E.jsx(X$,{}),path:"permission",children:[E.jsx(xo,{source:"federatable"}),E.jsx(xo,{source:"public"}),E.jsx(gS,{source:"join_rules",choices:[{id:"public",name:"resources.rooms.enums.join_rules.public"},{id:"knock",name:"resources.rooms.enums.join_rules.knock"},{id:"invite",name:"resources.rooms.enums.join_rules.invite"},{id:"private",name:"resources.rooms.enums.join_rules.private"}]}),E.jsx(gS,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),E.jsx(gS,{source:"history_visibility",choices:[{id:"invited",name:"resources.rooms.enums.history_visibility.invited"},{id:"joined",name:"resources.rooms.enums.history_visibility.joined"},{id:"shared",name:"resources.rooms.enums.history_visibility.shared"},{id:"world_readable",name:"resources.rooms.enums.history_visibility.world_readable"}]})]}),E.jsx(Jo,{label:t("resources.room_state.name",{smart_count:2}),icon:E.jsx(WV,{}),path:"state",children:E.jsx(El,{reference:"room_state",target:"room_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},bulkActionButtons:!1,children:[E.jsx(ze,{source:"type",sortable:!1}),E.jsx(Pn,{source:"origin_server_ts",showTime:!0,options:Vn,sortable:!1}),E.jsx(ze,{source:"content",sortable:!1}),E.jsx(hs,{source:"sender",reference:"users",sortable:!1,children:E.jsx(ze,{source:"id"})})]})})}),E.jsxs(Jo,{label:"resources.forward_extremities.name",icon:E.jsx(HV,{}),path:"forward_extremities",children:[E.jsx(aa,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),E.jsx(El,{reference:"forward_extremities",target:"room_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},bulkActionButtons:!1,children:[E.jsx(ze,{source:"id",sortable:!1}),E.jsx(Pn,{source:"received_ts",showTime:!0,options:Vn,sortable:!1}),E.jsx(ji,{source:"depth",sortable:!1}),E.jsx(ze,{source:"state_group",sortable:!1})]})})]})]})})},Aze=()=>E.jsxs(E.Fragment,{children:[E.jsx(cze,{}),E.jsx(VV,{}),E.jsx(S1,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),Mze=[E.jsx(R1,{source:"search_term",alwaysOn:!0})],Fze=()=>E.jsxs(Do,{children:[E.jsx(R8,{}),E.jsx(hm,{})]}),Lze=e=>{const t=Ja();return E.jsx(Ac,{...e,pagination:E.jsx(kze,{}),sort:{field:"name",order:"ASC"},filters:Mze,actions:E.jsx(Fze,{}),children:E.jsxs(P8,{rowClick:"show",bulkActionButtons:E.jsx(Aze,{}),omit:["joined_local_members","state_events","version","federatable"],children:[E.jsx(xo,{source:"is_encrypted",sortBy:"encryption",TrueIcon:QO,FalseIcon:qV,label:E.jsx(QO,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),E.jsx(d4e,{source:"name",render:r=>r.name||r.canonical_alias||r.id}),E.jsx(ze,{source:"joined_members"}),E.jsx(ze,{source:"joined_local_members"}),E.jsx(ze,{source:"state_events"}),E.jsx(ze,{source:"version"}),E.jsx(xo,{source:"federatable"}),E.jsx(xo,{source:"public"})]})})},Dze={name:"rooms",icon:jc,list:Lze,show:Tze};var Ok={},Nze=He;Object.defineProperty(Ok,"__esModule",{value:!0});var GV=Ok.default=void 0,Bze=Nze(Ke()),zze=E;GV=Ok.default=(0,Bze.default)((0,zze.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer");const Uze=()=>{const{isLoading:e,total:t}=Hn();return E.jsxs(Do,{children:[E.jsx(JBe,{}),E.jsx(hm,{disabled:e||t===0})]})},Vze=()=>E.jsx(Ic,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Wze=[E.jsx(R1,{source:"search_term",alwaysOn:!0})],Hze=e=>E.jsx(Ac,{...e,actions:E.jsx(Uze,{}),filters:Wze,pagination:E.jsx(Vze,{}),sort:{field:"media_length",order:"DESC"},children:E.jsxs(Un,{rowClick:t=>"/users/"+t+"/media",bulkActionButtons:!1,children:[E.jsx(ze,{source:"user_id",label:"resources.users.fields.id"}),E.jsx(ze,{source:"displayname",label:"resources.users.fields.displayname"}),E.jsx(ji,{source:"media_count"}),E.jsx(ji,{source:"media_length"})]})}),qze={name:"user_media_statistics",icon:GV,list:Hze};var Pk={},Gze=He;Object.defineProperty(Pk,"__esModule",{value:!0});var KV=Pk.default=void 0,Kze=Gze(Ke()),Qze=E;KV=Pk.default=(0,Kze.default)((0,Qze.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1z"}),"AssignmentInd");var Rk={},Xze=He;Object.defineProperty(Rk,"__esModule",{value:!0});var QV=Rk.default=void 0,Yze=Xze(Ke()),Jze=E;QV=Rk.default=(0,Yze.default)((0,Jze.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail");var $k={},Zze=He;Object.defineProperty($k,"__esModule",{value:!0});var XV=$k.default=void 0,e6e=Zze(Ke()),t6e=E;XV=$k.default=(0,e6e.default)((0,t6e.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"}),"Devices");var kk={},r6e=He;Object.defineProperty(kk,"__esModule",{value:!0});var YV=kk.default=void 0,n6e=r6e(Ke()),a6e=E;YV=kk.default=(0,n6e.default)((0,a6e.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var jk={},o6e=He;Object.defineProperty(jk,"__esModule",{value:!0});var JV=jk.default=void 0,i6e=o6e(Ke()),s6e=E;JV=jk.default=(0,i6e.default)((0,s6e.jsx)("path",{d:"M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M7 15l4.5-6 3.5 4.51 2.5-3.01L21 15z"}),"PermMedia");var Ik={},l6e=He;Object.defineProperty(Ik,"__esModule",{value:!0});var ZV=Ik.default=void 0,u6e=l6e(Ke()),c6e=E;ZV=Ik.default=(0,u6e.default)((0,c6e.jsx)("path",{d:"M12 2c-4.97 0-9 4.03-9 9 0 4.17 2.84 7.67 6.69 8.69L12 22l2.31-2.31C18.16 18.67 21 15.17 21 11c0-4.97-4.03-9-9-9m0 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m0 14.3c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22"}),"PersonPin");var Tk={},d6e=He;Object.defineProperty(Tk,"__esModule",{value:!0});var eW=Tk.default=void 0,f6e=d6e(Ke()),p6e=E;eW=Tk.default=(0,f6e.default)((0,p6e.jsx)("path",{d:"M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6z"}),"SettingsInputComponent");var Ak={},h6e=He;Object.defineProperty(Ak,"__esModule",{value:!0});var Mk=Ak.default=void 0,v6e=h6e(Ke()),m6e=E;Mk=Ak.default=(0,v6e.default)((0,m6e.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-2 12H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"}),"Message");const tW=({open:e,onClose:t,onSubmit:r})=>{const n=Be(),a=o=>E.jsxs(vm,{...o,children:[E.jsx(E1,{label:"resources.servernotices.action.send",disabled:o.pristine}),E.jsx(cr,{label:"ra.action.cancel",onClick:t,children:E.jsx(hk,{})})]});return E.jsxs(im,{open:e,onClose:t,children:[E.jsx(lm,{children:n("resources.servernotices.action.send")}),E.jsxs(sm,{children:[E.jsx(m1,{children:n("resources.servernotices.helper.send")}),E.jsx(mm,{toolbar:E.jsx(a,{}),onSubmit:r,children:E.jsx(fn,{source:"body",label:"resources.servernotices.fields.body",multiline:!0,rows:"4",resettable:!0,validate:Va()})})]})]})},g6e=()=>{const e=Kt(),[t,r]=d.useState(!1),n=gr(),[a,{isLoading:o}]=Wv(),i=()=>r(!0),l=()=>r(!1);if(!e)return;const c=s=>{a("servernotices",{data:{id:e.id,...s}},{onSuccess:()=>{n("resources.servernotices.action.send_success"),l()},onError:()=>n("resources.servernotices.action.send_failure",{type:"error"})})};return E.jsxs(E.Fragment,{children:[E.jsx(cr,{label:"resources.servernotices.send",onClick:i,disabled:o,children:E.jsx(Mk,{})}),E.jsx(tW,{open:t,onClose:l,onSubmit:c})]})},y6e=()=>{const{selectedIds:e}=Hn(),[t,r]=d.useState(!1),n=()=>r(!0),a=()=>r(!1),o=gr(),i=uz("users"),l=Xa(),{mutate:c,isPending:s}=Cc({mutationFn:f=>l.createMany("servernotices",{ids:e,data:f}),onSuccess:()=>{o("resources.servernotices.action.send_success"),i(),a()},onError:()=>o("resources.servernotices.action.send_failure",{type:"error"})});return E.jsxs(E.Fragment,{children:[E.jsx(cr,{label:"resources.servernotices.send",onClick:n,disabled:s,children:E.jsx(Mk,{})}),E.jsx(tW,{open:t,onClose:a,onSubmit:c})]})},b6e=e=>{const t=Kt();return t?E.jsx(t8,{...e,label:"ra.action.remove",confirmTitle:"resources.devices.action.erase.title",confirmContent:"resources.devices.action.erase.content",mutationMode:"pessimistic",redirect:!1,translateOptions:{id:t.id,name:t.display_name?t.display_name:t.id}}):null},rW=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],nW=[{id:"bot",name:"bot"},{id:"support",name:"support"}],aW=()=>{const{isLoading:e,total:t}=Hn();return E.jsxs(Do,{children:[E.jsx(G2,{}),E.jsx(hm,{disabled:e||t===0,maxResults:1e4}),E.jsx(cr,{component:PV,to:"/import_users",label:"CSV Import",children:E.jsx(_$,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})};aW.defaultProps={selectedIds:[],onUnselectItems:()=>null};const oW=()=>E.jsx(Ic,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),_6e=[E.jsx(R1,{source:"name",alwaysOn:!0}),E.jsx(Oi,{source:"guests",alwaysOn:!0}),E.jsx(Oi,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0}),E.jsx(Oi,{label:"resources.users.fields.show_locked",source:"locked",alwaysOn:!0})],x6e=()=>E.jsxs(E.Fragment,{children:[E.jsx(y6e,{}),E.jsx(S1,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),w6e=e=>E.jsx(Ac,{...e,filters:_6e,filterDefaultValues:{guests:!0,deactivated:!1,locked:!1},sort:{field:"name",order:"ASC"},actions:E.jsx(aW,{}),pagination:E.jsx(oW,{}),children:E.jsxs(Un,{rowClick:(t,r)=>`/${r}/${t}`,bulkActionButtons:E.jsx(x6e,{}),children:[E.jsx(bk,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),E.jsx(ze,{source:"id",sortBy:"name"}),E.jsx(ze,{source:"displayname"}),E.jsx(xo,{source:"is_guest"}),E.jsx(xo,{source:"admin"}),E.jsx(xo,{source:"deactivated"}),E.jsx(xo,{source:"locked"}),E.jsx(xo,{source:"erased",sortable:!1}),E.jsx(Pn,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:Vn})]})}),S6e=[Va(),I0(253),qR(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],E6e=[Va(),I0(255)],C6e=()=>{const e=Kt(),t=Be();return E.jsxs(Do,{children:[!(e!=null&&e.deactivated)&&E.jsx(g6e,{}),E.jsx(fp,{label:"resources.users.action.erase",confirmTitle:t("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},O6e=e=>E.jsx(W8,{...e,redirect:(t,r)=>`${t}/${r}`,children:E.jsxs(mm,{children:[E.jsx(fn,{source:"id",autoComplete:"off",validate:S6e}),E.jsx(fn,{source:"displayname",validate:I0(256)}),E.jsx(J$,{source:"password",autoComplete:"new-password",validate:I0(512)}),E.jsx(xb,{source:"user_type",choices:nW,translateChoice:!1,resettable:!0}),E.jsx(Oi,{source:"admin"}),E.jsx(lb,{source:"threepids",children:E.jsxs(cb,{disableReordering:!0,children:[E.jsx(xb,{source:"medium",choices:rW,validate:Va()}),E.jsx(fn,{source:"address",validate:E6e})]})}),E.jsx(lb,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:E.jsxs(cb,{disableReordering:!0,children:[E.jsx(fn,{source:"auth_provider",validate:Va()}),E.jsx(fn,{source:"external_id",label:"resources.users.fields.id",validate:Va()})]})})]})}),P6e=()=>{const e=Kt(),t=Be();return E.jsxs("span",{children:[t("resources.users.name",{smart_count:1})," ",e?`"${e.displayname}"`:""]})},R6e=e=>{const t=Be();return E.jsx(H8,{...e,title:E.jsx(P6e,{}),actions:E.jsx(C6e,{}),children:E.jsxs(Y8,{children:[E.jsxs(vi,{label:t("resources.users.name",{smart_count:1}),icon:E.jsx(ZV,{}),children:[E.jsx(bk,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),E.jsx(fn,{source:"id",disabled:!0}),E.jsx(fn,{source:"displayname"}),E.jsx(J$,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),E.jsx(xb,{source:"user_type",choices:nW,translateChoice:!1,resettable:!0}),E.jsx(Oi,{source:"admin"}),E.jsx(Oi,{source:"locked"}),E.jsx(Oi,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),E.jsx(Oi,{source:"erased",disabled:!0}),E.jsx(Pn,{source:"creation_ts_ms",showTime:!0,options:Vn}),E.jsx(ze,{source:"consent_version"})]}),E.jsx(vi,{label:"resources.users.threepid",icon:E.jsx(QV,{}),path:"threepid",children:E.jsx(lb,{source:"threepids",children:E.jsxs(cb,{disableReordering:!0,children:[E.jsx(xb,{source:"medium",choices:rW}),E.jsx(fn,{source:"address"})]})})}),E.jsx(vi,{label:"synapseadmin.users.tabs.sso",icon:E.jsx(KV,{}),path:"sso",children:E.jsx(lb,{source:"external_ids",label:!1,children:E.jsxs(cb,{disableReordering:!0,children:[E.jsx(fn,{source:"auth_provider",validate:Va()}),E.jsx(fn,{source:"external_id",label:"resources.users.fields.id",validate:Va()})]})})}),E.jsx(vi,{label:t("resources.devices.name",{smart_count:2}),icon:E.jsx(XV,{}),path:"devices",children:E.jsx(El,{reference:"devices",target:"user_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},children:[E.jsx(ze,{source:"device_id",sortable:!1}),E.jsx(ze,{source:"display_name",sortable:!1}),E.jsx(ze,{source:"last_seen_ip",sortable:!1}),E.jsx(Pn,{source:"last_seen_ts",showTime:!0,options:Vn,sortable:!1}),E.jsx(b6e,{})]})})}),E.jsx(vi,{label:"resources.connections.name",icon:E.jsx(eW,{}),path:"connections",children:E.jsx(hs,{reference:"connections",source:"id",label:!1,link:!1,children:E.jsx(e4e,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:E.jsxs(Un,{style:{width:"100%"},bulkActionButtons:!1,children:[E.jsx(ze,{source:"ip",sortable:!1}),E.jsx(Pn,{source:"last_seen",showTime:!0,options:Vn,sortable:!1}),E.jsx(ze,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),E.jsx(vi,{label:t("resources.users_media.name",{smart_count:2}),icon:E.jsx(JV,{}),path:"media",children:E.jsx(El,{reference:"users_media",target:"user_id",label:!1,pagination:E.jsx(oW,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:E.jsxs(Un,{style:{width:"100%"},children:[E.jsx(tze,{source:"media_id"}),E.jsx(Pn,{source:"created_ts",showTime:!0,options:Vn}),E.jsx(Pn,{source:"last_access_ts",showTime:!0,options:Vn}),E.jsx(ji,{source:"media_length"}),E.jsx(ze,{source:"media_type"}),E.jsx(ze,{source:"upload_name"}),E.jsx(ze,{source:"quarantined_by"}),E.jsx(eze,{label:"resources.quarantine_media.action.name"}),E.jsx(ZBe,{label:"resources.users_media.fields.safe_from_quarantine"}),E.jsx(fp,{mutationMode:"pessimistic",redirect:!1})]})})}),E.jsx(vi,{label:t("resources.rooms.name",{smart_count:2}),icon:E.jsx(jc,{}),path:"rooms",children:E.jsx(El,{reference:"joined_rooms",target:"user_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},rowClick:r=>"/rooms/"+r+"/show",bulkActionButtons:!1,children:[E.jsx(ze,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),E.jsx(hs,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:E.jsx(ze,{source:"name",sortable:!1})})]})})}),E.jsx(vi,{label:t("resources.pushers.name",{smart_count:2}),icon:E.jsx(YV,{}),path:"pushers",children:E.jsx(El,{reference:"pushers",target:"user_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},bulkActionButtons:!1,children:[E.jsx(ze,{source:"kind",sortable:!1}),E.jsx(ze,{source:"app_display_name",sortable:!1}),E.jsx(ze,{source:"app_id",sortable:!1}),E.jsx(ze,{source:"data.url",sortable:!1}),E.jsx(ze,{source:"device_display_name",sortable:!1}),E.jsx(ze,{source:"lang",sortable:!1}),E.jsx(ze,{source:"profile_tag",sortable:!1}),E.jsx(ze,{source:"pushkey",sortable:!1})]})})})]})})},$6e={name:"users",icon:Sk,list:w6e,edit:R6e,create:O6e},k6e={login:async({base_url:e,username:t,password:r,loginToken:n})=>{console.log("login ");const a={method:"POST",body:JSON.stringify(Object.assign({device_id:Ut.getItem("device_id"),initial_device_display_name:"Synapse Admin"},n?{type:"m.login.token",token:n}:{type:"m.login.password",user:t,password:r,identifier:{type:"m.id.user",user:t}}))};e=e.replace(/\/+$/g,""),Ut.setItem("base_url",e);const i=window.decodeURIComponent(e)+"/_matrix/client/r0/login",{json:l}=await mc(i,a);Ut.setItem("home_server",l.home_server),Ut.setItem("user_id",l.user_id),Ut.setItem("access_token",l.access_token),Ut.setItem("device_id",l.device_id)},logout:async()=>{console.log("logout");const e=Ut.getItem("base_url")+"/_matrix/client/r0/logout",t=Ut.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:`Bearer ${t}`}};typeof t=="string"&&(await mc(e,r),Ut.removeItem("access_token"))},checkError:({status:e})=>(console.log("checkError "+e),e===401||e===403?Promise.reject():Promise.resolve()),checkAuth:()=>{const e=Ut.getItem("access_token");return console.log("checkAuth "+e),typeof e=="string"?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},Fa=(e,t={})=>{const r=Ut.getItem("access_token");return console.log("httpClient "+e),r!=null&&(t.user={authenticated:!0,token:`Bearer ${r}`}),mc(e,t)},hN=e=>{const t=Ut.getItem("base_url"),n=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+n),n==null)return null;const a=n[1],o=n[2];return`${t}/_matrix/media/r0/thumbnail/${a}/${o}?width=24&height=24&method=scale`},Xr={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:e.avatar_url?hN(e.avatar_url):void 0,is_guest:!!e.is_guest,admin:!!e.admin,deactivated:!!e.deactivated,creation_ts_ms:e.creation_ts*1e3}),data:"users",total:e=>e.total,create:e=>({endpoint:`/_synapse/admin/v2/users/@${encodeURIComponent(e.id)}:${Ut.getItem("home_server")}`,body:e,method:"PUT"}),delete:e=>({endpoint:`/_synapse/admin/v1/deactivate/${encodeURIComponent(e.id)}`,body:{erase:!0},method:"POST"})},rooms:{path:"/_synapse/admin/v1/rooms",map:e=>({...e,id:e.room_id,alias:e.canonical_alias,members:e.joined_members,is_encrypted:!!e.encryption,federatable:!!e.federatable,public:!!e.public}),data:"rooms",total:e=>e.total_rooms,delete:e=>({endpoint:`/_synapse/admin/v2/rooms/${e.id}`,body:{block:!1}})},reports:{path:"/_synapse/admin/v1/event_reports",map:e=>({...e}),data:"event_reports",total:e=>e.total},devices:{map:e=>({...e,id:e.device_id}),data:"devices",total:e=>e.total,reference:e=>({endpoint:`/_synapse/admin/v2/users/${encodeURIComponent(e)}/devices`}),delete:e=>({endpoint:`/_synapse/admin/v2/users/${encodeURIComponent(e.previousData.user_id)}/devices/${e.id}`})},connections:{path:"/_synapse/admin/v1/whois",map:e=>({...e,id:e.user_id}),data:"connections"},room_members:{map:e=>({id:e}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/members`}),data:"members",total:e=>e.total},room_state:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/state`}),data:"state",total:e=>e.state.length},pushers:{map:e=>({...e,id:e.pushkey}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/pushers`}),data:"pushers",total:e=>e.total},joined_rooms:{map:e=>({id:e}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/joined_rooms`}),data:"joined_rooms",total:e=>e.total},users_media:{map:e=>({...e,id:e.media_id}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/media`}),data:"media",total:e=>e.total,delete:e=>({endpoint:`/_synapse/admin/v1/media/${Ut.getItem("home_server")}/${e.id}`})},protect_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/protect/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unprotect/${e.id}`,method:"POST"})},quarantine_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/quarantine/${Ut.getItem("home_server")}/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unquarantine/${Ut.getItem("home_server")}/${e.id}`,method:"POST"})},servernotices:{map:e=>({id:e.event_id}),create:e=>({endpoint:"/_synapse/admin/v1/send_server_notice",body:{user_id:e.id,content:{msgtype:"m.text",body:e.body}},method:"POST"})},user_media_statistics:{path:"/_synapse/admin/v1/statistics/users/media",map:e=>({...e,id:e.user_id}),data:"users",total:e=>e.total},forward_extremities:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/forward_extremities`}),data:"results",total:e=>e.count,delete:e=>({endpoint:`/_synapse/admin/v1/rooms/${e.id}/forward_extremities`})},room_directory:{path:"/_matrix/client/r0/publicRooms",map:e=>({...e,id:e.room_id,public:!!e.public,guest_access:!!e.guest_access,avatar_src:e.avatar_url?hN(e.avatar_url):void 0}),data:"chunk",total:e=>e.total_room_count_estimate,create:e=>({endpoint:`/_matrix/client/r0/directory/list/room/${e.id}`,body:{visibility:"public"},method:"PUT"}),delete:e=>({endpoint:`/_matrix/client/r0/directory/list/room/${e.id}`,body:{visibility:"private"},method:"PUT"})},destinations:{path:"/_synapse/admin/v1/federation/destinations",map:e=>({...e,id:e.destination}),data:"destinations",total:e=>e.total,delete:e=>({endpoint:`/_synapse/admin/v1/federation/destinations/${e.id}/reset_connection`,method:"POST"})},destination_rooms:{map:e=>({...e,id:e.room_id}),reference:e=>({endpoint:`/_synapse/admin/v1/federation/destinations/${e}/rooms`}),data:"rooms",total:e=>e.total},registration_tokens:{path:"/_synapse/admin/v1/registration_tokens",map:e=>({...e,id:e.token}),data:"registration_tokens",total:e=>e.registration_tokens.length,create:e=>({endpoint:"/_synapse/admin/v1/registration_tokens/new",body:e,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/registration_tokens/${e.id}`})}};function eh(e,t){if(!(t===null&&e!=="user_type"))return t}function vN(e){return e==="DESC"?"b":"f"}const j6e={getList:async(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:a,deactivated:o,locked:i,search_term:l,destination:c,valid:s}=t.filter,{page:f,perPage:h}=t.pagination,{field:v,order:m}=t.sort,b=(f-1)*h,w={from:b,limit:h,user_id:r,search_term:l,name:n,destination:c,guests:a,deactivated:o,locked:i,valid:s,order_by:v,dir:vN(m)},O=Ut.getItem("base_url");if(!O||!(e in Xr))throw Error("Homeserver not set");const _=Xr[e],x=`${O+_.path}?${vc.stringify(w)}`,{json:S}=await Fa(x);return{data:S[_.data].map(_.map),total:_.total(S,b,h)}},getOne:async(e,t)=>{console.log("getOne "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e],a=r+n.path,{json:o}=await Fa(`${a}/${encodeURIComponent(t.id)}`);return{data:n.map(o)}},getMany:async(e,t)=>{console.log("getMany "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homerserver not set");const n=Xr[e],a=r+n.path,o=await Promise.all(t.ids.map(i=>Fa(`${a}/${encodeURIComponent(i)}`)));return{data:o.map(({json:i})=>n.map(i)),total:o.length}},getManyReference:async(e,t)=>{console.log("getManyReference "+e);const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,i=(r-1)*n,l={from:i,limit:n,order_by:a,dir:vN(o)},c=Ut.getItem("base_url");if(!c||!(e in Xr))throw Error("Homeserver not set");const s=Xr[e],f=s.reference(t.id),h=`${c}${f.endpoint}?${vc.stringify(l)}`,{json:v}=await Fa(h);return{data:v[s.data].map(s.map),total:s.total(v,i,n)}},update:async(e,t)=>{console.log("update "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e],a=r+n.path,{json:o}=await Fa(`${a}/${encodeURIComponent(t.id)}`,{method:"PUT",body:JSON.stringify(t.data,eh)});return{data:n.map(o)}},updateMany:async(e,t)=>{console.log("updateMany "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e],a=r+n.path;return{data:(await Promise.all(t.ids.map(i=>Fa(`${a}/${encodeURIComponent(i)}`),{method:"PUT",body:JSON.stringify(t.data,eh)}))).map(({json:i})=>i)}},create:async(e,t)=>{console.log("create "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e];if(!("create"in n))return Promise.reject();const a=n.create(t.data),o=r+a.endpoint,{json:i}=await Fa(o,{method:a.method,body:JSON.stringify(a.body,eh)});return{data:n.map(i)}},createMany:async(e,t)=>{console.log("createMany "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e];if(!("create"in n))throw Error(`Create ${e} is not allowed`);return{data:(await Promise.all(t.ids.map(o=>{t.data.id=o;const i=n.create(t.data),l=r+i.endpoint;return Fa(l,{method:i.method,body:JSON.stringify(i.body,eh)})}))).map(({json:o})=>o)}},delete:async(e,t)=>{console.log("delete "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e];if("delete"in n){const a=n.delete(t),o=r+a.endpoint,{json:i}=await Fa(o,{method:"method"in a?a.method:"DELETE",body:"body"in a?JSON.stringify(a.body):null});return{data:i}}else{const a=r+n.path,{json:o}=await Fa(`${a}/${t.id}`,{method:"DELETE",body:JSON.stringify(t.previousData,eh)});return{data:o}}},deleteMany:async(e,t)=>{console.log("deleteMany "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e];if("delete"in n)return{data:(await Promise.all(t.ids.map(o=>{const i=n.delete({...t,id:o}),l=r+i.endpoint;return Fa(l,{method:"method"in i?i.method:"DELETE",body:"body"in i?JSON.stringify(i.body):null})}))).map(({json:o})=>o)};{const a=r+n.path;return{data:(await Promise.all(t.ids.map(i=>Fa(`${a}/${i}`,{method:"DELETE"})))).map(({json:i})=>i)}}},deleteMedia:async({before_ts:e,size_gt:t=0,keep_profiles:r=!0})=>{const a=`/_synapse/admin/v1/media/${Ut.getItem("home_server")}/delete?before_ts=${e}&size_gt=${t}&keep_profiles=${r}`,i=Ut.getItem("base_url")+a,{json:l}=await Fa(i,{method:"POST"});return l}},Kg={de:W5e,en:H5e,fr:G5e,it:X5e,ru:Y5e,zh:Z5e},I6e=u5(e=>Kg[e]?Lv.merge({},Kg.en,Kg[e]):Kg.en,ufe(),[{locale:"en",name:"English"},{locale:"de",name:"Deutsch"},{locale:"fr",name:"Français"},{locale:"it",name:"Italiano"},{locale:"fa",name:"Persian(فارسی)"},{locale:"ru",name:"Russian(Русский)"},{locale:"zh",name:"简体中文"}]),T6e=()=>E.jsxs(a5e,{disableTelemetry:!0,requireAuth:!0,loginPage:rBe,authProvider:k6e,dataProvider:j6e,i18nProvider:I6e,children:[E.jsx(Qz,{children:E.jsx(b5e,{path:"/import_users",element:E.jsx(U5e,{})})}),E.jsx(ln,{...$6e}),E.jsx(ln,{...Dze}),E.jsx(ln,{...qze}),E.jsx(ln,{...sze}),E.jsx(ln,{...hze}),E.jsx(ln,{...bBe}),E.jsx(ln,{...$Be}),E.jsx(ln,{name:"connections"}),E.jsx(ln,{name:"devices"}),E.jsx(ln,{name:"room_members"}),E.jsx(ln,{name:"users_media"}),E.jsx(ln,{name:"joined_rooms"}),E.jsx(ln,{name:"pushers"}),E.jsx(ln,{name:"servernotices"}),E.jsx(ln,{name:"forward_extremities"}),E.jsx(ln,{name:"room_state"}),E.jsx(ln,{name:"destination_rooms"})]});fetch("/synapse-admin/config.json").then(e=>e.json()).then(e=>N4(document.getElementById("root")).render(E.jsx(ke.StrictMode,{children:E.jsx(IV.Provider,{value:e,children:E.jsx(T6e,{})})}))); diff --git a/assets/index-DXIDujb6.js b/assets/index-DXIDujb6.js deleted file mode 100644 index 71fdeb9..0000000 --- a/assets/index-DXIDujb6.js +++ /dev/null @@ -1,305 +0,0 @@ -function hQ(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ya(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var hN={exports:{}},hb={},gN={exports:{}},yt={};/** - * @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 ov=Symbol.for("react.element"),gQ=Symbol.for("react.portal"),yQ=Symbol.for("react.fragment"),bQ=Symbol.for("react.strict_mode"),_Q=Symbol.for("react.profiler"),xQ=Symbol.for("react.provider"),wQ=Symbol.for("react.context"),SQ=Symbol.for("react.forward_ref"),OQ=Symbol.for("react.suspense"),CQ=Symbol.for("react.memo"),EQ=Symbol.for("react.lazy"),YT=Symbol.iterator;function PQ(e){return e===null||typeof e!="object"?null:(e=YT&&e[YT]||e["@@iterator"],typeof e=="function"?e:null)}var yN={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bN=Object.assign,_N={};function ud(e,t,r){this.props=e,this.context=t,this.refs=_N,this.updater=r||yN}ud.prototype.isReactComponent={};ud.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")};ud.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xN(){}xN.prototype=ud.prototype;function NC(e,t,r){this.props=e,this.context=t,this.refs=_N,this.updater=r||yN}var DC=NC.prototype=new xN;DC.constructor=NC;bN(DC,ud.prototype);DC.isPureReactComponent=!0;var JT=Array.isArray,wN=Object.prototype.hasOwnProperty,BC={current:null},SN={key:!0,ref:!0,__self:!0,__source:!0};function ON(e,t,r){var n,o={},a=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)wN.call(t,n)&&!SN.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,ee=z[ne];if(0>>1;neo(oe,te))peo(Re,oe)?(z[ne]=Re,z[pe]=te,ne=pe):(z[ne]=oe,z[ce]=te,ne=ce);else if(peo(Re,te))z[ne]=Re,z[pe]=te,ne=pe;else break e}}return W}function o(z,W){var te=z.sortIndex-W.sortIndex;return te!==0?te:z.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var c=[],l=[],f=1,v=null,m=3,h=!1,x=!1,w=!1,O=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(z){for(var W=r(l);W!==null;){if(W.callback===null)n(l);else if(W.startTime<=z)n(l),W.sortIndex=W.expirationTime,t(c,W);else break;W=r(l)}}function $(z){if(w=!1,_(z),!x)if(r(c)!==null)x=!0,q(P);else{var W=r(l);W!==null&&G($,W.startTime-z)}}function P(z,W){x=!1,w&&(w=!1,b(R),R=-1),h=!0;var te=m;try{for(_(W),v=r(c);v!==null&&(!(v.expirationTime>W)||z&&!F());){var ne=v.callback;if(typeof ne=="function"){v.callback=null,m=v.priorityLevel;var ee=ne(v.expirationTime<=W);W=e.unstable_now(),typeof ee=="function"?v.callback=ee:v===r(c)&&n(c),_(W)}else n(c);v=r(c)}if(v!==null)var Oe=!0;else{var ce=r(l);ce!==null&&G($,ce.startTime-W),Oe=!1}return Oe}finally{v=null,m=te,h=!1}}var C=!1,k=null,R=-1,I=5,A=-1;function F(){return!(e.unstable_now()-Az||125ne?(z.sortIndex=te,t(l,z),r(c)===null&&z===r(l)&&(w?(b(R),R=-1):w=!0,G($,te-ne))):(z.sortIndex=ee,t(c,z),x||h||(x=!0,q(P))),z},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(z){var W=m;return function(){var te=m;m=W;try{return z.apply(this,arguments)}finally{m=te}}}})(RN);$N.exports=RN;var NQ=$N.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 DQ=d,po=NQ;function ke(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hw=Object.prototype.hasOwnProperty,BQ=/^[: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]*$/,eI={},tI={};function zQ(e){return hw.call(tI,e)?!0:hw.call(eI,e)?!1:BQ.test(e)?tI[e]=!0:(eI[e]=!0,!1)}function UQ(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function VQ(e,t,r,n){if(t===null||typeof t>"u"||UQ(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 kn(e,t,r,n,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var tn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tn[e]=new kn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tn[t]=new kn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tn[e]=new kn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tn[e]=new kn(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){tn[e]=new kn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tn[e]=new kn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tn[e]=new kn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tn[e]=new kn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tn[e]=new kn(e,5,!1,e.toLowerCase(),null,!1,!1)});var UC=/[\-:]([a-z])/g;function VC(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(UC,VC);tn[t]=new kn(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(UC,VC);tn[t]=new kn(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(UC,VC);tn[t]=new kn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tn[e]=new kn(e,1,!1,e.toLowerCase(),null,!1,!1)});tn.xlinkHref=new kn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tn[e]=new kn(e,1,!1,e.toLowerCase(),null,!0,!0)});function WC(e,t,r,n){var o=tn.hasOwnProperty(t)?tn[t]:null;(o!==null?o.type!==0:n||!(2s||o[i]!==a[s]){var c=` -`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{A1=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?kf(e):""}function WQ(e){switch(e.tag){case 5:return kf(e.type);case 16:return kf("Lazy");case 13:return kf("Suspense");case 19:return kf("SuspenseList");case 0:case 2:case 15:return e=M1(e.type,!1),e;case 11:return e=M1(e.type.render,!1),e;case 1:return e=M1(e.type,!0),e;default:return""}}function _w(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 Ku:return"Fragment";case Gu:return"Portal";case gw:return"Profiler";case qC:return"StrictMode";case yw:return"Suspense";case bw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case IN:return(e.displayName||"Context")+".Consumer";case TN:return(e._context.displayName||"Context")+".Provider";case HC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case GC:return t=e.displayName||null,t!==null?t:_w(e.type)||"Memo";case is:t=e._payload,e=e._init;try{return _w(e(t))}catch{}}return null}function qQ(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 _w(t);case 8:return t===qC?"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 Fs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function AN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function HQ(e){var t=AN(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qm(e){e._valueTracker||(e._valueTracker=HQ(e))}function MN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=AN(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Eg(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 xw(e,t){var r=t.checked;return ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function nI(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Fs(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function FN(e,t){t=t.checked,t!=null&&WC(e,"checked",t,!1)}function ww(e,t){FN(e,t);var r=Fs(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Sw(e,t.type,r):t.hasOwnProperty("defaultValue")&&Sw(e,t.type,Fs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oI(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Sw(e,t,r){(t!=="number"||Eg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Tf=Array.isArray;function mc(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Xm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Df={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},GQ=["Webkit","ms","Moz","O"];Object.keys(Df).forEach(function(e){GQ.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Df[t]=Df[e]})});function BN(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Df.hasOwnProperty(e)&&Df[e]?(""+t).trim():t+"px"}function zN(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=BN(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var KQ=ir({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 Ew(e,t){if(t){if(KQ[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ke(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ke(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ke(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ke(62))}}function Pw(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 $w=null;function KC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rw=null,hc=null,gc=null;function sI(e){if(e=sv(e)){if(typeof Rw!="function")throw Error(ke(280));var t=e.stateNode;t&&(t=xb(t),Rw(e.stateNode,e.type,t))}}function UN(e){hc?gc?gc.push(e):gc=[e]:hc=e}function VN(){if(hc){var e=hc,t=gc;if(gc=hc=null,sI(e),t)for(e=0;e>>=0,e===0?32:31-(aX(e)/iX|0)|0}var Ym=64,Jm=4194304;function If(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 kg(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~o;s!==0?n=If(s):(a&=i,a!==0&&(n=If(a)))}else i=r&~o,i!==0?n=If(i):a!==0&&(n=If(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function av(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ga(t),e[t]=r}function cX(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=zf),hI=" ",gI=!1;function uD(e,t){switch(e){case"keyup":return NX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qu=!1;function BX(e,t){switch(e){case"compositionend":return cD(t);case"keypress":return t.which!==32?null:(gI=!0,hI);case"textInput":return e=t.data,e===hI&&gI?null:e;default:return null}}function zX(e,t){if(Qu)return e==="compositionend"||!rE&&uD(e,t)?(e=sD(),Nh=ZC=ms=null,Qu=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=xI(r)}}function vD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mD(){for(var e=window,t=Eg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Eg(e.document)}return t}function nE(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 XX(e){var t=mD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&vD(r.ownerDocument.documentElement,r)){if(n!==null&&nE(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=n.end===void 0?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=wI(r,a);var i=wI(r,n);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Xu=null,Mw=null,Vf=null,Fw=!1;function SI(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Fw||Xu==null||Xu!==Eg(n)||(n=Xu,"selectionStart"in n&&nE(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Vf&&Cp(Vf,n)||(Vf=n,n=jg(Mw,"onSelect"),0Zu||(e.current=Uw[Zu],Uw[Zu]=null,Zu--)}function qt(e,t){Zu++,Uw[Zu]=e.current,e.current=t}var Ls={},vn=zs(Ls),Wn=zs(!1),Hl=Ls;function Nc(e,t){var r=e.type.contextTypes;if(!r)return Ls;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function qn(e){return e=e.childContextTypes,e!=null}function Mg(){Yt(Wn),Yt(vn)}function kI(e,t,r){if(vn.current!==Ls)throw Error(ke(168));qt(vn,t),qt(Wn,r)}function OD(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(ke(108,qQ(e)||"Unknown",o));return ir({},r,n)}function Fg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ls,Hl=vn.current,qt(vn,e),qt(Wn,Wn.current),!0}function TI(e,t,r){var n=e.stateNode;if(!n)throw Error(ke(169));r?(e=OD(e,t,Hl),n.__reactInternalMemoizedMergedChildContext=e,Yt(Wn),Yt(vn),qt(vn,e)):Yt(Wn),qt(Wn,r)}var bi=null,wb=!1,Q1=!1;function CD(e){bi===null?bi=[e]:bi.push(e)}function lY(e){wb=!0,CD(e)}function Us(){if(!Q1&&bi!==null){Q1=!0;var e=0,t=At;try{var r=bi;for(At=1;e>=i,o-=i,wi=1<<32-ga(t)+o|r<R?(I=k,k=null):I=k.sibling;var A=m(b,k,_[R],$);if(A===null){k===null&&(k=I);break}e&&k&&A.alternate===null&&t(b,k),g=a(A,g,R),C===null?P=A:C.sibling=A,C=A,k=I}if(R===_.length)return r(b,k),tr&&gl(b,R),P;if(k===null){for(;R<_.length;R++)k=v(b,_[R],$),k!==null&&(g=a(k,g,R),C===null?P=k:C.sibling=k,C=k);return tr&&gl(b,R),P}for(k=n(b,k);R<_.length;R++)I=h(k,b,R,_[R],$),I!==null&&(e&&I.alternate!==null&&k.delete(I.key===null?R:I.key),g=a(I,g,R),C===null?P=I:C.sibling=I,C=I);return e&&k.forEach(function(F){return t(b,F)}),tr&&gl(b,R),P}function w(b,g,_,$){var P=lf(_);if(typeof P!="function")throw Error(ke(150));if(_=P.call(_),_==null)throw Error(ke(151));for(var C=P=null,k=g,R=g=0,I=null,A=_.next();k!==null&&!A.done;R++,A=_.next()){k.index>R?(I=k,k=null):I=k.sibling;var F=m(b,k,A.value,$);if(F===null){k===null&&(k=I);break}e&&k&&F.alternate===null&&t(b,k),g=a(F,g,R),C===null?P=F:C.sibling=F,C=F,k=I}if(A.done)return r(b,k),tr&&gl(b,R),P;if(k===null){for(;!A.done;R++,A=_.next())A=v(b,A.value,$),A!==null&&(g=a(A,g,R),C===null?P=A:C.sibling=A,C=A);return tr&&gl(b,R),P}for(k=n(b,k);!A.done;R++,A=_.next())A=h(k,b,R,A.value,$),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?R:A.key),g=a(A,g,R),C===null?P=A:C.sibling=A,C=A);return e&&k.forEach(function(L){return t(b,L)}),tr&&gl(b,R),P}function O(b,g,_,$){if(typeof _=="object"&&_!==null&&_.type===Ku&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Km:e:{for(var P=_.key,C=g;C!==null;){if(C.key===P){if(P=_.type,P===Ku){if(C.tag===7){r(b,C.sibling),g=o(C,_.props.children),g.return=b,b=g;break e}}else if(C.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===is&&AI(P)===C.type){r(b,C.sibling),g=o(C,_.props),g.ref=pf(b,C,_),g.return=b,b=g;break e}r(b,C);break}else t(b,C);C=C.sibling}_.type===Ku?(g=Ml(_.props.children,b.mode,$,_.key),g.return=b,b=g):($=Hh(_.type,_.key,_.props,null,b.mode,$),$.ref=pf(b,g,_),$.return=b,b=$)}return i(b);case Gu:e:{for(C=_.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===_.containerInfo&&g.stateNode.implementation===_.implementation){r(b,g.sibling),g=o(g,_.children||[]),g.return=b,b=g;break e}else{r(b,g);break}else t(b,g);g=g.sibling}g=nx(_,b.mode,$),g.return=b,b=g}return i(b);case is:return C=_._init,O(b,g,C(_._payload),$)}if(Tf(_))return x(b,g,_,$);if(lf(_))return w(b,g,_,$);ah(b,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,g!==null&&g.tag===6?(r(b,g.sibling),g=o(g,_),g.return=b,b=g):(r(b,g),g=rx(_,b.mode,$),g.return=b,b=g),i(b)):r(b,g)}return O}var Bc=RD(!0),kD=RD(!1),Dg=zs(null),Bg=null,rc=null,sE=null;function lE(){sE=rc=Bg=null}function uE(e){var t=Dg.current;Yt(Dg),e._currentValue=t}function qw(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function bc(e,t){Bg=e,sE=rc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Un=!0),e.firstContext=null)}function qo(e){var t=e._currentValue;if(sE!==e)if(e={context:e,memoizedValue:t,next:null},rc===null){if(Bg===null)throw Error(ke(308));rc=e,Bg.dependencies={lanes:0,firstContext:e}}else rc=rc.next=e;return t}var Pl=null;function cE(e){Pl===null?Pl=[e]:Pl.push(e)}function TD(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,cE(t)):(r.next=o.next,o.next=r),t.interleaved=r,$i(e,n)}function $i(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ss=!1;function dE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ID(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 Ci(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ps(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ot&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,$i(e,r)}return o=n.interleaved,o===null?(t.next=t,cE(n)):(t.next=o.next,o.next=t),n.interleaved=t,$i(e,r)}function Bh(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,XC(e,r)}}function MI(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?o=a=i:a=a.next=i,r=r.next}while(r!==null);a===null?o=a=t:a=a.next=t}else o=a=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function zg(e,t,r,n){var o=e.updateQueue;ss=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,l=c.next;c.next=null,i===null?a=l:i.next=l,i=c;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==i&&(s===null?f.firstBaseUpdate=l:s.next=l,f.lastBaseUpdate=c))}if(a!==null){var v=o.baseState;i=0,f=l=c=null,s=a;do{var m=s.lane,h=s.eventTime;if((n&m)===m){f!==null&&(f=f.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,w=s;switch(m=t,h=r,w.tag){case 1:if(x=w.payload,typeof x=="function"){v=x.call(h,v,m);break e}v=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,m=typeof x=="function"?x.call(h,v,m):x,m==null)break e;v=ir({},v,m);break e;case 2:ss=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else h={eventTime:h,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(l=f=h,c=v):f=f.next=h,i|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;m=s,s=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(f===null&&(c=v),o.baseState=c,o.firstBaseUpdate=l,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);Ql|=i,e.lanes=i,e.memoizedState=v}}function FI(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Y1.transition;Y1.transition={};try{e(!1),t()}finally{At=r,Y1.transition=n}}function QD(){return Ho().memoizedState}function fY(e,t,r){var n=Rs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},XD(e))YD(t,r);else if(r=TD(e,t,r,n),r!==null){var o=Pn();ya(r,e,n,o),JD(r,t,n)}}function pY(e,t,r){var n=Rs(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(XD(e))YD(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,ba(s,i)){var c=t.interleaved;c===null?(o.next=o,cE(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}r=TD(e,t,o,n),r!==null&&(o=Pn(),ya(r,e,n,o),JD(r,t,n))}}function XD(e){var t=e.alternate;return e===ar||t!==null&&t===ar}function YD(e,t){Wf=Vg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function JD(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,XC(e,r)}}var Wg={readContext:qo,useCallback:sn,useContext:sn,useEffect:sn,useImperativeHandle:sn,useInsertionEffect:sn,useLayoutEffect:sn,useMemo:sn,useReducer:sn,useRef:sn,useState:sn,useDebugValue:sn,useDeferredValue:sn,useTransition:sn,useMutableSource:sn,useSyncExternalStore:sn,useId:sn,unstable_isNewReconciler:!1},vY={readContext:qo,useCallback:function(e,t){return ja().memoizedState=[e,t===void 0?null:t],e},useContext:qo,useEffect:NI,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Uh(4194308,4,WD.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Uh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uh(4,2,e,t)},useMemo:function(e,t){var r=ja();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ja();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=fY.bind(null,ar,e),[n.memoizedState,e]},useRef:function(e){var t=ja();return e={current:e},t.memoizedState=e},useState:LI,useDebugValue:bE,useDeferredValue:function(e){return ja().memoizedState=e},useTransition:function(){var e=LI(!1),t=e[0];return e=dY.bind(null,e[1]),ja().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ar,o=ja();if(tr){if(r===void 0)throw Error(ke(407));r=r()}else{if(r=t(),Vr===null)throw Error(ke(349));Kl&30||FD(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,NI(ND.bind(null,n,a,e),[e]),n.flags|=2048,jp(9,LD.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ja(),t=Vr.identifierPrefix;if(tr){var r=Si,n=wi;r=(n&~(1<<32-ga(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Tp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Da]=t,e[$p]=n,l3(e,t,!1,!1),t.stateNode=e;e:{switch(i=Pw(r,n),r){case"dialog":Kt("cancel",e),Kt("close",e),o=n;break;case"iframe":case"object":case"embed":Kt("load",e),o=n;break;case"video":case"audio":for(o=0;oVc&&(t.flags|=128,n=!0,vf(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ug(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),vf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!tr)return ln(t),null}else 2*mr()-a.renderingStartTime>Vc&&r!==1073741824&&(t.flags|=128,n=!0,vf(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=mr(),t.sibling=null,r=nr.current,qt(nr,n?r&1|2:r&1),t):(ln(t),null);case 22:case 23:return CE(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?oo&1073741824&&(ln(t),t.subtreeFlags&6&&(t.flags|=8192)):ln(t),null;case 24:return null;case 25:return null}throw Error(ke(156,t.tag))}function wY(e,t){switch(aE(t),t.tag){case 1:return qn(t.type)&&Mg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zc(),Yt(Wn),Yt(vn),vE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pE(t),null;case 13:if(Yt(nr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ke(340));Dc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(nr),null;case 4:return zc(),null;case 10:return uE(t.type._context),null;case 22:case 23:return CE(),null;case 24:return null;default:return null}}var sh=!1,cn=!1,SY=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function nc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){dr(e,t,n)}else r.current=null}function eS(e,t,r){try{r()}catch(n){dr(e,t,n)}}var QI=!1;function OY(e,t){if(Lw=Tg,e=mD(),nE(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,s=-1,c=-1,l=0,f=0,v=e,m=null;t:for(;;){for(var h;v!==r||o!==0&&v.nodeType!==3||(s=i+o),v!==a||n!==0&&v.nodeType!==3||(c=i+n),v.nodeType===3&&(i+=v.nodeValue.length),(h=v.firstChild)!==null;)m=v,v=h;for(;;){if(v===e)break t;if(m===r&&++l===o&&(s=i),m===a&&++f===n&&(c=i),(h=v.nextSibling)!==null)break;v=m,m=v.parentNode}v=h}r=s===-1||c===-1?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Nw={focusedElem:e,selectionRange:r},Tg=!1,Qe=t;Qe!==null;)if(t=Qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Qe=e;else for(;Qe!==null;){t=Qe;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,O=x.memoizedState,b=t.stateNode,g=b.getSnapshotBeforeUpdate(t.elementType===t.type?w:ca(t.type,w),O);b.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ke(163))}}catch($){dr(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,Qe=e;break}Qe=t.return}return x=QI,QI=!1,x}function qf(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&eS(t,r,a)}o=o.next}while(o!==n)}}function Cb(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function tS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function d3(e){var t=e.alternate;t!==null&&(e.alternate=null,d3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Da],delete t[$p],delete t[zw],delete t[iY],delete t[sY])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function f3(e){return e.tag===5||e.tag===3||e.tag===4}function XI(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||f3(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 rS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ag));else if(n!==4&&(e=e.child,e!==null))for(rS(e,t,r),e=e.sibling;e!==null;)rS(e,t,r),e=e.sibling}function nS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(nS(e,t,r),e=e.sibling;e!==null;)nS(e,t,r),e=e.sibling}var Xr=null,fa=!1;function Zi(e,t,r){for(r=r.child;r!==null;)p3(e,t,r),r=r.sibling}function p3(e,t,r){if(Va&&typeof Va.onCommitFiberUnmount=="function")try{Va.onCommitFiberUnmount(gb,r)}catch{}switch(r.tag){case 5:cn||nc(r,t);case 6:var n=Xr,o=fa;Xr=null,Zi(e,t,r),Xr=n,fa=o,Xr!==null&&(fa?(e=Xr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Xr.removeChild(r.stateNode));break;case 18:Xr!==null&&(fa?(e=Xr,r=r.stateNode,e.nodeType===8?K1(e.parentNode,r):e.nodeType===1&&K1(e,r),Sp(e)):K1(Xr,r.stateNode));break;case 4:n=Xr,o=fa,Xr=r.stateNode.containerInfo,fa=!0,Zi(e,t,r),Xr=n,fa=o;break;case 0:case 11:case 14:case 15:if(!cn&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&eS(r,t,i),o=o.next}while(o!==n)}Zi(e,t,r);break;case 1:if(!cn&&(nc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){dr(r,t,s)}Zi(e,t,r);break;case 21:Zi(e,t,r);break;case 22:r.mode&1?(cn=(n=cn)||r.memoizedState!==null,Zi(e,t,r),cn=n):Zi(e,t,r);break;default:Zi(e,t,r)}}function YI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new SY),t.forEach(function(n){var o=jY.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function ua(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~a}if(n=o,n=mr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*EY(n/1960))-n,10e?16:e,hs===null)var n=!1;else{if(e=hs,hs=null,Gg=0,Ot&6)throw Error(ke(331));var o=Ot;for(Ot|=4,Qe=e.current;Qe!==null;){var a=Qe,i=a.child;if(Qe.flags&16){var s=a.deletions;if(s!==null){for(var c=0;cmr()-SE?Al(e,0):wE|=r),Hn(e,t)}function x3(e,t){t===0&&(e.mode&1?(t=Jm,Jm<<=1,!(Jm&130023424)&&(Jm=4194304)):t=1);var r=Pn();e=$i(e,t),e!==null&&(av(e,t,r),Hn(e,r))}function IY(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),x3(e,r)}function jY(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ke(314))}n!==null&&n.delete(t),x3(e,r)}var w3;w3=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wn.current)Un=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Un=!1,_Y(e,t,r);Un=!!(e.flags&131072)}else Un=!1,tr&&t.flags&1048576&&ED(t,Ng,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Vh(e,t),e=t.pendingProps;var o=Nc(t,vn.current);bc(t,r),o=hE(null,t,n,e,o,r);var a=gE();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qn(n)?(a=!0,Fg(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dE(t),o.updater=Ob,t.stateNode=o,o._reactInternals=t,Gw(t,n,e,r),t=Xw(null,t,n,!0,a,r)):(t.tag=0,tr&&a&&oE(t),Sn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Vh(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=MY(n),e=ca(n,e),o){case 0:t=Qw(null,t,n,e,r);break e;case 1:t=HI(null,t,n,e,r);break e;case 11:t=WI(null,t,n,e,r);break e;case 14:t=qI(null,t,n,ca(n.type,e),r);break e}throw Error(ke(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),Qw(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),HI(e,t,n,o,r);case 3:e:{if(a3(t),e===null)throw Error(ke(387));n=t.pendingProps,a=t.memoizedState,o=a.element,ID(e,t),zg(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Uc(Error(ke(423)),t),t=GI(e,t,n,r,o);break e}else if(n!==o){o=Uc(Error(ke(424)),t),t=GI(e,t,n,r,o);break e}else for(so=Es(t.stateNode.containerInfo.firstChild),uo=t,tr=!0,pa=null,r=kD(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Dc(),n===o){t=Ri(e,t,r);break e}Sn(e,t,n,r)}t=t.child}return t;case 5:return jD(t),e===null&&Ww(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Dw(n,o)?i=null:a!==null&&Dw(n,a)&&(t.flags|=32),o3(e,t),Sn(e,t,i,r),t.child;case 6:return e===null&&Ww(t),null;case 13:return i3(e,t,r);case 4:return fE(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Bc(t,null,n,r):Sn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),WI(e,t,n,o,r);case 7:return Sn(e,t,t.pendingProps,r),t.child;case 8:return Sn(e,t,t.pendingProps.children,r),t.child;case 12:return Sn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,qt(Dg,n._currentValue),n._currentValue=i,a!==null)if(ba(a.value,i)){if(a.children===o.children&&!Wn.current){t=Ri(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var c=s.firstContext;c!==null;){if(c.context===n){if(a.tag===1){c=Ci(-1,r&-r),c.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var f=l.pending;f===null?c.next=c:(c.next=f.next,f.next=c),l.pending=c}}a.lanes|=r,c=a.alternate,c!==null&&(c.lanes|=r),qw(a.return,r,t),s.lanes|=r;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(ke(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),qw(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Sn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,bc(t,r),o=qo(o),n=n(o),t.flags|=1,Sn(e,t,n,r),t.child;case 14:return n=t.type,o=ca(n,t.pendingProps),o=ca(n.type,o),qI(e,t,n,o,r);case 15:return r3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),Vh(e,t),t.tag=1,qn(n)?(e=!0,Fg(t)):e=!1,bc(t,r),ZD(t,n,o),Gw(t,n,o,r),Xw(null,t,n,!0,e,r);case 19:return s3(e,t,r);case 22:return n3(e,t,r)}throw Error(ke(156,t.tag))};function S3(e,t){return XN(e,t)}function AY(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zo(e,t,r,n){return new AY(e,t,r,n)}function PE(e){return e=e.prototype,!(!e||!e.isReactComponent)}function MY(e){if(typeof e=="function")return PE(e)?1:0;if(e!=null){if(e=e.$$typeof,e===HC)return 11;if(e===GC)return 14}return 2}function ks(e,t){var r=e.alternate;return r===null?(r=zo(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Hh(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")PE(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ku:return Ml(r.children,o,a,t);case qC:i=8,o|=8;break;case gw:return e=zo(12,r,t,o|2),e.elementType=gw,e.lanes=a,e;case yw:return e=zo(13,r,t,o),e.elementType=yw,e.lanes=a,e;case bw:return e=zo(19,r,t,o),e.elementType=bw,e.lanes=a,e;case jN:return Pb(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case TN:i=10;break e;case IN:i=9;break e;case HC:i=11;break e;case GC:i=14;break e;case is:i=16,n=null;break e}throw Error(ke(130,e==null?e:typeof e,""))}return t=zo(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function Ml(e,t,r,n){return e=zo(7,e,n,t),e.lanes=r,e}function Pb(e,t,r,n){return e=zo(22,e,n,t),e.elementType=jN,e.lanes=r,e.stateNode={isHidden:!1},e}function rx(e,t,r){return e=zo(6,e,null,t),e.lanes=r,e}function nx(e,t,r){return t=zo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function FY(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=L1(0),this.expirationTimes=L1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=L1(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function $E(e,t,r,n,o,a,i,s,c){return e=new FY(e,t,r,s,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=zo(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},dE(a),e}function LY(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(P3)}catch(e){console.error(e)}}P3(),PN.exports=ho;var Ib=PN.exports;const Af=gr(Ib);var $3,aj=Ib;$3=aj.createRoot,aj.hydrateRoot;var Xg={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */Xg.exports;(function(e,t){(function(){var r,n="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",v=1,m=2,h=4,x=1,w=2,O=1,b=2,g=4,_=8,$=16,P=32,C=64,k=128,R=256,I=512,A=30,F="...",L=800,D=16,U=1,H=2,q=3,G=1/0,z=9007199254740991,W=17976931348623157e292,te=NaN,ne=4294967295,ee=ne-1,Oe=ne>>>1,ce=[["ary",k],["bind",O],["bindKey",b],["curry",_],["curryRight",$],["flip",I],["partial",P],["partialRight",C],["rearg",R]],oe="[object Arguments]",pe="[object Array]",Re="[object AsyncFunction]",ye="[object Boolean]",de="[object Date]",he="[object DOMException]",ve="[object Error]",_e="[object Function]",ie="[object GeneratorFunction]",be="[object Map]",ge="[object Number]",Ae="[object Null]",Be="[object Object]",V="[object Promise]",X="[object Proxy]",Y="[object RegExp]",ae="[object Set]",se="[object String]",le="[object Symbol]",Ee="[object Undefined]",Ie="[object WeakMap]",rt="[object WeakSet]",at="[object ArrayBuffer]",Le="[object DataView]",De="[object Float32Array]",ft="[object Float64Array]",Pt="[object Int8Array]",Et="[object Int16Array]",We="[object Int32Array]",et="[object Uint8Array]",Te="[object Uint8ClampedArray]",ze="[object Uint16Array]",ct="[object Uint32Array]",bt=/\b__p \+= '';/g,Jt=/\b(__p \+=) '' \+/g,Rr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,hn=/&(?:amp|lt|gt|quot|#39);/g,oa=/[&<>"']/g,Xn=RegExp(hn.source),Vi=RegExp(oa.source),Jv=/<%-([\s\S]+?)%>/g,m_=/<%([\s\S]+?)%>/g,Zv=/<%=([\s\S]+?)%>/g,h_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vd=/^\w*$/,g_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oi=/[\\^$.*+?()[\]{}|]/g,Wd=RegExp(oi.source),gn=/^\s+/,nl=/\s/,y_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ol=/\{\n\/\* \[wrapped with (.+)\] \*/,qd=/,? & /,em=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tm=/[()=,{}\[\]\/\s]/,rm=/\\(\\)?/g,nm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,om=/\w*$/,b_=/^[-+]0x[0-9a-f]+$/i,__=/^0b[01]+$/i,x_=/^\[object .+?Constructor\]$/,ht=/^0o[0-7]+$/i,yn=/^(?:0|[1-9]\d*)$/,sV=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,am=/($^)/,lV=/['\n\r\u2028\u2029\\]/g,im="\\ud800-\\udfff",uV="\\u0300-\\u036f",cV="\\ufe20-\\ufe2f",dV="\\u20d0-\\u20ff",ER=uV+cV+dV,PR="\\u2700-\\u27bf",$R="a-z\\xdf-\\xf6\\xf8-\\xff",fV="\\xac\\xb1\\xd7\\xf7",pV="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vV="\\u2000-\\u206f",mV=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",RR="A-Z\\xc0-\\xd6\\xd8-\\xde",kR="\\ufe0e\\ufe0f",TR=fV+pV+vV+mV,w_="['’]",hV="["+im+"]",IR="["+TR+"]",sm="["+ER+"]",jR="\\d+",gV="["+PR+"]",AR="["+$R+"]",MR="[^"+im+TR+jR+PR+$R+RR+"]",S_="\\ud83c[\\udffb-\\udfff]",yV="(?:"+sm+"|"+S_+")",FR="[^"+im+"]",O_="(?:\\ud83c[\\udde6-\\uddff]){2}",C_="[\\ud800-\\udbff][\\udc00-\\udfff]",hu="["+RR+"]",LR="\\u200d",NR="(?:"+AR+"|"+MR+")",bV="(?:"+hu+"|"+MR+")",DR="(?:"+w_+"(?:d|ll|m|re|s|t|ve))?",BR="(?:"+w_+"(?:D|LL|M|RE|S|T|VE))?",zR=yV+"?",UR="["+kR+"]?",_V="(?:"+LR+"(?:"+[FR,O_,C_].join("|")+")"+UR+zR+")*",xV="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wV="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",VR=UR+zR+_V,SV="(?:"+[gV,O_,C_].join("|")+")"+VR,OV="(?:"+[FR+sm+"?",sm,O_,C_,hV].join("|")+")",CV=RegExp(w_,"g"),EV=RegExp(sm,"g"),E_=RegExp(S_+"(?="+S_+")|"+OV+VR,"g"),PV=RegExp([hu+"?"+AR+"+"+DR+"(?="+[IR,hu,"$"].join("|")+")",bV+"+"+BR+"(?="+[IR,hu+NR,"$"].join("|")+")",hu+"?"+NR+"+"+DR,hu+"+"+BR,wV,xV,jR,SV].join("|"),"g"),$V=RegExp("["+LR+im+ER+kR+"]"),RV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kV=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],TV=-1,Gt={};Gt[De]=Gt[ft]=Gt[Pt]=Gt[Et]=Gt[We]=Gt[et]=Gt[Te]=Gt[ze]=Gt[ct]=!0,Gt[oe]=Gt[pe]=Gt[at]=Gt[ye]=Gt[Le]=Gt[de]=Gt[ve]=Gt[_e]=Gt[be]=Gt[ge]=Gt[Be]=Gt[Y]=Gt[ae]=Gt[se]=Gt[Ie]=!1;var zt={};zt[oe]=zt[pe]=zt[at]=zt[Le]=zt[ye]=zt[de]=zt[De]=zt[ft]=zt[Pt]=zt[Et]=zt[We]=zt[be]=zt[ge]=zt[Be]=zt[Y]=zt[ae]=zt[se]=zt[le]=zt[et]=zt[Te]=zt[ze]=zt[ct]=!0,zt[ve]=zt[_e]=zt[Ie]=!1;var IV={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},jV={"&":"&","<":"<",">":">",'"':""","'":"'"},AV={"&":"&","<":"<",">":">",""":'"',"'":"'"},MV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},FV=parseFloat,LV=parseInt,WR=typeof ao=="object"&&ao&&ao.Object===Object&&ao,NV=typeof self=="object"&&self&&self.Object===Object&&self,Hr=WR||NV||Function("return this")(),P_=t&&!t.nodeType&&t,al=P_&&!0&&e&&!e.nodeType&&e,qR=al&&al.exports===P_,$_=qR&&WR.process,So=function(){try{var Z=al&&al.require&&al.require("util").types;return Z||$_&&$_.binding&&$_.binding("util")}catch{}}(),HR=So&&So.isArrayBuffer,GR=So&&So.isDate,KR=So&&So.isMap,QR=So&&So.isRegExp,XR=So&&So.isSet,YR=So&&So.isTypedArray;function Yn(Z,me,ue){switch(ue.length){case 0:return Z.call(me);case 1:return Z.call(me,ue[0]);case 2:return Z.call(me,ue[0],ue[1]);case 3:return Z.call(me,ue[0],ue[1],ue[2])}return Z.apply(me,ue)}function DV(Z,me,ue,Ke){for(var st=-1,$t=Z==null?0:Z.length;++st<$t;){var kr=Z[st];me(Ke,kr,ue(kr),Z)}return Ke}function Oo(Z,me){for(var ue=-1,Ke=Z==null?0:Z.length;++ue-1}function R_(Z,me,ue){for(var Ke=-1,st=Z==null?0:Z.length;++Ke-1;);return ue}function ak(Z,me){for(var ue=Z.length;ue--&&gu(me,Z[ue],0)>-1;);return ue}function KV(Z,me){for(var ue=Z.length,Ke=0;ue--;)Z[ue]===me&&++Ke;return Ke}var QV=j_(IV),XV=j_(jV);function YV(Z){return"\\"+MV[Z]}function JV(Z,me){return Z==null?r:Z[me]}function yu(Z){return $V.test(Z)}function ZV(Z){return RV.test(Z)}function eW(Z){for(var me,ue=[];!(me=Z.next()).done;)ue.push(me.value);return ue}function L_(Z){var me=-1,ue=Array(Z.size);return Z.forEach(function(Ke,st){ue[++me]=[st,Ke]}),ue}function ik(Z,me){return function(ue){return Z(me(ue))}}function Hi(Z,me){for(var ue=-1,Ke=Z.length,st=0,$t=[];++ue-1}function zW(u,p){var y=this.__data__,T=Cm(y,u);return T<0?(++this.size,y.push([u,p])):y[T][1]=p,this}ai.prototype.clear=LW,ai.prototype.delete=NW,ai.prototype.get=DW,ai.prototype.has=BW,ai.prototype.set=zW;function ii(u){var p=-1,y=u==null?0:u.length;for(this.clear();++p=p?u:p)),u}function Po(u,p,y,T,M,B){var K,Q=p&v,re=p&m,xe=p&h;if(y&&(K=M?y(u,T,M,B):y(u)),K!==r)return K;if(!rr(u))return u;var we=lt(u);if(we){if(K=q7(u),!Q)return jn(u,K)}else{var Pe=an(u),Ne=Pe==_e||Pe==ie;if(Ji(u))return Uk(u,Q);if(Pe==Be||Pe==oe||Ne&&!M){if(K=re||Ne?{}:sT(u),!Q)return re?A7(u,n7(K,u)):j7(u,yk(K,u))}else{if(!zt[Pe])return M?u:{};K=H7(u,Pe,Q)}}B||(B=new ia);var Ye=B.get(u);if(Ye)return Ye;B.set(u,K),FT(u)?u.forEach(function(ot){K.add(Po(ot,p,y,ot,u,B))}):AT(u)&&u.forEach(function(ot,gt){K.set(gt,Po(ot,p,y,gt,u,B))});var nt=xe?re?u1:l1:re?Mn:Nr,dt=we?r:nt(u);return Oo(dt||u,function(ot,gt){dt&&(gt=ot,ot=u[gt]),Jd(K,gt,Po(ot,p,y,gt,u,B))}),K}function o7(u){var p=Nr(u);return function(y){return bk(y,u,p)}}function bk(u,p,y){var T=y.length;if(u==null)return!T;for(u=Dt(u);T--;){var M=y[T],B=p[M],K=u[M];if(K===r&&!(M in u)||!B(K))return!1}return!0}function _k(u,p,y){if(typeof u!="function")throw new Co(i);return af(function(){u.apply(r,y)},p)}function Zd(u,p,y,T){var M=-1,B=lm,K=!0,Q=u.length,re=[],xe=p.length;if(!Q)return re;y&&(p=Zt(p,Jn(y))),T?(B=R_,K=!1):p.length>=o&&(B=Hd,K=!1,p=new ll(p));e:for(;++MM?0:M+y),T=T===r||T>M?M:ut(T),T<0&&(T+=M),T=y>T?0:NT(T);y0&&y(Q)?p>1?Gr(Q,p-1,y,T,M):qi(M,Q):T||(M[M.length]=Q)}return M}var W_=Kk(),Sk=Kk(!0);function $a(u,p){return u&&W_(u,p,Nr)}function q_(u,p){return u&&Sk(u,p,Nr)}function Pm(u,p){return Wi(p,function(y){return di(u[y])})}function cl(u,p){p=Xi(p,u);for(var y=0,T=p.length;u!=null&&yp}function s7(u,p){return u!=null&&It.call(u,p)}function l7(u,p){return u!=null&&p in Dt(u)}function u7(u,p,y){return u>=on(p,y)&&u=120&&we.length>=120)?new ll(K&&we):r}we=u[0];var Pe=-1,Ne=Q[0];e:for(;++Pe-1;)Q!==u&&ym.call(Q,re,1),ym.call(u,re,1);return u}function Ak(u,p){for(var y=u?p.length:0,T=y-1;y--;){var M=p[y];if(y==T||M!==B){var B=M;ci(M)?ym.call(u,M,1):t1(u,M)}}return u}function J_(u,p){return u+xm(vk()*(p-u+1))}function w7(u,p,y,T){for(var M=-1,B=Tr(_m((p-u)/(y||1)),0),K=ue(B);B--;)K[T?B:++M]=u,u+=y;return K}function Z_(u,p){var y="";if(!u||p<1||p>z)return y;do p%2&&(y+=u),p=xm(p/2),p&&(u+=u);while(p);return y}function pt(u,p){return h1(cT(u,p,Fn),u+"")}function S7(u){return gk(Ru(u))}function O7(u,p){var y=Ru(u);return Nm(y,ul(p,0,y.length))}function rf(u,p,y,T){if(!rr(u))return u;p=Xi(p,u);for(var M=-1,B=p.length,K=B-1,Q=u;Q!=null&&++MM?0:M+p),y=y>M?M:y,y<0&&(y+=M),M=p>y?0:y-p>>>0,p>>>=0;for(var B=ue(M);++T>>1,K=u[B];K!==null&&!eo(K)&&(y?K<=p:K=o){var xe=p?null:N7(u);if(xe)return cm(xe);K=!1,M=Hd,re=new ll}else re=p?[]:Q;e:for(;++T=T?u:$o(u,p,y)}var zk=mW||function(u){return Hr.clearTimeout(u)};function Uk(u,p){if(p)return u.slice();var y=u.length,T=uk?uk(y):new u.constructor(y);return u.copy(T),T}function a1(u){var p=new u.constructor(u.byteLength);return new hm(p).set(new hm(u)),p}function R7(u,p){var y=p?a1(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function k7(u){var p=new u.constructor(u.source,om.exec(u));return p.lastIndex=u.lastIndex,p}function T7(u){return Yd?Dt(Yd.call(u)):{}}function Vk(u,p){var y=p?a1(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function Wk(u,p){if(u!==p){var y=u!==r,T=u===null,M=u===u,B=eo(u),K=p!==r,Q=p===null,re=p===p,xe=eo(p);if(!Q&&!xe&&!B&&u>p||B&&K&&re&&!Q&&!xe||T&&K&&re||!y&&re||!M)return 1;if(!T&&!B&&!xe&&u=Q)return re;var xe=y[T];return re*(xe=="desc"?-1:1)}}return u.index-p.index}function qk(u,p,y,T){for(var M=-1,B=u.length,K=y.length,Q=-1,re=p.length,xe=Tr(B-K,0),we=ue(re+xe),Pe=!T;++Q1?y[M-1]:r,K=M>2?y[2]:r;for(B=u.length>3&&typeof B=="function"?(M--,B):r,K&&_n(y[0],y[1],K)&&(B=M<3?r:B,M=1),p=Dt(p);++T-1?M[B?p[K]:K]:r}}function Yk(u){return ui(function(p){var y=p.length,T=y,M=Eo.prototype.thru;for(u&&p.reverse();T--;){var B=p[T];if(typeof B!="function")throw new Co(i);if(M&&!K&&Fm(B)=="wrapper")var K=new Eo([],!0)}for(T=K?T:y;++T1&&wt.reverse(),we&&reQ))return!1;var xe=B.get(u),we=B.get(p);if(xe&&we)return xe==p&&we==u;var Pe=-1,Ne=!0,Ye=y&w?new ll:r;for(B.set(u,p),B.set(p,u);++Pe1?"& ":"")+p[T],p=p.join(y>2?", ":" "),u.replace(y_,`{ -/* [wrapped with `+p+`] */ -`)}function K7(u){return lt(u)||pl(u)||!!(fk&&u&&u[fk])}function ci(u,p){var y=typeof u;return p=p??z,!!p&&(y=="number"||y!="symbol"&&yn.test(u))&&u>-1&&u%1==0&&u0){if(++p>=L)return arguments[0]}else p=0;return u.apply(r,arguments)}}function Nm(u,p){var y=-1,T=u.length,M=T-1;for(p=p===r?T:p;++y1?u[p-1]:r;return y=typeof y=="function"?(u.pop(),y):r,wT(u,y)});function ST(u){var p=N(u);return p.__chain__=!0,p}function aH(u,p){return p(u),u}function Dm(u,p){return p(u)}var iH=ui(function(u){var p=u.length,y=p?u[0]:0,T=this.__wrapped__,M=function(B){return V_(B,u)};return p>1||this.__actions__.length||!(T instanceof _t)||!ci(y)?this.thru(M):(T=T.slice(y,+y+(p?1:0)),T.__actions__.push({func:Dm,args:[M],thisArg:r}),new Eo(T,this.__chain__).thru(function(B){return p&&!B.length&&B.push(r),B}))});function sH(){return ST(this)}function lH(){return new Eo(this.value(),this.__chain__)}function uH(){this.__values__===r&&(this.__values__=LT(this.value()));var u=this.__index__>=this.__values__.length,p=u?r:this.__values__[this.__index__++];return{done:u,value:p}}function cH(){return this}function dH(u){for(var p,y=this;y instanceof Om;){var T=hT(y);T.__index__=0,T.__values__=r,p?M.__wrapped__=T:p=T;var M=T;y=y.__wrapped__}return M.__wrapped__=u,p}function fH(){var u=this.__wrapped__;if(u instanceof _t){var p=u;return this.__actions__.length&&(p=new _t(this)),p=p.reverse(),p.__actions__.push({func:Dm,args:[g1],thisArg:r}),new Eo(p,this.__chain__)}return this.thru(g1)}function pH(){return Dk(this.__wrapped__,this.__actions__)}var vH=Tm(function(u,p,y){It.call(u,y)?++u[y]:si(u,y,1)});function mH(u,p,y){var T=lt(u)?JR:a7;return y&&_n(u,p,y)&&(p=r),T(u,tt(p,3))}function hH(u,p){var y=lt(u)?Wi:wk;return y(u,tt(p,3))}var gH=Xk(gT),yH=Xk(yT);function bH(u,p){return Gr(Bm(u,p),1)}function _H(u,p){return Gr(Bm(u,p),G)}function xH(u,p,y){return y=y===r?1:ut(y),Gr(Bm(u,p),y)}function OT(u,p){var y=lt(u)?Oo:Ki;return y(u,tt(p,3))}function CT(u,p){var y=lt(u)?BV:xk;return y(u,tt(p,3))}var wH=Tm(function(u,p,y){It.call(u,y)?u[y].push(p):si(u,y,[p])});function SH(u,p,y,T){u=An(u)?u:Ru(u),y=y&&!T?ut(y):0;var M=u.length;return y<0&&(y=Tr(M+y,0)),qm(u)?y<=M&&u.indexOf(p,y)>-1:!!M&&gu(u,p,y)>-1}var OH=pt(function(u,p,y){var T=-1,M=typeof p=="function",B=An(u)?ue(u.length):[];return Ki(u,function(K){B[++T]=M?Yn(p,K,y):ef(K,p,y)}),B}),CH=Tm(function(u,p,y){si(u,y,p)});function Bm(u,p){var y=lt(u)?Zt:$k;return y(u,tt(p,3))}function EH(u,p,y,T){return u==null?[]:(lt(p)||(p=p==null?[]:[p]),y=T?r:y,lt(y)||(y=y==null?[]:[y]),Ik(u,p,y))}var PH=Tm(function(u,p,y){u[y?0:1].push(p)},function(){return[[],[]]});function $H(u,p,y){var T=lt(u)?k_:rk,M=arguments.length<3;return T(u,tt(p,4),y,M,Ki)}function RH(u,p,y){var T=lt(u)?zV:rk,M=arguments.length<3;return T(u,tt(p,4),y,M,xk)}function kH(u,p){var y=lt(u)?Wi:wk;return y(u,Vm(tt(p,3)))}function TH(u){var p=lt(u)?gk:S7;return p(u)}function IH(u,p,y){(y?_n(u,p,y):p===r)?p=1:p=ut(p);var T=lt(u)?e7:O7;return T(u,p)}function jH(u){var p=lt(u)?t7:E7;return p(u)}function AH(u){if(u==null)return 0;if(An(u))return qm(u)?bu(u):u.length;var p=an(u);return p==be||p==ae?u.size:Q_(u).length}function MH(u,p,y){var T=lt(u)?T_:P7;return y&&_n(u,p,y)&&(p=r),T(u,tt(p,3))}var FH=pt(function(u,p){if(u==null)return[];var y=p.length;return y>1&&_n(u,p[0],p[1])?p=[]:y>2&&_n(p[0],p[1],p[2])&&(p=[p[0]]),Ik(u,Gr(p,1),[])}),zm=hW||function(){return Hr.Date.now()};function LH(u,p){if(typeof p!="function")throw new Co(i);return u=ut(u),function(){if(--u<1)return p.apply(this,arguments)}}function ET(u,p,y){return p=y?r:p,p=u&&p==null?u.length:p,li(u,k,r,r,r,r,p)}function PT(u,p){var y;if(typeof p!="function")throw new Co(i);return u=ut(u),function(){return--u>0&&(y=p.apply(this,arguments)),u<=1&&(p=r),y}}var b1=pt(function(u,p,y){var T=O;if(y.length){var M=Hi(y,Pu(b1));T|=P}return li(u,T,p,y,M)}),$T=pt(function(u,p,y){var T=O|b;if(y.length){var M=Hi(y,Pu($T));T|=P}return li(p,T,u,y,M)});function RT(u,p,y){p=y?r:p;var T=li(u,_,r,r,r,r,r,p);return T.placeholder=RT.placeholder,T}function kT(u,p,y){p=y?r:p;var T=li(u,$,r,r,r,r,r,p);return T.placeholder=kT.placeholder,T}function TT(u,p,y){var T,M,B,K,Q,re,xe=0,we=!1,Pe=!1,Ne=!0;if(typeof u!="function")throw new Co(i);p=ko(p)||0,rr(y)&&(we=!!y.leading,Pe="maxWait"in y,B=Pe?Tr(ko(y.maxWait)||0,p):B,Ne="trailing"in y?!!y.trailing:Ne);function Ye(pr){var la=T,pi=M;return T=M=r,xe=pr,K=u.apply(pi,la),K}function nt(pr){return xe=pr,Q=af(gt,p),we?Ye(pr):K}function dt(pr){var la=pr-re,pi=pr-xe,XT=p-la;return Pe?on(XT,B-pi):XT}function ot(pr){var la=pr-re,pi=pr-xe;return re===r||la>=p||la<0||Pe&&pi>=B}function gt(){var pr=zm();if(ot(pr))return wt(pr);Q=af(gt,dt(pr))}function wt(pr){return Q=r,Ne&&T?Ye(pr):(T=M=r,K)}function to(){Q!==r&&zk(Q),xe=0,T=re=M=Q=r}function xn(){return Q===r?K:wt(zm())}function ro(){var pr=zm(),la=ot(pr);if(T=arguments,M=this,re=pr,la){if(Q===r)return nt(re);if(Pe)return zk(Q),Q=af(gt,p),Ye(re)}return Q===r&&(Q=af(gt,p)),K}return ro.cancel=to,ro.flush=xn,ro}var NH=pt(function(u,p){return _k(u,1,p)}),DH=pt(function(u,p,y){return _k(u,ko(p)||0,y)});function BH(u){return li(u,I)}function Um(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new Co(i);var y=function(){var T=arguments,M=p?p.apply(this,T):T[0],B=y.cache;if(B.has(M))return B.get(M);var K=u.apply(this,T);return y.cache=B.set(M,K)||B,K};return y.cache=new(Um.Cache||ii),y}Um.Cache=ii;function Vm(u){if(typeof u!="function")throw new Co(i);return function(){var p=arguments;switch(p.length){case 0:return!u.call(this);case 1:return!u.call(this,p[0]);case 2:return!u.call(this,p[0],p[1]);case 3:return!u.call(this,p[0],p[1],p[2])}return!u.apply(this,p)}}function zH(u){return PT(2,u)}var UH=$7(function(u,p){p=p.length==1&<(p[0])?Zt(p[0],Jn(tt())):Zt(Gr(p,1),Jn(tt()));var y=p.length;return pt(function(T){for(var M=-1,B=on(T.length,y);++M=p}),pl=Ck(function(){return arguments}())?Ck:function(u){return lr(u)&&It.call(u,"callee")&&!dk.call(u,"callee")},lt=ue.isArray,nG=HR?Jn(HR):d7;function An(u){return u!=null&&Wm(u.length)&&!di(u)}function fr(u){return lr(u)&&An(u)}function oG(u){return u===!0||u===!1||lr(u)&&bn(u)==ye}var Ji=yW||T1,aG=GR?Jn(GR):f7;function iG(u){return lr(u)&&u.nodeType===1&&!sf(u)}function sG(u){if(u==null)return!0;if(An(u)&&(lt(u)||typeof u=="string"||typeof u.splice=="function"||Ji(u)||$u(u)||pl(u)))return!u.length;var p=an(u);if(p==be||p==ae)return!u.size;if(of(u))return!Q_(u).length;for(var y in u)if(It.call(u,y))return!1;return!0}function lG(u,p){return tf(u,p)}function uG(u,p,y){y=typeof y=="function"?y:r;var T=y?y(u,p):r;return T===r?tf(u,p,r,y):!!T}function x1(u){if(!lr(u))return!1;var p=bn(u);return p==ve||p==he||typeof u.message=="string"&&typeof u.name=="string"&&!sf(u)}function cG(u){return typeof u=="number"&&pk(u)}function di(u){if(!rr(u))return!1;var p=bn(u);return p==_e||p==ie||p==Re||p==X}function jT(u){return typeof u=="number"&&u==ut(u)}function Wm(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=z}function rr(u){var p=typeof u;return u!=null&&(p=="object"||p=="function")}function lr(u){return u!=null&&typeof u=="object"}var AT=KR?Jn(KR):v7;function dG(u,p){return u===p||K_(u,p,d1(p))}function fG(u,p,y){return y=typeof y=="function"?y:r,K_(u,p,d1(p),y)}function pG(u){return MT(u)&&u!=+u}function vG(u){if(Y7(u))throw new st(a);return Ek(u)}function mG(u){return u===null}function hG(u){return u==null}function MT(u){return typeof u=="number"||lr(u)&&bn(u)==ge}function sf(u){if(!lr(u)||bn(u)!=Be)return!1;var p=gm(u);if(p===null)return!0;var y=It.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&pm.call(y)==fW}var w1=QR?Jn(QR):m7;function gG(u){return jT(u)&&u>=-z&&u<=z}var FT=XR?Jn(XR):h7;function qm(u){return typeof u=="string"||!lt(u)&&lr(u)&&bn(u)==se}function eo(u){return typeof u=="symbol"||lr(u)&&bn(u)==le}var $u=YR?Jn(YR):g7;function yG(u){return u===r}function bG(u){return lr(u)&&an(u)==Ie}function _G(u){return lr(u)&&bn(u)==rt}var xG=Mm(X_),wG=Mm(function(u,p){return u<=p});function LT(u){if(!u)return[];if(An(u))return qm(u)?aa(u):jn(u);if(Gd&&u[Gd])return eW(u[Gd]());var p=an(u),y=p==be?L_:p==ae?cm:Ru;return y(u)}function fi(u){if(!u)return u===0?u:0;if(u=ko(u),u===G||u===-G){var p=u<0?-1:1;return p*W}return u===u?u:0}function ut(u){var p=fi(u),y=p%1;return p===p?y?p-y:p:0}function NT(u){return u?ul(ut(u),0,ne):0}function ko(u){if(typeof u=="number")return u;if(eo(u))return te;if(rr(u)){var p=typeof u.valueOf=="function"?u.valueOf():u;u=rr(p)?p+"":p}if(typeof u!="string")return u===0?u:+u;u=nk(u);var y=__.test(u);return y||ht.test(u)?LV(u.slice(2),y?2:8):b_.test(u)?te:+u}function DT(u){return Ra(u,Mn(u))}function SG(u){return u?ul(ut(u),-z,z):u===0?u:0}function Tt(u){return u==null?"":Zn(u)}var OG=Cu(function(u,p){if(of(p)||An(p)){Ra(p,Nr(p),u);return}for(var y in p)It.call(p,y)&&Jd(u,y,p[y])}),BT=Cu(function(u,p){Ra(p,Mn(p),u)}),Hm=Cu(function(u,p,y,T){Ra(p,Mn(p),u,T)}),CG=Cu(function(u,p,y,T){Ra(p,Nr(p),u,T)}),EG=ui(V_);function PG(u,p){var y=Ou(u);return p==null?y:yk(y,p)}var $G=pt(function(u,p){u=Dt(u);var y=-1,T=p.length,M=T>2?p[2]:r;for(M&&_n(p[0],p[1],M)&&(T=1);++y1),B}),Ra(u,u1(u),y),T&&(y=Po(y,v|m|h,D7));for(var M=p.length;M--;)t1(y,p[M]);return y});function HG(u,p){return UT(u,Vm(tt(p)))}var GG=ui(function(u,p){return u==null?{}:_7(u,p)});function UT(u,p){if(u==null)return{};var y=Zt(u1(u),function(T){return[T]});return p=tt(p),jk(u,y,function(T,M){return p(T,M[0])})}function KG(u,p,y){p=Xi(p,u);var T=-1,M=p.length;for(M||(M=1,u=r);++Tp){var T=u;u=p,p=T}if(y||u%1||p%1){var M=vk();return on(u+M*(p-u+FV("1e-"+((M+"").length-1))),p)}return J_(u,p)}var aK=Eu(function(u,p,y){return p=p.toLowerCase(),u+(y?qT(p):p)});function qT(u){return C1(Tt(u).toLowerCase())}function HT(u){return u=Tt(u),u&&u.replace(sV,QV).replace(EV,"")}function iK(u,p,y){u=Tt(u),p=Zn(p);var T=u.length;y=y===r?T:ul(ut(y),0,T);var M=y;return y-=p.length,y>=0&&u.slice(y,M)==p}function sK(u){return u=Tt(u),u&&Vi.test(u)?u.replace(oa,XV):u}function lK(u){return u=Tt(u),u&&Wd.test(u)?u.replace(oi,"\\$&"):u}var uK=Eu(function(u,p,y){return u+(y?"-":"")+p.toLowerCase()}),cK=Eu(function(u,p,y){return u+(y?" ":"")+p.toLowerCase()}),dK=Qk("toLowerCase");function fK(u,p,y){u=Tt(u),p=ut(p);var T=p?bu(u):0;if(!p||T>=p)return u;var M=(p-T)/2;return Am(xm(M),y)+u+Am(_m(M),y)}function pK(u,p,y){u=Tt(u),p=ut(p);var T=p?bu(u):0;return p&&T>>0,y?(u=Tt(u),u&&(typeof p=="string"||p!=null&&!w1(p))&&(p=Zn(p),!p&&yu(u))?Yi(aa(u),0,y):u.split(p,y)):[]}var _K=Eu(function(u,p,y){return u+(y?" ":"")+C1(p)});function xK(u,p,y){return u=Tt(u),y=y==null?0:ul(ut(y),0,u.length),p=Zn(p),u.slice(y,y+p.length)==p}function wK(u,p,y){var T=N.templateSettings;y&&_n(u,p,y)&&(p=r),u=Tt(u),p=Hm({},p,T,rT);var M=Hm({},p.imports,T.imports,rT),B=Nr(M),K=F_(M,B),Q,re,xe=0,we=p.interpolate||am,Pe="__p += '",Ne=N_((p.escape||am).source+"|"+we.source+"|"+(we===Zv?nm:am).source+"|"+(p.evaluate||am).source+"|$","g"),Ye="//# sourceURL="+(It.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++TV+"]")+` -`;u.replace(Ne,function(ot,gt,wt,to,xn,ro){return wt||(wt=to),Pe+=u.slice(xe,ro).replace(lV,YV),gt&&(Q=!0,Pe+=`' + -__e(`+gt+`) + -'`),xn&&(re=!0,Pe+=`'; -`+xn+`; -__p += '`),wt&&(Pe+=`' + -((__t = (`+wt+`)) == null ? '' : __t) + -'`),xe=ro+ot.length,ot}),Pe+=`'; -`;var nt=It.call(p,"variable")&&p.variable;if(!nt)Pe=`with (obj) { -`+Pe+` -} -`;else if(tm.test(nt))throw new st(s);Pe=(re?Pe.replace(bt,""):Pe).replace(Jt,"$1").replace(Rr,"$1;"),Pe="function("+(nt||"obj")+`) { -`+(nt?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(re?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Pe+`return __p -}`;var dt=KT(function(){return $t(B,Ye+"return "+Pe).apply(r,K)});if(dt.source=Pe,x1(dt))throw dt;return dt}function SK(u){return Tt(u).toLowerCase()}function OK(u){return Tt(u).toUpperCase()}function CK(u,p,y){if(u=Tt(u),u&&(y||p===r))return nk(u);if(!u||!(p=Zn(p)))return u;var T=aa(u),M=aa(p),B=ok(T,M),K=ak(T,M)+1;return Yi(T,B,K).join("")}function EK(u,p,y){if(u=Tt(u),u&&(y||p===r))return u.slice(0,sk(u)+1);if(!u||!(p=Zn(p)))return u;var T=aa(u),M=ak(T,aa(p))+1;return Yi(T,0,M).join("")}function PK(u,p,y){if(u=Tt(u),u&&(y||p===r))return u.replace(gn,"");if(!u||!(p=Zn(p)))return u;var T=aa(u),M=ok(T,aa(p));return Yi(T,M).join("")}function $K(u,p){var y=A,T=F;if(rr(p)){var M="separator"in p?p.separator:M;y="length"in p?ut(p.length):y,T="omission"in p?Zn(p.omission):T}u=Tt(u);var B=u.length;if(yu(u)){var K=aa(u);B=K.length}if(y>=B)return u;var Q=y-bu(T);if(Q<1)return T;var re=K?Yi(K,0,Q).join(""):u.slice(0,Q);if(M===r)return re+T;if(K&&(Q+=re.length-Q),w1(M)){if(u.slice(Q).search(M)){var xe,we=re;for(M.global||(M=N_(M.source,Tt(om.exec(M))+"g")),M.lastIndex=0;xe=M.exec(we);)var Pe=xe.index;re=re.slice(0,Pe===r?Q:Pe)}}else if(u.indexOf(Zn(M),Q)!=Q){var Ne=re.lastIndexOf(M);Ne>-1&&(re=re.slice(0,Ne))}return re+T}function RK(u){return u=Tt(u),u&&Xn.test(u)?u.replace(hn,oW):u}var kK=Eu(function(u,p,y){return u+(y?" ":"")+p.toUpperCase()}),C1=Qk("toUpperCase");function GT(u,p,y){return u=Tt(u),p=y?r:p,p===r?ZV(u)?sW(u):WV(u):u.match(p)||[]}var KT=pt(function(u,p){try{return Yn(u,r,p)}catch(y){return x1(y)?y:new st(y)}}),TK=ui(function(u,p){return Oo(p,function(y){y=ka(y),si(u,y,b1(u[y],u))}),u});function IK(u){var p=u==null?0:u.length,y=tt();return u=p?Zt(u,function(T){if(typeof T[1]!="function")throw new Co(i);return[y(T[0]),T[1]]}):[],pt(function(T){for(var M=-1;++Mz)return[];var y=ne,T=on(u,ne);p=tt(p),u-=ne;for(var M=M_(T,p);++y0||p<0)?new _t(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),p!==r&&(p=ut(p),y=p<0?y.dropRight(-p):y.take(p-u)),y)},_t.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},_t.prototype.toArray=function(){return this.take(ne)},$a(_t.prototype,function(u,p){var y=/^(?:filter|find|map|reject)|While$/.test(p),T=/^(?:head|last)$/.test(p),M=N[T?"take"+(p=="last"?"Right":""):p],B=T||/^find/.test(p);M&&(N.prototype[p]=function(){var K=this.__wrapped__,Q=T?[1]:arguments,re=K instanceof _t,xe=Q[0],we=re||lt(K),Pe=function(gt){var wt=M.apply(N,qi([gt],Q));return T&&Ne?wt[0]:wt};we&&y&&typeof xe=="function"&&xe.length!=1&&(re=we=!1);var Ne=this.__chain__,Ye=!!this.__actions__.length,nt=B&&!Ne,dt=re&&!Ye;if(!B&&we){K=dt?K:new _t(this);var ot=u.apply(K,Q);return ot.__actions__.push({func:Dm,args:[Pe],thisArg:r}),new Eo(ot,Ne)}return nt&&dt?u.apply(this,Q):(ot=this.thru(Pe),nt?T?ot.value()[0]:ot.value():ot)})}),Oo(["pop","push","shift","sort","splice","unshift"],function(u){var p=dm[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",T=/^(?:pop|shift)$/.test(u);N.prototype[u]=function(){var M=arguments;if(T&&!this.__chain__){var B=this.value();return p.apply(lt(B)?B:[],M)}return this[y](function(K){return p.apply(lt(K)?K:[],M)})}}),$a(_t.prototype,function(u,p){var y=N[p];if(y){var T=y.name+"";It.call(Su,T)||(Su[T]=[]),Su[T].push({name:p,func:y})}}),Su[Im(r,b).name]=[{name:"wrapper",func:r}],_t.prototype.clone=RW,_t.prototype.reverse=kW,_t.prototype.value=TW,N.prototype.at=iH,N.prototype.chain=sH,N.prototype.commit=lH,N.prototype.next=uH,N.prototype.plant=dH,N.prototype.reverse=fH,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=pH,N.prototype.first=N.prototype.head,Gd&&(N.prototype[Gd]=cH),N},_u=lW();al?((al.exports=_u)._=_u,P_._=_u):Hr._=_u}).call(ao)})(Xg,Xg.exports);var uv=Xg.exports,ij=Object.prototype.toString,R3=function(t){var r=ij.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&ij.call(t.callee)==="[object Function]"),n},ox,sj;function UY(){if(sj)return ox;sj=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=R3,o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(m){var h=m.constructor;return h&&h.prototype===m},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!l["$"+m]&&t.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{c(window[m])}catch{return!0}}catch{return!0}return!1}(),v=function(m){if(typeof window>"u"||!f)return c(m);try{return c(m)}catch{return!1}};e=function(h){var x=h!==null&&typeof h=="object",w=r.call(h)==="[object Function]",O=n(h),b=x&&r.call(h)==="[object String]",g=[];if(!x&&!w&&!O)throw new TypeError("Object.keys called on a non-object");var _=i&&w;if(b&&h.length>0&&!t.call(h,0))for(var $=0;$0)for(var P=0;P"u"||!Dr?xt:Dr(Uint8Array),Ll={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?xt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?xt:ArrayBuffer,"%ArrayIteratorPrototype%":Tu&&Dr?Dr([][Symbol.iterator]()):xt,"%AsyncFromSyncIteratorPrototype%":xt,"%AsyncFunction%":Vu,"%AsyncGenerator%":Vu,"%AsyncGeneratorFunction%":Vu,"%AsyncIteratorPrototype%":Vu,"%Atomics%":typeof Atomics>"u"?xt:Atomics,"%BigInt%":typeof BigInt>"u"?xt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?xt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?xt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?xt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":fJ,"%eval%":eval,"%EvalError%":pJ,"%Float32Array%":typeof Float32Array>"u"?xt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?xt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?xt:FinalizationRegistry,"%Function%":j3,"%GeneratorFunction%":Vu,"%Int8Array%":typeof Int8Array>"u"?xt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?xt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?xt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Tu&&Dr?Dr(Dr([][Symbol.iterator]())):xt,"%JSON%":typeof JSON=="object"?JSON:xt,"%Map%":typeof Map>"u"?xt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Tu||!Dr?xt:Dr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?xt:Promise,"%Proxy%":typeof Proxy>"u"?xt:Proxy,"%RangeError%":vJ,"%ReferenceError%":mJ,"%Reflect%":typeof Reflect>"u"?xt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?xt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Tu||!Dr?xt:Dr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?xt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Tu&&Dr?Dr(""[Symbol.iterator]()):xt,"%Symbol%":Tu?Symbol:xt,"%SyntaxError%":Wc,"%ThrowTypeError%":gJ,"%TypedArray%":bJ,"%TypeError%":xc,"%Uint8Array%":typeof Uint8Array>"u"?xt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?xt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?xt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?xt:Uint32Array,"%URIError%":hJ,"%WeakMap%":typeof WeakMap>"u"?xt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?xt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?xt:WeakSet};if(Dr)try{null.error}catch(e){var _J=Dr(Dr(e));Ll["%Error.prototype%"]=_J}var xJ=function e(t){var r;if(t==="%AsyncFunction%")r=ix("async function () {}");else if(t==="%GeneratorFunction%")r=ix("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=ix("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Dr&&(r=Dr(o.prototype))}return Ll[t]=r,r},fj={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},cv=IE,Yg=dJ,wJ=cv.call(Function.call,Array.prototype.concat),SJ=cv.call(Function.apply,Array.prototype.splice),pj=cv.call(Function.call,String.prototype.replace),Jg=cv.call(Function.call,String.prototype.slice),OJ=cv.call(Function.call,RegExp.prototype.exec),CJ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,EJ=/\\(\\)?/g,PJ=function(t){var r=Jg(t,0,1),n=Jg(t,-1);if(r==="%"&&n!=="%")throw new Wc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Wc("invalid intrinsic syntax, expected opening `%`");var o=[];return pj(t,CJ,function(a,i,s,c){o[o.length]=s?pj(c,EJ,"$1"):i||a}),o},$J=function(t,r){var n=t,o;if(Yg(fj,n)&&(o=fj[n],n="%"+o[0]+"%"),Yg(Ll,n)){var a=Ll[n];if(a===Vu&&(a=xJ(n)),typeof a>"u"&&!r)throw new xc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Wc("intrinsic "+t+" does not exist!")},Ja=function(t,r){if(typeof t!="string"||t.length===0)throw new xc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new xc('"allowMissing" argument must be a boolean');if(OJ(/^%?[^%]*%?$/,t)===null)throw new Wc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=PJ(t),o=n.length>0?n[0]:"",a=$J("%"+o+"%",r),i=a.name,s=a.value,c=!1,l=a.alias;l&&(o=l[0],SJ(n,wJ([0,1],l)));for(var f=1,v=!0;f=n.length){var w=Fl(s,m);v=!!w,v&&"get"in w&&!("originalValue"in w.get)?s=w.get:s=s[m]}else v=Yg(s,m),s=s[m];v&&!c&&(Ll[i]=s)}}return s},RJ=Ja,Kh=RJ("%Object.defineProperty%",!0)||!1;if(Kh)try{Kh({},"a",{value:1})}catch{Kh=!1}var jE=Kh,kJ=Ja,Qh=kJ("%Object.getOwnPropertyDescriptor%",!0);if(Qh)try{Qh([],"length")}catch{Qh=null}var A3=Qh,vj=jE,TJ=k3,Iu=Tn,mj=A3,M3=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Iu("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Iu("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Iu("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Iu("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Iu("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Iu("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,c=!!mj&&mj(t,r);if(vj)vj(t,r,{configurable:i===null&&c?c.configurable:!i,enumerable:o===null&&c?c.enumerable:!o,value:n,writable:a===null&&c?c.writable:!a});else if(s||!o&&!a&&!i)t[r]=n;else throw new TJ("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},lS=jE,F3=function(){return!!lS};F3.hasArrayLengthDefineBug=function(){if(!lS)return null;try{return lS([],"length",{value:1}).length!==1}catch{return!0}};var L3=F3,IJ=qY,jJ=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",AJ=Object.prototype.toString,MJ=Array.prototype.concat,hj=M3,FJ=function(e){return typeof e=="function"&&AJ.call(e)==="[object Function]"},N3=L3(),LJ=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!FJ(n)||!n())return}N3?hj(e,t,r,!0):hj(e,t,r)},D3=function(e,t){var r=arguments.length>2?arguments[2]:{},n=IJ(t);jJ&&(n=MJ.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||BJ(r)!==r)throw new bj("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&yj){var i=yj(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(DJ?gj(t,"length",r,!0,!0):gj(t,"length",r)),t};(function(e){var t=IE,r=Ja,n=zJ,o=Tn,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,a),c=jE,l=r("%Math.max%");e.exports=function(m){if(typeof m!="function")throw new o("a function is required");var h=s(t,i,arguments);return n(h,1+l(0,m.length-(arguments.length-1)),!0)};var f=function(){return s(t,a,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f})(B3);var jb=B3.exports,z3=Ja,U3=jb,UJ=U3(z3("String.prototype.indexOf")),ji=function(t,r){var n=z3(t,!!r);return typeof n=="function"&&UJ(t,".prototype.")>-1?U3(n):n},VJ=Tn,dv=function(t){if(t==null)throw new VJ(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},WJ=Ja,V3=WJ("%Array%"),qJ=!V3.isArray&&ji("Object.prototype.toString"),HJ=V3.isArray||function(t){return qJ(t)==="[object Array]"},GJ=HJ,KJ=Ja,QJ=ji,XJ=Tn,YJ=GJ,JJ=KJ("%Reflect.apply%",!0)||QJ("Function.prototype.apply"),ZJ=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!YJ(n))throw new XJ("Assertion failed: optional `argumentsList`, if provided, must be a List");return JJ(t,r,n)};const eZ={},tZ=Object.freeze(Object.defineProperty({__proto__:null,default:eZ},Symbol.toStringTag,{value:"Module"})),rZ=Ya(tZ);var AE=typeof Map=="function"&&Map.prototype,lx=Object.getOwnPropertyDescriptor&&AE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Zg=AE&&lx&&typeof lx.get=="function"?lx.get:null,_j=AE&&Map.prototype.forEach,ME=typeof Set=="function"&&Set.prototype,ux=Object.getOwnPropertyDescriptor&&ME?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ey=ME&&ux&&typeof ux.get=="function"?ux.get:null,xj=ME&&Set.prototype.forEach,nZ=typeof WeakMap=="function"&&WeakMap.prototype,Kf=nZ?WeakMap.prototype.has:null,oZ=typeof WeakSet=="function"&&WeakSet.prototype,Qf=oZ?WeakSet.prototype.has:null,aZ=typeof WeakRef=="function"&&WeakRef.prototype,wj=aZ?WeakRef.prototype.deref:null,iZ=Boolean.prototype.valueOf,sZ=Object.prototype.toString,lZ=Function.prototype.toString,uZ=String.prototype.match,FE=String.prototype.slice,gs=String.prototype.replace,cZ=String.prototype.toUpperCase,Sj=String.prototype.toLowerCase,W3=RegExp.prototype.test,Oj=Array.prototype.concat,Ma=Array.prototype.join,dZ=Array.prototype.slice,Cj=Math.floor,uS=typeof BigInt=="function"?BigInt.prototype.valueOf:null,cx=Object.getOwnPropertySymbols,cS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,qc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",mn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===qc||!0)?Symbol.toStringTag:null,q3=Object.prototype.propertyIsEnumerable,Ej=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Pj(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||W3.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Cj(-e):Cj(e);if(n!==e){var o=String(n),a=FE.call(t,o.length+1);return gs.call(o,r,"$&_")+"."+gs.call(gs.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return gs.call(t,r,"$&_")}var dS=rZ,$j=dS.custom,Rj=G3($j)?$j:null,fZ=function e(t,r,n,o){var a=r||{};if(ls(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ls(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=ls(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ls(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ls(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Q3(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return s?Pj(t,c):c}if(typeof t=="bigint"){var l=String(t)+"n";return s?Pj(t,l):l}var f=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof t=="object")return fS(t)?"[Array]":"[Object]";var v=kZ(a,n);if(typeof o>"u")o=[];else if(K3(o,t)>=0)return"[Circular]";function m(D,U,H){if(U&&(o=dZ.call(o),o.push(U)),H){var q={depth:a.depth};return ls(a,"quoteStyle")&&(q.quoteStyle=a.quoteStyle),e(D,q,n+1,o)}return e(D,a,n+1,o)}if(typeof t=="function"&&!kj(t)){var h=xZ(t),x=ch(t,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(x.length>0?" { "+Ma.call(x,", ")+" }":"")}if(G3(t)){var w=qc?gs.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):cS.call(t);return typeof t=="object"&&!qc?hf(w):w}if(PZ(t)){for(var O="<"+Sj.call(String(t.nodeName)),b=t.attributes||[],g=0;g",O}if(fS(t)){if(t.length===0)return"[]";var _=ch(t,m);return v&&!RZ(_)?"["+pS(_,v)+"]":"[ "+Ma.call(_,", ")+" ]"}if(mZ(t)){var $=ch(t,m);return!("cause"in Error.prototype)&&"cause"in t&&!q3.call(t,"cause")?"{ ["+String(t)+"] "+Ma.call(Oj.call("[cause]: "+m(t.cause),$),", ")+" }":$.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ma.call($,", ")+" }"}if(typeof t=="object"&&i){if(Rj&&typeof t[Rj]=="function"&&dS)return dS(t,{depth:f-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(wZ(t)){var P=[];return _j&&_j.call(t,function(D,U){P.push(m(U,t,!0)+" => "+m(D,t))}),Tj("Map",Zg.call(t),P,v)}if(CZ(t)){var C=[];return xj&&xj.call(t,function(D){C.push(m(D,t))}),Tj("Set",ey.call(t),C,v)}if(SZ(t))return dx("WeakMap");if(EZ(t))return dx("WeakSet");if(OZ(t))return dx("WeakRef");if(gZ(t))return hf(m(Number(t)));if(bZ(t))return hf(m(uS.call(t)));if(yZ(t))return hf(iZ.call(t));if(hZ(t))return hf(m(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===ao)return"{ [object globalThis] }";if(!vZ(t)&&!kj(t)){var k=ch(t,m),R=Ej?Ej(t)===Object.prototype:t instanceof Object||t.constructor===Object,I=t instanceof Object?"":"null prototype",A=!R&&mn&&Object(t)===t&&mn in t?FE.call(Vs(t),8,-1):I?"Object":"",F=R||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",L=F+(A||I?"["+Ma.call(Oj.call([],A||[],I||[]),": ")+"] ":"");return k.length===0?L+"{}":v?L+"{"+pS(k,v)+"}":L+"{ "+Ma.call(k,", ")+" }"}return String(t)};function H3(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function pZ(e){return gs.call(String(e),/"/g,""")}function fS(e){return Vs(e)==="[object Array]"&&(!mn||!(typeof e=="object"&&mn in e))}function vZ(e){return Vs(e)==="[object Date]"&&(!mn||!(typeof e=="object"&&mn in e))}function kj(e){return Vs(e)==="[object RegExp]"&&(!mn||!(typeof e=="object"&&mn in e))}function mZ(e){return Vs(e)==="[object Error]"&&(!mn||!(typeof e=="object"&&mn in e))}function hZ(e){return Vs(e)==="[object String]"&&(!mn||!(typeof e=="object"&&mn in e))}function gZ(e){return Vs(e)==="[object Number]"&&(!mn||!(typeof e=="object"&&mn in e))}function yZ(e){return Vs(e)==="[object Boolean]"&&(!mn||!(typeof e=="object"&&mn in e))}function G3(e){if(qc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!cS)return!1;try{return cS.call(e),!0}catch{}return!1}function bZ(e){if(!e||typeof e!="object"||!uS)return!1;try{return uS.call(e),!0}catch{}return!1}var _Z=Object.prototype.hasOwnProperty||function(e){return e in this};function ls(e,t){return _Z.call(e,t)}function Vs(e){return sZ.call(e)}function xZ(e){if(e.name)return e.name;var t=uZ.call(lZ.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function K3(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Q3(FE.call(e,0,t.maxStringLength),t)+n}var o=gs.call(gs.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$Z);return H3(o,"single",t)}function $Z(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+cZ.call(t.toString(16))}function hf(e){return"Object("+e+")"}function dx(e){return e+" { ? }"}function Tj(e,t,r,n){var o=n?pS(r,n):Ma.call(r,", ");return e+" ("+t+") {"+o+"}"}function RZ(e){for(var t=0;t=0)return!1;return!0}function kZ(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Ma.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Ma.call(Array(t+1),r)}}function pS(e,t){if(e.length===0)return"";var r=` -`+t.prev+t.base;return r+Ma.call(e,","+r)+` -`+t.prev}function ch(e,t){var r=fS(e),n=[];if(r){n.length=e.length;for(var o=0;o"u")return"Undefined";if(typeof t=="function"||typeof t=="object")return"Object";if(typeof t=="number")return"Number";if(typeof t=="boolean")return"Boolean";if(typeof t=="string")return"String"},IZ=TZ,LE=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":IZ(t)},Ij=Tn,jZ=fZ,AZ=X3,MZ=LE,Y3=function(t,r){if(MZ(t)!=="Object")throw new Ij("Assertion failed: Type(O) is not Object");if(!AZ(r))throw new Ij("Assertion failed: IsPropertyKey(P) is not true, got "+jZ(r));return t[r]},jj=Tn,FZ=X3,LZ=LE,NZ=function(t,r){if(LZ(t)!=="Object")throw new jj("Assertion failed: `O` must be an Object");if(!FZ(r))throw new jj("Assertion failed: `P` must be a Property Key");return r in t},J3=Function.prototype.toString,ac=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,vS,Xh;if(typeof ac=="function"&&typeof Object.defineProperty=="function")try{vS=Object.defineProperty({},"length",{get:function(){throw Xh}}),Xh={},ac(function(){throw 42},null,vS)}catch(e){e!==Xh&&(ac=null)}else ac=null;var DZ=/^\s*class\b/,mS=function(t){try{var r=J3.call(t);return DZ.test(r)}catch{return!1}},fx=function(t){try{return mS(t)?!1:(J3.call(t),!0)}catch{return!1}},Yh=Object.prototype.toString,BZ="[object Object]",zZ="[object Function]",UZ="[object GeneratorFunction]",VZ="[object HTMLAllCollection]",WZ="[object HTML document.all class]",qZ="[object HTMLCollection]",HZ=typeof Symbol=="function"&&!!Symbol.toStringTag,GZ=!(0 in[,]),hS=function(){return!1};if(typeof document=="object"){var KZ=document.all;Yh.call(KZ)===Yh.call(document.all)&&(hS=function(t){if((GZ||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Yh.call(t);return(r===VZ||r===WZ||r===qZ||r===BZ)&&t("")==null}catch{}return!1})}var Z3=ac?function(t){if(hS(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{ac(t,null,vS)}catch(r){if(r!==Xh)return!1}return!mS(t)&&fx(t)}:function(t){if(hS(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(HZ)return fx(t);if(mS(t))return!1;var r=Yh.call(t);return r!==zZ&&r!==UZ&&!/^\[object HTML/.test(r)?!1:fx(t)},QZ=Z3,XZ=Number.MAX_SAFE_INTEGER||9007199254740991,px,Aj;function YZ(){return Aj||(Aj=1,px=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),px}var vx,Mj;function JZ(){return Mj||(Mj=1,vx=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),vx}var ZZ=T3,NE=function(){return ZZ()&&!!Symbol.toStringTag},mx,Fj;function eee(){if(Fj)return mx;Fj=1;var e=Date.prototype.getDay,t=function(i){try{return e.call(i),!0}catch{return!1}},r=Object.prototype.toString,n="[object Date]",o=NE();return mx=function(i){return typeof i!="object"||i===null?!1:o?t(i):r.call(i)===n},mx}var dh={exports:{}},Lj;function tee(){if(Lj)return dh.exports;Lj=1;var e=Object.prototype.toString,t=I3();if(t){var r=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,o=function(i){return typeof i.valueOf()!="symbol"?!1:n.test(r.call(i))};dh.exports=function(i){if(typeof i=="symbol")return!0;if(e.call(i)!=="[object Symbol]")return!1;try{return o(i)}catch{return!1}}}else dh.exports=function(i){return!1};return dh.exports}var hx,Nj;function ree(){if(Nj)return hx;Nj=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=JZ(),r=Z3,n=eee(),o=tee(),a=function(c,l){if(typeof c>"u"||c===null)throw new TypeError("Cannot call method on "+c);if(typeof l!="string"||l!=="number"&&l!=="string")throw new TypeError('hint must be "string" or "number"');var f=l==="string"?["toString","valueOf"]:["valueOf","toString"],v,m,h;for(h=0;h1&&(arguments[1]===String?l="string":arguments[1]===Number&&(l="number"));var f;if(e&&(Symbol.toPrimitive?f=i(c,Symbol.toPrimitive):o(c)&&(f=Symbol.prototype.valueOf)),typeof f<"u"){var v=f.call(c,l);if(t(v))return v;throw new TypeError("unable to convert exotic object to primitive")}return l==="default"&&(n(c)||o(c))&&(l="string"),a(c,l==="default"?"number":l)},hx}var gx,Dj;function nee(){if(Dj)return gx;Dj=1;var e=ree();return gx=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},gx}var yx,Bj;function oee(){if(Bj)return yx;Bj=1;var e=ji,t=NE(),r,n,o,a;if(t){r=e("Object.prototype.hasOwnProperty"),n=e("RegExp.prototype.exec"),o={};var i=function(){throw o};a={toString:i,valueOf:i},typeof Symbol.toPrimitive=="symbol"&&(a[Symbol.toPrimitive]=i)}var s=e("Object.prototype.toString"),c=Object.getOwnPropertyDescriptor,l="[object RegExp]";return yx=t?function(v){if(!v||typeof v!="object")return!1;var m=c(v,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{n(v,a)}catch(x){return x===o}}:function(v){return!v||typeof v!="object"&&typeof v!="function"?!1:s(v)===l},yx}var bx,zj;function aee(){if(zj)return bx;zj=1;var e=ji,t=oee(),r=e("RegExp.prototype.exec"),n=Tn;return bx=function(a){if(!t(a))throw new n("`regex` must be a RegExp");return function(s){return r(a,s)!==null}},bx}var iee=Ja,see=iee("%String%"),lee=Tn,e4=function(t){if(typeof t=="symbol")throw new lee("Cannot convert a Symbol value to a string");return see(t)},uee=dv,cee=e4,dee=ji,Uj=dee("String.prototype.replace"),t4=/^\s$/.test("᠎"),fee=t4?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,pee=t4?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,r4=function(){var t=cee(uee(this));return Uj(Uj(t,fee,""),pee,"")},vee=r4,Vj="​",ju="᠎",n4=function(){return String.prototype.trim&&Vj.trim()===Vj&&ju.trim()===ju&&("_"+ju).trim()==="_"+ju&&(ju+"_").trim()===ju+"_"?String.prototype.trim:vee},mee=fd,hee=n4,gee=function(){var t=hee();return mee(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},yee=jb,bee=fd,_ee=dv,xee=r4,o4=n4,wee=gee,See=yee(o4()),a4=function(t){return _ee(t),See(t)};bee(a4,{getPolyfill:o4,implementation:xee,shim:wee});var i4=a4,_x,Wj;function Oee(){if(Wj)return _x;Wj=1;var e=Ja,t=e("%Number%"),r=e("%RegExp%"),n=Tn,o=e("%parseInt%"),a=ji,i=aee(),s=a("String.prototype.slice"),c=i(/^0b[01]+$/i),l=i(/^0o[0-7]+$/i),f=i(/^[-+]0x[0-9a-f]+$/i),v=["…","​","￾"].join(""),m=new r("["+v+"]","g"),h=i(m),x=i4;return _x=function w(O){if(typeof O!="string")throw new n("Assertion failed: `argument` is not a String");if(c(O))return t(o(s(O,2),2));if(l(O))return t(o(s(O,2),8));if(h(O)||f(O))return NaN;var b=x(O);return b!==O?w(b):t(O)},_x}var Cee=Ja,qj=Tn,Hj=Cee("%Number%"),Eee=YZ(),Pee=nee(),$ee=Oee(),Ree=function(t){var r=Eee(t)?t:Pee(t,Hj);if(typeof r=="symbol")throw new qj("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new qj("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?$ee(r):Hj(r)},kee=Math.floor,Tee=function(t){return typeof t=="bigint"?t:kee(t)},Gj=Tee,Iee=Tn,jee=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new Iee("argument must be a Number or a BigInt");var r=t<0?-Gj(-t):Gj(t);return r===0?0:r},s4=Number.isNaN||function(t){return t!==t},Aee=s4,Mee=function(e){return(typeof e=="number"||typeof e=="bigint")&&!Aee(e)&&e!==1/0&&e!==-1/0},Fee=Ree,Lee=jee,Nee=s4,Dee=Mee,Bee=function(t){var r=Fee(t);return Nee(r)||r===0?0:Dee(r)?Lee(r):r},Kj=XZ,zee=Bee,Uee=function(t){var r=zee(t);return r<=0?0:r>Kj?Kj:r},Vee=Tn,Wee=Y3,qee=Uee,Hee=LE,Gee=function(t){if(Hee(t)!=="Object")throw new Vee("Assertion failed: `obj` must be an Object");return qee(Wee(t,"length"))},Kee=Object,Qee=Kee,Xee=dv,Yee=function(t){return Xee(t),Qee(t)},Jee=String.prototype.valueOf,Zee=function(t){try{return Jee.call(t),!0}catch{return!1}},ete=Object.prototype.toString,tte="[object String]",rte=NE(),nte=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:rte?Zee(t):ete.call(t)===tte},ote=ji,ate=Tn,ite=ZJ,ste=Y3,lte=NZ,ute=QZ,cte=Gee,dte=Yee,fte=e4,pte=nte,vte=ote("String.prototype.split"),Qj=Object("a"),mte=Qj[0]!=="a"||!(0 in Qj),l4=function(t){var r=dte(this),n=mte&&pte(this)?vte(this,""):r,o=cte(n);if(!ute(t))throw new ate("Array.prototype.forEach callback must be a function");var a;arguments.length>1&&(a=arguments[1]);for(var i=0;i=12&&t<=14)?1:2},_4={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:Sx,chinese:function(){return 0},croatian:Sx,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:Sx,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"]}};function qte(e){var t={};return ty(DE(e),function(r){var n=r[0],o=r[1];ty(o,function(a){t[a]=n})}),t}function Hte(e,t){var r=qte(e.pluralTypeToLanguages);return r[t]||r[b4.call(t,/-/,1)[0]]||r.en}function Gte(e,t,r){return e.pluralTypes[t](r)}function Kte(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=Hte(t,r),n&&(e[r]=n)),n}}function Jj(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Qte(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===Jh||r===Jh)throw new RangeError('"'+Jh+'" token is reserved for pluralization');return new RegExp(Jj(t)+"(.*?)"+Jj(r),"g")}var Xte=Kte(),Yte=/%\{(.*?)\}/g;function BE(e,t,r,n,o,a){if(typeof e!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(t==null)return e;var i=e,s=n||Yte,c=a||y4,l=typeof t=="number"?{smart_count:t}:t;if(l.smart_count!=null&&e){var f=o||_4,v=b4.call(e,Jh),m=r||"en",h=Xte(f,m),x=Gte(f,h,l.smart_count);i=Vte(v[x]||v[0])}return i=c.call(i,s,function(w,O){return!g4(l,O)||l[O]==null?w:l[O]}),i}function Ai(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?BE:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||Wte,this.replaceImplementation=t.replace||y4,this.tokenRegex=Qte(t.interpolation),this.pluralRules=t.pluralRules||_4}Ai.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale};Ai.prototype.extend=function(e,t){ty(DE(e||{}),function(r){var n=r[0],o=r[1],a=t?t+"."+n:n;typeof o=="object"?this.extend(o,a):this.phrases[a]=o},this)};Ai.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:ty(DE(e||{}),function(r){var n=r[0],o=r[1],a=t?t+"."+n:n;typeof o=="object"?this.unset(o,a):delete this.phrases[a]},this)};Ai.prototype.clear=function(){this.phrases={}};Ai.prototype.replace=function(e){this.clear(),this.extend(e)};Ai.prototype.t=function(e,t){var r,n,o=t??{};if(typeof this.phrases[e]=="string")r=this.phrases[e];else if(typeof o._=="string")r=o._;else if(this.onMissingKey){var a=this.onMissingKey;n=a(e,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+e+'"'),n=e;return typeof r=="string"&&(n=BE(r,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n};Ai.prototype.has=function(e){return g4(this.phrases,e)};Ai.transformPhrase=function(t,r,n){return BE(t,r,n)};var Jte=Ai;const Zj=gr(Jte);var ic=function(){return ic=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u";function Yr(){}function tre(e,t){return typeof e=="function"?e(t):e}function yS(e){return typeof e=="number"&&e>=0&&e!==1/0}function ny(e){return Array.isArray(e)?e:[e]}function w4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zh(e,t,r){return fv(e)?typeof t=="function"?j({},r,{queryKey:e,queryFn:t}):j({},t,{queryKey:e}):e}function rre(e,t,r){return fv(e)?typeof t=="function"?j({},r,{mutationKey:e,mutationFn:t}):j({},t,{mutationKey:e}):typeof e=="function"?j({},t,{mutationFn:e}):j({},e)}function us(e,t,r){return fv(e)?[j({},t,{queryKey:e}),r]:[e||{},t]}function nre(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var r=e??!t;return r?"active":"inactive"}function eA(e,t){var r=e.active,n=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,s=e.queryKey,c=e.stale;if(fv(s)){if(n){if(t.queryHash!==UE(s,t.options))return!1}else if(!oy(t.queryKey,s))return!1}var l=nre(r,a);if(l==="none")return!1;if(l!=="all"){var f=t.isActive();if(l==="active"&&!f||l==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||typeof o=="boolean"&&t.isFetching()!==o||i&&!i(t))}function tA(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(fv(a)){if(!t.options.mutationKey)return!1;if(r){if(ys(t.options.mutationKey)!==ys(a))return!1}else if(!oy(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function UE(e,t){var r=(t==null?void 0:t.queryKeyHashFn)||ys;return r(e)}function ys(e){var t=ny(e);return ore(t)}function ore(e){return JSON.stringify(e,function(t,r){return bS(r)?Object.keys(r).sort().reduce(function(n,o){return n[o]=r[o],n},{}):r})}function oy(e,t){return S4(ny(e),ny(t))}function S4(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(r){return!S4(e[r],t[r])}):!1}function ay(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||bS(e)&&bS(t)){for(var n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),a=o.length,i=r?[]:{},s=0,c=0;c"u")return!0;var r=t.prototype;return!(!rA(r)||!r.hasOwnProperty("isPrototypeOf"))}function rA(e){return Object.prototype.toString.call(e)==="[object Object]"}function fv(e){return typeof e=="string"||Array.isArray(e)}function ire(e){return new Promise(function(t){setTimeout(t,e)})}function nA(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function O4(){if(typeof AbortController=="function")return new AbortController}var sre=function(e){Fi(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!ry&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),function(){window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setFocused(s):i.onFocus()})},r.setFocused=function(o){this.focused=o,o&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(o){o()})},r.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(pd),Xf=new sre,lre=function(e){Fi(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!ry&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),function(){window.removeEventListener("online",i),window.removeEventListener("offline",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setOnline(s):i.onOnline()})},r.setOnline=function(o){this.online=o,o&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(o){o()})},r.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(pd),eg=new lre;function ure(e){return Math.min(1e3*Math.pow(2,e),3e4)}function iy(e){return typeof(e==null?void 0:e.cancel)=="function"}var C4=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function tg(e){return e instanceof C4}var E4=function(t){var r=this,n=!1,o,a,i,s;this.abort=t.abort,this.cancel=function(m){return o==null?void 0:o(m)},this.cancelRetry=function(){n=!0},this.continueRetry=function(){n=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(m,h){i=m,s=h});var c=function(h){r.isResolved||(r.isResolved=!0,t.onSuccess==null||t.onSuccess(h),a==null||a(),i(h))},l=function(h){r.isResolved||(r.isResolved=!0,t.onError==null||t.onError(h),a==null||a(),s(h))},f=function(){return new Promise(function(h){a=h,r.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){a=void 0,r.isPaused=!1,t.onContinue==null||t.onContinue()})},v=function m(){if(!r.isResolved){var h;try{h=t.fn()}catch(x){h=Promise.reject(x)}o=function(w){if(!r.isResolved&&(l(new C4(w)),r.abort==null||r.abort(),iy(h)))try{h.cancel()}catch{}},r.isTransportCancelable=iy(h),Promise.resolve(h).then(c).catch(function(x){var w,O;if(!r.isResolved){var b=(w=t.retry)!=null?w:3,g=(O=t.retryDelay)!=null?O:ure,_=typeof g=="function"?g(r.failureCount,x):g,$=b===!0||typeof b=="number"&&r.failureCount"u"&&(s.exact=!0),this.queries.find(function(c){return eA(s,c)})},r.findAll=function(o,a){var i=us(o,a),s=i[0];return Object.keys(s).length>0?this.queries.filter(function(c){return eA(s,c)}):this.queries},r.notify=function(o){var a=this;Wt.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){var o=this;Wt.batch(function(){o.queries.forEach(function(a){a.onFocus()})})},r.onOnline=function(){var o=this;Wt.batch(function(){o.queries.forEach(function(a){a.onOnline()})})},t}(pd),vre=function(){function e(r){this.options=j({},r.defaultOptions,r.options),this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.observers=[],this.state=r.state||$4(),this.meta=r.meta}var t=e.prototype;return t.setState=function(n){this.dispatch({type:"setState",state:n})},t.addObserver=function(n){this.observers.indexOf(n)===-1&&this.observers.push(n)},t.removeObserver=function(n){this.observers=this.observers.filter(function(o){return o!==n})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(Yr).catch(Yr)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var n=this,o,a=this.state.status==="loading",i=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),i=i.then(function(){n.mutationCache.config.onMutate==null||n.mutationCache.config.onMutate(n.state.variables,n)}).then(function(){return n.options.onMutate==null?void 0:n.options.onMutate(n.state.variables)}).then(function(s){s!==n.state.context&&n.dispatch({type:"loading",context:s,variables:n.state.variables})})),i.then(function(){return n.executeMutation()}).then(function(s){o=s,n.mutationCache.config.onSuccess==null||n.mutationCache.config.onSuccess(o,n.state.variables,n.state.context,n)}).then(function(){return n.options.onSuccess==null?void 0:n.options.onSuccess(o,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(o,null,n.state.variables,n.state.context)}).then(function(){return n.dispatch({type:"success",data:o}),o}).catch(function(s){return n.mutationCache.config.onError==null||n.mutationCache.config.onError(s,n.state.variables,n.state.context,n),sy().error(s),Promise.resolve().then(function(){return n.options.onError==null?void 0:n.options.onError(s,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(void 0,s,n.state.variables,n.state.context)}).then(function(){throw n.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var n=this,o;return this.retryer=new E4({fn:function(){return n.options.mutationFn?n.options.mutationFn(n.state.variables):Promise.reject("No mutationFn found")},onFail:function(){n.dispatch({type:"failed"})},onPause:function(){n.dispatch({type:"pause"})},onContinue:function(){n.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(n){var o=this;this.state=mre(this.state,n),Wt.batch(function(){o.observers.forEach(function(a){a.onMutationUpdate(n)}),o.mutationCache.notify(o)})},e}();function $4(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function mre(e,t){switch(t.type){case"failed":return j({},e,{failureCount:e.failureCount+1});case"pause":return j({},e,{isPaused:!0});case"continue":return j({},e,{isPaused:!1});case"loading":return j({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return j({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return j({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return j({},e,t.state);default:return e}}var hre=function(e){Fi(t,e);function t(n){var o;return o=e.call(this)||this,o.config=n||{},o.mutations=[],o.mutationId=0,o}var r=t.prototype;return r.build=function(o,a,i){var s=new vre({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(a),state:i,defaultOptions:a.mutationKey?o.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(s),s},r.add=function(o){this.mutations.push(o),this.notify(o)},r.remove=function(o){this.mutations=this.mutations.filter(function(a){return a!==o}),o.cancel(),this.notify(o)},r.clear=function(){var o=this;Wt.batch(function(){o.mutations.forEach(function(a){o.remove(a)})})},r.getAll=function(){return this.mutations},r.find=function(o){return typeof o.exact>"u"&&(o.exact=!0),this.mutations.find(function(a){return tA(o,a)})},r.findAll=function(o){return this.mutations.filter(function(a){return tA(o,a)})},r.notify=function(o){var a=this;Wt.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var o=this.mutations.filter(function(a){return a.state.isPaused});return Wt.batch(function(){return o.reduce(function(a,i){return a.then(function(){return i.continue().catch(Yr)})},Promise.resolve())})},t}(pd);function gre(){return{onFetch:function(t){t.fetchFn=function(){var r,n,o,a,i,s,c=(r=t.fetchOptions)==null||(n=r.meta)==null?void 0:n.refetchPage,l=(o=t.fetchOptions)==null||(a=o.meta)==null?void 0:a.fetchMore,f=l==null?void 0:l.pageParam,v=(l==null?void 0:l.direction)==="forward",m=(l==null?void 0:l.direction)==="backward",h=((i=t.state.data)==null?void 0:i.pages)||[],x=((s=t.state.data)==null?void 0:s.pageParams)||[],w=O4(),O=w==null?void 0:w.signal,b=x,g=!1,_=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},$=function(U,H,q,G){return b=G?[H].concat(b):[].concat(b,[H]),G?[q].concat(U):[].concat(U,[q])},P=function(U,H,q,G){if(g)return Promise.reject("Cancelled");if(typeof q>"u"&&!H&&U.length)return Promise.resolve(U);var z={queryKey:t.queryKey,signal:O,pageParam:q,meta:t.meta},W=_(z),te=Promise.resolve(W).then(function(ee){return $(U,q,ee,G)});if(iy(W)){var ne=te;ne.cancel=W.cancel}return te},C;if(!h.length)C=P([]);else if(v){var k=typeof f<"u",R=k?f:oA(t.options,h);C=P(h,k,R)}else if(m){var I=typeof f<"u",A=I?f:yre(t.options,h);C=P(h,I,A,!0)}else(function(){b=[];var D=typeof t.options.getNextPageParam>"u",U=c&&h[0]?c(h[0],0,h):!0;C=U?P([],D,x[0]):Promise.resolve($([],x[0],h[0]));for(var H=function(z){C=C.then(function(W){var te=c&&h[z]?c(h[z],z,h):!0;if(te){var ne=D?x[z]:oA(t.options,W);return P(W,D,ne)}return Promise.resolve($(W,x[z],h[z]))})},q=1;q"u"&&(f.revert=!0);var v=Wt.batch(function(){return i.queryCache.findAll(c).map(function(m){return m.cancel(f)})});return Promise.all(v).then(Yr).catch(Yr)},t.invalidateQueries=function(n,o,a){var i,s,c,l=this,f=us(n,o,a),v=f[0],m=f[1],h=j({},v,{active:(i=(s=v.refetchActive)!=null?s:v.active)!=null?i:!0,inactive:(c=v.refetchInactive)!=null?c:!1});return Wt.batch(function(){return l.queryCache.findAll(v).forEach(function(x){x.invalidate()}),l.refetchQueries(h,m)})},t.refetchQueries=function(n,o,a){var i=this,s=us(n,o,a),c=s[0],l=s[1],f=Wt.batch(function(){return i.queryCache.findAll(c).map(function(m){return m.fetch(void 0,j({},l,{meta:{refetchPage:c==null?void 0:c.refetchPage}}))})}),v=Promise.all(f).then(Yr);return l!=null&&l.throwOnError||(v=v.catch(Yr)),v},t.fetchQuery=function(n,o,a){var i=Zh(n,o,a),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);var c=this.queryCache.build(this,s);return c.isStaleByTime(s.staleTime)?c.fetch(s):Promise.resolve(c.state.data)},t.prefetchQuery=function(n,o,a){return this.fetchQuery(n,o,a).then(Yr).catch(Yr)},t.fetchInfiniteQuery=function(n,o,a){var i=Zh(n,o,a);return i.behavior=gre(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(n,o,a){return this.fetchInfiniteQuery(n,o,a).then(Yr).catch(Yr)},t.cancelMutations=function(){var n=this,o=Wt.batch(function(){return n.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(o).then(Yr).catch(Yr)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(n){return this.mutationCache.build(this,n).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(n){this.defaultOptions=n},t.setQueryDefaults=function(n,o){var a=this.queryDefaults.find(function(i){return ys(n)===ys(i.queryKey)});a?a.defaultOptions=o:this.queryDefaults.push({queryKey:n,defaultOptions:o})},t.getQueryDefaults=function(n){var o;return n?(o=this.queryDefaults.find(function(a){return oy(n,a.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(n,o){var a=this.mutationDefaults.find(function(i){return ys(n)===ys(i.mutationKey)});a?a.defaultOptions=o:this.mutationDefaults.push({mutationKey:n,defaultOptions:o})},t.getMutationDefaults=function(n){var o;return n?(o=this.mutationDefaults.find(function(a){return oy(n,a.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(n){if(n!=null&&n._defaulted)return n;var o=j({},this.defaultOptions.queries,this.getQueryDefaults(n==null?void 0:n.queryKey),n,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=UE(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(n){return this.defaultQueryOptions(n)},t.defaultMutationOptions=function(n){return n!=null&&n._defaulted?n:j({},this.defaultOptions.mutations,this.getMutationDefaults(n==null?void 0:n.mutationKey),n,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),_re=function(e){Fi(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.options=o,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(o),a}var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),aA(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return _S(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return _S(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(o,a){var i=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();var c=this.hasListeners();c&&iA(this.currentQuery,s,this.options,i)&&this.executeFetch(),this.updateResult(a),c&&(this.currentQuery!==s||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();var l=this.computeRefetchInterval();c&&(this.currentQuery!==s||this.options.enabled!==i.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)},r.getOptimisticResult=function(o){var a=this.client.defaultQueryObserverOptions(o),i=this.client.getQueryCache().build(this.client,a);return this.createResult(i,a)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(o,a){var i=this,s={},c=function(f){i.trackedProps.includes(f)||i.trackedProps.push(f)};return Object.keys(o).forEach(function(l){Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:function(){return c(l),o[l]}})}),(a.useErrorBoundary||a.suspense)&&c("error"),s},r.getNextResult=function(o){var a=this;return new Promise(function(i,s){var c=a.subscribe(function(l){l.isFetching||(c(),l.isError&&(o!=null&&o.throwOnError)?s(l.error):i(l))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(o){return this.fetch(j({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},r.fetchOptimistic=function(o){var a=this,i=this.client.defaultQueryObserverOptions(o),s=this.client.getQueryCache().build(this.client,i);return s.fetch().then(function(){return a.createResult(s,i)})},r.fetch=function(o){var a=this;return this.executeFetch(o).then(function(){return a.updateResult(),a.currentResult})},r.executeFetch=function(o){this.updateQuery();var a=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(a=a.catch(Yr)),a},r.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(ry||this.currentResult.isStale||!yS(this.options.staleTime))){var a=w4(this.currentResult.dataUpdatedAt,this.options.staleTime),i=a+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},i)}},r.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},r.updateRefetchInterval=function(o){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(ry||this.options.enabled===!1||!yS(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||Xf.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(o,a){var i=this.currentQuery,s=this.options,c=this.currentResult,l=this.currentResultState,f=this.currentResultOptions,v=o!==i,m=v?o.state:this.currentQueryInitialState,h=v?this.currentResult:this.previousQueryResult,x=o.state,w=x.dataUpdatedAt,O=x.error,b=x.errorUpdatedAt,g=x.isFetching,_=x.status,$=!1,P=!1,C;if(a.optimisticResults){var k=this.hasListeners(),R=!k&&aA(o,a),I=k&&iA(o,i,a,s);(R||I)&&(g=!0,w||(_="loading"))}if(a.keepPreviousData&&!x.dataUpdateCount&&(h!=null&&h.isSuccess)&&_!=="error")C=h.data,w=h.dataUpdatedAt,_=h.status,$=!0;else if(a.select&&typeof x.data<"u")if(c&&x.data===(l==null?void 0:l.data)&&a.select===this.selectFn)C=this.selectResult;else try{this.selectFn=a.select,C=a.select(x.data),a.structuralSharing!==!1&&(C=ay(c==null?void 0:c.data,C)),this.selectResult=C,this.selectError=null}catch(L){sy().error(L),this.selectError=L}else C=x.data;if(typeof a.placeholderData<"u"&&typeof C>"u"&&(_==="loading"||_==="idle")){var A;if(c!=null&&c.isPlaceholderData&&a.placeholderData===(f==null?void 0:f.placeholderData))A=c.data;else if(A=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof A<"u")try{A=a.select(A),a.structuralSharing!==!1&&(A=ay(c==null?void 0:c.data,A)),this.selectError=null}catch(L){sy().error(L),this.selectError=L}typeof A<"u"&&(_="success",C=A,P=!0)}this.selectError&&(O=this.selectError,C=this.selectResult,b=Date.now(),_="error");var F={status:_,isLoading:_==="loading",isSuccess:_==="success",isError:_==="error",isIdle:_==="idle",data:C,dataUpdatedAt:w,error:O,errorUpdatedAt:b,failureCount:x.fetchFailureCount,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>m.dataUpdateCount||x.errorUpdateCount>m.errorUpdateCount,isFetching:g,isRefetching:g&&_!=="loading",isLoadingError:_==="error"&&x.dataUpdatedAt===0,isPlaceholderData:P,isPreviousData:$,isRefetchError:_==="error"&&x.dataUpdatedAt!==0,isStale:VE(o,a),refetch:this.refetch,remove:this.remove};return F},r.shouldNotifyListeners=function(o,a){if(!a)return!0;var i=this.options,s=i.notifyOnChangeProps,c=i.notifyOnChangePropsExclusions;if(!s&&!c||s==="tracked"&&!this.trackedProps.length)return!0;var l=s==="tracked"?this.trackedProps:s;return Object.keys(o).some(function(f){var v=f,m=o[v]!==a[v],h=l==null?void 0:l.some(function(w){return w===f}),x=c==null?void 0:c.some(function(w){return w===f});return m&&!x&&(!l||h)})},r.updateResult=function(o){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!are(this.currentResult,a)){var i={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(i.listeners=!0),this.notify(j({},i,o))}},r.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var a=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),o.addObserver(this))}},r.onQueryUpdate=function(o){var a={};o.type==="success"?a.onSuccess=!0:o.type==="error"&&!tg(o.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},r.notify=function(o){var a=this;Wt.batch(function(){o.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):o.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)}),o.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t}(pd);function xre(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function aA(e,t){return xre(e,t)||e.state.dataUpdatedAt>0&&_S(e,t,t.refetchOnMount)}function _S(e,t,r){if(t.enabled!==!1){var n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&VE(e,t)}return!1}function iA(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&VE(e,r)}function VE(e,t){return e.isStaleByTime(t.staleTime)}var wre=function(e){Fi(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.setOptions(o),a.bindMethods(),a.updateResult(),a}var r=t.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(o){this.options=this.client.defaultMutationOptions(o)},r.onUnsubscribe=function(){if(!this.listeners.length){var o;(o=this.currentMutation)==null||o.removeObserver(this)}},r.onMutationUpdate=function(o){this.updateResult();var a={listeners:!0};o.type==="success"?a.onSuccess=!0:o.type==="error"&&(a.onError=!0),this.notify(a)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(o,a){return this.mutateOptions=a,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,j({},this.options,{variables:typeof o<"u"?o:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var o=this.currentMutation?this.currentMutation.state:$4(),a=j({},o,{isLoading:o.status==="loading",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=a},r.notify=function(o){var a=this;Wt.batch(function(){a.mutateOptions&&(o.onSuccess?(a.mutateOptions.onSuccess==null||a.mutateOptions.onSuccess(a.currentResult.data,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(a.currentResult.data,null,a.currentResult.variables,a.currentResult.context)):o.onError&&(a.mutateOptions.onError==null||a.mutateOptions.onError(a.currentResult.error,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(void 0,a.currentResult.error,a.currentResult.variables,a.currentResult.context))),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)})})},t}(pd),Sre=Af.unstable_batchedUpdates;Wt.setBatchNotifyFunction(Sre);var Ore=console;dre(Ore);var sA=fe.createContext(void 0),R4=fe.createContext(!1);function k4(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=sA),window.ReactQueryClientContext):sA}var Zo=function(){var t=fe.useContext(k4(fe.useContext(R4)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Cre=function(t){var r=t.client,n=t.contextSharing,o=n===void 0?!1:n,a=t.children;fe.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var i=k4(o);return fe.createElement(R4.Provider,{value:o},fe.createElement(i.Provider,{value:r},a))};function Ere(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var Pre=fe.createContext(Ere()),$re=function(){return fe.useContext(Pre)};function T4(e,t,r){return typeof t=="function"?t.apply(void 0,r):typeof t=="boolean"?t:!!e}function iu(e,t,r){var n=fe.useRef(!1),o=fe.useState(0),a=o[1],i=rre(e,t,r),s=Zo(),c=fe.useRef();c.current?c.current.setOptions(i):c.current=new wre(s,i);var l=c.current.getCurrentResult();fe.useEffect(function(){n.current=!0;var v=c.current.subscribe(Wt.batchCalls(function(){n.current&&a(function(m){return m+1})}));return function(){n.current=!1,v()}},[]);var f=fe.useCallback(function(v,m){c.current.mutate(v,m).catch(Yr)},[]);if(l.error&&T4(void 0,c.current.options.useErrorBoundary,[l.error]))throw l.error;return j({},l,{mutate:f,mutateAsync:l.mutate})}function Rre(e,t){var r=fe.useRef(!1),n=fe.useState(0),o=n[1],a=Zo(),i=$re(),s=a.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=Wt.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Wt.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Wt.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(i.isReset()||(s.retryOnMount=!1));var c=fe.useState(function(){return new t(a,s)}),l=c[0],f=l.getOptimisticResult(s);if(fe.useEffect(function(){r.current=!0,i.clearReset();var v=l.subscribe(Wt.batchCalls(function(){r.current&&o(function(m){return m+1})}));return l.updateResult(),function(){r.current=!1,v()}},[i,l]),fe.useEffect(function(){l.setOptions(s,{listeners:!1})},[s,l]),s.suspense&&f.isLoading)throw l.fetchOptimistic(s).then(function(v){var m=v.data;s.onSuccess==null||s.onSuccess(m),s.onSettled==null||s.onSettled(m,null)}).catch(function(v){i.clearReset(),s.onError==null||s.onError(v),s.onSettled==null||s.onSettled(void 0,v)});if(f.isError&&!i.isReset()&&!f.isFetching&&T4(s.suspense,s.useErrorBoundary,[f.error,l.getCurrentQuery()]))throw f.error;return s.notifyOnChangeProps==="tracked"&&(f=l.trackResult(f,s)),f}function Ws(e,t,r){var n=Zh(e,t,r);return Rre(n,_re)}/** - * @remix-run/router v1.18.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function xS(){return xS=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function I4(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function lA(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function pv(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var uA;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(uA||(uA={}));function kre(e,t,r){return r===void 0&&(r="/"),Tre(e,t,r,!1)}function Tre(e,t,r,n){let o=typeof t=="string"?pv(t):t,a=WE(o.pathname||"/",r);if(a==null)return null;let i=j4(e);Ire(i);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(hr(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let l=Ts([n,c.relativePath]),f=r.concat(c);a.children&&a.children.length>0&&(hr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),j4(a.children,t,f,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:Dre(l,a.index),routesMeta:f})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let c of A4(a.path))o(a,i,c)}),t}function A4(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=A4(n.join("/")),s=[];return s.push(...i.map(c=>c===""?a:[a,c].join("/"))),o&&s.push(...i),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function Ire(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Bre(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const jre=/^:[\w-]+$/,Are=3,Mre=2,Fre=1,Lre=10,Nre=-2,cA=e=>e==="*";function Dre(e,t){let r=e.split("/"),n=r.length;return r.some(cA)&&(n+=Nre),t&&(n+=Mre),r.filter(o=>!cA(o)).reduce((o,a)=>o+(jre.test(a)?Are:a===""?Fre:Lre),n)}function Bre(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function zre(e,t,r){let{routesMeta:n}=e,o={},a="/",i=[];for(let s=0;s{let{paramName:m,isOptional:h}=f;if(m==="*"){let w=s[v]||"";i=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const x=s[v];return h&&!x?l[m]=void 0:l[m]=(x||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:i,pattern:e}}function Ure(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),I4(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,c)=>(n.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function M4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return I4(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function WE(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Vre(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?pv(e):e;return{pathname:r?r.startsWith("/")?r:Wre(r,t):t,search:Gre(n),hash:Kre(o)}}function Wre(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Ox(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function qre(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function qE(e,t){let r=qre(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function HE(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=pv(e):(o=xS({},e),hr(!o.pathname||!o.pathname.includes("?"),Ox("?","pathname","search",o)),hr(!o.pathname||!o.pathname.includes("#"),Ox("#","pathname","hash",o)),hr(!o.search||!o.search.includes("#"),Ox("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=r;else{let v=t.length-1;if(!n&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),v-=1;o.pathname=m.join("/")}s=v>=0?t[v]:"/"}let c=Vre(o,s),l=i&&i!=="/"&&i.endsWith("/"),f=(a||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||f)&&(c.pathname+="/"),c}const Ts=e=>e.join("/").replace(/\/\/+/g,"/"),Hre=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Gre=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Kre=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Qre(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const F4=["post","put","patch","delete"];new Set(F4);const Xre=["get",...F4];new Set(Xre);/** - * React Router v6.25.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Mp(){return Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;tHc(e,M4(t)),[t,e])}function N4(e){d.useContext(Li).static||d.useLayoutEffect(e)}function ei(){let{isDataRoute:e}=d.useContext(Za);return e?vne():ene()}function ene(){qs()||hr(!1);let e=d.useContext(GE),{basename:t,future:r,navigator:n}=d.useContext(Li),{matches:o}=d.useContext(Za),{pathname:a}=Lr(),i=JSON.stringify(qE(o,r.v7_relativeSplatPath)),s=d.useRef(!1);return N4(()=>{s.current=!0}),d.useCallback(function(l,f){if(f===void 0&&(f={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let v=HE(l,JSON.parse(i),a,f.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:Ts([t,v.pathname])),(f.replace?n.replace:n.push)(v,f.state,f)},[t,n,i,a,e])}const tne=d.createContext(null);function rne(e){let t=d.useContext(Za).outlet;return t&&d.createElement(tne.Provider,{value:e},t)}function Fb(){let{matches:e}=d.useContext(Za),t=e[e.length-1];return t?t.params:{}}function KE(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Li),{matches:o}=d.useContext(Za),{pathname:a}=Lr(),i=JSON.stringify(qE(o,n.v7_relativeSplatPath));return d.useMemo(()=>HE(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function nne(e,t){return one(e,t)}function one(e,t,r,n){qs()||hr(!1);let{navigator:o}=d.useContext(Li),{matches:a}=d.useContext(Za),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let l=Lr(),f;if(t){var v;let O=typeof t=="string"?pv(t):t;c==="/"||(v=O.pathname)!=null&&v.startsWith(c)||hr(!1),f=O}else f=l;let m=f.pathname||"/",h=m;if(c!=="/"){let O=c.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(O.length).join("/")}let x=kre(e,{pathname:h}),w=une(x&&x.map(O=>Object.assign({},O,{params:Object.assign({},s,O.params),pathname:Ts([c,o.encodeLocation?o.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?c:Ts([c,o.encodeLocation?o.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),a,r,n);return t&&w?d.createElement(Mb.Provider,{value:{location:Mp({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ly.Pop}},w):w}function ane(){let e=pne(),t=Qre(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:o},r):null,null)}const ine=d.createElement(ane,null);class sne extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?d.createElement(Za.Provider,{value:this.props.routeContext},d.createElement(L4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lne(e){let{routeContext:t,match:r,children:n}=e,o=d.useContext(GE);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(Za.Provider,{value:t},n)}function une(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if((a=r)!=null&&a.errors)e=r.matches;else return null}let i=e,s=(o=r)==null?void 0:o.errors;if(s!=null){let f=i.findIndex(v=>v.route.id&&(s==null?void 0:s[v.route.id])!==void 0);f>=0||hr(!1),i=i.slice(0,Math.min(i.length,f+1))}let c=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((f,v,m)=>{let h,x=!1,w=null,O=null;r&&(h=s&&v.route.id?s[v.route.id]:void 0,w=v.route.errorElement||ine,c&&(l<0&&m===0?(x=!0,O=null):l===m&&(x=!0,O=v.route.hydrateFallbackElement||null)));let b=t.concat(i.slice(0,m+1)),g=()=>{let _;return h?_=w:x?_=O:v.route.Component?_=d.createElement(v.route.Component,null):v.route.element?_=v.route.element:_=f,d.createElement(lne,{match:v,routeContext:{outlet:f,matches:b,isDataRoute:r!=null},children:_})};return r&&(v.route.ErrorBoundary||v.route.errorElement||m===0)?d.createElement(sne,{location:r.location,revalidation:r.revalidation,component:w,error:h,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):g()},null)}var D4=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(D4||{}),uy=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(uy||{});function cne(e){let t=d.useContext(GE);return t||hr(!1),t}function dne(e){let t=d.useContext(Yre);return t||hr(!1),t}function fne(e){let t=d.useContext(Za);return t||hr(!1),t}function B4(e){let t=fne(),r=t.matches[t.matches.length-1];return r.route.id||hr(!1),r.route.id}function pne(){var e;let t=d.useContext(L4),r=dne(uy.UseRouteError),n=B4(uy.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function vne(){let{router:e}=cne(D4.UseNavigateStable),t=B4(uy.UseNavigateStable),r=d.useRef(!1);return N4(()=>{r.current=!0}),d.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Mp({fromRouteId:t},a)))},[e,t])}function mne(e){let{to:t,replace:r,state:n,relative:o}=e;qs()||hr(!1);let{future:a,static:i}=d.useContext(Li),{matches:s}=d.useContext(Za),{pathname:c}=Lr(),l=ei(),f=HE(t,qE(s,a.v7_relativeSplatPath),c,o==="path"),v=JSON.stringify(f);return d.useEffect(()=>l(JSON.parse(v),{replace:r,state:n,relative:o}),[l,v,o,r,n]),null}function hne(e){return rne(e.context)}function zr(e){hr(!1)}function gne(e){let{basename:t="/",children:r=null,location:n,navigationType:o=ly.Pop,navigator:a,static:i=!1,future:s}=e;qs()&&hr(!1);let c=t.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:c,navigator:a,static:i,future:Mp({v7_relativeSplatPath:!1},s)}),[c,s,a,i]);typeof n=="string"&&(n=pv(n));let{pathname:f="/",search:v="",hash:m="",state:h=null,key:x="default"}=n,w=d.useMemo(()=>{let O=WE(f,c);return O==null?null:{location:{pathname:O,search:v,hash:m,state:h,key:x},navigationType:o}},[c,f,v,m,h,x,o]);return w==null?null:d.createElement(Li.Provider,{value:l},d.createElement(Mb.Provider,{children:r,value:w}))}function bs(e){let{children:t,location:r}=e;return nne(wS(t),r)}new Promise(()=>{});function wS(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,o)=>{if(!d.isValidElement(n))return;let a=[...t,o];if(n.type===d.Fragment){r.push.apply(r,wS(n.props.children,a));return}n.type!==zr&&hr(!1),!n.props.index||!n.props.children||hr(!1);let i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=wS(n.props.children,a)),r.push(i)}),r}/** - * React Router DOM v6.25.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function SS(){return SS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function bne(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _ne(e,t){return e.button===0&&(!t||t==="_self")&&!bne(e)}const xne=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],wne="6";try{window.__reactRouterVersion=wne}catch{}const Sne=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",One=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_a=d.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:c,to:l,preventScrollReset:f,unstable_viewTransition:v}=t,m=yne(t,xne),{basename:h}=d.useContext(Li),x,w=!1;if(typeof l=="string"&&One.test(l)&&(x=l,Sne))try{let _=new URL(window.location.href),$=l.startsWith("//")?new URL(_.protocol+l):new URL(l),P=WE($.pathname,h);$.origin===_.origin&&P!=null?l=P+$.search+$.hash:w=!0}catch{}let O=Jre(l,{relative:o}),b=Cne(l,{replace:i,state:s,target:c,preventScrollReset:f,relative:o,unstable_viewTransition:v});function g(_){n&&n(_),_.defaultPrevented||b(_)}return d.createElement("a",SS({},m,{href:x||O,onClick:w||a?n:g,ref:r,target:c}))});var dA;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(dA||(dA={}));var fA;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fA||(fA={}));function Cne(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,c=ei(),l=Lr(),f=KE(e,{relative:i});return d.useCallback(v=>{if(_ne(v,r)){v.preventDefault();let m=n!==void 0?n:lA(l)===lA(f);c(e,{replace:m,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s})}},[l,c,f,n,o,r,e,a,i,s])}var Ene="RaStore",Pne=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},OS=Pne(),$ne=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(Ene).concat(t),n=r.length,o={},a=function(s,c){Object.keys(o).forEach(function(l){o[l]&&o[l].key===s&&o[l].callback(c)})},i=function(s){var c;if(((c=s.key)===null||c===void 0?void 0:c.substring(0,n))===r){var l=s.key.substring(n+1),f=s.newValue?pA(s.newValue):void 0;Object.keys(o).forEach(function(v){o[v]&&o[v].key===l&&(f===null?o[v].callback(void 0):o[v].callback(f??void 0))})}};return{setup:function(){if(OS){var s=vi().getItem("".concat(r,".version"));if(s&&s!==e){var c=vi();Object.keys(c).forEach(function(l){l.startsWith(r)&&c.removeItem(l)})}vi().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){OS&&window.removeEventListener("storage",i)},getItem:function(s,c){var l=vi().getItem("".concat(r,".").concat(s));return l==null?c:pA(l)},setItem:function(s,c){c===void 0?vi().removeItem("".concat(r,".").concat(s)):vi().setItem("".concat(r,".").concat(s),JSON.stringify(c)),a(s,c)},removeItem:function(s){vi().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var c=vi();Object.keys(c).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){c.removeItem(l);var f=l.substring(n+1);a(f,void 0)}})},reset:function(){var s=vi();Object.keys(s).forEach(function(c){if(c.startsWith(r)){s.removeItem(c);var l=c.substring(n+1);a(l,void 0)}})},subscribe:function(s,c){var l=Math.random().toString();return o[l]={key:s,callback:c},function(){delete o[l]}}}},pA=function(e){try{return JSON.parse(e)}catch{return e}},Rne=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,o){o.startsWith(t)&&r.valuesMap.delete(o)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),kne=new Rne,vi=function(){return OS?window.localStorage:kne},Tne=typeof ao=="object"&&ao&&ao.Object===Object&&ao,z4=Tne,Ine=z4,jne=typeof self=="object"&&self&&self.Object===Object&&self,Ane=Ine||jne||Function("return this")(),Sa=Ane,Mne=Sa,Fne=Mne.Symbol,vd=Fne,vA=vd,U4=Object.prototype,Lne=U4.hasOwnProperty,Nne=U4.toString,gf=vA?vA.toStringTag:void 0;function Dne(e){var t=Lne.call(e,gf),r=e[gf];try{e[gf]=void 0;var n=!0}catch{}var o=Nne.call(e);return n&&(t?e[gf]=r:delete e[gf]),o}var Bne=Dne,zne=Object.prototype,Une=zne.toString;function Vne(e){return Une.call(e)}var Wne=Vne,mA=vd,qne=Bne,Hne=Wne,Gne="[object Null]",Kne="[object Undefined]",hA=mA?mA.toStringTag:void 0;function Qne(e){return e==null?e===void 0?Kne:Gne:hA&&hA in Object(e)?qne(e):Hne(e)}var md=Qne;function Xne(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ea=Xne,Yne=md,Jne=ea,Zne="[object AsyncFunction]",eoe="[object Function]",toe="[object GeneratorFunction]",roe="[object Proxy]";function noe(e){if(!Jne(e))return!1;var t=Yne(e);return t==eoe||t==toe||t==Zne||t==roe}var QE=noe,ooe=Sa,aoe=ooe["__core-js_shared__"],ioe=aoe,Cx=ioe,gA=function(){var e=/[^.]+$/.exec(Cx&&Cx.keys&&Cx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function soe(e){return!!gA&&gA in e}var loe=soe,uoe=Function.prototype,coe=uoe.toString;function doe(e){if(e!=null){try{return coe.call(e)}catch{}try{return e+""}catch{}}return""}var V4=doe,foe=QE,poe=loe,voe=ea,moe=V4,hoe=/[\\^$.*+?()[\]{}|]/g,goe=/^\[object .+?Constructor\]$/,yoe=Function.prototype,boe=Object.prototype,_oe=yoe.toString,xoe=boe.hasOwnProperty,woe=RegExp("^"+_oe.call(xoe).replace(hoe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Soe(e){if(!voe(e)||poe(e))return!1;var t=foe(e)?woe:goe;return t.test(moe(e))}var Ooe=Soe;function Coe(e,t){return e==null?void 0:e[t]}var Eoe=Coe,Poe=Ooe,$oe=Eoe;function Roe(e,t){var r=$oe(e,t);return Poe(r)?r:void 0}var su=Roe,koe=su,Toe=function(){try{var e=koe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),W4=Toe,yA=W4;function Ioe(e,t,r){t=="__proto__"&&yA?yA(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var XE=Ioe;function joe(e,t){return e===t||e!==e&&t!==t}var hd=joe,Aoe=XE,Moe=hd,Foe=Object.prototype,Loe=Foe.hasOwnProperty;function Noe(e,t,r){var n=e[t];(!(Loe.call(e,t)&&Moe(n,r))||r===void 0&&!(t in e))&&Aoe(e,t,r)}var YE=Noe,Doe=Array.isArray,Oa=Doe;function Boe(e){return e!=null&&typeof e=="object"}var Ni=Boe,zoe=md,Uoe=Ni,Voe="[object Symbol]";function Woe(e){return typeof e=="symbol"||Uoe(e)&&zoe(e)==Voe}var Lb=Woe,qoe=Oa,Hoe=Lb,Goe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Koe=/^\w*$/;function Qoe(e,t){if(qoe(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Hoe(e)?!0:Koe.test(e)||!Goe.test(e)||t!=null&&e in Object(t)}var JE=Qoe,Xoe=su,Yoe=Xoe(Object,"create"),Nb=Yoe,bA=Nb;function Joe(){this.__data__=bA?bA(null):{},this.size=0}var Zoe=Joe;function eae(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tae=eae,rae=Nb,nae="__lodash_hash_undefined__",oae=Object.prototype,aae=oae.hasOwnProperty;function iae(e){var t=this.__data__;if(rae){var r=t[e];return r===nae?void 0:r}return aae.call(t,e)?t[e]:void 0}var sae=iae,lae=Nb,uae=Object.prototype,cae=uae.hasOwnProperty;function dae(e){var t=this.__data__;return lae?t[e]!==void 0:cae.call(t,e)}var fae=dae,pae=Nb,vae="__lodash_hash_undefined__";function mae(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=pae&&t===void 0?vae:t,this}var hae=mae,gae=Zoe,yae=tae,bae=sae,_ae=fae,xae=hae;function gd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var Lae=Fae,Nae=Db;function Dae(e,t){var r=this.__data__,n=Nae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Bae=Dae,zae=Oae,Uae=Tae,Vae=Aae,Wae=Lae,qae=Bae;function yd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&eo?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++ns))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var v=-1,m=!0,h=r&cle?new ile:void 0;for(a.set(e,t),a.set(t,e);++v-1&&e%1==0&&e<=sue}var lP=lue,uue=md,cue=lP,due=Ni,fue="[object Arguments]",pue="[object Array]",vue="[object Boolean]",mue="[object Date]",hue="[object Error]",gue="[object Function]",yue="[object Map]",bue="[object Number]",_ue="[object Object]",xue="[object RegExp]",wue="[object Set]",Sue="[object String]",Oue="[object WeakMap]",Cue="[object ArrayBuffer]",Eue="[object DataView]",Pue="[object Float32Array]",$ue="[object Float64Array]",Rue="[object Int8Array]",kue="[object Int16Array]",Tue="[object Int32Array]",Iue="[object Uint8Array]",jue="[object Uint8ClampedArray]",Aue="[object Uint16Array]",Mue="[object Uint32Array]",Xt={};Xt[Pue]=Xt[$ue]=Xt[Rue]=Xt[kue]=Xt[Tue]=Xt[Iue]=Xt[jue]=Xt[Aue]=Xt[Mue]=!0;Xt[fue]=Xt[pue]=Xt[Cue]=Xt[vue]=Xt[Eue]=Xt[mue]=Xt[hue]=Xt[gue]=Xt[yue]=Xt[bue]=Xt[_ue]=Xt[xue]=Xt[wue]=Xt[Sue]=Xt[Oue]=!1;function Fue(e){return due(e)&&cue(e.length)&&!!Xt[uue(e)]}var Lue=Fue;function Nue(e){return function(t){return e(t)}}var Qb=Nue,fy={exports:{}};fy.exports;(function(e,t){var r=z4,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var c=o&&o.require&&o.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(fy,fy.exports);var uP=fy.exports,Due=Lue,Bue=Qb,TA=uP,IA=TA&&TA.isTypedArray,zue=IA?Bue(IA):Due,cP=zue,Uue=Qle,Vue=Gb,Wue=Oa,que=Kb,Hue=Ub,Gue=cP,Kue=Object.prototype,Que=Kue.hasOwnProperty;function Xue(e,t){var r=Wue(e),n=!r&&Vue(e),o=!r&&!n&&que(e),a=!r&&!n&&!o&&Gue(e),i=r||n||o||a,s=i?Uue(e.length,String):[],c=s.length;for(var l in e)(t||Que.call(e,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Hue(l,c)))&&s.push(l);return s}var o5=Xue,Yue=Object.prototype;function Jue(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Yue;return e===r}var dP=Jue;function Zue(e,t){return function(r){return e(t(r))}}var a5=Zue,ece=a5,tce=ece(Object.keys,Object),rce=tce,nce=dP,oce=rce,ace=Object.prototype,ice=ace.hasOwnProperty;function sce(e){if(!nce(e))return oce(e);var t=[];for(var r in Object(e))ice.call(e,r)&&r!="constructor"&&t.push(r);return t}var lce=sce,uce=QE,cce=lP;function dce(e){return e!=null&&cce(e.length)&&!uce(e)}var Xb=dce,fce=o5,pce=lce,vce=Xb;function mce(e){return vce(e)?fce(e):pce(e)}var Yb=mce,hce=t5,gce=sP,yce=Yb;function bce(e){return hce(e,yce,gce)}var i5=bce,jA=i5,_ce=1,xce=Object.prototype,wce=xce.hasOwnProperty;function Sce(e,t,r,n,o,a){var i=r&_ce,s=jA(e),c=s.length,l=jA(t),f=l.length;if(c!=f&&!i)return!1;for(var v=c;v--;){var m=s[v];if(!(i?m in t:wce.call(t,m)))return!1}var h=a.get(e),x=a.get(t);if(h&&x)return h==t&&x==e;var w=!0;a.set(e,t),a.set(t,e);for(var O=i;++v0){if(++t>=Wfe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Kfe=Gfe,Qfe=Vfe,Xfe=Kfe,Yfe=Xfe(Qfe),w5=Yfe,Jfe=gP,Zfe=x5,epe=w5;function tpe(e,t){return epe(Zfe(e,t,Jfe),e+"")}var Zb=tpe,rpe=hd,npe=Xb,ope=Ub,ape=ea;function ipe(e,t,r){if(!ape(r))return!1;var n=typeof t;return(n=="number"?npe(r)&&ope(t,r.length):n=="string"&&t in r)?rpe(r[t],e):!1}var S5=ipe,spe=Zb,lpe=S5;function upe(e){return spe(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&lpe(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function xpe(e){var t=e.basename,r=e.children,n=e.history,o=d.useState({action:n.action,location:n.location}),a=o[0],i=o[1];return d.useLayoutEffect(function(){return n.listen(i)},[n]),d.createElement(gne,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:n})}var O5=d.createContext(""),wpe=function(e){var t=e.children,r=e.basename;return d.createElement(O5.Provider,{value:r},t)},Spe=function(e){var t=e.history,r=e.basename,n=r===void 0?"":r,o=e.children,a=qs(),i=a?Ope:Cpe;return d.createElement(wpe,{basename:a?n:""},d.createElement(i,{basename:n,history:t},o))},Ope=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},Cpe=function(e){var t=e.children,r=e.history,n=d.useMemo(function(){return r||bpe()},[r]);return d.createElement(xpe,{history:n},t)},Hs=function(){return d.useContext(O5)},Gs=function(){var e=Hs();return d.useCallback(function(t){var r=t.resource,n=t.id,o=t.type;switch(o){case"list":return Fa("".concat(e,"/").concat(r));case"create":return Fa("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Fa("".concat(e,"/").concat(r)):Fa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Fa("".concat(e,"/").concat(r)):Fa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}},[e])},Fa=function(e){return e.replace("//","/")},Yf=function(){return Yf=Object.assign||function(e){for(var t,r=1,n=arguments.length;rencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),C5="%[a-f0-9]{2}",sM=new RegExp("("+C5+")|([^%]+?)","gi"),lM=new RegExp("("+C5+")+","gi");function TS(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],TS(r),TS(n))}function Vpe(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(sM)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},Gpe=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),a=0;ag==null,i=Symbol("encodeFragmentIdentifier");function s(g){switch(g.arrayFormat){case"index":return _=>($,P)=>{const C=$.length;return P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,[f(_,g),"[",C,"]"].join("")]:[...$,[f(_,g),"[",f(C,g),"]=",f(P,g)].join("")]};case"bracket":return _=>($,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,[f(_,g),"[]"].join("")]:[...$,[f(_,g),"[]=",f(P,g)].join("")];case"colon-list-separator":return _=>($,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,[f(_,g),":list="].join("")]:[...$,[f(_,g),":list=",f(P,g)].join("")];case"comma":case"separator":case"bracket-separator":{const _=g.arrayFormat==="bracket-separator"?"[]=":"=";return $=>(P,C)=>C===void 0||g.skipNull&&C===null||g.skipEmptyString&&C===""?P:(C=C===null?"":C,P.length===0?[[f($,g),_,f(C,g)].join("")]:[[P,f(C,g)].join(g.arrayFormatSeparator)])}default:return _=>($,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,f(_,g)]:[...$,[f(_,g),"=",f(P,g)].join("")]}}function c(g){let _;switch(g.arrayFormat){case"index":return($,P,C)=>{if(_=/\[(\d*)\]$/.exec($),$=$.replace(/\[\d*\]$/,""),!_){C[$]=P;return}C[$]===void 0&&(C[$]={}),C[$][_[1]]=P};case"bracket":return($,P,C)=>{if(_=/(\[\])$/.exec($),$=$.replace(/\[\]$/,""),!_){C[$]=P;return}if(C[$]===void 0){C[$]=[P];return}C[$]=[].concat(C[$],P)};case"colon-list-separator":return($,P,C)=>{if(_=/(:list)$/.exec($),$=$.replace(/:list$/,""),!_){C[$]=P;return}if(C[$]===void 0){C[$]=[P];return}C[$]=[].concat(C[$],P)};case"comma":case"separator":return($,P,C)=>{const k=typeof P=="string"&&P.includes(g.arrayFormatSeparator),R=typeof P=="string"&&!k&&v(P,g).includes(g.arrayFormatSeparator);P=R?v(P,g):P;const I=k||R?P.split(g.arrayFormatSeparator).map(A=>v(A,g)):P===null?P:v(P,g);C[$]=I};case"bracket-separator":return($,P,C)=>{const k=/(\[\])$/.test($);if($=$.replace(/\[\]$/,""),!k){C[$]=P&&v(P,g);return}const R=P===null?[]:P.split(g.arrayFormatSeparator).map(I=>v(I,g));if(C[$]===void 0){C[$]=R;return}C[$]=[].concat(C[$],R)};default:return($,P,C)=>{if(C[$]===void 0){C[$]=P;return}C[$]=[].concat(C[$],P)}}}function l(g){if(typeof g!="string"||g.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function f(g,_){return _.encode?_.strict?t(g):encodeURIComponent(g):g}function v(g,_){return _.decode?r(g):g}function m(g){return Array.isArray(g)?g.sort():typeof g=="object"?m(Object.keys(g)).sort((_,$)=>Number(_)-Number($)).map(_=>g[_]):g}function h(g){const _=g.indexOf("#");return _!==-1&&(g=g.slice(0,_)),g}function x(g){let _="";const $=g.indexOf("#");return $!==-1&&(_=g.slice($)),_}function w(g){g=h(g);const _=g.indexOf("?");return _===-1?"":g.slice(_+1)}function O(g,_){return _.parseNumbers&&!Number.isNaN(Number(g))&&typeof g=="string"&&g.trim()!==""?g=Number(g):_.parseBooleans&&g!==null&&(g.toLowerCase()==="true"||g.toLowerCase()==="false")&&(g=g.toLowerCase()==="true"),g}function b(g,_){_=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},_),l(_.arrayFormatSeparator);const $=c(_),P=Object.create(null);if(typeof g!="string"||(g=g.trim().replace(/^[?#&]/,""),!g))return P;for(const C of g.split("&")){if(C==="")continue;let[k,R]=n(_.decode?C.replace(/\+/g," "):C,"=");R=R===void 0?null:["comma","separator","bracket-separator"].includes(_.arrayFormat)?R:v(R,_),$(v(k,_),R,P)}for(const C of Object.keys(P)){const k=P[C];if(typeof k=="object"&&k!==null)for(const R of Object.keys(k))k[R]=O(k[R],_);else P[C]=O(k,_)}return _.sort===!1?P:(_.sort===!0?Object.keys(P).sort():Object.keys(P).sort(_.sort)).reduce((C,k)=>{const R=P[k];return R&&typeof R=="object"&&!Array.isArray(R)?C[k]=m(R):C[k]=R,C},Object.create(null))}e.extract=w,e.parse=b,e.stringify=(g,_)=>{if(!g)return"";_=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},_),l(_.arrayFormatSeparator);const $=R=>_.skipNull&&a(g[R])||_.skipEmptyString&&g[R]==="",P=s(_),C={};for(const R of Object.keys(g))$(R)||(C[R]=g[R]);const k=Object.keys(C);return _.sort!==!1&&k.sort(_.sort),k.map(R=>{const I=g[R];return I===void 0?"":I===null?f(R,_):Array.isArray(I)?I.length===0&&_.arrayFormat==="bracket-separator"?f(R,_)+"[]":I.reduce(P(R),[]).join("&"):f(R,_)+"="+f(I,_)}).filter(R=>R.length>0).join("&")},e.parseUrl=(g,_)=>{_=Object.assign({decode:!0},_);const[$,P]=n(g,"#");return Object.assign({url:$.split("?")[0]||"",query:b(w(g),_)},_&&_.parseFragmentIdentifier&&P?{fragmentIdentifier:v(P,_)}:{})},e.stringifyUrl=(g,_)=>{_=Object.assign({encode:!0,strict:!0,[i]:!0},_);const $=h(g.url).split("?")[0]||"",P=e.extract(g.url),C=e.parse(P,{sort:!1}),k=Object.assign(C,g.query);let R=e.stringify(k,_);R&&(R=`?${R}`);let I=x(g.url);return g.fragmentIdentifier&&(I=`#${_[i]?f(g.fragmentIdentifier,_):g.fragmentIdentifier}`),`${$}${R}${I}`},e.pick=(g,_,$)=>{$=Object.assign({parseFragmentIdentifier:!0,[i]:!1},$);const{url:P,query:C,fragmentIdentifier:k}=e.parseUrl(g,$);return e.stringifyUrl({url:P,query:o(C,_),fragmentIdentifier:k},$)},e.exclude=(g,_,$)=>{const P=Array.isArray(_)?C=>!_.includes(C):(C,k)=>!_(C,k);return e.pick(g,P,$)}})(Yl);var my=function(){return my=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new zpe(c&&c.message||a,o,c)):Promise.resolve({status:o,headers:i,body:s,json:c})})},Xpe=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",o=!!Object.keys(e).length;return!t&&!r&&n&&o},E5=function(e,t){var r;return t===void 0&&(t=[]),Xpe(e)?Object.assign.apply(Object,Kpe([{}],Object.keys(e).map(function(n){return E5(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},P5={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(c,l,f){this.fn=c,this.context=l,this.once=f||!1}function a(c,l,f,v,m){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new o(f,v||c,m),x=r?r+l:l;return c._events[x]?c._events[x].fn?c._events[x]=[c._events[x],h]:c._events[x].push(h):(c._events[x]=h,c._eventsCount++),c}function i(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],f,v;if(this._eventsCount===0)return l;for(v in f=this._events)t.call(f,v)&&l.push(r?v.slice(1):v);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(f)):l},s.prototype.listeners=function(l){var f=r?r+l:l,v=this._events[f];if(!v)return[];if(v.fn)return[v.fn];for(var m=0,h=v.length,x=new Array(h);m0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"u"||!e.message?t:e.message},rve=["getList","getMany","getManyReference"],yo=function(){var e=d.useContext(wP)||$5,t=R5(),r=d.useMemo(function(){return new Proxy(e,{get:function(n,o){if(!(typeof o=="symbol"||o==="then"))return function(){for(var a=[],i=0;i0),n=fe.useRef(e.isMutating()>0),o=fe.useState(r.current||n.current),a=o[0],i=o[1];return fe.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(Wt.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),c=e.getMutationCache().subscribe(Wt.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),c()}},[e]),a},ri=function(){var e=Zo();return d.useCallback(function(){e.invalidateQueries()},[e])},k5=function(e,t,r){var n=t.id,o=t.meta,a=yo();return Ws([e,"getOne",{id:String(n),meta:o}],function(){return a.getOne(e,{id:n,meta:o}).then(function(i){var s=i.data;return s})},r)},lc=function(){return lc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?T5(s,t-1,r,n,o):cve(o,s):n||(o[o.length]=s)}return o}var SP=T5;function fve(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a-1}var I5=Ove;function Cve(e,t,r){for(var n=-1,o=e==null?0:e.length;++n=Dve){var l=t?null:Lve(e);if(l)return Nve(l);i=!1,o=Fve,c=new jve}else c=t?[]:s;e:for(;++n=t||k<0||v&&R>=a}function b(){var C=Tx();if(O(C))return g(C);s=setTimeout(b,w(C))}function g(C){return s=void 0,m&&n?h(C):(n=o=void 0,i)}function _(){s!==void 0&&clearTimeout(s),l=0,n=c=o=s=void 0}function $(){return s===void 0?i:g(Tx())}function P(){var C=Tx(),k=O(C);if(n=arguments,o=this,c=C,k){if(s===void 0)return x(c);if(v)return clearTimeout(s),s=setTimeout(b,t),h(c)}return s===void 0&&(s=setTimeout(b,t)),i}return P.cancel=_,P.flush=$,P}var wme=xme;const M5=gr(wme);function mM(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var F5=function(e,t){if(mM(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. -Be sure to pass the props from the parent. Example: - -const My`).concat(e,` = props => ( - <`).concat(e," {...props}> -); - -The missing props are: `).concat(o.join(", ")))},FS=function(){return FS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0?(v=e.current)[l].apply(v,ph(ph([],m,!1),[f],!1)):a.apply(void 0,m)};return e.current.length>0?(i=e.current)[l].apply(i,ph(ph([],s,!1),[f],!1)):a.apply(void 0,s)}},[]),o=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return o},gy=function(){return gy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]2?t[2]:void 0;for(o&&whe(t[0],t[1],o)&&(n=1);++r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"u"?"undefined":tB(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var o in r){var a=r[o],i=this.check(a,o,o,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,o=[],a,i=0;i0&&!l.item&&a===void 0&&(a=l);o=o.concat(c)}}return o}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),zhe=Bhe,Uhe=typeof window>"u"?ao:window;function Vhe(e,t){if(e instanceof Uhe[t])return!0;switch(typeof e>"u"?"undefined":tB(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var jx,SM;function Whe(){return SM||(SM=1,jx=function(t,r,n){var o=` -`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var a=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(c){return c.indexOf(r)>=0||c.indexOf(o)>=0||c.indexOf('"')>=0}:function(c){return c.indexOf(r)>=0||c.indexOf(o)>=0};return function(c){return n&&(c=""+c),c.replace&&(c=c.replace(a,i),(n||s(c))&&(c=t+c+t)),c}}),jx}var qhe=function(){function e(t,r){for(var n=0;n0&&(v=v.concat(Array(m).join(".").split("."))),n&&this._options.fillGaps&&(v=v.map(a)),o.push(v.join(this._options.rowDelimiter)),n=v}}catch(h){s=!0,c=h}finally{try{!i&&l.return&&l.return()}finally{if(s)throw c}}return o}},{key:"_parseArray",value:function(r,n){var o=this;this._headers=this._headers||[];var a=[],i=void 0,s=function(O){var b=o._headers.indexOf(O);return b===-1&&(o._headers.push(O),b=o._headers.indexOf(O)),b};i=function(O){var b=[],g=function(U){return b.push(U.map(function(H){return H??""}))},_=function(){return new Array(o._headers.length).fill(null)},$={},P=_(),C=!0,k=!1,R=void 0;try{for(var I=O[Symbol.iterator](),A;!(C=(A=I.next()).done);C=!0){var F=A.value,L=s(F.item);if(P[L]!=null&&(g(P),P=_()),$[L]=$[L]||0,o._options.fillTopRow&&$[L]0&&g(P),a=a.concat(o._checkRows(b))};var c=!0,l=!1,f=void 0;try{for(var v=r[Symbol.iterator](),m;!(c=(m=v.next()).done);c=!0){var h=m.value,x=o._handler.check(h,o._options.mainPathItem,h,r);i(x)}}catch(w){l=!0,f=w}finally{try{!c&&v.return&&v.return()}finally{if(l)throw f}}return!n&&o._options.includeHeaders&&a.unshift(this.headers),OM(a,o._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,o=[],a=[],i=void 0,s=[[],[]];i=function(v){var m=v.value||v.value===0?v.value.toString():n._options.undefinedString;if(m=n._escape(m),n._options.verticalOutput){var h=[v.item,m];o.push(h.join(n._options.rowDelimiter))}else s[0].push(v.item),s[1].push(m)};for(var c in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),a=this._handler.check(r[c],l+c,c,r),a.forEach(i)}return this._options.verticalOutput||(o.push(s[0].join(this._options.rowDelimiter)),o.push(s[1].join(this._options.rowDelimiter))),OM(o,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(o){return r._options.rename[r._options.headers.indexOf(o)]||o})),this._options.forceTextDelimiter&&(n=n.map(function(o){return""+r._options.textDelimiter+o+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),Qhe=Khe,Xhe=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},Yhe=Xhe,EM=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},PM=Qhe,$M=Yhe,Jhe=eB,Zhe=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:Jhe,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var o=Array.prototype.slice.call(arguments);t=o[0],r=o[1],n=o[2]}else if(arguments.length===2){var a=void 0,i=Array.prototype.slice.call(arguments);t=i[0],a=i[1],typeof a=="function"?n=a:(typeof a>"u"?"undefined":EM(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),c=s[0];if((typeof c>"u"?"undefined":EM(c))==="object"){var l=Object.keys(e),f=Object.keys(c),v=f.every(function(x){return l.includes(x)});f.length>0&&v?r=c:t=c}else t=c}else return new $M(new PM(e));var m=Object.assign({},e,r),h=new PM(m);return t?new Promise(function(x,w){h.parse(t,function(O,b){if(n)return n(O,b);if(O)return w(O);if(w)return x(b)})}):new $M};const ege=gr(Zhe),tge=function(e,t){var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())};var rge=function(e,t,r,n){return ege(e,function(o,a){return tge(a,n)})},nge=function(e){return function(t,r,n){return e.getMany(n,{ids:oge(t,r)}).then(function(o){var a=o.data;return a.reduce(function(i,s){return i[s.id]=s,i},{})})}},oge=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))},Au=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n"u"||o(function(c){if(!Array.isArray(c))return Au([],c,!0);var l=c.indexOf(s);return l>-1?Au(Au([],c.slice(0,l),!0),c.slice(l+1),!0):Au(Au([],c,!0),[s],!1)})},clearSelection:function(){a()}}},[o,a]);return[n,i]},age=[],ige=Hb,sge=fP,lge=1,uge=2;function cge(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o0&&!k&&$(A)},[h.search]);var F=d.useCallback(function(ne){C.current&&(P.current?P.current=gM(P.current,ne):(P.current=gM(A,ne),setTimeout(function(){o?b(P.current):x({search:"?".concat(Yl.stringify(Is(Is({},P.current),{filter:JSON.stringify(P.current.filter),displayedFilters:JSON.stringify(P.current.displayedFilters)})))},{state:{_scrollToTop:ne.type===AS}}),P.current=void 0},0)))},RM(RM([],R,!0),[x],!1)),L=d.useCallback(function(ne){return F({type:N5,payload:ne})},[F]),D=d.useCallback(function(ne){return F({type:AS,payload:ne})},[F]),U=d.useCallback(function(ne){return F({type:D5,payload:ne})},[F]),H=A.filter||IM,q=A.displayedFilters||IM,G=M5(function(ne,ee){F({type:MS,payload:{filter:Ns(ne),displayedFilters:ee}})},r),z=d.useCallback(function(ne,ee,Oe){return Oe===void 0&&(Oe=!0),Oe?G(ne,ee):F({type:MS,payload:{filter:Ns(ne),displayedFilters:ee}})},[F]),W=d.useCallback(function(ne){F({type:z5,payload:ne})},[F]),te=d.useCallback(function(ne,ee){F({type:B5,payload:{filterName:ne,defaultValue:ee}})},[F]);return[Is({displayedFilters:q,filterValues:H,requestSignature:R},A),{changeParams:F,setPage:D,setPerPage:U,setSort:L,setFilters:z,hideFilter:W,showFilter:te}]},yye=["page","perPage","sort","order","filter","displayedFilters"],kM=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},bye=function(e){var t=e.search,r=mye(Yl.parse(t),function(n,o){return yye.indexOf(o)!==-1});return kM(r,"filter"),kM(r,"displayedFilters"),r},_ye=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},xye=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,o=e.sort,a=e.perPage,i=Object.keys(t).length>0?t:_ye(r)?Is({},r):{filter:n||{}};return i.sort||(i.sort=o.field,i.order=o.order),i.perPage==null&&(i.perPage=a),i.page==null&&(i.page=1),Is(Is({},i),{page:TM(i.page,1),perPage:TM(i.perPage,10)})},TM=function(e,t){var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},IM={},wye={field:"id",order:Nl},jM={},$P=d.createContext({sort:null,data:null,defaultTitle:null,displayedFilters:null,exporter:null,filterValues:null,hasNextPage:null,hasPreviousPage:null,hideFilter:null,isFetching:null,isLoading:null,onSelect:null,onToggleItem:null,onUnselectItems:null,page:null,perPage:null,refetch:null,resource:null,selectedIds:void 0,setFilters:null,setPage:null,setPerPage:null,setSort:null,showFilter:null,total:null});$P.displayName="ListContext";var iB=d.createContext({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null}),Sye=function(e){return d.useMemo(function(){return e0(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};iB.displayName="ListFilterContext";var sB=d.createContext({sort:null,setSort:null,resource:null}),Oye=function(e){return d.useMemo(function(){return e0(e,["sort","setSort","resource"])},[e.sort,e.setSort])};sB.displayName="ListSortContext";var RP=d.createContext({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});RP.displayName="ListPaginationContext";var Cye=function(e){return d.useMemo(function(){return e0(e,["isLoading","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},kP=function(e){var t=e.value,r=e.children;return d.createElement($P.Provider,{value:t},d.createElement(iB.Provider,{value:Sye(t)},d.createElement(sB.Provider,{value:Oye(t)},d.createElement(RP.Provider,{value:Cye(t)},r))))},Dl=function(){return Dl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r was called outside of a ResourceContext and without a resource prop. You must set the resource prop.");if(s&&d.isValidElement(s))throw new Error(" received a React element as `filter` props. If you intended to set the list filter elements, use the `filters` (with an s) prop instead. The `filter` prop is internal and should not be set by the developer.");var _=je(),$=Ht(),P=gye({debounce:r,disableSyncWithLocation:o,filterDefaultValues:c,perPage:f,resource:O,sort:x,storeKey:w}),C=P[0],k=P[1],R=hv(O),I=R[0],A=R[1],F=ave(O,{pagination:{page:C.page,perPage:C.perPage},sort:{field:C.sort,order:C.order},filter:Dl(Dl({},C.filter),s),meta:b},Dl({keepPreviousData:!0,retry:!1,onError:function(ee){return $((ee==null?void 0:ee.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:ee==null?void 0:ee.message}})}},g)),L=F.data,D=F.pageInfo,U=F.total,H=F.error,q=F.isLoading,G=F.isFetching,z=F.refetch;d.useEffect(function(){if(C.page<=0||!G&&C.page>1&&(L==null||(L==null?void 0:L.length)===0)){k.setPage(1);return}if(U!=null){var ee=Math.ceil(U/C.perPage)||1;!G&&C.page>ee&&k.setPage(ee)}},[G,C.page,C.perPage,L,k,U]);var W=d.useMemo(function(){return{field:C.sort,order:C.order}},[C.sort,C.order]),te=Ed(),ne=_("ra.page.list",{name:te(O,2)});return{sort:W,data:L,defaultTitle:ne,displayedFilters:C.displayedFilters,error:H,exporter:i,filter:s,filterValues:C.filterValues,hideFilter:k.hideFilter,isFetching:G,isLoading:q,onSelect:A.select,onToggleItem:A.toggle,onUnselectItems:A.clearSelection,page:C.page,perPage:C.perPage,refetch:z,resource:O,selectedIds:I,setFilters:k.setFilters,setPage:k.setPage,setPerPage:k.setPerPage,setSort:k.setSort,showFilter:k.showFilter,total:U,hasNextPage:D?D.hasNextPage:U!=null?C.page*C.perPage1}},$ye={field:"id",order:Nl},Rye=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],Lp=function(e){return Object.keys(e).filter(function(t){return!Rye.includes(t)}).reduce(function(t,r){var n;return Dl(Dl({},t),(n={},n[r]=e[r],n))},{})},kye=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o-1?r?[]:vh(vh([],c.slice(0,l),!0),c.slice(l+1),!0):r?[t]:vh(vh([],c,!0),[t],!1)})},[a,t,r]);return[i,s]},jye=function(e,t){var r=pn("".concat(e,".datagrid.expanded"),[]),n=r[0],o=r[1],a=Array.isArray(n)?n.some(function(s){return t.some(function(c){return c==s})}):!1,i=d.useCallback(function(){var s=n.filter(function(c){return!t.some(function(l){return l==c})});o(a?s:s.concat(t))},[n,o,a,t]);return[a,i]},uc=function(){return uc=Object.assign||function(e){for(var t,r=1,n=arguments.length;rvt(Ae,q.field)?q.order==="ASC"?1:-1:vt(ge,q.field)1,hideFilter:de,isFetching:g,isLoading:P,onSelect:ne.select,onToggleItem:ne.toggle,onUnselectItems:ne.clearSelection,page:F,perPage:D,resource:void 0,refetch:Aye,selectedIds:te,setFilters:ve,setPage:L,setPerPage:U,setSort:z,showFilter:he,total:R==null?void 0:R.total}},Mye={},rn=function(e){var t=d.useContext($P);return d.useMemo(function(){return lu({},e!=null?Fye(e):{},t)},[t,e])},Fye=function(e){var t=e.sort,r=e.data,n=e.defaultTitle,o=e.displayedFilters,a=e.exporter,i=e.filterValues,s=e.hasCreate,c=e.hideFilter,l=e.isFetching,f=e.isLoading,v=e.onSelect,m=e.onToggleItem,h=e.onUnselectItems,x=e.page,w=e.perPage,O=e.refetch,b=e.resource,g=e.selectedIds,_=e.setFilters,$=e.setPage,P=e.setPerPage,C=e.setSort,k=e.showFilter,R=e.total;return{sort:t,data:r,defaultTitle:n,displayedFilters:o,exporter:a,filterValues:i,hasCreate:s,hideFilter:c,isFetching:l,isLoading:f,onSelect:v,onToggleItem:m,onUnselectItems:h,page:x,perPage:w,refetch:O,resource:b,selectedIds:g,setFilters:_,setPage:$,setPerPage:P,setSort:C,showFilter:k,total:R}},Lye=function(e){var t=d.useContext(RP);return d.useMemo(function(){return lu({},e!=null?Nye(e):{},t)},[t,e])},Nye=function(e){var t=e.isLoading,r=e.page,n=e.perPage,o=e.setPage,a=e.setPerPage,i=e.hasPreviousPage,s=e.hasNextPage,c=e.total,l=e.resource;return{isLoading:t,page:r,perPage:n,setPage:o,setPerPage:a,hasPreviousPage:i,hasNextPage:s,total:c,resource:l}},uB=function(e){var t=hv(e),r=t[1].unselect;return d.useCallback(function(n){r(n)},[r])},cB=function(e){var t=hv(e),r=t[1].clearSelection;return d.useCallback(function(){r()},[r])},cc=function(){return cc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1,setSort:k,showFilter:W,total:ce}},gv=e=>e.type==="checkbox",dc=e=>e instanceof Date,On=e=>e==null;const dB=e=>typeof e=="object";var Fr=e=>!On(e)&&!Array.isArray(e)&&dB(e)&&!dc(e),fB=e=>Fr(e)&&e.target?gv(e.target)?e.target.checked:e.target.value:e,zye=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,pB=(e,t)=>e.has(zye(t)),Uye=e=>{const t=e.constructor&&e.constructor.prototype;return Fr(t)&&t.hasOwnProperty("isPrototypeOf")},TP=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function jr(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(TP&&(e instanceof Blob||e instanceof FileList))&&(r||Fr(e)))if(t=r?[]:{},!r&&!Uye(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=jr(e[n]));else return e;return t}var yv=e=>Array.isArray(e)?e.filter(Boolean):[],Vt=e=>e===void 0,Me=(e,t,r)=>{if(!t||!Fr(e))return r;const n=yv(t.split(/[,[\].]+?/)).reduce((o,a)=>On(o)?o:o[a],e);return Vt(n)||n===e?Vt(e[t])?r:e[t]:n},Ba=e=>typeof e=="boolean",IP=e=>/^\w*$/.test(e),vB=e=>yv(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Lt=(e,t,r)=>{let n=-1;const o=IP(t)?[t]:vB(t),a=o.length,i=a-1;for(;++nfe.useContext(mB),hB=e=>{const{children:t,...r}=e;return fe.createElement(mB.Provider,{value:r},t)};var gB=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==Do.all&&(t._proxyFormState[i]=!n||Do.all),r&&(r[i]=!0),e[i]}});return o},Bn=e=>Fr(e)&&!Object.keys(e).length,yB=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return Bn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===(!n||Do.all))},Vn=e=>Array.isArray(e)?e:[e],bB=(e,t,r)=>!e||!t||e===t||Vn(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function r0(e){const t=fe.useRef(e);t.current=e,fe.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Cd(e){const t=ta(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=fe.useState(r._formState),c=fe.useRef(!0),l=fe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=fe.useRef(o);return f.current=o,r0({disabled:n,next:v=>c.current&&bB(f.current,v.name,a)&&yB(v,l.current,r._updateFormState)&&s({...r._formState,...v}),subject:r._subjects.state}),fe.useEffect(()=>(c.current=!0,l.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),gB(i,r,l.current,!1)}var Ua=e=>typeof e=="string",_B=(e,t,r,n,o)=>Ua(e)?(n&&t.watch.add(e),Me(r,e,o)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),Me(r,a))):(n&&(t.watchAll=!0),r);function xB(e){const t=ta(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i}=e||{},s=fe.useRef(n);s.current=n,r0({disabled:a,subject:r._subjects.values,next:f=>{bB(s.current,f.name,i)&&l(jr(_B(s.current,r._names,f.values||r._formValues,!1,o)))}});const[c,l]=fe.useState(r._getWatch(n,o));return fe.useEffect(()=>r._removeUnmounted()),c}function Vye(e){const t=ta(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a}=e,i=pB(o._names.array,r),s=xB({control:o,name:r,defaultValue:Me(o._formValues,r,Me(o._defaultValues,r,e.defaultValue)),exact:!0}),c=Cd({control:o,name:r}),l=fe.useRef(o.register(r,{...e.rules,value:s,...Ba(e.disabled)?{disabled:e.disabled}:{}}));return fe.useEffect(()=>{const f=o._options.shouldUnregister||a,v=(m,h)=>{const x=Me(o._fields,m);x&&x._f&&(x._f.mount=h)};if(v(r,!0),f){const m=jr(Me(o._options.defaultValues,r));Lt(o._defaultValues,r,m),Vt(Me(o._formValues,r))&&Lt(o._formValues,r,m)}return()=>{(i?f&&!o._state.action:f)?o.unregister(r):v(r,!1)}},[r,o,i,a]),fe.useEffect(()=>{Me(o._fields,r)&&o._updateDisabledField({disabled:n,fields:o._fields,name:r,value:Me(o._fields,r)._f.value})},[n,r,o]),{field:{name:r,value:s,...Ba(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:fe.useCallback(f=>l.current.onChange({target:{value:fB(f),name:r},type:by.CHANGE}),[r]),onBlur:fe.useCallback(()=>l.current.onBlur({target:{value:Me(o._formValues,r),name:r},type:by.BLUR}),[r,o]),ref:f=>{const v=Me(o._fields,r);v&&f&&(v._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:m=>f.setCustomValidity(m),reportValidity:()=>f.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Me(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!Me(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Me(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Me(c.validatingFields,r)},error:{enumerable:!0,get:()=>Me(c.errors,r)}})}}var Wye=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},es=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=(Math.random()*16+e)%16|0;return(t=="x"?r:r&3|8).toString(16)})},Ax=(e,t,r={})=>r.shouldFocus||Vt(r.shouldFocus)?r.focusName||`${e}.${Vt(r.focusIndex)?t:r.focusIndex}.`:"",ep=e=>({isOnSubmit:!e||e===Do.onSubmit,isOnBlur:e===Do.onBlur,isOnChange:e===Do.onChange,isOnAll:e===Do.all,isOnTouch:e===Do.onTouched}),NS=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const wc=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const a=Me(e,o);if(a){const{_f:i,...s}=a;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],o)&&!n)break;if(i.ref&&t(i.ref,i.name)&&!n)break;wc(s,t)}else Fr(s)&&wc(s,t)}}};var wB=(e,t,r)=>{const n=Vn(Me(e,r));return Lt(n,"root",t[r]),Lt(e,r,n),e},jP=e=>e.type==="file",_s=e=>typeof e=="function",_y=e=>{if(!TP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ng=e=>Ua(e),AP=e=>e.type==="radio",xy=e=>e instanceof RegExp;const FM={value:!1,isValid:!1},LM={value:!0,isValid:!0};var SB=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Vt(e[0].attributes.value)?Vt(e[0].value)||e[0].value===""?LM:{value:e[0].value,isValid:!0}:LM:FM}return FM};const NM={isValid:!1,value:null};var OB=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,NM):NM;function DM(e,t,r="validate"){if(ng(e)||Array.isArray(e)&&e.every(ng)||Ba(e)&&!e)return{type:r,message:ng(e)?e:"",ref:t}}var Mu=e=>Fr(e)&&!xy(e)?e:{value:e,message:""},DS=async(e,t,r,n,o)=>{const{ref:a,refs:i,required:s,maxLength:c,minLength:l,min:f,max:v,pattern:m,validate:h,name:x,valueAsNumber:w,mount:O,disabled:b}=e._f,g=Me(t,x);if(!O||b)return{};const _=i?i[0]:a,$=L=>{n&&_.reportValidity&&(_.setCustomValidity(Ba(L)?"":L||""),_.reportValidity())},P={},C=AP(a),k=gv(a),R=C||k,I=(w||jP(a))&&Vt(a.value)&&Vt(g)||_y(a)&&a.value===""||g===""||Array.isArray(g)&&!g.length,A=Wye.bind(null,x,r,P),F=(L,D,U,H=mi.maxLength,q=mi.minLength)=>{const G=L?D:U;P[x]={type:L?H:q,message:G,ref:a,...A(L?H:q,G)}};if(o?!Array.isArray(g)||!g.length:s&&(!R&&(I||On(g))||Ba(g)&&!g||k&&!SB(i).isValid||C&&!OB(i).isValid)){const{value:L,message:D}=ng(s)?{value:!!s,message:s}:Mu(s);if(L&&(P[x]={type:mi.required,message:D,ref:_,...A(mi.required,D)},!r))return $(D),P}if(!I&&(!On(f)||!On(v))){let L,D;const U=Mu(v),H=Mu(f);if(!On(g)&&!isNaN(g)){const q=a.valueAsNumber||g&&+g;On(U.value)||(L=q>U.value),On(H.value)||(D=qnew Date(new Date().toDateString()+" "+te),z=a.type=="time",W=a.type=="week";Ua(U.value)&&g&&(L=z?G(g)>G(U.value):W?g>U.value:q>new Date(U.value)),Ua(H.value)&&g&&(D=z?G(g)+L.value,H=!On(D.value)&&g.length<+D.value;if((U||H)&&(F(U,L.message,D.message),!r))return $(P[x].message),P}if(m&&!I&&Ua(g)){const{value:L,message:D}=Mu(m);if(xy(L)&&!g.match(L)&&(P[x]={type:mi.pattern,message:D,ref:a,...A(mi.pattern,D)},!r))return $(D),P}if(h){if(_s(h)){const L=await h(g,t),D=DM(L,_);if(D&&(P[x]={...D,...A(mi.validate,D.message)},!r))return $(D.message),P}else if(Fr(h)){let L={};for(const D in h){if(!Bn(L)&&!r)break;const U=DM(await h[D](g,t),_,D);U&&(L={...U,...A(D,U.message)},$(U.message),r&&(P[x]=L))}if(!Bn(L)&&(P[x]={ref:_,...L},!r))return P}}return $(!0),P},Mx=(e,t)=>[...e,...Vn(t)],Fx=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Lx(e,t,r){return[...e.slice(0,t),...Vn(r),...e.slice(t)]}var Nx=(e,t,r)=>Array.isArray(e)?(Vt(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],Dx=(e,t)=>[...Vn(t),...Vn(e)];function qye(e,t){let r=0;const n=[...e];for(const o of t)n.splice(o-r,1),r++;return yv(n).length?n:[]}var Bx=(e,t)=>Vt(t)?[]:qye(e,Vn(t).sort((r,n)=>r-n)),zx=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function Hye(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function Kye(e){const t=ta(),{control:r=t.control,name:n,keyName:o="id",shouldUnregister:a}=e,[i,s]=fe.useState(r._getFieldArray(n)),c=fe.useRef(r._getFieldArray(n).map(es)),l=fe.useRef(i),f=fe.useRef(n),v=fe.useRef(!1);f.current=n,l.current=i,r._names.array.add(n),e.rules&&r.register(n,e.rules),r0({next:({values:P,name:C})=>{if(C===f.current||!C){const k=Me(P,f.current);Array.isArray(k)&&(s(k),c.current=k.map(es))}},subject:r._subjects.array});const m=fe.useCallback(P=>{v.current=!0,r._updateFieldArray(n,P)},[r,n]),h=(P,C)=>{const k=Vn(jr(P)),R=Mx(r._getFieldArray(n),k);r._names.focus=Ax(n,R.length-1,C),c.current=Mx(c.current,k.map(es)),m(R),s(R),r._updateFieldArray(n,R,Mx,{argA:Fx(P)})},x=(P,C)=>{const k=Vn(jr(P)),R=Dx(r._getFieldArray(n),k);r._names.focus=Ax(n,0,C),c.current=Dx(c.current,k.map(es)),m(R),s(R),r._updateFieldArray(n,R,Dx,{argA:Fx(P)})},w=P=>{const C=Bx(r._getFieldArray(n),P);c.current=Bx(c.current,P),m(C),s(C),r._updateFieldArray(n,C,Bx,{argA:P})},O=(P,C,k)=>{const R=Vn(jr(C)),I=Lx(r._getFieldArray(n),P,R);r._names.focus=Ax(n,P,k),c.current=Lx(c.current,P,R.map(es)),m(I),s(I),r._updateFieldArray(n,I,Lx,{argA:P,argB:Fx(C)})},b=(P,C)=>{const k=r._getFieldArray(n);zx(k,P,C),zx(c.current,P,C),m(k),s(k),r._updateFieldArray(n,k,zx,{argA:P,argB:C},!1)},g=(P,C)=>{const k=r._getFieldArray(n);Nx(k,P,C),Nx(c.current,P,C),m(k),s(k),r._updateFieldArray(n,k,Nx,{argA:P,argB:C},!1)},_=(P,C)=>{const k=jr(C),R=BM(r._getFieldArray(n),P,k);c.current=[...R].map((I,A)=>!I||A===P?es():c.current[A]),m(R),s([...R]),r._updateFieldArray(n,R,BM,{argA:P,argB:k},!0,!1)},$=P=>{const C=Vn(jr(P));c.current=C.map(es),m([...C]),s([...C]),r._updateFieldArray(n,[...C],k=>k,{},!0,!1)};return fe.useEffect(()=>{if(r._state.action=!1,NS(n,r._names)&&r._subjects.state.next({...r._formState}),v.current&&(!ep(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(P=>{const C=Me(P.errors,n),k=Me(r._formState.errors,n);(k?!C&&k.type||C&&(k.type!==C.type||k.message!==C.message):C&&C.type)&&(C?Lt(r._formState.errors,n,C):wr(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const P=Me(r._fields,n);P&&P._f&&!(ep(r._options.reValidateMode).isOnSubmit&&ep(r._options.mode).isOnSubmit)&&DS(P,r._formValues,r._options.criteriaMode===Do.all,r._options.shouldUseNativeValidation,!0).then(C=>!Bn(C)&&r._subjects.state.next({errors:wB(r._formState.errors,C,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&wc(r._fields,(P,C)=>{if(r._names.focus&&C.startsWith(r._names.focus)&&P.focus)return P.focus(),1}),r._names.focus="",r._updateValid(),v.current=!1},[i,n,r]),fe.useEffect(()=>(!Me(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||a)&&r.unregister(n)}),[n,r,o,a]),{swap:fe.useCallback(b,[m,n,r]),move:fe.useCallback(g,[m,n,r]),prepend:fe.useCallback(x,[m,n,r]),append:fe.useCallback(h,[m,n,r]),remove:fe.useCallback(w,[m,n,r]),insert:fe.useCallback(O,[m,n,r]),update:fe.useCallback(_,[m,n,r]),replace:fe.useCallback($,[m,n,r]),fields:fe.useMemo(()=>i.map((P,C)=>({...P,[o]:c.current[C]||es()})),[i,o])}}var Ux=()=>{let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}},wy=e=>On(e)||!dB(e);function Rl(e,t){if(wy(e)||wy(t))return e===t;if(dc(e)&&dc(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const a=e[o];if(!n.includes(o))return!1;if(o!=="ref"){const i=t[o];if(dc(a)&&dc(i)||Fr(a)&&Fr(i)||Array.isArray(a)&&Array.isArray(i)?!Rl(a,i):a!==i)return!1}}return!0}var CB=e=>e.type==="select-multiple",Qye=e=>AP(e)||gv(e),Vx=e=>_y(e)&&e.isConnected,EB=e=>{for(const t in e)if(_s(e[t]))return!0;return!1};function Sy(e,t={}){const r=Array.isArray(e);if(Fr(e)||r)for(const n in e)Array.isArray(e[n])||Fr(e[n])&&!EB(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Sy(e[n],t[n])):On(e[n])||(t[n]=!0);return t}function PB(e,t,r){const n=Array.isArray(e);if(Fr(e)||n)for(const o in e)Array.isArray(e[o])||Fr(e[o])&&!EB(e[o])?Vt(t)||wy(r[o])?r[o]=Array.isArray(e[o])?Sy(e[o],[]):{...Sy(e[o])}:PB(e[o],On(t)?{}:t[o],r[o]):r[o]=!Rl(e[o],t[o]);return r}var mh=(e,t)=>PB(e,t,Sy(t)),$B=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Vt(e)?e:t?e===""?NaN:e&&+e:r&&Ua(e)?new Date(e):n?n(e):e;function Wx(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return jP(t)?t.files:AP(t)?OB(e.refs).value:CB(t)?[...t.selectedOptions].map(({value:r})=>r):gv(t)?SB(e.refs).value:$B(Vt(t.value)?e.ref.value:t.value,e)}var Xye=(e,t,r,n)=>{const o={};for(const a of e){const i=Me(t,a);i&&Lt(o,a,i._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},yf=e=>Vt(e)?e:xy(e)?e.source:Fr(e)?xy(e.value)?e.value.source:e.value:e,Yye=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function zM(e,t,r){const n=Me(e,r);if(n||IP(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const a=o.join("."),i=Me(t,a),s=Me(e,a);if(i&&!Array.isArray(i)&&r!==a)return{name:r};if(s&&s.type)return{name:a,error:s};o.pop()}return{name:r}}var Jye=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,Zye=(e,t)=>!yv(Me(e,t)).length&&wr(e,t);const ebe={mode:Do.onSubmit,reValidateMode:Do.onChange,shouldFocusError:!0};function tbe(e={}){let t={...ebe,...e},r={submitCount:0,isDirty:!1,isLoading:_s(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=Fr(t.defaultValues)||Fr(t.values)?jr(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:jr(o),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={values:Ux(),array:Ux(),state:Ux()},m=ep(t.mode),h=ep(t.reValidateMode),x=t.criteriaMode===Do.all,w=V=>X=>{clearTimeout(l),l=setTimeout(V,X)},O=async V=>{if(f.isValid||V){const X=t.resolver?Bn((await R()).errors):await A(n,!0);X!==r.isValid&&v.state.next({isValid:X})}},b=(V,X)=>{(f.isValidating||f.validatingFields)&&((V||Array.from(s.mount)).forEach(Y=>{Y&&(X?Lt(r.validatingFields,Y,X):wr(r.validatingFields,Y))}),v.state.next({validatingFields:r.validatingFields,isValidating:!Bn(r.validatingFields)}))},g=(V,X=[],Y,ae,se=!0,le=!0)=>{if(ae&&Y){if(i.action=!0,le&&Array.isArray(Me(n,V))){const Ee=Y(Me(n,V),ae.argA,ae.argB);se&&Lt(n,V,Ee)}if(le&&Array.isArray(Me(r.errors,V))){const Ee=Y(Me(r.errors,V),ae.argA,ae.argB);se&&Lt(r.errors,V,Ee),Zye(r.errors,V)}if(f.touchedFields&&le&&Array.isArray(Me(r.touchedFields,V))){const Ee=Y(Me(r.touchedFields,V),ae.argA,ae.argB);se&&Lt(r.touchedFields,V,Ee)}f.dirtyFields&&(r.dirtyFields=mh(o,a)),v.state.next({name:V,isDirty:L(V,X),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Lt(a,V,X)},_=(V,X)=>{Lt(r.errors,V,X),v.state.next({errors:r.errors})},$=V=>{r.errors=V,v.state.next({errors:r.errors,isValid:!1})},P=(V,X,Y,ae)=>{const se=Me(n,V);if(se){const le=Me(a,V,Vt(Y)?Me(o,V):Y);Vt(le)||ae&&ae.defaultChecked||X?Lt(a,V,X?le:Wx(se._f)):H(V,le),i.mount&&O()}},C=(V,X,Y,ae,se)=>{let le=!1,Ee=!1;const Ie={name:V},rt=!!(Me(n,V)&&Me(n,V)._f&&Me(n,V)._f.disabled);if(!Y||ae){f.isDirty&&(Ee=r.isDirty,r.isDirty=Ie.isDirty=L(),le=Ee!==Ie.isDirty);const at=rt||Rl(Me(o,V),X);Ee=!!(!rt&&Me(r.dirtyFields,V)),at||rt?wr(r.dirtyFields,V):Lt(r.dirtyFields,V,!0),Ie.dirtyFields=r.dirtyFields,le=le||f.dirtyFields&&Ee!==!at}if(Y){const at=Me(r.touchedFields,V);at||(Lt(r.touchedFields,V,Y),Ie.touchedFields=r.touchedFields,le=le||f.touchedFields&&at!==Y)}return le&&se&&v.state.next(Ie),le?Ie:{}},k=(V,X,Y,ae)=>{const se=Me(r.errors,V),le=f.isValid&&Ba(X)&&r.isValid!==X;if(e.delayError&&Y?(c=w(()=>_(V,Y)),c(e.delayError)):(clearTimeout(l),c=null,Y?Lt(r.errors,V,Y):wr(r.errors,V)),(Y?!Rl(se,Y):se)||!Bn(ae)||le){const Ee={...ae,...le&&Ba(X)?{isValid:X}:{},errors:r.errors,name:V};r={...r,...Ee},v.state.next(Ee)}},R=async V=>{b(V,!0);const X=await t.resolver(a,t.context,Xye(V||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return b(V),X},I=async V=>{const{errors:X}=await R(V);if(V)for(const Y of V){const ae=Me(X,Y);ae?Lt(r.errors,Y,ae):wr(r.errors,Y)}else r.errors=X;return X},A=async(V,X,Y={valid:!0})=>{for(const ae in V){const se=V[ae];if(se){const{_f:le,...Ee}=se;if(le){const Ie=s.array.has(le.name);b([ae],!0);const rt=await DS(se,a,x,t.shouldUseNativeValidation&&!X,Ie);if(b([ae]),rt[le.name]&&(Y.valid=!1,X))break;!X&&(Me(rt,le.name)?Ie?wB(r.errors,rt,le.name):Lt(r.errors,le.name,rt[le.name]):wr(r.errors,le.name))}Ee&&await A(Ee,X,Y)}}return Y.valid},F=()=>{for(const V of s.unMount){const X=Me(n,V);X&&(X._f.refs?X._f.refs.every(Y=>!Vx(Y)):!Vx(X._f.ref))&&pe(V)}s.unMount=new Set},L=(V,X)=>(V&&X&&Lt(a,V,X),!Rl(ne(),o)),D=(V,X,Y)=>_B(V,s,{...i.mount?a:Vt(X)?o:Ua(V)?{[V]:X}:X},Y,X),U=V=>yv(Me(i.mount?a:o,V,e.shouldUnregister?Me(o,V,[]):[])),H=(V,X,Y={})=>{const ae=Me(n,V);let se=X;if(ae){const le=ae._f;le&&(!le.disabled&&Lt(a,V,$B(X,le)),se=_y(le.ref)&&On(X)?"":X,CB(le.ref)?[...le.ref.options].forEach(Ee=>Ee.selected=se.includes(Ee.value)):le.refs?gv(le.ref)?le.refs.length>1?le.refs.forEach(Ee=>(!Ee.defaultChecked||!Ee.disabled)&&(Ee.checked=Array.isArray(se)?!!se.find(Ie=>Ie===Ee.value):se===Ee.value)):le.refs[0]&&(le.refs[0].checked=!!se):le.refs.forEach(Ee=>Ee.checked=Ee.value===se):jP(le.ref)?le.ref.value="":(le.ref.value=se,le.ref.type||v.values.next({name:V,values:{...a}})))}(Y.shouldDirty||Y.shouldTouch)&&C(V,se,Y.shouldTouch,Y.shouldDirty,!0),Y.shouldValidate&&te(V)},q=(V,X,Y)=>{for(const ae in X){const se=X[ae],le=`${V}.${ae}`,Ee=Me(n,le);(s.array.has(V)||!wy(se)||Ee&&!Ee._f)&&!dc(se)?q(le,se,Y):H(le,se,Y)}},G=(V,X,Y={})=>{const ae=Me(n,V),se=s.array.has(V),le=jr(X);Lt(a,V,le),se?(v.array.next({name:V,values:{...a}}),(f.isDirty||f.dirtyFields)&&Y.shouldDirty&&v.state.next({name:V,dirtyFields:mh(o,a),isDirty:L(V,le)})):ae&&!ae._f&&!On(le)?q(V,le,Y):H(V,le,Y),NS(V,s)&&v.state.next({...r}),v.values.next({name:i.mount?V:void 0,values:{...a}})},z=async V=>{i.mount=!0;const X=V.target;let Y=X.name,ae=!0;const se=Me(n,Y),le=()=>X.type?Wx(se._f):fB(V),Ee=Ie=>{ae=Number.isNaN(Ie)||Ie===Me(a,Y,Ie)};if(se){let Ie,rt;const at=le(),Le=V.type===by.BLUR||V.type===by.FOCUS_OUT,De=!Yye(se._f)&&!t.resolver&&!Me(r.errors,Y)&&!se._f.deps||Jye(Le,Me(r.touchedFields,Y),r.isSubmitted,h,m),ft=NS(Y,s,Le);Lt(a,Y,at),Le?(se._f.onBlur&&se._f.onBlur(V),c&&c(0)):se._f.onChange&&se._f.onChange(V);const Pt=C(Y,at,Le,!1),Et=!Bn(Pt)||ft;if(!Le&&v.values.next({name:Y,type:V.type,values:{...a}}),De)return f.isValid&&O(),Et&&v.state.next({name:Y,...ft?{}:Pt});if(!Le&&ft&&v.state.next({...r}),t.resolver){const{errors:We}=await R([Y]);if(Ee(at),ae){const et=zM(r.errors,n,Y),Te=zM(We,n,et.name||Y);Ie=Te.error,Y=Te.name,rt=Bn(We)}}else b([Y],!0),Ie=(await DS(se,a,x,t.shouldUseNativeValidation))[Y],b([Y]),Ee(at),ae&&(Ie?rt=!1:f.isValid&&(rt=await A(n,!0)));ae&&(se._f.deps&&te(se._f.deps),k(Y,rt,Ie,Pt))}},W=(V,X)=>{if(Me(r.errors,X)&&V.focus)return V.focus(),1},te=async(V,X={})=>{let Y,ae;const se=Vn(V);if(t.resolver){const le=await I(Vt(V)?V:se);Y=Bn(le),ae=V?!se.some(Ee=>Me(le,Ee)):Y}else V?(ae=(await Promise.all(se.map(async le=>{const Ee=Me(n,le);return await A(Ee&&Ee._f?{[le]:Ee}:Ee)}))).every(Boolean),!(!ae&&!r.isValid)&&O()):ae=Y=await A(n);return v.state.next({...!Ua(V)||f.isValid&&Y!==r.isValid?{}:{name:V},...t.resolver||!V?{isValid:Y}:{},errors:r.errors}),X.shouldFocus&&!ae&&wc(n,W,V?se:s.mount),ae},ne=V=>{const X={...i.mount?a:o};return Vt(V)?X:Ua(V)?Me(X,V):V.map(Y=>Me(X,Y))},ee=(V,X)=>({invalid:!!Me((X||r).errors,V),isDirty:!!Me((X||r).dirtyFields,V),error:Me((X||r).errors,V),isValidating:!!Me(r.validatingFields,V),isTouched:!!Me((X||r).touchedFields,V)}),Oe=V=>{V&&Vn(V).forEach(X=>wr(r.errors,X)),v.state.next({errors:V?r.errors:{}})},ce=(V,X,Y)=>{const ae=(Me(n,V,{_f:{}})._f||{}).ref,se=Me(r.errors,V)||{},{ref:le,message:Ee,type:Ie,...rt}=se;Lt(r.errors,V,{...rt,...X,ref:ae}),v.state.next({name:V,errors:r.errors,isValid:!1}),Y&&Y.shouldFocus&&ae&&ae.focus&&ae.focus()},oe=(V,X)=>_s(V)?v.values.subscribe({next:Y=>V(D(void 0,X),Y)}):D(V,X,!0),pe=(V,X={})=>{for(const Y of V?Vn(V):s.mount)s.mount.delete(Y),s.array.delete(Y),X.keepValue||(wr(n,Y),wr(a,Y)),!X.keepError&&wr(r.errors,Y),!X.keepDirty&&wr(r.dirtyFields,Y),!X.keepTouched&&wr(r.touchedFields,Y),!X.keepIsValidating&&wr(r.validatingFields,Y),!t.shouldUnregister&&!X.keepDefaultValue&&wr(o,Y);v.values.next({values:{...a}}),v.state.next({...r,...X.keepDirty?{isDirty:L()}:{}}),!X.keepIsValid&&O()},Re=({disabled:V,name:X,field:Y,fields:ae,value:se})=>{if(Ba(V)&&i.mount||V){const le=V?void 0:Vt(se)?Wx(Y?Y._f:Me(ae,X)._f):se;Lt(a,X,le),C(X,le,!1,!1,!0)}},ye=(V,X={})=>{let Y=Me(n,V);const ae=Ba(X.disabled);return Lt(n,V,{...Y||{},_f:{...Y&&Y._f?Y._f:{ref:{name:V}},name:V,mount:!0,...X}}),s.mount.add(V),Y?Re({field:Y,disabled:X.disabled,name:V,value:X.value}):P(V,!0,X.value),{...ae?{disabled:X.disabled}:{},...t.progressive?{required:!!X.required,min:yf(X.min),max:yf(X.max),minLength:yf(X.minLength),maxLength:yf(X.maxLength),pattern:yf(X.pattern)}:{},name:V,onChange:z,onBlur:z,ref:se=>{if(se){ye(V,X),Y=Me(n,V);const le=Vt(se.value)&&se.querySelectorAll&&se.querySelectorAll("input,select,textarea")[0]||se,Ee=Qye(le),Ie=Y._f.refs||[];if(Ee?Ie.find(rt=>rt===le):le===Y._f.ref)return;Lt(n,V,{_f:{...Y._f,...Ee?{refs:[...Ie.filter(Vx),le,...Array.isArray(Me(o,V))?[{}]:[]],ref:{type:le.type,name:V}}:{ref:le}}}),P(V,!1,void 0,le)}else Y=Me(n,V,{}),Y._f&&(Y._f.mount=!1),(t.shouldUnregister||X.shouldUnregister)&&!(pB(s.array,V)&&i.action)&&s.unMount.add(V)}}},de=()=>t.shouldFocusError&&wc(n,W,s.mount),he=V=>{Ba(V)&&(v.state.next({disabled:V}),wc(n,(X,Y)=>{const ae=Me(n,Y);ae&&(X.disabled=ae._f.disabled||V,Array.isArray(ae._f.refs)&&ae._f.refs.forEach(se=>{se.disabled=ae._f.disabled||V}))},0,!1))},ve=(V,X)=>async Y=>{let ae;Y&&(Y.preventDefault&&Y.preventDefault(),Y.persist&&Y.persist());let se=jr(a);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:le,values:Ee}=await R();r.errors=le,se=Ee}else await A(n);if(wr(r.errors,"root"),Bn(r.errors)){v.state.next({errors:{}});try{await V(se,Y)}catch(le){ae=le}}else X&&await X({...r.errors},Y),de(),setTimeout(de);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Bn(r.errors)&&!ae,submitCount:r.submitCount+1,errors:r.errors}),ae)throw ae},_e=(V,X={})=>{Me(n,V)&&(Vt(X.defaultValue)?G(V,jr(Me(o,V))):(G(V,X.defaultValue),Lt(o,V,jr(X.defaultValue))),X.keepTouched||wr(r.touchedFields,V),X.keepDirty||(wr(r.dirtyFields,V),r.isDirty=X.defaultValue?L(V,jr(Me(o,V))):L()),X.keepError||(wr(r.errors,V),f.isValid&&O()),v.state.next({...r}))},ie=(V,X={})=>{const Y=V?jr(V):o,ae=jr(Y),se=Bn(V),le=se?o:ae;if(X.keepDefaultValues||(o=Y),!X.keepValues){if(X.keepDirtyValues)for(const Ee of s.mount)Me(r.dirtyFields,Ee)?Lt(le,Ee,Me(a,Ee)):G(Ee,Me(le,Ee));else{if(TP&&Vt(V))for(const Ee of s.mount){const Ie=Me(n,Ee);if(Ie&&Ie._f){const rt=Array.isArray(Ie._f.refs)?Ie._f.refs[0]:Ie._f.ref;if(_y(rt)){const at=rt.closest("form");if(at){at.reset();break}}}}n={}}a=e.shouldUnregister?X.keepDefaultValues?jr(o):{}:jr(le),v.array.next({values:{...le}}),v.values.next({values:{...le}})}s={mount:X.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!f.isValid||!!X.keepIsValid||!!X.keepDirtyValues,i.watch=!!e.shouldUnregister,v.state.next({submitCount:X.keepSubmitCount?r.submitCount:0,isDirty:se?!1:X.keepDirty?r.isDirty:!!(X.keepDefaultValues&&!Rl(V,o)),isSubmitted:X.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:se?{}:X.keepDirtyValues?X.keepDefaultValues&&a?mh(o,a):r.dirtyFields:X.keepDefaultValues&&V?mh(o,V):X.keepDirty?r.dirtyFields:{},touchedFields:X.keepTouched?r.touchedFields:{},errors:X.keepErrors?r.errors:{},isSubmitSuccessful:X.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},be=(V,X)=>ie(_s(V)?V(a):V,X);return{control:{register:ye,unregister:pe,getFieldState:ee,handleSubmit:ve,setError:ce,_executeSchema:R,_getWatch:D,_getDirty:L,_updateValid:O,_removeUnmounted:F,_updateFieldArray:g,_updateDisabledField:Re,_getFieldArray:U,_reset:ie,_resetDefaultValues:()=>_s(t.defaultValues)&&t.defaultValues().then(V=>{be(V,t.resetOptions),v.state.next({isLoading:!1})}),_updateFormState:V=>{r={...r,...V}},_disableForm:he,_subjects:v,_proxyFormState:f,_setErrors:$,get _fields(){return n},get _formValues(){return a},get _state(){return i},set _state(V){i=V},get _defaultValues(){return o},get _names(){return s},set _names(V){s=V},get _formState(){return r},set _formState(V){r=V},get _options(){return t},set _options(V){t={...t,...V}}},trigger:te,register:ye,handleSubmit:ve,watch:oe,setValue:G,getValues:ne,reset:be,resetField:_e,clearErrors:Oe,unregister:pe,setError:ce,setFocus:(V,X={})=>{const Y=Me(n,V),ae=Y&&Y._f;if(ae){const se=ae.refs?ae.refs[0]:ae.ref;se.focus&&(se.focus(),X.shouldSelect&&se.select())}},getFieldState:ee}}function RB(e={}){const t=fe.useRef(),r=fe.useRef(),[n,o]=fe.useState({isDirty:!1,isValidating:!1,isLoading:_s(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:_s(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...tbe(e),formState:n});const a=t.current.control;return a._options=e,r0({subject:a._subjects.state,next:i=>{yB(i,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),fe.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),fe.useEffect(()=>{if(a._proxyFormState.isDirty){const i=a._getDirty();i!==n.isDirty&&a._subjects.state.next({isDirty:i})}},[a,n.isDirty]),fe.useEffect(()=>{e.values&&!Rl(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,o(i=>({...i}))):a._resetDefaultValues()},[e.values,a]),fe.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),fe.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),fe.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=gB(n,a),t.current}var rbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?k(R):R},{updatedAt:C}),o.setQueriesData([g,"getManyReference"],function(R){return R&&R.data?{data:k(R.data),total:R.total}:R},{updatedAt:C})},w=iu(function(b){var g=b===void 0?{}:b,_=g.resource,$=_===void 0?e:_,P=g.id,C=P===void 0?m.current.id:P,k=g.data,R=k===void 0?m.current.data:k,I=g.meta,A=I===void 0?m.current.meta:I,F=g.previousData,L=F===void 0?m.current.previousData:F;return n.update($,{id:C,data:R,previousData:L,meta:A}).then(function(D){var U=D.data;return U})},Qt(Qt({},f),{onMutate:function(b){return UM(void 0,void 0,void 0,function(){var g;return VM(this,function(_){switch(_.label){case 0:return f.onMutate?[4,f.onMutate(b)]:[3,2];case 1:return g=_.sent()||{},[2,Qt({snapshot:h.current},g)];case 2:return[2,{snapshot:h.current}]}})})},onError:function(b,g,_){if(g===void 0&&(g={}),(v.current==="optimistic"||v.current==="undoable")&&_.snapshot.forEach(function($){var P=$[0],C=$[1];o.setQueryData(P,C)}),f.onError)return f.onError(b,g,_)},onSuccess:function(b,g,_){if(g===void 0&&(g={}),v.current==="pessimistic"){var $=g.resource,P=$===void 0?e:$,C=g.id,k=C===void 0?a:C;x({resource:P,id:k,data:b}),f.onSuccess&&f.onSuccess(b,g,_)}},onSettled:function(b,g,_,$){if(_===void 0&&(_={}),(v.current==="optimistic"||v.current==="undoable")&&$.snapshot.forEach(function(P){var C=P[0];o.invalidateQueries(C)}),f.onSettled)return f.onSettled(b,g,_,$)}})),O=function(b,g,_){return b===void 0&&(b=e),g===void 0&&(g={}),_===void 0&&(_={}),UM(void 0,void 0,void 0,function(){var $,P,C,k,R,I,A,F,L,D,U,H,q,G;return VM(this,function(z){switch(z.label){case 0:return $=_.mutationMode,P=_.returnPromise,C=P===void 0?f.returnPromise:P,k=_.onSuccess,R=_.onSettled,I=_.onError,m.current=t,$&&(v.current=$),C&&v.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),v.current==="pessimistic"?C?[2,w.mutateAsync(Qt({resource:b},g),{onSuccess:k,onSettled:R,onError:I})]:[2,w.mutate(Qt({resource:b},g),{onSuccess:k,onSettled:R,onError:I})]:(A=g.id,F=A===void 0?a:A,L=g.data,D=L===void 0?i:L,U=g.meta,H=U===void 0?s:U,q=o.getQueryData([b,"getOne",{id:String(F),meta:H}]),G=[[b,"getOne",{id:String(F),meta:H}],[b,"getList"],[b,"getInfiniteList"],[b,"getMany"],[b,"getManyReference"]],h.current=G.reduce(function(W,te){return W.concat(o.getQueriesData(te))},[]),[4,Promise.all(h.current.map(function(W){var te=W[0];return o.cancelQueries(te)}))]);case 1:return z.sent(),x({resource:b,id:F,data:D}),k&&setTimeout(function(){return k(Qt(Qt({},q),D),Qt({resource:b},g),{snapshot:h.current})},0),f.onSuccess&&setTimeout(function(){return f.onSuccess(Qt(Qt({},q),D),Qt({resource:b},g),{snapshot:h.current})},0),v.current==="optimistic"?[2,w.mutate(Qt({resource:b},g),{onSettled:R,onError:I})]:(Fp.once("end",function(W){var te=W.isUndo;te?h.current.forEach(function(ne){var ee=ne[0],Oe=ne[1];o.setQueryData(ee,Oe)}):w.mutate(Qt({resource:b},g),{onSettled:R,onError:I})}),[2])}})})};return[Zl(O),w]},Nn=function(){return Nn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?P(C):C},{updatedAt:$}),o.setQueriesData([b,"getManyReference"],function(C){if(!C||!C.data)return C;var k=P(C.data),R=k.length0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?$(P):P},{updatedAt:_}),o.setQueriesData([O,"getManyReference"],function(P){if(!P||!P.data)return P;var C=$(P.data),k=C.length0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0||x.customRoutesWithLayout.length>0||x.customRoutesWithoutLayout.length>0?"ready":"empty"),h&&v(h),[2]})})};r||m()},[e,n,r,s,t,i,f]),[a,l]},Sbe=function(e){var t=d.useState(e),r=t[0],n=t[1],o=d.useCallback(function(a){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(a.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(a.customRoutesWithoutLayout),resources:i.resources.concat(a.resources)}})},[]);return[r,n,o]},Obe=function(e,t){var r=jB(),n=r.register,o=r.unregister;d.useEffect(function(){return e.forEach(function(a){if(typeof a.type.registerResource=="function"){var i=a.type.registerResource(a.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(a){if(typeof a.type.registerResource=="function"){var i=a.type.registerResource(a.props,t);o(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,o])},Cbe=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,o=e.customRoutesWithoutLayout;return AB(t)?"loading":r.length>0||n.length>0||o.length>0?"ready":"empty"},AB=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},Mf=function(e){var t=[],r=[],n=[];return d.Children.forEach(e,function(o){if(d.isValidElement(o)){if(o.type===d.Fragment){var a=Mf(o.props.children);t.push.apply(t,a.customRoutesWithLayout),r.push.apply(r,a.customRoutesWithoutLayout),n.push.apply(n,a.resources)}if(o.type.raName==="CustomRoutes"){var i=o;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else o.type.raName==="Resource"&&n.push(o)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n}},Ebe=function(e){Epe();var t=Gs(),r=xbe(e.children),n=r.customRoutesWithLayout,o=r.customRoutesWithoutLayout,a=r.status,i=r.resources,s=e.layout,c=e.catchAll,l=e.dashboard,f=e.loading,v=e.menu,m=e.requireAuth,h=e.ready,x=e.title,w=d.useState(m),O=w[0],b=w[1],g=d.useState(m),_=g[0],$=g[1],P=ZB();return d.useEffect(function(){m&&P(void 0,!1).then(function(){b(!1)}).catch(function(){}).finally(function(){$(!1)})},[P,m]),a==="empty"?d.createElement(h,null):a==="loading"||_?d.createElement(bs,null,o,d.createElement(zr,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(f,null))})):O?d.createElement(bs,null,o,d.createElement(zr,{path:"*",element:d.createElement(f0e,null)})):d.createElement(bs,null,o,d.createElement(zr,{path:"/*",element:d.createElement("div",null,d.createElement(s,{dashboard:l,menu:v,title:x},d.createElement(bs,null,n,d.Children.map(i,function(C){return d.createElement(zr,{key:C.props.name,path:"".concat(C.props.name,"/*"),element:C})}),d.createElement(zr,{path:"/",element:l?d.createElement(a0e,{authParams:Pbe,component:l}):i.length>0?d.createElement(mne,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(zr,{path:"*",element:d.createElement(c,{title:x})}))))}))},Pbe={params:{route:"dashboard"}},$be=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},Rbe=function(e){var t=e.catchAll,r=t===void 0?JM:t,n=e.children,o=e.dashboard,a=e.disableTelemetry,i=a===void 0?!1:a,s=e.layout,c=s===void 0?$be:s,l=e.loading,f=l===void 0?JM:l,v=e.loginPage,m=v===void 0?!1:v,h=e.authCallbackPage,x=h===void 0?!1:h,w=e.menu,O=e.ready,b=O===void 0?Hbe:O,g=e.title,_=g===void 0?"React Admin":g,$=e.requireAuth,P=$===void 0?!1:$;return d.useEffect(function(){if(!(i||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var C=new Image;C.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[i]),d.createElement(bs,null,m!==!1&&m!==!0?d.createElement(zr,{path:"/login",element:YM(m)}):null,x!==!1&&x!==!0?d.createElement(zr,{path:"/auth-callback",element:YM(x)}):null,d.createElement(zr,{path:"/*",element:d.createElement(Ebe,{catchAll:r,dashboard:o,layout:c,loading:f,menu:w,requireAuth:P,ready:b,title:_},n)}))},YM=function(e){return d.isValidElement(e)?e:d.createElement(e)},JM=function(){return null},MB=function(e){return null};MB.raName="CustomRoutes";var FB={exports:{}},Bt={};/** @license React v17.0.2 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var n0=60103,o0=60106,xv=60107,wv=60108,Sv=60114,Ov=60109,Cv=60110,Ev=60112,Pv=60113,FP=60120,$v=60115,Rv=60116,LB=60121,NB=60122,DB=60117,BB=60129,zB=60131;if(typeof Symbol=="function"&&Symbol.for){var Kr=Symbol.for;n0=Kr("react.element"),o0=Kr("react.portal"),xv=Kr("react.fragment"),wv=Kr("react.strict_mode"),Sv=Kr("react.profiler"),Ov=Kr("react.provider"),Cv=Kr("react.context"),Ev=Kr("react.forward_ref"),Pv=Kr("react.suspense"),FP=Kr("react.suspense_list"),$v=Kr("react.memo"),Rv=Kr("react.lazy"),LB=Kr("react.block"),NB=Kr("react.server.block"),DB=Kr("react.fundamental"),BB=Kr("react.debug_trace_mode"),zB=Kr("react.legacy_hidden")}function Ca(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case n0:switch(e=e.type,e){case xv:case Sv:case wv:case Pv:case FP:return e;default:switch(e=e&&e.$$typeof,e){case Cv:case Ev:case Rv:case $v:case Ov:return e;default:return t}}case o0:return t}}}var kbe=Ov,Tbe=n0,Ibe=Ev,jbe=xv,Abe=Rv,Mbe=$v,Fbe=o0,Lbe=Sv,Nbe=wv,Dbe=Pv;Bt.ContextConsumer=Cv;Bt.ContextProvider=kbe;Bt.Element=Tbe;Bt.ForwardRef=Ibe;Bt.Fragment=jbe;Bt.Lazy=Abe;Bt.Memo=Mbe;Bt.Portal=Fbe;Bt.Profiler=Lbe;Bt.StrictMode=Nbe;Bt.Suspense=Dbe;Bt.isAsyncMode=function(){return!1};Bt.isConcurrentMode=function(){return!1};Bt.isContextConsumer=function(e){return Ca(e)===Cv};Bt.isContextProvider=function(e){return Ca(e)===Ov};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===n0};Bt.isForwardRef=function(e){return Ca(e)===Ev};Bt.isFragment=function(e){return Ca(e)===xv};Bt.isLazy=function(e){return Ca(e)===Rv};Bt.isMemo=function(e){return Ca(e)===$v};Bt.isPortal=function(e){return Ca(e)===o0};Bt.isProfiler=function(e){return Ca(e)===Sv};Bt.isStrictMode=function(e){return Ca(e)===wv};Bt.isSuspense=function(e){return Ca(e)===Pv};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===xv||e===Sv||e===BB||e===wv||e===Pv||e===FP||e===zB||typeof e=="object"&&e!==null&&(e.$$typeof===Rv||e.$$typeof===$v||e.$$typeof===Ov||e.$$typeof===Cv||e.$$typeof===Ev||e.$$typeof===DB||e.$$typeof===LB||e[0]===NB)};Bt.typeOf=Ca;FB.exports=Bt;var UB=FB.exports,VB=d.createContext(void 0),uu=function(e){var t=e.children,r=e.value;return r?d.createElement(VB.Provider,{value:r},t):t},Ir=function(e){var t=e.create,r=e.edit,n=e.list,o=e.name,a=e.show;return d.createElement(uu,{value:o},d.createElement(bs,null,t&&d.createElement(zr,{path:"create/*",element:hh(t)}),a&&d.createElement(zr,{path:":id/show/*",element:hh(a)}),r&&d.createElement(zr,{path:":id/*",element:hh(r)}),n&&d.createElement(zr,{path:"/*",element:hh(n)}),e.children))},hh=function(e){return d.isValidElement(e)?e:UB.isValidElementType(e)?d.createElement(e,null):null};Ir.raName="Resource";Ir.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,o=e.list,a=e.name,i=e.options,s=e.show,c=e.recordRepresentation,l=e.hasCreate,f=e.hasEdit,v=e.hasShow;return{name:a,options:i,hasList:!!o,hasCreate:!!t||!!l,hasEdit:!!r||!!f,hasShow:!!s||!!v,icon:n,recordRepresentation:c}};var WB={exports:{}};/*! - * inflection - * Copyright(c) 2011 Ben Lin - * MIT Licensed - * - * @fileoverview - * A port of inflection-js to node.js module. - */(function(e,t){(function(r,n){e.exports=n()})(ao,function(){var r=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","grammar","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],n={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopi:new RegExp("(octop|vir)i$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},o=[[n.plural.men],[n.plural.people],[n.plural.children],[n.plural.tia],[n.plural.analyses],[n.plural.hives],[n.plural.curves],[n.plural.lrves],[n.plural.foves],[n.plural.aeiouyies],[n.plural.series],[n.plural.movies],[n.plural.xes],[n.plural.mice],[n.plural.buses],[n.plural.oes],[n.plural.shoes],[n.plural.crises],[n.plural.octopi],[n.plural.aliases],[n.plural.summonses],[n.plural.oxen],[n.plural.matrices],[n.plural.feet],[n.plural.teeth],[n.plural.geese],[n.plural.quizzes],[n.plural.whereases],[n.plural.criteria],[n.plural.genera],[n.singular.man,"$1en"],[n.singular.person,"$1ople"],[n.singular.child,"$1ren"],[n.singular.ox,"$1en"],[n.singular.axis,"$1es"],[n.singular.octopus,"$1i"],[n.singular.alias,"$1es"],[n.singular.summons,"$1es"],[n.singular.bus,"$1ses"],[n.singular.buffalo,"$1oes"],[n.singular.tium,"$1a"],[n.singular.sis,"ses"],[n.singular.ffe,"$1$2ves"],[n.singular.hive,"$1ves"],[n.singular.aeiouyy,"$1ies"],[n.singular.matrix,"$1ices"],[n.singular.vertex,"$1ices"],[n.singular.x,"$1es"],[n.singular.mouse,"$1ice"],[n.singular.foot,"feet"],[n.singular.tooth,"teeth"],[n.singular.goose,"geese"],[n.singular.quiz,"$1zes"],[n.singular.whereas,"$1es"],[n.singular.criterion,"$1a"],[n.singular.genus,"genera"],[n.singular.s,"s"],[n.singular.common,"s"]],a=[[n.singular.man],[n.singular.person],[n.singular.child],[n.singular.ox],[n.singular.axis],[n.singular.octopus],[n.singular.alias],[n.singular.summons],[n.singular.bus],[n.singular.buffalo],[n.singular.tium],[n.singular.sis],[n.singular.ffe],[n.singular.hive],[n.singular.aeiouyy],[n.singular.x],[n.singular.matrix],[n.singular.mouse],[n.singular.foot],[n.singular.tooth],[n.singular.goose],[n.singular.quiz],[n.singular.whereas],[n.singular.criterion],[n.singular.genus],[n.plural.men,"$1an"],[n.plural.people,"$1rson"],[n.plural.children,"$1"],[n.plural.genera,"genus"],[n.plural.criteria,"$1on"],[n.plural.tia,"$1um"],[n.plural.analyses,"$1$2sis"],[n.plural.hives,"$1ve"],[n.plural.curves,"$1"],[n.plural.lrves,"$1f"],[n.plural.aves,"$1ve"],[n.plural.foves,"$1fe"],[n.plural.movies,"$1ovie"],[n.plural.aeiouyies,"$1y"],[n.plural.series,"$1eries"],[n.plural.xes,"$1"],[n.plural.mice,"$1ouse"],[n.plural.buses,"$1"],[n.plural.oes,"$1"],[n.plural.shoes,"$1"],[n.plural.crises,"$1is"],[n.plural.octopi,"$1us"],[n.plural.aliases,"$1"],[n.plural.summonses,"$1"],[n.plural.oxen,"$1"],[n.plural.matrices,"$1ix"],[n.plural.vertices,"$1ex"],[n.plural.feet,"foot"],[n.plural.teeth,"tooth"],[n.plural.geese,"goose"],[n.plural.quizzes,"$1"],[n.plural.whereases,"$1"],[n.plural.ss,"ss"],[n.plural.s,""]],i=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],s=new RegExp("(_ids|_id)$","g"),c=new RegExp("_","g"),l=new RegExp("[ _]","g"),f=new RegExp("([A-Z])","g"),v=new RegExp("^_"),m={_apply_rules:function(h,x,w,O){if(O)h=O;else{var b=m.indexOf(w,h.toLowerCase())>-1;if(!b){for(var g=0,_=x.length;g<_;g++)if(h.match(x[g][0])){x[g][1]!==void 0&&(h=h.replace(x[g][0],x[g][1]));break}}}return h},indexOf:function(h,x,w,O){w||(w=-1);for(var b=-1,g=w,_=h.length;g<_;g++)if(h[g]===x||O&&O(h[g],x)){b=g;break}return b},pluralize:function(h,x){return m._apply_rules(h,o,r,x)},singularize:function(h,x){return m._apply_rules(h,a,r,x)},inflect:function(h,x,w,O){return x=parseInt(x,10),isNaN(x)?h:x===0||x>1?m._apply_rules(h,o,r,O):m._apply_rules(h,a,r,w)},camelize:function(h,x){for(var w=h.split("/"),O=0,b=w.length,g,_,$,P;O1?js.pluralize(r):js.singularize(r))});return a}},Ct=function(e){var t=d.useContext(VB);return e&&e.resource||t},Di=function(e){var t=Ct(e),r=a0(),n=e||{},o=n.hasCreate,a=n.hasEdit,i=n.hasList,s=n.hasShow,c=n.recordRepresentation,l=d.useMemo(function(){return lu({},{hasCreate:o,hasEdit:a,hasList:i,hasShow:s,recordRepresentation:c},r[t])},[t,r,o,a,i,s,c]);return l},i0=function(e){var t=Di({resource:e}).recordRepresentation;return d.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?vt(r,t):d.isValidElement(t)?t:"#".concat(r.id):""},[t])},je=function(){var e=bP(),t=d.useCallback(function(r,n){return e.translate(r,n)},[e]);return e?t:zbe},zbe=function(e){return e},qB=function(){var e=je(),t=KB(),r=Ct();return d.useCallback(function(n){var o=n.source,a=n.label,i=n.resource;return a===!1||a===""?null:a&&typeof a!="string"?a:e.apply(void 0,Vbe({label:a,prefix:t,resource:i,resourceFromContext:r,source:o}))},[t,r,e])},Ube="en",HB=function(e){var t=e.source,r=e.label,n=e.resource,o=e.isRequired,a=qB();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:d.createElement("span",null,a({label:r,resource:n,source:t}),o&&d.createElement("span",{"aria-hidden":"true"}," *"))};HB.displayName="FieldTitle";const Go=d.memo(HB),Vbe=function(e){if(!e)return[""];var t=e.label,r=e.prefix,n=e.resource,o=e.resourceFromContext,a=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof a>"u")return[""];var i=Wbe(a),s=i.sourceWithoutDigits,c=i.sourceSuffix,l=js.transform(c.replace(/\./g," "),["underscore","humanize"]);return n?["resources.".concat(n,".fields.").concat(s),{_:l}]:r?["".concat(r,".").concat(s),{_:l}]:["resources.".concat(o,".fields.").concat(s),{_:l}]};var Wbe=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,i){qbe(a)&&(n=i)});var o=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:o}},qbe=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};const s0=function(e,t,r){if(e[t]&&!UB.isValidElementType(e[t]))return new Error("Invalid prop '".concat(t,"' supplied to '").concat(r,"': the prop is not a valid React component"))},Hbe=function(){return d.createElement("span",null)},LP=function(e,t){};var Gbe=typeof window<"u"?d.useLayoutEffect:d.useEffect,Zl=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return Gbe(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:m)});return function(){return v()}},[e,a,t,n,s]);var l=Zl(function(f,v){var m=typeof f=="function"?f(s):f;o(e,typeof m>"u"?typeof v>"u"?t:v:m)});return[s,l]},Kbe=function(e){var t=qb().removeItem;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},Qbe=function(e){var t=qb().removeItems;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},Xbe=function(){var e=qb().reset;return e},Pd=function(){var e=Mi(),t=Zo(),r=Xbe(),n=ei(),o=d.useRef(n),a=Lr(),i=d.useRef(a),s=Hs(),c=Fa("".concat(s,"/").concat(Ab.loginUrl));d.useEffect(function(){i.current=a,o.current=n},[a,n]);var l=d.useCallback(function(v,m,h){return v===void 0&&(v={}),m===void 0&&(m=c),h===void 0&&(h=!0),e.logout(v).then(function(x){if(x===!1||m===!1){r(),t.clear();return}var w=x||m;if(w!=null&&w.startsWith("http"))return r(),t.clear(),window.location.href=w,w;var O=w.split("?"),b={pathname:O[0]},g={};return h&&i.current&&i.current.pathname&&(g={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),O[1]&&(b.search=O[1]),o.current(b,g),r(),t.clear(),x})},[e,r,c,t]),f=d.useCallback(function(v){return n({pathname:c},{state:{nextPathname:a&&a.pathname}}),r(),t.clear(),Promise.resolve()},[r,a,n,c,t]);return e?l:f},US=function(){return US=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},VS=function(){return VS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"),$d(t);var i=YB(t).permissions;if(o)return d.createElement(o,tp({permissions:i},a));if(n)return n(tp({permissions:i},a));if(r)return r(tp({permissions:i},a))},JB=function(){var e=Mi(),t=Lr(),r=t.state,n=ei(),o=Hs(),a=f5().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,c=Fa("".concat(o,"/").concat(Ab.afterLoginUrl)),l=d.useCallback(function(v,m){return v===void 0&&(v={}),e.login(v).then(function(h){if(a(),h&&h.hasOwnProperty("redirectTo"))h&&n(h.redirectTo);else{var x=m||i+s||c;n(x)}return h})},[e,n,i,s,a,c]),f=d.useCallback(function(v,m){return a(),n(c),Promise.resolve()},[n,a,c]);return e?l:f},i0e="AUTH_LOGIN",s0e="AUTH_CHECK",l0e="AUTH_ERROR",u0e="AUTH_LOGOUT",c0e="AUTH_GET_PERMISSIONS";const d0e=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},WS=function(){return WS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return pn(r&&e?"".concat(r,".").concat(e):r??e,t)},NP=function(){return d.useContext(TB)},S0e=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]a.current&&t&&(a.current=n,Object.keys(o).length>0&&i("ra.message.invalid_form",{type:"error"}))},[o,n,i,t])},D0e=function(e,t,r){var n=d.useContext(Li).navigator,o=Lr(),a=je(),i=Cd(r?{control:r}:void 0),s=i.isSubmitSuccessful,c=i.isSubmitting,l=i.dirtyFields,f=Object.keys(l).length>0,v=d.useRef(t||o.pathname);d.useEffect(function(){if(!(!e||!f)&&n.block){var m=n.block(function(h){var x=h.location.pathname.startsWith(v.current),w=h.location.pathname.startsWith("".concat(v.current,"/show")),O=x&&!w;!c&&(O||s||window.confirm(a("ra.message.unsaved_changes")))?(m(),h.retry()):c&&setTimeout(function(){h.retry()},100)});return m}},[e,o,n,f,c,s,a])},B0e=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},QS=function(){return QS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Ks=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function H0e(e){return e?e.hasOwnProperty("message"):!1}var Qs=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Xs=function(e){return G4(e,function(){for(var t=[],r=0;re?Qs(t,{max:e},r,n):void 0}});Xs(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Ks(r)&&re?Qs(t,{max:e},r,n):void 0}}),lz=Xs(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Ks(t)&&isNaN(Number(t))?Qs(e,void 0,t,r):void 0}}),DP=G4(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Ks(r)&&typeof r=="string"&&!e.test(r)?Qs(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Xs(function(e){return e===void 0&&(e="ra.validation.email"),DP(q0e,e)});var Y0e=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Xs(function(e,t){return t===void 0&&(t=Y0e),function(r,n){return!Ks(r)&&e.indexOf(r)===-1?Qs(t,{list:e},r,n):void 0}});var J0e=function(e){return e&&e.isRequired?!0:Array.isArray(e)?!!e.find(function(t){return t.isRequired}):!1},uz=d.createContext(void 0),u0=function(){var e=d.useContext(nz);return e},Z0e=function(e){var t=e.children,r=e.name,n=u0();return d.useEffect(function(){if(!n||!n.registerGroup||!n.unregisterGroup){console.warn("The FormGroupContextProvider can only be used inside a FormContext such as provided by the SimpleForm and TabbedForm components");return}return n.registerGroup(r),function(){n.unregisterGroup(r)}},[n,r]),d.createElement(uz.Provider,{value:r},t)},cz=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,o=t.defaultValue,a=t.source,i=mt(t),s=ta(),c=s.getValues,l=s.resetField,f=s.getFieldState,v=s.formState,m=s.reset,h=vt(i,a),x=vt(c(),a),w=f(a,v).isDirty;d.useEffect(function(){if(!(o==null||x!=null||h!=null||w)){var O=a.split(".").some(function(_){return e_e.test(_)});if(O){var b=a.split(".").slice(0,-1).join("."),g=vt(c(),b);if(g==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(o),m({},{keepValues:!0});return}l(a,{defaultValue:o})}})},e_e=/^\d+$/,dz=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,o=n===void 0?"id":n,a=e.disableValue,i=a===void 0?"disabled":a,s=e.translateChoice,c=s===void 0?!0:s,l=je(),f=d.useCallback(function(h){if(d.isValidElement(r))return d.createElement(Ds,{value:h},r);var x=typeof r=="function"?r(h):vt(h,r);return d.isValidElement(x)?x:c?l(String(x),{_:x}):String(x)},[r,l,c]),v=d.useCallback(function(h){return vt(h,o)},[o]),m=d.useCallback(function(h){return vt(h,i)},[i]);return{getChoiceText:f,getChoiceValue:v,getDisableValue:m}},t_e=function(e){var t=Cd(),r=t.dirtyFields,n=t.touchedFields,o=t.errors,a=u0(),i=d.useState({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0}),s=i[0],c=i[1],l=d.useCallback(function(){var f=a.getGroupFields(e),v=f.map(function(h){return{name:h,error:vt(o,h,void 0),isDirty:vt(r,h,!1)!==!1,isValid:vt(o,h,void 0)==null,isTouched:vt(n,h,!1)!==!1}}).filter(function(h){return h!=null}),m=r_e(v);c(function(h){return Vo(h,m)?h:m})},[r,o,n,a,e]);return d.useEffect(function(){l()},[JSON.stringify({dirtyFields:r,errors:o,touchedFields:n}),l]),d.useEffect(function(){return a.subscribe(e,function(){l()})},[a,e,l]),s},r_e=function(e){return e.reduce(function(t,r){var n=t.errors||{};r.error&&(n[r.name]=r.error);var o={isDirty:t.isDirty||r.isDirty,errors:n,isTouched:t.isTouched||r.isTouched,isValid:t.isValid&&r.isValid};return o},{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1})},fz=function(){var e=d.useContext(uz);return e},YS=function(){return YS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?Jr(Rd,--Qn):0,Qc--,Or===10&&(Qc=1,d0--),Or}function fo(){return Or=Qn2||zp(Or)>3?"":" "}function R_e(e,t){for(;--t&&fo()&&!(Or<48||Or>102||Or>57&&Or<65||Or>70&&Or<97););return Tv(e,og()+(t<6&&qa()==32&&fo()==32))}function ZS(e){for(;fo();)switch(Or){case e:return Qn;case 34:case 39:e!==34&&e!==39&&ZS(Or);break;case 40:e===41&&ZS(e);break;case 92:fo();break}return Qn}function k_e(e,t){for(;fo()&&e+Or!==57;)if(e+Or===84&&qa()===47)break;return"/*"+Tv(t,Qn-1)+"*"+c0(e===47?e:fo())}function T_e(e){for(;!zp(qa());)fo();return Tv(e,Qn)}function I_e(e){return bz(ig("",null,null,null,[""],e=yz(e),0,[0],e))}function ig(e,t,r,n,o,a,i,s,c){for(var l=0,f=0,v=i,m=0,h=0,x=0,w=1,O=1,b=1,g=0,_="",$=o,P=a,C=n,k=_;O;)switch(x=g,g=fo()){case 40:if(x!=108&&Jr(k,v-1)==58){JS(k+=kt(ag(g),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:k+=ag(g);break;case 9:case 10:case 13:case 32:k+=$_e(x);break;case 92:k+=R_e(og()-1,7);continue;case 47:switch(qa()){case 42:case 47:gh(j_e(k_e(fo(),og()),t,r),c);break;default:k+="/"}break;case 123*w:s[l++]=La(k)*b;case 125*w:case 59:case 0:switch(g){case 0:case 125:O=0;case 59+f:b==-1&&(k=kt(k,/\f/g,"")),h>0&&La(k)-v&&gh(h>32?nF(k+";",n,r,v-1):nF(kt(k," ","")+";",n,r,v-2),c);break;case 59:k+=";";default:if(gh(C=rF(k,t,r,l,f,o,s,_,$=[],P=[],v),a),g===123)if(f===0)ig(k,t,C,C,$,a,v,s,P);else switch(m===99&&Jr(k,3)===110?100:m){case 100:case 108:case 109:case 115:ig(e,C,C,n&&gh(rF(e,C,C,0,0,o,s,_,o,$=[],v),P),o,P,v,s,n?$:P);break;default:ig(k,C,C,C,[""],P,0,s,P)}}l=f=h=0,w=b=1,_=k="",v=i;break;case 58:v=1+La(k),h=x;default:if(w<1){if(g==123)--w;else if(g==125&&w++==0&&P_e()==125)continue}switch(k+=c0(g),g*w){case 38:b=f>0?1:(k+="\f",-1);break;case 44:s[l++]=(La(k)-1)*b,b=1;break;case 64:qa()===45&&(k+=ag(fo())),m=qa(),f=v=La(_=k+=T_e(og())),g++;break;case 45:x===45&&La(k)==2&&(w=0)}}return a}function rF(e,t,r,n,o,a,i,s,c,l,f){for(var v=o-1,m=o===0?a:[""],h=UP(m),x=0,w=0,O=0;x0?m[b]+" "+g:kt(g,/&\f/g,m[b])))&&(c[O++]=_);return f0(e,t,r,o===0?BP:s,c,l,f)}function j_e(e,t,r){return f0(e,t,r,vz,c0(E_e()),Bp(e,2,-2),0)}function nF(e,t,r,n){return f0(e,t,r,zP,Bp(e,0,n),Bp(e,n+1,-1),n)}function Sc(e,t){for(var r="",n=UP(e),o=0;o6)switch(Jr(e,t+1)){case 109:if(Jr(e,t+4)!==45)break;case 102:return kt(e,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+$y+(Jr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~JS(e,"stretch")?_z(kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Jr(e,t+1)!==115)break;case 6444:switch(Jr(e,La(e)-3-(~JS(e,"!important")&&10))){case 107:return kt(e,":",":"+Rt)+e;case 101:return kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(Jr(e,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+un+"$2box$3")+e}break;case 5936:switch(Jr(e,t+11)){case 114:return Rt+e+un+kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rt+e+un+kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rt+e+un+kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rt+e+un+e+e}return e}var U_e=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case zP:t.return=_z(t.value,t.length);break;case mz:return Sc([_f(t,{value:kt(t.value,"@","@"+Rt)})],o);case BP:if(t.length)return C_e(t.props,function(a){switch(O_e(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sc([_f(t,{props:[kt(a,/:(read-\w+)/,":"+$y+"$1")]})],o);case"::placeholder":return Sc([_f(t,{props:[kt(a,/:(plac\w+)/,":"+Rt+"input-$1")]}),_f(t,{props:[kt(a,/:(plac\w+)/,":"+$y+"$1")]}),_f(t,{props:[kt(a,/:(plac\w+)/,un+"input-$1")]})],o)}return""})}},V_e=[U_e],xz=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var O=w.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||V_e,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var O=w.getAttribute("data-emotion").split(" "),b=1;b=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 t1e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},r1e=!1,n1e=/[A-Z]|^ms/g,o1e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$z=function(t){return t.charCodeAt(1)===45},aF=function(t){return t!=null&&typeof t!="boolean"},Gx=pz(function(e){return $z(e)?e:e.replace(n1e,"-$&").toLowerCase()}),iF=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(o1e,function(n,o,a){return Na={name:o,styles:a,next:Na},o})}return t1e[t]!==1&&!$z(t)&&typeof r=="number"&&r!==0?r+"px":r},a1e="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Up(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Na={name:o.name,styles:o.styles,next:Na},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Na={name:i.name,styles:i.styles,next:Na},i=i.next;var s=a.styles+";";return s}return i1e(e,t,r)}case"function":{if(e!==void 0){var c=Na,l=r(e);return Na=c,Up(e,t,l)}break}}var f=r;if(t==null)return f;var v=t[f];return v!==void 0?v:f}function i1e(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?d1e:f1e},cF=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},p1e=!1,v1e=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Ez(r,n,o),l1e(function(){return Pz(r,n,o)}),null},m1e=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=cF(t,r,n),c=s||uF(o),l=!c("as");return function(){var f=arguments,v=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&v.push("label:"+a+";"),f[0]==null||f[0].raw===void 0)v.push.apply(v,f);else{v.push(f[0][0]);for(var m=f.length,h=1;ht(S1e(o)?r:o):t;return S.jsx(c1e,{styles:n})}function GP(e,t){return eO(e,t)}const Fz=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},O1e=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Mz,StyledEngineProvider:w1e,ThemeContext:Iv,css:cu,default:GP,internal_processStyles:Fz,keyframes:Bi},Symbol.toStringTag,{value:"Module"}));function xi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Lz(e){if(!xi(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Lz(e[r])}),t}function $n(e,t,r={clone:!0}){const n=r.clone?j({},e):e;return xi(e)&&xi(t)&&Object.keys(t).forEach(o=>{xi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&xi(e[o])?n[o]=$n(e[o],t[o],r):r.clone?n[o]=xi(t[o])?Lz(t[o]):t[o]:n[o]=t[o]}),n}const C1e=Object.freeze(Object.defineProperty({__proto__:null,default:$n,isPlainObject:xi},Symbol.toStringTag,{value:"Module"})),E1e=["values","unit","step"],P1e=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>j({},r,{[n.key]:n.val}),{})};function Nz(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ce(e,E1e),a=P1e(t),i=Object.keys(a);function s(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function l(m,h){const x=i.indexOf(h);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(x!==-1&&typeof t[i[x]]=="number"?t[i[x]]:h)-n/100}${r})`}function f(m){return i.indexOf(m)+1`@media (min-width:${KP[e]}px)`};function xa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||dF;return t.reduce((i,s,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||dF;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||KP).indexOf(s)!==-1){const c=a.up(s);i[c]=r(t[s],s)}else{const c=s;i[c]=t[c]}return i},{})}return r(t)}function Dz(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function Bz(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function R1e(e,...t){const r=Dz(e),n=[r,...t].reduce((o,a)=>$n(o,a),{});return Bz(Object.keys(r),n)}function k1e(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a{e[o]!=null&&(r[o]=!0)}),r}function Kx({values:e,breakpoints:t,base:r}){const n=r||k1e(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,s,c)=>(Array.isArray(e)?(i[s]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function Se(e){if(typeof e!="string")throw new Error(ki(7));return e.charAt(0).toUpperCase()+e.slice(1)}const T1e=Object.freeze(Object.defineProperty({__proto__:null,default:Se},Symbol.toStringTag,{value:"Module"}));function Xc(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Ry(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Xc(e,r)||n,t&&(o=t(o,n,e)),o}function yr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],c=i.theme,l=Xc(c,n)||{};return xa(i,s,v=>{let m=Ry(l,o,v);return v===m&&typeof v=="string"&&(m=Ry(l,o,`${t}${v==="default"?"":Se(v)}`,v)),r===!1?m:{[r]:m}})};return a.propTypes={},a.filterProps=[t],a}function I1e(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const j1e={m:"margin",p:"padding"},A1e={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fF={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},M1e=I1e(e=>{if(e.length>2)if(fF[e])e=fF[e];else return[e];const[t,r]=e.split(""),n=j1e[t],o=A1e[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),QP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],XP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...QP,...XP];function jv(e,t,r,n){var o;const a=(o=Xc(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function YP(e){return jv(e,"spacing",8)}function eu(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function F1e(e,t){return r=>e.reduce((n,o)=>(n[o]=eu(t,r),n),{})}function L1e(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=M1e(r),a=F1e(o,n),i=e[r];return xa(e,i,a)}function zz(e,t){const r=YP(e.theme);return Object.keys(e).map(n=>L1e(e,t,n,r)).reduce(rp,{})}function ur(e){return zz(e,QP)}ur.propTypes={};ur.filterProps=QP;function cr(e){return zz(e,XP)}cr.propTypes={};cr.filterProps=XP;function N1e(e=8){if(e.mui)return e;const t=YP({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function S0(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?rp(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Lo(e){return typeof e!="number"?e:`${e}px solid`}function ra(e,t){return yr({prop:e,themeKey:"borders",transform:t})}const D1e=ra("border",Lo),B1e=ra("borderTop",Lo),z1e=ra("borderRight",Lo),U1e=ra("borderBottom",Lo),V1e=ra("borderLeft",Lo),W1e=ra("borderColor"),q1e=ra("borderTopColor"),H1e=ra("borderRightColor"),G1e=ra("borderBottomColor"),K1e=ra("borderLeftColor"),Q1e=ra("outline",Lo),X1e=ra("outlineColor"),O0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=jv(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:eu(t,n)});return xa(e,e.borderRadius,r)}return null};O0.propTypes={};O0.filterProps=["borderRadius"];S0(D1e,B1e,z1e,U1e,V1e,W1e,q1e,H1e,G1e,K1e,O0,Q1e,X1e);const C0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=jv(e.theme,"spacing",8),r=n=>({gap:eu(t,n)});return xa(e,e.gap,r)}return null};C0.propTypes={};C0.filterProps=["gap"];const E0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=jv(e.theme,"spacing",8),r=n=>({columnGap:eu(t,n)});return xa(e,e.columnGap,r)}return null};E0.propTypes={};E0.filterProps=["columnGap"];const P0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=jv(e.theme,"spacing",8),r=n=>({rowGap:eu(t,n)});return xa(e,e.rowGap,r)}return null};P0.propTypes={};P0.filterProps=["rowGap"];const Y1e=yr({prop:"gridColumn"}),J1e=yr({prop:"gridRow"}),Z1e=yr({prop:"gridAutoFlow"}),exe=yr({prop:"gridAutoColumns"}),txe=yr({prop:"gridAutoRows"}),rxe=yr({prop:"gridTemplateColumns"}),nxe=yr({prop:"gridTemplateRows"}),oxe=yr({prop:"gridTemplateAreas"}),axe=yr({prop:"gridArea"});S0(C0,E0,P0,Y1e,J1e,Z1e,exe,txe,rxe,nxe,oxe,axe);function Oc(e,t){return t==="grey"?t:e}const ixe=yr({prop:"color",themeKey:"palette",transform:Oc}),sxe=yr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Oc}),lxe=yr({prop:"backgroundColor",themeKey:"palette",transform:Oc});S0(ixe,sxe,lxe);function io(e){return e<=1&&e!==0?`${e*100}%`:e}const uxe=yr({prop:"width",transform:io}),JP=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||KP[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:io(r)}};return xa(e,e.maxWidth,t)}return null};JP.filterProps=["maxWidth"];const cxe=yr({prop:"minWidth",transform:io}),dxe=yr({prop:"height",transform:io}),fxe=yr({prop:"maxHeight",transform:io}),pxe=yr({prop:"minHeight",transform:io});yr({prop:"size",cssProperty:"width",transform:io});yr({prop:"size",cssProperty:"height",transform:io});const vxe=yr({prop:"boxSizing"});S0(uxe,JP,cxe,dxe,fxe,pxe,vxe);const Av={border:{themeKey:"borders",transform:Lo},borderTop:{themeKey:"borders",transform:Lo},borderRight:{themeKey:"borders",transform:Lo},borderBottom:{themeKey:"borders",transform:Lo},borderLeft:{themeKey:"borders",transform:Lo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:O0},color:{themeKey:"palette",transform:Oc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Oc},backgroundColor:{themeKey:"palette",transform:Oc},p:{style:cr},pt:{style:cr},pr:{style:cr},pb:{style:cr},pl:{style:cr},px:{style:cr},py:{style:cr},padding:{style:cr},paddingTop:{style:cr},paddingRight:{style:cr},paddingBottom:{style:cr},paddingLeft:{style:cr},paddingX:{style:cr},paddingY:{style:cr},paddingInline:{style:cr},paddingInlineStart:{style:cr},paddingInlineEnd:{style:cr},paddingBlock:{style:cr},paddingBlockStart:{style:cr},paddingBlockEnd:{style:cr},m:{style:ur},mt:{style:ur},mr:{style:ur},mb:{style:ur},ml:{style:ur},mx:{style:ur},my:{style:ur},margin:{style:ur},marginTop:{style:ur},marginRight:{style:ur},marginBottom:{style:ur},marginLeft:{style:ur},marginX:{style:ur},marginY:{style:ur},marginInline:{style:ur},marginInlineStart:{style:ur},marginInlineEnd:{style:ur},marginBlock:{style:ur},marginBlockStart:{style:ur},marginBlockEnd:{style:ur},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:C0},rowGap:{style:P0},columnGap:{style:E0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:io},maxWidth:{style:JP},minWidth:{transform:io},height:{transform:io},maxHeight:{transform:io},minHeight:{transform:io},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function mxe(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function hxe(e,t){return typeof e=="function"?e(t):e}function Uz(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:c=r,themeKey:l,transform:f,style:v}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const m=Xc(o,l)||{};return v?v(i):xa(i,n,x=>{let w=Ry(m,f,x);return x===w&&typeof x=="string"&&(w=Ry(m,f,`${r}${x==="default"?"":Se(x)}`,x)),c===!1?w:{[c]:w}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:Av;function s(c){let l=c;if(typeof c=="function")l=c(a);else if(typeof c!="object")return c;if(!l)return null;const f=Dz(a.breakpoints),v=Object.keys(f);let m=f;return Object.keys(l).forEach(h=>{const x=hxe(l[h],a);if(x!=null)if(typeof x=="object")if(i[h])m=rp(m,e(h,x,a,i));else{const w=xa({theme:a},x,O=>({[h]:O}));mxe(w,x)?m[h]=t({sx:x,theme:a}):m=rp(m,w)}else m=rp(m,e(h,x,a,i))}),Bz(v,m)}return Array.isArray(o)?o.map(s):s(o)}return t}const kd=Uz();kd.filterProps=["sx"];function Vz(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const gxe=["breakpoints","palette","spacing","shape"];function Td(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=Ce(e,gxe),s=Nz(r),c=N1e(o);let l=$n({breakpoints:s,direction:"ltr",components:{},palette:j({mode:"light"},n),spacing:c,shape:j({},$1e,a)},i);return l.applyStyles=Vz,l=t.reduce((f,v)=>$n(f,v),l),l.unstable_sxConfig=j({},Av,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(v){return kd({sx:v,theme:this})},l}const yxe=Object.freeze(Object.defineProperty({__proto__:null,default:Td,private_createBreakpoints:Nz,unstable_applyStyles:Vz},Symbol.toStringTag,{value:"Module"}));function bxe(e){return Object.keys(e).length===0}function ZP(e=null){const t=d.useContext(Iv);return!t||bxe(t)?e:t}const _xe=Td();function $0(e=_xe){return ZP(e)}function xxe({styles:e,themeId:t,defaultTheme:r={}}){const n=$0(r),o=typeof e=="function"?e(t&&n[t]||n):e;return S.jsx(Mz,{styles:o})}const wxe=["sx"],Sxe=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Av;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function R0(e){const{sx:t}=e,r=Ce(e,wxe),{systemProps:n,otherProps:o}=Sxe(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return xi(s)?j({},n,s):n}:a=j({},n,t),j({},o,{sx:a})}const Oxe=Object.freeze(Object.defineProperty({__proto__:null,default:kd,extendSxProp:R0,unstable_createStyleFunctionSx:Uz,unstable_defaultSxConfig:Av},Symbol.toStringTag,{value:"Module"})),pF=e=>e,Cxe=()=>{let e=pF;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pF}}},e2=Cxe();function Wz(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(kd);return d.forwardRef(function(c,l){const f=$0(r),v=R0(c),{className:m,component:h="div"}=v,x=Ce(v,Exe);return S.jsx(a,j({as:h,ref:l,className:$e(m,o?o(n):n),theme:t&&f[t]||f},x))})}const $xe={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 Ue(e,t,r="Mui"){const n=$xe[t];return n?`${r}-${n}`:`${e2.generate(e)}-${t}`}function qe(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ue(e,o,r)}),n}var qz={exports:{}},Ft={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var t2=Symbol.for("react.element"),r2=Symbol.for("react.portal"),k0=Symbol.for("react.fragment"),T0=Symbol.for("react.strict_mode"),I0=Symbol.for("react.profiler"),j0=Symbol.for("react.provider"),A0=Symbol.for("react.context"),Rxe=Symbol.for("react.server_context"),M0=Symbol.for("react.forward_ref"),F0=Symbol.for("react.suspense"),L0=Symbol.for("react.suspense_list"),N0=Symbol.for("react.memo"),D0=Symbol.for("react.lazy"),kxe=Symbol.for("react.offscreen"),Hz;Hz=Symbol.for("react.module.reference");function na(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case t2:switch(e=e.type,e){case k0:case I0:case T0:case F0:case L0:return e;default:switch(e=e&&e.$$typeof,e){case Rxe:case A0:case M0:case D0:case N0:case j0:return e;default:return t}}case r2:return t}}}Ft.ContextConsumer=A0;Ft.ContextProvider=j0;Ft.Element=t2;Ft.ForwardRef=M0;Ft.Fragment=k0;Ft.Lazy=D0;Ft.Memo=N0;Ft.Portal=r2;Ft.Profiler=I0;Ft.StrictMode=T0;Ft.Suspense=F0;Ft.SuspenseList=L0;Ft.isAsyncMode=function(){return!1};Ft.isConcurrentMode=function(){return!1};Ft.isContextConsumer=function(e){return na(e)===A0};Ft.isContextProvider=function(e){return na(e)===j0};Ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===t2};Ft.isForwardRef=function(e){return na(e)===M0};Ft.isFragment=function(e){return na(e)===k0};Ft.isLazy=function(e){return na(e)===D0};Ft.isMemo=function(e){return na(e)===N0};Ft.isPortal=function(e){return na(e)===r2};Ft.isProfiler=function(e){return na(e)===I0};Ft.isStrictMode=function(e){return na(e)===T0};Ft.isSuspense=function(e){return na(e)===F0};Ft.isSuspenseList=function(e){return na(e)===L0};Ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===k0||e===I0||e===T0||e===F0||e===L0||e===kxe||typeof e=="object"&&e!==null&&(e.$$typeof===D0||e.$$typeof===N0||e.$$typeof===j0||e.$$typeof===A0||e.$$typeof===M0||e.$$typeof===Hz||e.getModuleId!==void 0)};Ft.typeOf=na;qz.exports=Ft;var Vp=qz.exports;const Txe=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Gz(e){const t=`${e}`.match(Txe);return t&&t[1]||""}function Kz(e,t=""){return e.displayName||e.name||Gz(e)||t}function vF(e,t,r){const n=Kz(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ixe(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Kz(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Vp.ForwardRef:return vF(e,e.render,"ForwardRef");case Vp.Memo:return vF(e,e.type,"memo");default:return}}}const jxe=Object.freeze(Object.defineProperty({__proto__:null,default:Ixe,getFunctionName:Gz},Symbol.toStringTag,{value:"Module"})),Axe=["ownerState"],Mxe=["variants"],Fxe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Lxe(e){return Object.keys(e).length===0}function Nxe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Qx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Dxe=Td(),Bxe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function yh({defaultTheme:e,theme:t,themeId:r}){return Lxe(t)?e:t[r]||t}function zxe(e){return e?(t,r)=>r[e]:null}function sg(e,t){let{ownerState:r}=t,n=Ce(t,Axe);const o=typeof e=="function"?e(j({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>sg(a,j({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=Ce(o,Mxe);return a.forEach(c=>{let l=!0;typeof c.props=="function"?l=c.props(j({ownerState:r},n,r)):Object.keys(c.props).forEach(f=>{(r==null?void 0:r[f])!==c.props[f]&&n[f]!==c.props[f]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof c.style=="function"?c.style(j({ownerState:r},n,r)):c.style))}),s}return o}function Uxe(e={}){const{themeId:t,defaultTheme:r=Dxe,rootShouldForwardProp:n=Qx,slotShouldForwardProp:o=Qx}=e,a=i=>kd(j({},i,{theme:yh(j({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Fz(i,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:f,skipSx:v,overridesResolver:m=zxe(Bxe(l))}=s,h=Ce(s,Fxe),x=f!==void 0?f:l&&l!=="Root"&&l!=="root"||!1,w=v||!1;let O,b=Qx;l==="Root"||l==="root"?b=n:l?b=o:Nxe(i)&&(b=void 0);const g=GP(i,j({shouldForwardProp:b,label:O},h)),_=P=>typeof P=="function"&&P.__emotion_real!==P||xi(P)?C=>sg(P,j({},C,{theme:yh({theme:C.theme,defaultTheme:r,themeId:t})})):P,$=(P,...C)=>{let k=_(P);const R=C?C.map(_):[];c&&m&&R.push(F=>{const L=yh(j({},F,{defaultTheme:r,themeId:t}));if(!L.components||!L.components[c]||!L.components[c].styleOverrides)return null;const D=L.components[c].styleOverrides,U={};return Object.entries(D).forEach(([H,q])=>{U[H]=sg(q,j({},F,{theme:L}))}),m(F,U)}),c&&!x&&R.push(F=>{var L;const D=yh(j({},F,{defaultTheme:r,themeId:t})),U=D==null||(L=D.components)==null||(L=L[c])==null?void 0:L.variants;return sg({variants:U},j({},F,{theme:D}))}),w||R.push(a);const I=R.length-C.length;if(Array.isArray(P)&&I>0){const F=new Array(I).fill("");k=[...P,...F],k.raw=[...P.raw,...F]}const A=g(k,...R);return i.muiName&&(A.muiName=i.muiName),A};return g.withConfig&&($.withConfig=g.withConfig),$}}const Qz=Uxe();function Wp(e,t){const r=j({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=j({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=j({},a),Object.keys(o).forEach(i=>{r[n][i]=Wp(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Xz(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Wp(t.components[r].defaultProps,n)}function Yz({props:e,name:t,defaultTheme:r,themeId:n}){let o=$0(r);return n&&(o=o[n]||o),Xz({theme:o,name:t,props:e})}const vo=typeof window<"u"?d.useLayoutEffect:d.useEffect;function Vxe(e,t,r,n,o){const[a,i]=d.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return vo(()=>{let s=!0;if(!r)return;const c=r(e),l=()=>{s&&i(c.matches)};return l(),c.addListener(l),()=>{s=!1,c.removeListener(l)}},[e,r]),a}const Jz=d.useSyncExternalStore;function Wxe(e,t,r,n,o){const a=d.useCallback(()=>t,[t]),i=d.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:f}=n(e);return()=>f}return a},[a,e,n,o,r]),[s,c]=d.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const f=r(e);return[()=>f.matches,v=>(f.addListener(v),()=>{f.removeListener(v)})]},[a,r,e]);return Jz(c,s,i)}function In(e,t={}){const r=ZP(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=Xz({name:"MuiUseMediaQuery",props:t,theme:r});let c=typeof e=="function"?e(r):e;return c=c.replace(/^@media( ?)/m,""),(Jz!==void 0?Wxe:Vxe)(c,o,a,i,s)}function Zz(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const qxe=Object.freeze(Object.defineProperty({__proto__:null,default:Zz},Symbol.toStringTag,{value:"Module"}));function e6(e,t=0,r=1){return Zz(e,t,r)}function Hxe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function n2(e){if(e.type)return e;if(e.charAt(0)==="#")return n2(Hxe(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(ki(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(ki(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function t6(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Yc(e,t){return e=n2(e),t=e6(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,t6(e)}function r6(e,t){if(e=n2(e),t=e6(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return t6(e)}function rO(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Id(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Gxe(e,t){return()=>null}function lg(e,t){var r,n;return d.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Pr(e){return e&&e.ownerDocument||document}function Ko(e){return Pr(e).defaultView||window}function Kxe(e,t){return()=>null}function ky(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let mF=0;function Qxe(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(mF+=1,r(`mui-${mF}`))},[t]),n}const hF=mw.useId;function tu(e){if(hF!==void 0){const t=hF();return e??t}return Qxe(e)}function Xxe(e,t,r,n,o){return null}function Jc({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=d.useRef(e!==void 0),[a,i]=d.useState(t),s=o?e:a,c=d.useCallback(l=>{o||i(l)},[]);return[s,c]}function En(e){const t=d.useRef(e);return vo(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function sr(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{ky(r,t)})},e)}const gF={};function Yxe(e,t){const r=d.useRef(gF);return r.current===gF&&(r.current=e(t)),r}const Jxe=[];function Zxe(e){d.useEffect(e,Jxe)}class Mv{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Mv}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function kl(){const e=Yxe(Mv.create).current;return Zxe(e.disposeEffect),e}let B0=!0,nO=!1;const ewe=new Mv,twe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function rwe(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&twe[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function nwe(e){e.metaKey||e.altKey||e.ctrlKey||(B0=!0)}function Xx(){B0=!1}function owe(){this.visibilityState==="hidden"&&nO&&(B0=!0)}function awe(e){e.addEventListener("keydown",nwe,!0),e.addEventListener("mousedown",Xx,!0),e.addEventListener("pointerdown",Xx,!0),e.addEventListener("touchstart",Xx,!0),e.addEventListener("visibilitychange",owe,!0)}function iwe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return B0||rwe(t)}function z0(){const e=d.useCallback(o=>{o!=null&&awe(o.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(nO=!0,ewe.start(100,()=>{nO=!1}),t.current=!1,!0):!1}function n(o){return iwe(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function n6(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Bu;function o6(){if(Bu)return Bu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Bu="reverse",e.scrollLeft>0?Bu="default":(e.scrollLeft=1,e.scrollLeft===0&&(Bu="negative")),document.body.removeChild(e),Bu}function swe(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(o6()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function Ve(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function qp(e){return typeof e=="string"}function vc(e,t,r){return e===void 0||qp(e)?t:j({},t,{ownerState:j({},t.ownerState,r)})}function Ty(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function yF(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function a6(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const h=$e(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),x=j({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),w=j({},r,o,n);return h.length>0&&(w.className=h),Object.keys(x).length>0&&(w.style=x),{props:w,internalRef:void 0}}const i=Ty(j({},o,n)),s=yF(n),c=yF(o),l=t(i),f=$e(l==null?void 0:l.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),v=j({},l==null?void 0:l.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),m=j({},l,r,c,s);return f.length>0&&(m.className=f),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:l.ref}}function i6(e,t,r){return typeof e=="function"?e(t,r):e}const lwe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Qo(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Ce(e,lwe),s=a?{}:i6(n,o),{props:c,internalRef:l}=a6(j({},i,{externalSlotProps:s})),f=sr(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return vc(r,j({},c,{ref:f}),o)}const s6=d.createContext(null);function l6(){return d.useContext(s6)}const uwe=typeof Symbol=="function"&&Symbol.for,cwe=uwe?Symbol.for("mui.nested"):"__THEME_NESTED__";function dwe(e,t){return typeof t=="function"?t(e):j({},e,t)}function fwe(e){const{children:t,theme:r}=e,n=l6(),o=d.useMemo(()=>{const a=n===null?r:dwe(n,r);return a!=null&&(a[cwe]=n!==null),a},[r,n]);return S.jsx(s6.Provider,{value:o,children:t})}const pwe=["value"],u6=d.createContext();function vwe(e){let{value:t}=e,r=Ce(e,pwe);return S.jsx(u6.Provider,j({value:t??!0},r))}const Ys=()=>{const e=d.useContext(u6);return e??!1},c6=d.createContext(void 0);function mwe({value:e,children:t}){return S.jsx(c6.Provider,{value:e,children:t})}function hwe(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Wp(o.defaultProps,n):!o.styleOverrides&&!o.variants?Wp(o,n):n}function gwe({props:e,name:t}){const r=d.useContext(c6);return hwe({props:e,name:t,theme:{components:r}})}const bF={};function _F(e,t,r,n=!1){return d.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?j({},t,{[e]:a}):a;return n?()=>i:i}return e?j({},t,{[e]:r}):j({},t,r)},[e,t,r,n])}function ywe(e){const{children:t,theme:r,themeId:n}=e,o=ZP(bF),a=l6()||bF,i=_F(n,o,r),s=_F(n,a,r,!0),c=i.direction==="rtl";return S.jsx(fwe,{theme:s,children:S.jsx(Iv.Provider,{value:i,children:S.jsx(vwe,{value:c,children:S.jsx(mwe,{value:i==null?void 0:i.components,children:t})})})})}const bwe=["className","component","disableGutters","fixed","maxWidth","classes"],_we=Td(),xwe=Qz("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Se(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),wwe=e=>Yz({props:e,name:"MuiContainer",defaultTheme:_we}),Swe=(e,t)=>{const r=c=>Ue(t,c),{classes:n,fixed:o,disableGutters:a,maxWidth:i}=e,s={root:["root",i&&`maxWidth${Se(String(i))}`,o&&"fixed",a&&"disableGutters"]};return Ve(s,r,n)};function Owe(e={}){const{createStyledComponent:t=xwe,useThemeProps:r=wwe,componentName:n="MuiContainer"}=e,o=t(({theme:i,ownerState:s})=>j({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}),({theme:i,ownerState:s})=>s.fixed&&Object.keys(i.breakpoints.values).reduce((c,l)=>{const f=l,v=i.breakpoints.values[f];return v!==0&&(c[i.breakpoints.up(f)]={maxWidth:`${v}${i.breakpoints.unit}`}),c},{}),({theme:i,ownerState:s})=>j({},s.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[i.breakpoints.up(s.maxWidth)]:{maxWidth:`${i.breakpoints.values[s.maxWidth]}${i.breakpoints.unit}`}}));return d.forwardRef(function(s,c){const l=r(s),{className:f,component:v="div",disableGutters:m=!1,fixed:h=!1,maxWidth:x="lg"}=l,w=Ce(l,bwe),O=j({},l,{component:v,disableGutters:m,fixed:h,maxWidth:x}),b=Swe(O,n);return S.jsx(o,j({as:v,ownerState:O,className:$e(b.root,f),ref:c},w))})}const Cwe=["component","direction","spacing","divider","children","className","useFlexGap"],Ewe=Td(),Pwe=Qz("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function $we(e){return Yz({props:e,name:"MuiStack",defaultTheme:Ewe})}function Rwe(e,t){const r=d.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Twe=({ownerState:e,theme:t})=>{let r=j({display:"flex",flexDirection:"column"},xa({theme:t},Kx({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=YP(t),o=Object.keys(t.breakpoints.values).reduce((c,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(c[l]=!0),c),{}),a=Kx({values:e.direction,base:o}),i=Kx({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,l,f)=>{if(!a[c]){const m=l>0?a[f[l-1]]:"column";a[c]=m}}),r=$n(r,xa({theme:t},i,(c,l)=>e.useFlexGap?{gap:eu(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${kwe(l?a[l]:e.direction)}`]:eu(n,c)}}))}return r=R1e(t.breakpoints,r),r};function Iwe(e={}){const{createStyledComponent:t=Pwe,useThemeProps:r=$we,componentName:n="MuiStack"}=e,o=()=>Ve({root:["root"]},c=>Ue(n,c),{}),a=t(Twe);return d.forwardRef(function(c,l){const f=r(c),v=R0(f),{component:m="div",direction:h="column",spacing:x=0,divider:w,children:O,className:b,useFlexGap:g=!1}=v,_=Ce(v,Cwe),$={direction:h,spacing:x,useFlexGap:g},P=o();return S.jsx(a,j({as:m,ownerState:$,ref:l,className:$e(P.root,b)},_,{children:w?Rwe(O,w):O}))})}function jwe(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var br={},d6={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(d6);var He=d6.exports;const Awe=Ya(f_e),Mwe=Ya(qxe);var f6=He;Object.defineProperty(br,"__esModule",{value:!0});var jt=br.alpha=h6;br.blend=Gwe;br.colorChannel=void 0;var U0=br.darken=a2;br.decomposeColor=Xo;var Fwe=br.emphasize=g6,Lwe=br.getContrastRatio=Uwe;br.getLuminance=Iy;br.hexToRgb=p6;br.hslToRgb=m6;var V0=br.lighten=i2;br.private_safeAlpha=Vwe;br.private_safeColorChannel=void 0;br.private_safeDarken=Wwe;br.private_safeEmphasize=Hwe;br.private_safeLighten=qwe;br.recomposeColor=jd;br.rgbToHex=zwe;var xF=f6(Awe),Nwe=f6(Mwe);function o2(e,t=0,r=1){return(0,Nwe.default)(e,t,r)}function p6(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Dwe(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Xo(e){if(e.type)return e;if(e.charAt(0)==="#")return Xo(p6(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,xF.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,xF.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const v6=e=>{const t=Xo(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};br.colorChannel=v6;const Bwe=(e,t)=>{try{return v6(e)}catch{return e}};br.private_safeColorChannel=Bwe;function jd(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function zwe(e){if(e.indexOf("#")===0)return e;const{values:t}=Xo(e);return`#${t.map((r,n)=>Dwe(n===3?Math.round(255*r):r)).join("")}`}function m6(e){e=Xo(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(l,f=(l+r/30)%12)=>o-a*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",c.push(t[3])),jd({type:s,values:c})}function Iy(e){e=Xo(e);let t=e.type==="hsl"||e.type==="hsla"?Xo(m6(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Uwe(e,t){const r=Iy(e),n=Iy(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function h6(e,t){return e=Xo(e),t=o2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,jd(e)}function Vwe(e,t,r){try{return h6(e,t)}catch{return e}}function a2(e,t){if(e=Xo(e),t=o2(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return jd(e)}function Wwe(e,t,r){try{return a2(e,t)}catch{return e}}function i2(e,t){if(e=Xo(e),t=o2(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return jd(e)}function qwe(e,t,r){try{return i2(e,t)}catch{return e}}function g6(e,t=.15){return Iy(e)>.5?a2(e,t):i2(e,t)}function Hwe(e,t,r){try{return g6(e,t)}catch{return e}}function Gwe(e,t,r,n=1){const o=(c,l)=>Math.round((c**(1/n)*(1-r)+l**(1/n)*r)**n),a=Xo(e),i=Xo(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return jd({type:"rgb",values:s})}const Kwe=["mode","contrastThreshold","tonalOffset"],wF={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:Dp.white,default:Dp.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}},Yx={text:{primary:Dp.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:Dp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function SF(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=V0(e.main,o):t==="dark"&&(e.dark=U0(e.main,a)))}function Qwe(e="light"){return e==="dark"?{main:_l[200],light:_l[50],dark:_l[400]}:{main:_l[700],light:_l[400],dark:_l[800]}}function Xwe(e="light"){return e==="dark"?{main:Lu[200],light:Lu[50],dark:Lu[400]}:{main:Lu[500],light:Lu[300],dark:Lu[700]}}function Ywe(e="light"){return e==="dark"?{main:Fu[500],light:Fu[300],dark:Fu[700]}:{main:Fu[700],light:Fu[400],dark:Fu[800]}}function Jwe(e="light"){return e==="dark"?{main:Nu[400],light:Nu[300],dark:Nu[700]}:{main:Nu[700],light:Nu[500],dark:Nu[900]}}function Zwe(e="light"){return e==="dark"?{main:Du[400],light:Du[300],dark:Du[700]}:{main:Du[800],light:Du[500],dark:Du[900]}}function eSe(e="light"){return e==="dark"?{main:bf[400],light:bf[300],dark:bf[700]}:{main:"#ed6c02",light:bf[500],dark:bf[900]}}function tSe(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ce(e,Kwe),a=e.primary||Qwe(t),i=e.secondary||Xwe(t),s=e.error||Ywe(t),c=e.info||Jwe(t),l=e.success||Zwe(t),f=e.warning||eSe(t);function v(w){return Lwe(w,Yx.text.primary)>=r?Yx.text.primary:wF.text.primary}const m=({color:w,name:O,mainShade:b=500,lightShade:g=300,darkShade:_=700})=>{if(w=j({},w),!w.main&&w[b]&&(w.main=w[b]),!w.hasOwnProperty("main"))throw new Error(ki(11,O?` (${O})`:"",b));if(typeof w.main!="string")throw new Error(ki(12,O?` (${O})`:"",JSON.stringify(w.main)));return SF(w,"light",g,n),SF(w,"dark",_,n),w.contrastText||(w.contrastText=v(w.main)),w},h={dark:Yx,light:wF};return $n(j({common:j({},Dp),mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:s,name:"error"}),warning:m({color:f,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:l,name:"success"}),grey:d_e,contrastThreshold:r,getContrastText:v,augmentColor:m,tonalOffset:n},h[t]),o)}const rSe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function nSe(e){return Math.round(e*1e5)/1e5}const OF={textTransform:"uppercase"},CF='"Roboto", "Helvetica", "Arial", sans-serif';function oSe(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=CF,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:f,pxToRem:v}=r,m=Ce(r,rSe),h=o/14,x=v||(b=>`${b/l*h}rem`),w=(b,g,_,$,P)=>j({fontFamily:n,fontWeight:b,fontSize:x(g),lineHeight:_},n===CF?{letterSpacing:`${nSe($/g)}em`}:{},P,f),O={h1:w(a,96,1.167,-1.5),h2:w(a,60,1.2,-.5),h3:w(i,48,1.167,0),h4:w(i,34,1.235,.25),h5:w(i,24,1.334,0),h6:w(s,20,1.6,.15),subtitle1:w(i,16,1.75,.15),subtitle2:w(s,14,1.57,.1),body1:w(i,16,1.5,.15),body2:w(i,14,1.43,.15),button:w(s,14,1.75,.4,OF),caption:w(i,12,1.66,.4),overline:w(i,12,2.66,1,OF),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $n(j({htmlFontSize:l,pxToRem:x,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:c},O),m,{clone:!1})}const aSe=.2,iSe=.14,sSe=.12;function er(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${aSe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iSe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${sSe})`].join(",")}const lSe=["none",er(0,2,1,-1,0,1,1,0,0,1,3,0),er(0,3,1,-2,0,2,2,0,0,1,5,0),er(0,3,3,-2,0,3,4,0,0,1,8,0),er(0,2,4,-1,0,4,5,0,0,1,10,0),er(0,3,5,-1,0,5,8,0,0,1,14,0),er(0,3,5,-1,0,6,10,0,0,1,18,0),er(0,4,5,-2,0,7,10,1,0,2,16,1),er(0,5,5,-3,0,8,10,1,0,3,14,2),er(0,5,6,-3,0,9,12,1,0,3,16,2),er(0,6,6,-3,0,10,14,1,0,4,18,3),er(0,6,7,-4,0,11,15,1,0,4,20,3),er(0,7,8,-4,0,12,17,2,0,5,22,4),er(0,7,8,-4,0,13,19,2,0,5,24,4),er(0,7,9,-4,0,14,21,2,0,5,26,4),er(0,8,9,-5,0,15,22,2,0,6,28,5),er(0,8,10,-5,0,16,24,2,0,6,30,5),er(0,8,11,-5,0,17,26,2,0,6,32,5),er(0,9,11,-5,0,18,28,2,0,7,34,6),er(0,9,12,-6,0,19,29,2,0,7,36,6),er(0,10,13,-6,0,20,31,3,0,8,38,7),er(0,10,13,-6,0,21,33,3,0,8,40,7),er(0,10,14,-6,0,22,35,3,0,8,42,7),er(0,11,14,-7,0,23,36,3,0,9,44,8),er(0,11,15,-7,0,24,38,3,0,9,46,8)],uSe=["duration","easing","delay"],cSe={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)"},dSe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function EF(e){return`${Math.round(e)}ms`}function fSe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function pSe(e){const t=j({},cSe,e.easing),r=j({},dSe,e.duration);return j({getAutoHeightDuration:fSe,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:c=0}=a;return Ce(a,uSe),(Array.isArray(o)?o:[o]).map(l=>`${l} ${typeof i=="string"?i:EF(i)} ${s} ${typeof c=="string"?c:EF(c)}`).join(",")}},e,{easing:t,duration:r})}const vSe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},mSe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function jy(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=Ce(e,mSe);if(e.vars)throw new Error(ki(18));const s=tSe(n),c=Td(e);let l=$n(c,{mixins:jwe(c.breakpoints,r),palette:s,shadows:lSe.slice(),typography:oSe(s,a),transitions:pSe(o),zIndex:j({},vSe)});return l=$n(l,i),l=t.reduce((f,v)=>$n(f,v),l),l.unstable_sxConfig=j({},Av,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(v){return kd({sx:v,theme:this})},l}const s2=jy();function _o(){const e=$0(s2);return e[Kc]||e}var Fv={},Jx={exports:{}},PF;function hSe(){return PF||(PF=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n96}function ug(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jSe=Fv.systemDefaultTheme=(0,CSe.default)(),ASe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function bh({defaultTheme:e,theme:t,themeId:r}){return TSe(t)?e:t[r]||t}function MSe(e){return e?(t,r)=>r[e]:null}function cg(e,t){let{ownerState:r}=t,n=(0,oO.default)(t,PSe);const o=typeof e=="function"?e((0,Io.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>cg(a,(0,Io.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=(0,oO.default)(o,$Se);return a.forEach(c=>{let l=!0;typeof c.props=="function"?l=c.props((0,Io.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(f=>{(r==null?void 0:r[f])!==c.props[f]&&n[f]!==c.props[f]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof c.style=="function"?c.style((0,Io.default)({ownerState:r},n,r)):c.style))}),s}return o}function FSe(e={}){const{themeId:t,defaultTheme:r=jSe,rootShouldForwardProp:n=ug,slotShouldForwardProp:o=ug}=e,a=i=>(0,ESe.default)((0,Io.default)({},i,{theme:bh((0,Io.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,RF.internal_processStyles)(i,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:f,skipSx:v,overridesResolver:m=MSe(ASe(l))}=s,h=(0,oO.default)(s,RSe),x=f!==void 0?f:l&&l!=="Root"&&l!=="root"||!1,w=v||!1;let O,b=ug;l==="Root"||l==="root"?b=n:l?b=o:ISe(i)&&(b=void 0);const g=(0,RF.default)(i,(0,Io.default)({shouldForwardProp:b,label:O},h)),_=P=>typeof P=="function"&&P.__emotion_real!==P||(0,OSe.isPlainObject)(P)?C=>cg(P,(0,Io.default)({},C,{theme:bh({theme:C.theme,defaultTheme:r,themeId:t})})):P,$=(P,...C)=>{let k=_(P);const R=C?C.map(_):[];c&&m&&R.push(F=>{const L=bh((0,Io.default)({},F,{defaultTheme:r,themeId:t}));if(!L.components||!L.components[c]||!L.components[c].styleOverrides)return null;const D=L.components[c].styleOverrides,U={};return Object.entries(D).forEach(([H,q])=>{U[H]=cg(q,(0,Io.default)({},F,{theme:L}))}),m(F,U)}),c&&!x&&R.push(F=>{var L;const D=bh((0,Io.default)({},F,{defaultTheme:r,themeId:t})),U=D==null||(L=D.components)==null||(L=L[c])==null?void 0:L.variants;return cg({variants:U},(0,Io.default)({},F,{theme:D}))}),w||R.push(a);const I=R.length-C.length;if(Array.isArray(P)&&I>0){const F=new Array(I).fill("");k=[...P,...F],k.raw=[...P.raw,...F]}const A=g(k,...R);return i.muiName&&(A.muiName=i.muiName),A};return g.withConfig&&($.withConfig=g.withConfig),$}}function _6(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const nn=e=>_6(e)&&e!=="classes",J=SSe({themeId:Kc,defaultTheme:s2,rootShouldForwardProp:nn}),LSe=["theme"];function NSe(e){let{theme:t}=e,r=Ce(e,LSe);const n=t[Kc];return S.jsx(ywe,j({},r,{themeId:n?Kc:void 0,theme:n||t}))}const kF=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ge(e){return gwe(e)}function DSe(e){return Ue("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const BSe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],zSe=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Se(t)}`,`fontSize${Se(r)}`]};return Ve(o,DSe,n)},USe=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Se(r.color)}`],t[`fontSize${Se(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,s,c,l,f,v,m,h,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(c=s.pxToRem)==null?void 0:c.call(s,24))||"1.5rem",large:((l=e.typography)==null||(f=l.pxToRem)==null?void 0:f.call(l,35))||"2.1875rem"}[t.fontSize],color:(v=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?v:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.disabled,inherit:void 0}[t.color]}}),aO=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:f=!1,titleAccess:v,viewBox:m="0 0 24 24"}=n,h=Ce(n,BSe),x=d.isValidElement(o)&&o.type==="svg",w=j({},n,{color:i,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:x}),O={};f||(O.viewBox=m);const b=zSe(w);return S.jsxs(USe,j({as:s,className:$e(b.root,a),focusable:"false",color:l,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:r},O,h,x&&o.props,{ownerState:w,children:[x?o.props.children:o,v?S.jsx("title",{children:v}):null]}))});aO.muiName="SvgIcon";function xo(e,t){function r(n,o){return S.jsx(aO,j({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=aO.muiName,d.memo(d.forwardRef(r))}const VSe={configure:e=>{e2.configure(e)}},WSe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Se,createChainedFunction:rO,createSvgIcon:xo,debounce:Id,deprecatedPropType:Gxe,isMuiElement:lg,ownerDocument:Pr,ownerWindow:Ko,requirePropFactory:Kxe,setRef:ky,unstable_ClassNameGenerator:VSe,unstable_useEnhancedEffect:vo,unstable_useId:tu,unsupportedProp:Xxe,useControlled:Jc,useEventCallback:En,useForkRef:sr,useIsFocusVisible:z0},Symbol.toStringTag,{value:"Module"})),TF={disabled:!1},Ay=fe.createContext(null);var qSe=function(t){return t.scrollTop},Ff="unmounted",xl="exited",wl="entering",Wu="entered",iO="exiting",Ea=function(e){Fi(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,c;return a.appearStatus=null,n.in?s?(c=xl,a.appearStatus=wl):c=Wu:n.unmountOnExit||n.mountOnEnter?c=Ff:c=xl,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Ff?{status:xl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==wl&&i!==Wu&&(a=wl):(i===wl||i===Wu)&&(a=iO)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===wl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Af.findDOMNode(this);i&&qSe(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xl&&this.setState({status:Ff})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[Af.findDOMNode(this),s],l=c[0],f=c[1],v=this.getTimeouts(),m=s?v.appear:v.enter;if(!o&&!i||TF.disabled){this.safeSetState({status:Wu},function(){a.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:wl},function(){a.props.onEntering(l,f),a.onTransitionEnd(m,function(){a.safeSetState({status:Wu},function(){a.props.onEntered(l,f)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Af.findDOMNode(this);if(!a||TF.disabled){this.safeSetState({status:xl},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:iO},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:xl},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Af.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=c[0],f=c[1];this.props.addEndListener(l,f)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Ff)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Ce(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return fe.createElement(Ay.Provider,{value:null},typeof i=="function"?i(o,s):fe.cloneElement(fe.Children.only(i),s))},t}(fe.Component);Ea.contextType=Ay;Ea.propTypes={};function zu(){}Ea.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zu,onEntering:zu,onEntered:zu,onExit:zu,onExiting:zu,onExited:zu};Ea.UNMOUNTED=Ff;Ea.EXITED=xl;Ea.ENTERING=wl;Ea.ENTERED=Wu;Ea.EXITING=iO;function l2(e,t){var r=function(a){return t&&d.isValidElement(a)?t(a):a},n=Object.create(null);return e&&d.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function HSe(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var c in t){if(n[c])for(i=0;ie.scrollTop;function Zc(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function YSe(e){return Ue("MuiPaper",e)}qe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const JSe=["className","component","elevation","square","variant"],ZSe=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ve(a,YSe,o)},eOe=J("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return j({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&j({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${jt("#fff",kF(t.elevation))}, ${jt("#fff",kF(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Js=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:c="elevation"}=n,l=Ce(n,JSe),f=j({},n,{component:a,elevation:i,square:s,variant:c}),v=ZSe(f);return S.jsx(eOe,j({as:a,ownerState:f,className:$e(v.root,o),ref:r},l))}),tOe=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],rOe=["component","slots","slotProps"],nOe=["component"];function oOe(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s}=t,c=Ce(t,tOe),{component:l,slots:f={[e]:void 0},slotProps:v={[e]:void 0}}=a;Ce(a,rOe);const m=f[e]||n,h=i6(v[e],o),x=a6(j({className:r},c,{externalForwardedProps:void 0,externalSlotProps:h})),{props:{component:w},internalRef:O}=x,b=Ce(x.props,nOe),g=sr(O,h==null?void 0:h.ref,t.ref),_=i?i(b):{},$=j({},o,_),P=w,C=vc(m,j({},e==="root",!f[e]&&s,b,P&&{as:P},{ref:g}),$);return Object.keys(_).forEach(k=>{delete C[k]}),[m,C]}function aOe(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:c,timeout:l}=e,[f,v]=d.useState(!1),m=$e(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},x=$e(r.child,f&&r.childLeaving,n&&r.childPulsate);return!s&&!f&&v(!0),d.useEffect(()=>{if(!s&&c!=null){const w=setTimeout(c,l);return()=>{clearTimeout(w)}}},[c,s,l]),S.jsx("span",{className:m,style:h,children:S.jsx("span",{className:x})})}const jo=qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),iOe=["center","classes","className"];let W0=e=>e,IF,jF,AF,MF;const sO=550,sOe=80,lOe=Bi(IF||(IF=W0` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),uOe=Bi(jF||(jF=W0` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),cOe=Bi(AF||(AF=W0` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),dOe=J("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),fOe=J(aOe,{name:"MuiTouchRipple",slot:"Ripple"})(MF||(MF=W0` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),jo.rippleVisible,lOe,sO,({theme:e})=>e.transitions.easing.easeInOut,jo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,jo.child,jo.childLeaving,uOe,sO,({theme:e})=>e.transitions.easing.easeInOut,jo.childPulsate,cOe,({theme:e})=>e.transitions.easing.easeInOut),pOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,s=Ce(n,iOe),[c,l]=d.useState([]),f=d.useRef(0),v=d.useRef(null);d.useEffect(()=>{v.current&&(v.current(),v.current=null)},[c]);const m=d.useRef(!1),h=kl(),x=d.useRef(null),w=d.useRef(null),O=d.useCallback($=>{const{pulsate:P,rippleX:C,rippleY:k,rippleSize:R,cb:I}=$;l(A=>[...A,S.jsx(fOe,{classes:{ripple:$e(a.ripple,jo.ripple),rippleVisible:$e(a.rippleVisible,jo.rippleVisible),ripplePulsate:$e(a.ripplePulsate,jo.ripplePulsate),child:$e(a.child,jo.child),childLeaving:$e(a.childLeaving,jo.childLeaving),childPulsate:$e(a.childPulsate,jo.childPulsate)},timeout:sO,pulsate:P,rippleX:C,rippleY:k,rippleSize:R},f.current)]),f.current+=1,v.current=I},[a]),b=d.useCallback(($={},P={},C=()=>{})=>{const{pulsate:k=!1,center:R=o||P.pulsate,fakeElement:I=!1}=P;if(($==null?void 0:$.type)==="mousedown"&&m.current){m.current=!1;return}($==null?void 0:$.type)==="touchstart"&&(m.current=!0);const A=I?null:w.current,F=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let L,D,U;if(R||$===void 0||$.clientX===0&&$.clientY===0||!$.clientX&&!$.touches)L=Math.round(F.width/2),D=Math.round(F.height/2);else{const{clientX:H,clientY:q}=$.touches&&$.touches.length>0?$.touches[0]:$;L=Math.round(H-F.left),D=Math.round(q-F.top)}if(R)U=Math.sqrt((2*F.width**2+F.height**2)/3),U%2===0&&(U+=1);else{const H=Math.max(Math.abs((A?A.clientWidth:0)-L),L)*2+2,q=Math.max(Math.abs((A?A.clientHeight:0)-D),D)*2+2;U=Math.sqrt(H**2+q**2)}$!=null&&$.touches?x.current===null&&(x.current=()=>{O({pulsate:k,rippleX:L,rippleY:D,rippleSize:U,cb:C})},h.start(sOe,()=>{x.current&&(x.current(),x.current=null)})):O({pulsate:k,rippleX:L,rippleY:D,rippleSize:U,cb:C})},[o,O,h]),g=d.useCallback(()=>{b({},{pulsate:!0})},[b]),_=d.useCallback(($,P)=>{if(h.clear(),($==null?void 0:$.type)==="touchend"&&x.current){x.current(),x.current=null,h.start(0,()=>{_($,P)});return}x.current=null,l(C=>C.length>0?C.slice(1):C),v.current=P},[h]);return d.useImperativeHandle(r,()=>({pulsate:g,start:b,stop:_}),[g,b,_]),S.jsx(dOe,j({className:$e(jo.root,a.root,i),ref:w},s,{children:S.jsx(u2,{component:null,exit:!0,children:c})}))});function vOe(e){return Ue("MuiButtonBase",e)}const mOe=qe("MuiButtonBase",["root","disabled","focusVisible"]),hOe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],gOe=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Ve({root:["root",t&&"disabled",r&&"focusVisible"]},vOe,o);return r&&n&&(i.root+=` ${n}`),i},yOe=J("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${mOe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),zi=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:c="button",disabled:l=!1,disableRipple:f=!1,disableTouchRipple:v=!1,focusRipple:m=!1,LinkComponent:h="a",onBlur:x,onClick:w,onContextMenu:O,onDragLeave:b,onFocus:g,onFocusVisible:_,onKeyDown:$,onKeyUp:P,onMouseDown:C,onMouseLeave:k,onMouseUp:R,onTouchEnd:I,onTouchMove:A,onTouchStart:F,tabIndex:L=0,TouchRippleProps:D,touchRippleRef:U,type:H}=n,q=Ce(n,hOe),G=d.useRef(null),z=d.useRef(null),W=sr(z,U),{isFocusVisibleRef:te,onFocus:ne,onBlur:ee,ref:Oe}=z0(),[ce,oe]=d.useState(!1);l&&ce&&oe(!1),d.useImperativeHandle(o,()=>({focusVisible:()=>{oe(!0),G.current.focus()}}),[]);const[pe,Re]=d.useState(!1);d.useEffect(()=>{Re(!0)},[]);const ye=pe&&!f&&!l;d.useEffect(()=>{ce&&m&&!f&&pe&&z.current.pulsate()},[f,m,ce,pe]);function de(De,ft,Pt=v){return En(Et=>(ft&&ft(Et),!Pt&&z.current&&z.current[De](Et),!0))}const he=de("start",C),ve=de("stop",O),_e=de("stop",b),ie=de("stop",R),be=de("stop",De=>{ce&&De.preventDefault(),k&&k(De)}),ge=de("start",F),Ae=de("stop",I),Be=de("stop",A),V=de("stop",De=>{ee(De),te.current===!1&&oe(!1),x&&x(De)},!1),X=En(De=>{G.current||(G.current=De.currentTarget),ne(De),te.current===!0&&(oe(!0),_&&_(De)),g&&g(De)}),Y=()=>{const De=G.current;return c&&c!=="button"&&!(De.tagName==="A"&&De.href)},ae=d.useRef(!1),se=En(De=>{m&&!ae.current&&ce&&z.current&&De.key===" "&&(ae.current=!0,z.current.stop(De,()=>{z.current.start(De)})),De.target===De.currentTarget&&Y()&&De.key===" "&&De.preventDefault(),$&&$(De),De.target===De.currentTarget&&Y()&&De.key==="Enter"&&!l&&(De.preventDefault(),w&&w(De))}),le=En(De=>{m&&De.key===" "&&z.current&&ce&&!De.defaultPrevented&&(ae.current=!1,z.current.stop(De,()=>{z.current.pulsate(De)})),P&&P(De),w&&De.target===De.currentTarget&&Y()&&De.key===" "&&!De.defaultPrevented&&w(De)});let Ee=c;Ee==="button"&&(q.href||q.to)&&(Ee=h);const Ie={};Ee==="button"?(Ie.type=H===void 0?"button":H,Ie.disabled=l):(!q.href&&!q.to&&(Ie.role="button"),l&&(Ie["aria-disabled"]=l));const rt=sr(r,Oe,G),at=j({},n,{centerRipple:a,component:c,disabled:l,disableRipple:f,disableTouchRipple:v,focusRipple:m,tabIndex:L,focusVisible:ce}),Le=gOe(at);return S.jsxs(yOe,j({as:Ee,className:$e(Le.root,s),ownerState:at,onBlur:V,onClick:w,onContextMenu:ve,onFocus:X,onKeyDown:se,onKeyUp:le,onMouseDown:he,onMouseLeave:be,onMouseUp:ie,onDragLeave:_e,onTouchEnd:Ae,onTouchMove:Be,onTouchStart:ge,ref:rt,tabIndex:l?-1:L,type:H},Ie,q,{children:[i,ye?S.jsx(pOe,j({ref:W,center:a},D)):null]}))});function bOe(e){return Ue("MuiIconButton",e)}const _Oe=qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),xOe=["edge","children","className","color","disabled","disableFocusRipple","size"],wOe=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${Se(n)}`,o&&`edge${Se(o)}`,`size${Se(a)}`]};return Ve(i,bOe,t)},SOe=J(zi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Se(r.color)}`],r.edge&&t[`edge${Se(r.edge)}`],t[`size${Se(r.size)}`]]}})(({theme:e,ownerState:t})=>j({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:jt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return j({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&j({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":j({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:jt(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${_Oe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),or=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:c=!1,disableFocusRipple:l=!1,size:f="medium"}=n,v=Ce(n,xOe),m=j({},n,{edge:o,color:s,disabled:c,disableFocusRipple:l,size:f}),h=wOe(m);return S.jsx(SOe,j({className:$e(h.root,i),centerRipple:!0,focusRipple:!l,disabled:c,ref:r},v,{ownerState:m,children:a}))});function OOe(e){return Ue("MuiTypography",e)}qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const COe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],EOe=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Se(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Ve(s,OOe,i)},POe=J("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Se(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>j({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),FF={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},$Oe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ROe=e=>$Oe[e]||e,it=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTypography"}),o=ROe(n.color),a=R0(j({},n,{color:o})),{align:i="inherit",className:s,component:c,gutterBottom:l=!1,noWrap:f=!1,paragraph:v=!1,variant:m="body1",variantMapping:h=FF}=a,x=Ce(a,COe),w=j({},a,{align:i,color:o,className:s,component:c,gutterBottom:l,noWrap:f,paragraph:v,variant:m,variantMapping:h}),O=c||(v?"p":h[m]||FF[m])||"span",b=EOe(w);return S.jsx(POe,j({as:O,ref:r,ownerState:w,className:$e(b.root,s)},x))});function kOe(e){return Ue("MuiAppBar",e)}qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const TOe=["className","color","enableColorOnDark","position"],IOe=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${Se(t)}`,`position${Se(r)}`]};return Ve(o,kOe,n)},_h=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,jOe=J(Js,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Se(r.position)}`],t[`color${Se(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return j({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&j({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&j({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&j({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:_h(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:_h(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:_h(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:_h(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),AOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,c=Ce(n,TOe),l=j({},n,{color:a,position:s,enableColorOnDark:i}),f=IOe(l);return S.jsx(jOe,j({square:!0,component:"header",ownerState:l,elevation:4,className:$e(f.root,o,s==="fixed"&&"mui-fixed"),ref:r},c))});var d2={};Object.defineProperty(d2,"__esModule",{value:!0});var x6=d2.default=void 0,MOe=LOe(d),FOe=y6;function w6(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(w6=function(n){return n?r:t})(e)}function LOe(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=w6(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function NOe(e){return Object.keys(e).length===0}function DOe(e=null){const t=MOe.useContext(FOe.ThemeContext);return!t||NOe(t)?e:t}x6=d2.default=DOe;var Gn="top",Yo="bottom",Jo="right",Kn="left",f2="auto",Lv=[Gn,Yo,Jo,Kn],ed="start",Hp="end",BOe="clippingParents",S6="viewport",xf="popper",zOe="reference",LF=Lv.reduce(function(e,t){return e.concat([t+"-"+ed,t+"-"+Hp])},[]),O6=[].concat(Lv,[f2]).reduce(function(e,t){return e.concat([t,t+"-"+ed,t+"-"+Hp])},[]),UOe="beforeRead",VOe="read",WOe="afterRead",qOe="beforeMain",HOe="main",GOe="afterMain",KOe="beforeWrite",QOe="write",XOe="afterWrite",YOe=[UOe,VOe,WOe,qOe,HOe,GOe,KOe,QOe,XOe];function Qa(e){return e?(e.nodeName||"").toLowerCase():null}function mo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ru(e){var t=mo(e).Element;return e instanceof t||e instanceof Element}function Wo(e){var t=mo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function p2(e){if(typeof ShadowRoot>"u")return!1;var t=mo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function JOe(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!Wo(a)||!Qa(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function ZOe(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(c,l){return c[l]="",c},{});!Wo(o)||!Qa(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const eCe={name:"applyStyles",enabled:!0,phase:"write",fn:JOe,effect:ZOe,requires:["computeStyles"]};function Ha(e){return e.split("-")[0]}var Bl=Math.max,My=Math.min,td=Math.round;function lO(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function C6(){return!/^((?!chrome|android).)*safari/i.test(lO())}function rd(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Wo(e)&&(o=e.offsetWidth>0&&td(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&td(n.height)/e.offsetHeight||1);var i=ru(e)?mo(e):window,s=i.visualViewport,c=!C6()&&r,l=(n.left+(c&&s?s.offsetLeft:0))/o,f=(n.top+(c&&s?s.offsetTop:0))/a,v=n.width/o,m=n.height/a;return{width:v,height:m,top:f,right:l+v,bottom:f+m,left:l,x:l,y:f}}function v2(e){var t=rd(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function E6(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&p2(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ti(e){return mo(e).getComputedStyle(e)}function tCe(e){return["table","td","th"].indexOf(Qa(e))>=0}function Zs(e){return((ru(e)?e.ownerDocument:e.document)||window.document).documentElement}function q0(e){return Qa(e)==="html"?e:e.assignedSlot||e.parentNode||(p2(e)?e.host:null)||Zs(e)}function NF(e){return!Wo(e)||Ti(e).position==="fixed"?null:e.offsetParent}function rCe(e){var t=/firefox/i.test(lO()),r=/Trident/i.test(lO());if(r&&Wo(e)){var n=Ti(e);if(n.position==="fixed")return null}var o=q0(e);for(p2(o)&&(o=o.host);Wo(o)&&["html","body"].indexOf(Qa(o))<0;){var a=Ti(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Nv(e){for(var t=mo(e),r=NF(e);r&&tCe(r)&&Ti(r).position==="static";)r=NF(r);return r&&(Qa(r)==="html"||Qa(r)==="body"&&Ti(r).position==="static")?t:r||rCe(e)||t}function m2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function np(e,t,r){return Bl(e,My(t,r))}function nCe(e,t,r){var n=np(e,t,r);return n>r?r:n}function P6(){return{top:0,right:0,bottom:0,left:0}}function $6(e){return Object.assign({},P6(),e)}function R6(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var oCe=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,$6(typeof t!="number"?t:R6(t,Lv))};function aCe(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Ha(r.placement),c=m2(s),l=[Kn,Jo].indexOf(s)>=0,f=l?"height":"width";if(!(!a||!i)){var v=oCe(o.padding,r),m=v2(a),h=c==="y"?Gn:Kn,x=c==="y"?Yo:Jo,w=r.rects.reference[f]+r.rects.reference[c]-i[c]-r.rects.popper[f],O=i[c]-r.rects.reference[c],b=Nv(a),g=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,_=w/2-O/2,$=v[h],P=g-m[f]-v[x],C=g/2-m[f]/2+_,k=np($,C,P),R=c;r.modifiersData[n]=(t={},t[R]=k,t.centerOffset=k-C,t)}}function iCe(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||E6(t.elements.popper,o)&&(t.elements.arrow=o))}const sCe={name:"arrow",enabled:!0,phase:"main",fn:aCe,effect:iCe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nd(e){return e.split("-")[1]}var lCe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uCe(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:td(r*o)/o||0,y:td(n*o)/o||0}}function DF(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,f=e.roundOffsets,v=e.isFixed,m=i.x,h=m===void 0?0:m,x=i.y,w=x===void 0?0:x,O=typeof f=="function"?f({x:h,y:w}):{x:h,y:w};h=O.x,w=O.y;var b=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),_=Kn,$=Gn,P=window;if(l){var C=Nv(r),k="clientHeight",R="clientWidth";if(C===mo(r)&&(C=Zs(r),Ti(C).position!=="static"&&s==="absolute"&&(k="scrollHeight",R="scrollWidth")),C=C,o===Gn||(o===Kn||o===Jo)&&a===Hp){$=Yo;var I=v&&C===P&&P.visualViewport?P.visualViewport.height:C[k];w-=I-n.height,w*=c?1:-1}if(o===Kn||(o===Gn||o===Yo)&&a===Hp){_=Jo;var A=v&&C===P&&P.visualViewport?P.visualViewport.width:C[R];h-=A-n.width,h*=c?1:-1}}var F=Object.assign({position:s},l&&lCe),L=f===!0?uCe({x:h,y:w},mo(r)):{x:h,y:w};if(h=L.x,w=L.y,c){var D;return Object.assign({},F,(D={},D[$]=g?"0":"",D[_]=b?"0":"",D.transform=(P.devicePixelRatio||1)<=1?"translate("+h+"px, "+w+"px)":"translate3d("+h+"px, "+w+"px, 0)",D))}return Object.assign({},F,(t={},t[$]=g?w+"px":"",t[_]=b?h+"px":"",t.transform="",t))}function cCe(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,s=r.roundOffsets,c=s===void 0?!0:s,l={placement:Ha(t.placement),variation:nd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,DF(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,DF(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const dCe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cCe,data:{}};var xh={passive:!0};function fCe(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,s=i===void 0?!0:i,c=mo(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(f){f.addEventListener("scroll",r.update,xh)}),s&&c.addEventListener("resize",r.update,xh),function(){a&&l.forEach(function(f){f.removeEventListener("scroll",r.update,xh)}),s&&c.removeEventListener("resize",r.update,xh)}}const pCe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fCe,data:{}};var vCe={left:"right",right:"left",bottom:"top",top:"bottom"};function dg(e){return e.replace(/left|right|bottom|top/g,function(t){return vCe[t]})}var mCe={start:"end",end:"start"};function BF(e){return e.replace(/start|end/g,function(t){return mCe[t]})}function h2(e){var t=mo(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function g2(e){return rd(Zs(e)).left+h2(e).scrollLeft}function hCe(e,t){var r=mo(e),n=Zs(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;var l=C6();(l||!l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s+g2(e),y:c}}function gCe(e){var t,r=Zs(e),n=h2(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Bl(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Bl(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+g2(e),c=-n.scrollTop;return Ti(o||r).direction==="rtl"&&(s+=Bl(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:c}}function y2(e){var t=Ti(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function k6(e){return["html","body","#document"].indexOf(Qa(e))>=0?e.ownerDocument.body:Wo(e)&&y2(e)?e:k6(q0(e))}function op(e,t){var r;t===void 0&&(t=[]);var n=k6(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=mo(n),i=o?[a].concat(a.visualViewport||[],y2(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(op(q0(i)))}function uO(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yCe(e,t){var r=rd(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function zF(e,t,r){return t===S6?uO(hCe(e,r)):ru(t)?yCe(t,r):uO(gCe(Zs(e)))}function bCe(e){var t=op(q0(e)),r=["absolute","fixed"].indexOf(Ti(e).position)>=0,n=r&&Wo(e)?Nv(e):e;return ru(n)?t.filter(function(o){return ru(o)&&E6(o,n)&&Qa(o)!=="body"}):[]}function _Ce(e,t,r,n){var o=t==="clippingParents"?bCe(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(c,l){var f=zF(e,l,n);return c.top=Bl(f.top,c.top),c.right=My(f.right,c.right),c.bottom=My(f.bottom,c.bottom),c.left=Bl(f.left,c.left),c},zF(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function T6(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ha(n):null,a=n?nd(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(o){case Gn:c={x:i,y:t.y-r.height};break;case Yo:c={x:i,y:t.y+t.height};break;case Jo:c={x:t.x+t.width,y:s};break;case Kn:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var l=o?m2(o):null;if(l!=null){var f=l==="y"?"height":"width";switch(a){case ed:c[l]=c[l]-(t[f]/2-r[f]/2);break;case Hp:c[l]=c[l]+(t[f]/2-r[f]/2);break}}return c}function Gp(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,s=r.boundary,c=s===void 0?BOe:s,l=r.rootBoundary,f=l===void 0?S6:l,v=r.elementContext,m=v===void 0?xf:v,h=r.altBoundary,x=h===void 0?!1:h,w=r.padding,O=w===void 0?0:w,b=$6(typeof O!="number"?O:R6(O,Lv)),g=m===xf?zOe:xf,_=e.rects.popper,$=e.elements[x?g:m],P=_Ce(ru($)?$:$.contextElement||Zs(e.elements.popper),c,f,i),C=rd(e.elements.reference),k=T6({reference:C,element:_,strategy:"absolute",placement:o}),R=uO(Object.assign({},_,k)),I=m===xf?R:C,A={top:P.top-I.top+b.top,bottom:I.bottom-P.bottom+b.bottom,left:P.left-I.left+b.left,right:I.right-P.right+b.right},F=e.modifiersData.offset;if(m===xf&&F){var L=F[o];Object.keys(A).forEach(function(D){var U=[Jo,Yo].indexOf(D)>=0?1:-1,H=[Gn,Yo].indexOf(D)>=0?"y":"x";A[D]+=L[H]*U})}return A}function xCe(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,l=c===void 0?O6:c,f=nd(n),v=f?s?LF:LF.filter(function(x){return nd(x)===f}):Lv,m=v.filter(function(x){return l.indexOf(x)>=0});m.length===0&&(m=v);var h=m.reduce(function(x,w){return x[w]=Gp(e,{placement:w,boundary:o,rootBoundary:a,padding:i})[Ha(w)],x},{});return Object.keys(h).sort(function(x,w){return h[x]-h[w]})}function wCe(e){if(Ha(e)===f2)return[];var t=dg(e);return[BF(e),t,BF(t)]}function SCe(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!0:i,c=r.fallbackPlacements,l=r.padding,f=r.boundary,v=r.rootBoundary,m=r.altBoundary,h=r.flipVariations,x=h===void 0?!0:h,w=r.allowedAutoPlacements,O=t.options.placement,b=Ha(O),g=b===O,_=c||(g||!x?[dg(O)]:wCe(O)),$=[O].concat(_).reduce(function(ce,oe){return ce.concat(Ha(oe)===f2?xCe(t,{placement:oe,boundary:f,rootBoundary:v,padding:l,flipVariations:x,allowedAutoPlacements:w}):oe)},[]),P=t.rects.reference,C=t.rects.popper,k=new Map,R=!0,I=$[0],A=0;A<$.length;A++){var F=$[A],L=Ha(F),D=nd(F)===ed,U=[Gn,Yo].indexOf(L)>=0,H=U?"width":"height",q=Gp(t,{placement:F,boundary:f,rootBoundary:v,altBoundary:m,padding:l}),G=U?D?Jo:Kn:D?Yo:Gn;P[H]>C[H]&&(G=dg(G));var z=dg(G),W=[];if(a&&W.push(q[L]<=0),s&&W.push(q[G]<=0,q[z]<=0),W.every(function(ce){return ce})){I=F,R=!1;break}k.set(F,W)}if(R)for(var te=x?3:1,ne=function(oe){var pe=$.find(function(Re){var ye=k.get(Re);if(ye)return ye.slice(0,oe).every(function(de){return de})});if(pe)return I=pe,"break"},ee=te;ee>0;ee--){var Oe=ne(ee);if(Oe==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}const OCe={name:"flip",enabled:!0,phase:"main",fn:SCe,requiresIfExists:["offset"],data:{_skip:!1}};function UF(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function VF(e){return[Gn,Jo,Yo,Kn].some(function(t){return e[t]>=0})}function CCe(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Gp(t,{elementContext:"reference"}),s=Gp(t,{altBoundary:!0}),c=UF(i,n),l=UF(s,o,a),f=VF(c),v=VF(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:f,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":v})}const ECe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:CCe};function PCe(e,t,r){var n=Ha(e),o=[Kn,Gn].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Kn,Jo].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function $Ce(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=O6.reduce(function(f,v){return f[v]=PCe(v,t.rects,a),f},{}),s=i[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const RCe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$Ce};function kCe(e){var t=e.state,r=e.name;t.modifiersData[r]=T6({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const TCe={name:"popperOffsets",enabled:!0,phase:"read",fn:kCe,data:{}};function ICe(e){return e==="x"?"y":"x"}function jCe(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!1:i,c=r.boundary,l=r.rootBoundary,f=r.altBoundary,v=r.padding,m=r.tether,h=m===void 0?!0:m,x=r.tetherOffset,w=x===void 0?0:x,O=Gp(t,{boundary:c,rootBoundary:l,padding:v,altBoundary:f}),b=Ha(t.placement),g=nd(t.placement),_=!g,$=m2(b),P=ICe($),C=t.modifiersData.popperOffsets,k=t.rects.reference,R=t.rects.popper,I=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,A=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(C){if(a){var D,U=$==="y"?Gn:Kn,H=$==="y"?Yo:Jo,q=$==="y"?"height":"width",G=C[$],z=G+O[U],W=G-O[H],te=h?-R[q]/2:0,ne=g===ed?k[q]:R[q],ee=g===ed?-R[q]:-k[q],Oe=t.elements.arrow,ce=h&&Oe?v2(Oe):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:P6(),pe=oe[U],Re=oe[H],ye=np(0,k[q],ce[q]),de=_?k[q]/2-te-ye-pe-A.mainAxis:ne-ye-pe-A.mainAxis,he=_?-k[q]/2+te+ye+Re+A.mainAxis:ee+ye+Re+A.mainAxis,ve=t.elements.arrow&&Nv(t.elements.arrow),_e=ve?$==="y"?ve.clientTop||0:ve.clientLeft||0:0,ie=(D=F==null?void 0:F[$])!=null?D:0,be=G+de-ie-_e,ge=G+he-ie,Ae=np(h?My(z,be):z,G,h?Bl(W,ge):W);C[$]=Ae,L[$]=Ae-G}if(s){var Be,V=$==="x"?Gn:Kn,X=$==="x"?Yo:Jo,Y=C[P],ae=P==="y"?"height":"width",se=Y+O[V],le=Y-O[X],Ee=[Gn,Kn].indexOf(b)!==-1,Ie=(Be=F==null?void 0:F[P])!=null?Be:0,rt=Ee?se:Y-k[ae]-R[ae]-Ie+A.altAxis,at=Ee?Y+k[ae]+R[ae]-Ie-A.altAxis:le,Le=h&&Ee?nCe(rt,Y,at):np(h?rt:se,Y,h?at:le);C[P]=Le,L[P]=Le-Y}t.modifiersData[n]=L}}const ACe={name:"preventOverflow",enabled:!0,phase:"main",fn:jCe,requiresIfExists:["offset"]};function MCe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function FCe(e){return e===mo(e)||!Wo(e)?h2(e):MCe(e)}function LCe(e){var t=e.getBoundingClientRect(),r=td(t.width)/e.offsetWidth||1,n=td(t.height)/e.offsetHeight||1;return r!==1||n!==1}function NCe(e,t,r){r===void 0&&(r=!1);var n=Wo(t),o=Wo(t)&&LCe(t),a=Zs(t),i=rd(e,o,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Qa(t)!=="body"||y2(a))&&(s=FCe(t)),Wo(t)?(c=rd(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=g2(a))),{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function DCe(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var c=t.get(s);c&&o(c)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function BCe(e){var t=DCe(e);return YOe.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function zCe(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function UCe(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var WF={placement:"bottom",modifiers:[],strategy:"absolute"};function qF(){for(var e=arguments.length,t=new Array(e),r=0;r{a||s(HCe(o)||document.body)},[o,a]),vo(()=>{if(i&&!a)return ky(r,i),()=>{ky(r,null)}},[r,i,a]),a){if(d.isValidElement(n)){const l={ref:c};return d.cloneElement(n,l)}return S.jsx(d.Fragment,{children:n})}return S.jsx(d.Fragment,{children:i&&Ib.createPortal(n,i)})});function GCe(e){return Ue("MuiPopper",e)}qe("MuiPopper",["root"]);const KCe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],QCe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function XCe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function cO(e){return typeof e=="function"?e():e}function YCe(e){return e.nodeType!==void 0}const JCe=e=>{const{classes:t}=e;return Ve({root:["root"]},GCe,t)},ZCe={},eEe=d.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:c,open:l,placement:f,popperOptions:v,popperRef:m,slotProps:h={},slots:x={},TransitionProps:w}=t,O=Ce(t,KCe),b=d.useRef(null),g=sr(b,r),_=d.useRef(null),$=sr(_,m),P=d.useRef($);vo(()=>{P.current=$},[$]),d.useImperativeHandle(m,()=>_.current,[]);const C=XCe(f,i),[k,R]=d.useState(C),[I,A]=d.useState(cO(o));d.useEffect(()=>{_.current&&_.current.forceUpdate()}),d.useEffect(()=>{o&&A(cO(o))},[o]),vo(()=>{if(!I||!l)return;const H=z=>{R(z.placement)};let q=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{H(z)}}];c!=null&&(q=q.concat(c)),v&&v.modifiers!=null&&(q=q.concat(v.modifiers));const G=qCe(I,b.current,j({placement:C},v,{modifiers:q}));return P.current(G),()=>{G.destroy(),P.current(null)}},[I,s,c,l,v,C]);const F={placement:k};w!==null&&(F.TransitionProps=w);const L=JCe(t),D=(n=x.root)!=null?n:"div",U=Qo({elementType:D,externalSlotProps:h.root,externalForwardedProps:O,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:L.root});return S.jsx(D,j({},U,{children:typeof a=="function"?a(F):a}))}),tEe=d.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:l,open:f,placement:v="bottom",popperOptions:m=ZCe,popperRef:h,style:x,transition:w=!1,slotProps:O={},slots:b={}}=t,g=Ce(t,QCe),[_,$]=d.useState(!0),P=()=>{$(!1)},C=()=>{$(!0)};if(!c&&!f&&(!w||_))return null;let k;if(a)k=a;else if(n){const A=cO(n);k=A&&YCe(A)?Pr(A).body:Pr(null).body}const R=!f&&c&&(!w||_)?"none":void 0,I=w?{in:f,onEnter:P,onExited:C}:void 0;return S.jsx(I6,{disablePortal:s,container:k,children:S.jsx(eEe,j({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:w?!_:f,placement:v,popperOptions:m,popperRef:h,slotProps:O,slots:b},g,{style:j({position:"fixed",top:0,left:0,display:R},x),TransitionProps:I,children:o}))})}),rEe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],nEe=J(tEe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),j6=d.forwardRef(function(t,r){var n;const o=x6(),a=Ge({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:c,componentsProps:l,container:f,disablePortal:v,keepMounted:m,modifiers:h,open:x,placement:w,popperOptions:O,popperRef:b,transition:g,slots:_,slotProps:$}=a,P=Ce(a,rEe),C=(n=_==null?void 0:_.root)!=null?n:c==null?void 0:c.Root,k=j({anchorEl:i,container:f,disablePortal:v,keepMounted:m,modifiers:h,open:x,placement:w,popperOptions:O,popperRef:b,transition:g},P);return S.jsx(nEe,j({as:s,direction:o==null?void 0:o.direction,slots:{root:C},slotProps:$??l},k,{ref:r}))}),oEe=["onChange","maxRows","minRows","style","value"];function wh(e){return parseInt(e,10)||0}const aEe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function iEe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const sEe=d.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s}=t,c=Ce(t,oEe),{current:l}=d.useRef(s!=null),f=d.useRef(null),v=sr(r,f),m=d.useRef(null),h=d.useRef(null),x=d.useCallback(()=>{const b=f.current,_=Ko(b).getComputedStyle(b);if(_.width==="0px")return{outerHeightStyle:0,overflowing:!1};const $=h.current;$.style.width=_.width,$.value=b.value||t.placeholder||"x",$.value.slice(-1)===` -`&&($.value+=" ");const P=_.boxSizing,C=wh(_.paddingBottom)+wh(_.paddingTop),k=wh(_.borderBottomWidth)+wh(_.borderTopWidth),R=$.scrollHeight;$.value="x";const I=$.scrollHeight;let A=R;a&&(A=Math.max(Number(a)*I,A)),o&&(A=Math.min(Number(o)*I,A)),A=Math.max(A,I);const F=A+(P==="border-box"?C+k:0),L=Math.abs(A-R)<=1;return{outerHeightStyle:F,overflowing:L}},[o,a,t.placeholder]),w=d.useCallback(()=>{const b=x();if(iEe(b))return;const g=b.outerHeightStyle,_=f.current;m.current!==g&&(m.current=g,_.style.height=`${g}px`),_.style.overflow=b.overflowing?"hidden":""},[x]);vo(()=>{const b=()=>{w()};let g;const _=Id(b),$=f.current,P=Ko($);P.addEventListener("resize",_);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(b),C.observe($)),()=>{_.clear(),cancelAnimationFrame(g),P.removeEventListener("resize",_),C&&C.disconnect()}},[x,w]),vo(()=>{w()});const O=b=>{l||w(),n&&n(b)};return S.jsxs(d.Fragment,{children:[S.jsx("textarea",j({value:s,onChange:O,ref:v,rows:a,style:i},c)),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:j({},aEe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function Ui({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const H0=d.createContext(void 0);function Pa(){return d.useContext(H0)}function lEe(e){return S.jsx(xxe,j({},e,{defaultTheme:s2,themeId:Kc}))}function HF(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Fy(e,t=!1){return e&&(HF(e.value)&&e.value!==""||t&&HF(e.defaultValue)&&e.defaultValue!=="")}function uEe(e){return e.startAdornment}function cEe(e){return Ue("MuiInputBase",e)}const od=qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),dEe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],G0=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Se(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},K0=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},fEe=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:c,hiddenLabel:l,multiline:f,readOnly:v,size:m,startAdornment:h,type:x}=e,w={root:["root",`color${Se(r)}`,n&&"disabled",o&&"error",c&&"fullWidth",i&&"focused",s&&"formControl",m&&m!=="medium"&&`size${Se(m)}`,f&&"multiline",h&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",v&&"readOnly"],input:["input",n&&"disabled",x==="search"&&"inputTypeSearch",f&&"inputMultiline",m==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",v&&"readOnly"]};return Ve(w,cEe,t)},Q0=J("div",{name:"MuiInputBase",slot:"Root",overridesResolver:G0})(({theme:e,ownerState:t})=>j({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${od.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&j({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),X0=J("input",{name:"MuiInputBase",slot:"Input",overridesResolver:K0})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=j({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return j({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${od.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${od.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),pEe=S.jsx(lEe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Y0=d.forwardRef(function(t,r){var n;const o=Ge({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:c,components:l={},componentsProps:f={},defaultValue:v,disabled:m,disableInjectingGlobalStyles:h,endAdornment:x,fullWidth:w=!1,id:O,inputComponent:b="input",inputProps:g={},inputRef:_,maxRows:$,minRows:P,multiline:C=!1,name:k,onBlur:R,onChange:I,onClick:A,onFocus:F,onKeyDown:L,onKeyUp:D,placeholder:U,readOnly:H,renderSuffix:q,rows:G,slotProps:z={},slots:W={},startAdornment:te,type:ne="text",value:ee}=o,Oe=Ce(o,dEe),ce=g.value!=null?g.value:ee,{current:oe}=d.useRef(ce!=null),pe=d.useRef(),Re=d.useCallback(Le=>{},[]),ye=sr(pe,_,g.ref,Re),[de,he]=d.useState(!1),ve=Pa(),_e=Ui({props:o,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});_e.focused=ve?ve.focused:de,d.useEffect(()=>{!ve&&m&&de&&(he(!1),R&&R())},[ve,m,de,R]);const ie=ve&&ve.onFilled,be=ve&&ve.onEmpty,ge=d.useCallback(Le=>{Fy(Le)?ie&&ie():be&&be()},[ie,be]);vo(()=>{oe&&ge({value:ce})},[ce,ge,oe]);const Ae=Le=>{if(_e.disabled){Le.stopPropagation();return}F&&F(Le),g.onFocus&&g.onFocus(Le),ve&&ve.onFocus?ve.onFocus(Le):he(!0)},Be=Le=>{R&&R(Le),g.onBlur&&g.onBlur(Le),ve&&ve.onBlur?ve.onBlur(Le):he(!1)},V=(Le,...De)=>{if(!oe){const ft=Le.target||pe.current;if(ft==null)throw new Error(ki(1));ge({value:ft.value})}g.onChange&&g.onChange(Le,...De),I&&I(Le,...De)};d.useEffect(()=>{ge(pe.current)},[]);const X=Le=>{pe.current&&Le.currentTarget===Le.target&&pe.current.focus(),A&&A(Le)};let Y=b,ae=g;C&&Y==="input"&&(G?ae=j({type:void 0,minRows:G,maxRows:G},ae):ae=j({type:void 0,maxRows:$,minRows:P},ae),Y=sEe);const se=Le=>{ge(Le.animationName==="mui-auto-fill-cancel"?pe.current:{value:"x"})};d.useEffect(()=>{ve&&ve.setAdornedStart(!!te)},[ve,te]);const le=j({},o,{color:_e.color||"primary",disabled:_e.disabled,endAdornment:x,error:_e.error,focused:_e.focused,formControl:ve,fullWidth:w,hiddenLabel:_e.hiddenLabel,multiline:C,size:_e.size,startAdornment:te,type:ne}),Ee=fEe(le),Ie=W.root||l.Root||Q0,rt=z.root||f.root||{},at=W.input||l.Input||X0;return ae=j({},ae,(n=z.input)!=null?n:f.input),S.jsxs(d.Fragment,{children:[!h&&pEe,S.jsxs(Ie,j({},rt,!qp(Ie)&&{ownerState:j({},le,rt.ownerState)},{ref:r,onClick:X},Oe,{className:$e(Ee.root,rt.className,c,H&&"MuiInputBase-readOnly"),children:[te,S.jsx(H0.Provider,{value:null,children:S.jsx(at,j({ownerState:le,"aria-invalid":_e.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:v,disabled:_e.disabled,id:O,onAnimationStart:se,name:k,placeholder:U,readOnly:H,required:_e.required,rows:G,value:ce,onKeyDown:L,onKeyUp:D,type:ne},ae,!qp(at)&&{as:Y,ownerState:j({},le,ae.ownerState)},{ref:ye,className:$e(Ee.input,ae.className,H&&"MuiInputBase-readOnly"),onBlur:Be,onChange:V,onFocus:Ae}))}),x,q?q(j({},_e,{startAdornment:te})):null]}))]})});function vEe(e){return Ue("MuiInput",e)}const wf=j({},od,qe("MuiInput",["root","underline","input"]));function mEe(e){return Ue("MuiOutlinedInput",e)}const ts=j({},od,qe("MuiOutlinedInput",["root","notchedOutline","input"]));function hEe(e){return Ue("MuiFilledInput",e)}const vl=j({},od,qe("MuiFilledInput",["root","underline","input"])),A6=xo(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),gEe=xo(S.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function yEe(e){return Ue("MuiAvatar",e)}qe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const bEe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],_Ee=e=>{const{classes:t,variant:r,colorDefault:n}=e;return Ve({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},yEe,t)},xEe=J("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:j({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:j({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),wEe=J("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),SEe=J(gEe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function OEe({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=d.useState(!1);return d.useEffect(()=>{if(!r&&!n)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),o}const Kp=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",slots:c={},slotProps:l={},imgProps:f,sizes:v,src:m,srcSet:h,variant:x="circular"}=n,w=Ce(n,bEe);let O=null;const b=OEe(j({},f,{src:m,srcSet:h})),g=m||h,_=g&&b!=="error",$=j({},n,{colorDefault:!_,component:s,variant:x}),P=_Ee($),[C,k]=oOe("img",{className:P.img,elementType:wEe,externalForwardedProps:{slots:c,slotProps:{img:j({},f,l.img)}},additionalProps:{alt:o,src:m,srcSet:h,sizes:v},ownerState:$});return _?O=S.jsx(C,j({},k)):a||a===0?O=a:g&&o?O=o[0]:O=S.jsx(SEe,{ownerState:$,className:P.fallback}),S.jsx(xEe,j({as:s,ownerState:$,className:$e(P.root,i),ref:r},w,{children:O}))}),CEe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],EEe={entering:{opacity:1},entered:{opacity:1}},M6=d.forwardRef(function(t,r){const n=_o(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:c,in:l,onEnter:f,onEntered:v,onEntering:m,onExit:h,onExited:x,onExiting:w,style:O,timeout:b=o,TransitionComponent:g=Ea}=t,_=Ce(t,CEe),$=d.useRef(null),P=sr($,s.ref,r),C=U=>H=>{if(U){const q=$.current;H===void 0?U(q):U(q,H)}},k=C(m),R=C((U,H)=>{c2(U);const q=Zc({style:O,timeout:b,easing:c},{mode:"enter"});U.style.webkitTransition=n.transitions.create("opacity",q),U.style.transition=n.transitions.create("opacity",q),f&&f(U,H)}),I=C(v),A=C(w),F=C(U=>{const H=Zc({style:O,timeout:b,easing:c},{mode:"exit"});U.style.webkitTransition=n.transitions.create("opacity",H),U.style.transition=n.transitions.create("opacity",H),h&&h(U)}),L=C(x),D=U=>{a&&a($.current,U)};return S.jsx(g,j({appear:i,in:l,nodeRef:$,onEnter:R,onEntered:I,onEntering:k,onExit:F,onExited:L,onExiting:A,addEndListener:D,timeout:b},_,{children:(U,H)=>d.cloneElement(s,j({style:j({opacity:0,visibility:U==="exited"&&!l?"hidden":void 0},EEe[U],O,s.props.style),ref:P},H))}))});function PEe(e){return Ue("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const $Ee=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],REe=e=>{const{classes:t,invisible:r}=e;return Ve({root:["root",r&&"invisible"]},PEe,t)},kEe=J("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>j({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),F6=d.forwardRef(function(t,r){var n,o,a;const i=Ge({props:t,name:"MuiBackdrop"}),{children:s,className:c,component:l="div",components:f={},componentsProps:v={},invisible:m=!1,open:h,slotProps:x={},slots:w={},TransitionComponent:O=M6,transitionDuration:b}=i,g=Ce(i,$Ee),_=j({},i,{component:l,invisible:m}),$=REe(_),P=(n=x.root)!=null?n:v.root;return S.jsx(O,j({in:h,timeout:b},g,{children:S.jsx(kEe,j({"aria-hidden":!0},P,{as:(o=(a=w.root)!=null?a:f.Root)!=null?o:l,className:$e($.root,c,P==null?void 0:P.className),ownerState:j({},_,P==null?void 0:P.ownerState),classes:$,ref:r,children:s}))}))}),TEe=qe("MuiBox",["root"]),IEe=jy(),Cn=Pxe({themeId:Kc,defaultTheme:IEe,defaultClassName:TEe.root,generateClassName:e2.generate});function jEe(e){return Ue("MuiButton",e)}const Sh=qe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),AEe=d.createContext({}),MEe=d.createContext(void 0),FEe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],LEe=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${Se(t)}`,`size${Se(o)}`,`${a}Size${Se(o)}`,`color${Se(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Se(o)}`],endIcon:["icon","endIcon",`iconSize${Se(o)}`]},c=Ve(s,jEe,i);return j({},i,c)},L6=e=>j({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),NEe=J(zi,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Se(r.color)}`],t[`size${Se(r.size)}`],t[`${r.variant}Size${Se(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return j({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":j({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:jt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:jt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:jt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":j({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Sh.focusVisible}`]:j({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Sh.disabled}`]:j({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${jt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Sh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Sh.disabled}`]:{boxShadow:"none"}}),DEe=J("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Se(r.size)}`]]}})(({ownerState:e})=>j({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},L6(e))),BEe=J("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Se(r.size)}`]]}})(({ownerState:e})=>j({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},L6(e))),$r=d.forwardRef(function(t,r){const n=d.useContext(AEe),o=d.useContext(MEe),a=Wp(n,t),i=Ge({props:a,name:"MuiButton"}),{children:s,color:c="primary",component:l="button",className:f,disabled:v=!1,disableElevation:m=!1,disableFocusRipple:h=!1,endIcon:x,focusVisibleClassName:w,fullWidth:O=!1,size:b="medium",startIcon:g,type:_,variant:$="text"}=i,P=Ce(i,FEe),C=j({},i,{color:c,component:l,disabled:v,disableElevation:m,disableFocusRipple:h,fullWidth:O,size:b,type:_,variant:$}),k=LEe(C),R=g&&S.jsx(DEe,{className:k.startIcon,ownerState:C,children:g}),I=x&&S.jsx(BEe,{className:k.endIcon,ownerState:C,children:x}),A=o||"";return S.jsxs(NEe,j({ownerState:C,className:$e(n.className,k.root,f,A),component:l,disabled:v,focusRipple:!h,focusVisibleClassName:$e(k.focusVisible,w),ref:r,type:_},P,{classes:k,children:[R,s,I]}))});function zEe(e){return Ue("MuiCard",e)}qe("MuiCard",["root"]);const UEe=["className","raised"],VEe=e=>{const{classes:t}=e;return Ve({root:["root"]},zEe,t)},WEe=J(Js,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),du=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=Ce(n,UEe),s=j({},n,{raised:a}),c=VEe(s);return S.jsx(WEe,j({className:$e(c.root,o),elevation:a?8:void 0,ref:r,ownerState:s},i))});function qEe(e){return Ue("MuiCardActions",e)}qe("MuiCardActions",["root","spacing"]);const HEe=["disableSpacing","className"],GEe=e=>{const{classes:t,disableSpacing:r}=e;return Ve({root:["root",!r&&"spacing"]},qEe,t)},KEe=J("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>j({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),N6=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a}=n,i=Ce(n,HEe),s=j({},n,{disableSpacing:o}),c=GEe(s);return S.jsx(KEe,j({className:$e(c.root,a),ownerState:s,ref:r},i))});function QEe(e){return Ue("MuiCardContent",e)}qe("MuiCardContent",["root"]);const XEe=["className","component"],YEe=e=>{const{classes:t}=e;return Ve({root:["root"]},QEe,t)},JEe=J("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Ao=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=Ce(n,XEe),s=j({},n,{component:a}),c=YEe(s);return S.jsx(JEe,j({as:a,className:$e(c.root,o),ownerState:s,ref:r},i))});function ZEe(e){return Ue("MuiCardHeader",e)}const GF=qe("MuiCardHeader",["root","avatar","action","content","title","subheader"]),ePe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],tPe=e=>{const{classes:t}=e;return Ve({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},ZEe,t)},rPe=J("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>j({[`& .${GF.title}`]:t.title,[`& .${GF.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),nPe=J("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),oPe=J("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),aPe=J("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),ml=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:c=!1,subheader:l,subheaderTypographyProps:f,title:v,titleTypographyProps:m}=n,h=Ce(n,ePe),x=j({},n,{component:s,disableTypography:c}),w=tPe(x);let O=v;O!=null&&O.type!==it&&!c&&(O=S.jsx(it,j({variant:a?"body2":"h5",className:w.title,component:"span",display:"block"},m,{children:O})));let b=l;return b!=null&&b.type!==it&&!c&&(b=S.jsx(it,j({variant:a?"body2":"body1",className:w.subheader,color:"text.secondary",component:"span",display:"block"},f,{children:b}))),S.jsxs(rPe,j({className:$e(w.root,i),as:s,ref:r,ownerState:x},h,{children:[a&&S.jsx(nPe,{className:w.avatar,ownerState:x,children:a}),S.jsxs(aPe,{className:w.content,ownerState:x,children:[O,b]}),o&&S.jsx(oPe,{className:w.action,ownerState:x,children:o})]}))});function iPe(e){return Ue("PrivateSwitchBase",e)}qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const sPe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],lPe=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${Se(o)}`],input:["input"]};return Ve(a,iPe,t)},uPe=J(zi)(({ownerState:e})=>j({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),cPe=J("input",{shouldForwardProp:nn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),D6=d.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:c,disableFocusRipple:l=!1,edge:f=!1,icon:v,id:m,inputProps:h,inputRef:x,name:w,onBlur:O,onChange:b,onFocus:g,readOnly:_,required:$=!1,tabIndex:P,type:C,value:k}=t,R=Ce(t,sPe),[I,A]=Jc({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=Pa(),L=W=>{g&&g(W),F&&F.onFocus&&F.onFocus(W)},D=W=>{O&&O(W),F&&F.onBlur&&F.onBlur(W)},U=W=>{if(W.nativeEvent.defaultPrevented)return;const te=W.target.checked;A(te),b&&b(W,te)};let H=c;F&&typeof H>"u"&&(H=F.disabled);const q=C==="checkbox"||C==="radio",G=j({},t,{checked:I,disabled:H,disableFocusRipple:l,edge:f}),z=lPe(G);return S.jsxs(uPe,j({component:"span",className:$e(z.root,i),centerRipple:!0,focusRipple:!l,disabled:H,tabIndex:null,role:void 0,onFocus:L,onBlur:D,ownerState:G,ref:r},R,{children:[S.jsx(cPe,j({autoFocus:n,checked:o,defaultChecked:s,className:z.input,disabled:H,id:q?m:void 0,name:w,onChange:U,readOnly:_,ref:x,required:$,ownerState:G,tabIndex:P,type:C},C==="checkbox"&&k===void 0?{}:{value:k},h)),I?a:v]}))}),dPe=xo(S.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),fPe=xo(S.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),pPe=xo(S.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function vPe(e){return Ue("MuiCheckbox",e)}const ew=qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mPe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],hPe=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${Se(n)}`,`size${Se(o)}`]},i=Ve(a,vPe,t);return j({},t,i)},gPe=J(D6,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Se(r.size)}`],r.color!=="default"&&t[`color${Se(r.color)}`]]}})(({theme:e,ownerState:t})=>j({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:jt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ew.checked}, &.${ew.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ew.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),yPe=S.jsx(fPe,{}),bPe=S.jsx(dPe,{}),_Pe=S.jsx(pPe,{}),ad=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiCheckbox"}),{checkedIcon:i=yPe,color:s="primary",icon:c=bPe,indeterminate:l=!1,indeterminateIcon:f=_Pe,inputProps:v,size:m="medium",className:h}=a,x=Ce(a,mPe),w=l?f:c,O=l?f:i,b=j({},a,{color:s,indeterminate:l,size:m}),g=hPe(b);return S.jsx(gPe,j({type:"checkbox",inputProps:j({"data-indeterminate":l},v),icon:d.cloneElement(w,{fontSize:(n=w.props.fontSize)!=null?n:m}),checkedIcon:d.cloneElement(O,{fontSize:(o=O.props.fontSize)!=null?o:m}),ownerState:b,ref:r,className:$e(g.root,h)},x,{classes:g}))});function xPe(e){return Ue("MuiCircularProgress",e)}qe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const wPe=["className","color","disableShrink","size","style","thickness","value","variant"];let J0=e=>e,KF,QF,XF,YF;const rs=44,SPe=Bi(KF||(KF=J0` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),OPe=Bi(QF||(QF=J0` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),CPe=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${Se(n)}`],svg:["svg"],circle:["circle",`circle${Se(r)}`,o&&"circleDisableShrink"]};return Ve(a,xPe,t)},EPe=J("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Se(r.color)}`]]}})(({ownerState:e,theme:t})=>j({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&cu(XF||(XF=J0` - animation: ${0} 1.4s linear infinite; - `),SPe)),PPe=J("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),$Pe=J("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Se(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>j({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&cu(YF||(YF=J0` - animation: ${0} 1.4s ease-in-out infinite; - `),OPe)),Md=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:s=40,style:c,thickness:l=3.6,value:f=0,variant:v="indeterminate"}=n,m=Ce(n,wPe),h=j({},n,{color:a,disableShrink:i,size:s,thickness:l,value:f,variant:v}),x=CPe(h),w={},O={},b={};if(v==="determinate"){const g=2*Math.PI*((rs-l)/2);w.strokeDasharray=g.toFixed(3),b["aria-valuenow"]=Math.round(f),w.strokeDashoffset=`${((100-f)/100*g).toFixed(3)}px`,O.transform="rotate(-90deg)"}return S.jsx(EPe,j({className:$e(x.root,o),style:j({width:s,height:s},O,c),ownerState:h,ref:r,role:"progressbar"},b,m,{children:S.jsx(PPe,{className:x.svg,ownerState:h,viewBox:`${rs/2} ${rs/2} ${rs} ${rs}`,children:S.jsx($Pe,{className:x.circle,style:w,ownerState:h,cx:rs,cy:rs,r:(rs-l)/2,fill:"none",strokeWidth:l})})}))});function JF(e){return e.substring(2).toLowerCase()}function RPe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=sr(t.ref,s),v=En(x=>{const w=l.current;l.current=!1;const O=Pr(s.current);if(!c.current||!s.current||"clientX"in x&&RPe(x,O))return;if(i.current){i.current=!1;return}let b;x.composedPath?b=x.composedPath().indexOf(s.current)>-1:b=!O.documentElement.contains(x.target)||s.current.contains(x.target),!b&&(r||!w)&&o(x)}),m=x=>w=>{l.current=!0;const O=t.props[x];O&&O(w)},h={ref:f};return a!==!1&&(h[a]=m(a)),d.useEffect(()=>{if(a!==!1){const x=JF(a),w=Pr(s.current),O=()=>{i.current=!0};return w.addEventListener(x,v),w.addEventListener("touchmove",O),()=>{w.removeEventListener(x,v),w.removeEventListener("touchmove",O)}}},[v,a]),n!==!1&&(h[n]=m(n)),d.useEffect(()=>{if(n!==!1){const x=JF(n),w=Pr(s.current);return w.addEventListener(x,v),()=>{w.removeEventListener(x,v)}}},[v,n]),S.jsx(d.Fragment,{children:d.cloneElement(t,h)})}const Uu=Owe({createStyledComponent:J("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Se(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ge({props:e,name:"MuiContainer"})}),TPe=(e,t)=>j({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),IPe=e=>j({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});function jPe(e){const t=Pr(e);return t.body===e?Ko(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ap(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ZF(e){return parseInt(Ko(e).getComputedStyle(e).paddingRight,10)||0}function APe(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function eL(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,c=!APe(i);s&&c&&ap(i,o)})}function tw(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function MPe(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(jPe(n)){const i=n6(Pr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${ZF(n)+i}px`;const s=Pr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${ZF(c)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Pr(n).body;else{const i=n.parentElement,s=Ko(n);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function FPe(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class LPe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&ap(t.modalRef,!1);const o=FPe(r);eL(r,t.mount,t.modalRef,o,!0);const a=tw(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=tw(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=MPe(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=tw(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&ap(t.modalRef,r),eL(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&ap(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const NPe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function DPe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function BPe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function zPe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||BPe(e))}function UPe(e){const t=[],r=[];return Array.from(e.querySelectorAll(NPe)).forEach((n,o)=>{const a=DPe(n);a===-1||!zPe(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function VPe(){return!0}function WPe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=UPe,isEnabled:i=VPe,open:s}=e,c=d.useRef(!1),l=d.useRef(null),f=d.useRef(null),v=d.useRef(null),m=d.useRef(null),h=d.useRef(!1),x=d.useRef(null),w=sr(t.ref,x),O=d.useRef(null);d.useEffect(()=>{!s||!x.current||(h.current=!r)},[r,s]),d.useEffect(()=>{if(!s||!x.current)return;const _=Pr(x.current);return x.current.contains(_.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),h.current&&x.current.focus()),()=>{o||(v.current&&v.current.focus&&(c.current=!0,v.current.focus()),v.current=null)}},[s]),d.useEffect(()=>{if(!s||!x.current)return;const _=Pr(x.current),$=k=>{O.current=k,!(n||!i()||k.key!=="Tab")&&_.activeElement===x.current&&k.shiftKey&&(c.current=!0,f.current&&f.current.focus())},P=()=>{const k=x.current;if(k===null)return;if(!_.hasFocus()||!i()||c.current){c.current=!1;return}if(k.contains(_.activeElement)||n&&_.activeElement!==l.current&&_.activeElement!==f.current)return;if(_.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!h.current)return;let R=[];if((_.activeElement===l.current||_.activeElement===f.current)&&(R=a(x.current)),R.length>0){var I,A;const F=!!((I=O.current)!=null&&I.shiftKey&&((A=O.current)==null?void 0:A.key)==="Tab"),L=R[0],D=R[R.length-1];typeof L!="string"&&typeof D!="string"&&(F?D.focus():L.focus())}else k.focus()};_.addEventListener("focusin",P),_.addEventListener("keydown",$,!0);const C=setInterval(()=>{_.activeElement&&_.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(C),_.removeEventListener("focusin",P),_.removeEventListener("keydown",$,!0)}},[r,n,o,i,s,a]);const b=_=>{v.current===null&&(v.current=_.relatedTarget),h.current=!0,m.current=_.target;const $=t.props.onFocus;$&&$(_)},g=_=>{v.current===null&&(v.current=_.relatedTarget),h.current=!0};return S.jsxs(d.Fragment,{children:[S.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:l,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:w,onFocus:b}),S.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:f,"data-testid":"sentinelEnd"})]})}function qPe(e){return typeof e=="function"?e():e}function HPe(e){return e?e.props.hasOwnProperty("in"):!1}const GPe=new LPe;function KPe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=GPe,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:c,onClose:l,open:f,rootRef:v}=e,m=d.useRef({}),h=d.useRef(null),x=d.useRef(null),w=sr(x,v),[O,b]=d.useState(!f),g=HPe(c);let _=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(_=!1);const $=()=>Pr(h.current),P=()=>(m.current.modalRef=x.current,m.current.mount=h.current,m.current),C=()=>{o.mount(P(),{disableScrollLock:n}),x.current&&(x.current.scrollTop=0)},k=En(()=>{const q=qPe(t)||$().body;o.add(P(),q),x.current&&C()}),R=d.useCallback(()=>o.isTopModal(P()),[o]),I=En(q=>{h.current=q,q&&(f&&R()?C():x.current&&ap(x.current,_))}),A=d.useCallback(()=>{o.remove(P(),_)},[_,o]);d.useEffect(()=>()=>{A()},[A]),d.useEffect(()=>{f?k():(!g||!a)&&A()},[f,A,g,a,k]);const F=q=>G=>{var z;(z=q.onKeyDown)==null||z.call(q,G),!(G.key!=="Escape"||G.which===229||!R())&&(r||(G.stopPropagation(),l&&l(G,"escapeKeyDown")))},L=q=>G=>{var z;(z=q.onClick)==null||z.call(q,G),G.target===G.currentTarget&&l&&l(G,"backdropClick")};return{getRootProps:(q={})=>{const G=Ty(e);delete G.onTransitionEnter,delete G.onTransitionExited;const z=j({},G,q);return j({role:"presentation"},z,{onKeyDown:F(z),ref:w})},getBackdropProps:(q={})=>{const G=q;return j({"aria-hidden":!0},G,{onClick:L(G),open:f})},getTransitionProps:()=>{const q=()=>{b(!1),i&&i()},G=()=>{b(!0),s&&s(),a&&A()};return{onEnter:rO(q,c==null?void 0:c.props.onEnter),onExited:rO(G,c==null?void 0:c.props.onExited)}},rootRef:w,portalRef:I,isTopModal:R,exited:O,hasTransition:g}}function QPe(e){return Ue("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const XPe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],YPe=e=>{const{open:t,exited:r,classes:n}=e;return Ve({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},QPe,n)},JPe=J("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>j({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),ZPe=J(F6,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),b2=d.forwardRef(function(t,r){var n,o,a,i,s,c;const l=Ge({name:"MuiModal",props:t}),{BackdropComponent:f=ZPe,BackdropProps:v,className:m,closeAfterTransition:h=!1,children:x,container:w,component:O,components:b={},componentsProps:g={},disableAutoFocus:_=!1,disableEnforceFocus:$=!1,disableEscapeKeyDown:P=!1,disablePortal:C=!1,disableRestoreFocus:k=!1,disableScrollLock:R=!1,hideBackdrop:I=!1,keepMounted:A=!1,onBackdropClick:F,open:L,slotProps:D,slots:U}=l,H=Ce(l,XPe),q=j({},l,{closeAfterTransition:h,disableAutoFocus:_,disableEnforceFocus:$,disableEscapeKeyDown:P,disablePortal:C,disableRestoreFocus:k,disableScrollLock:R,hideBackdrop:I,keepMounted:A}),{getRootProps:G,getBackdropProps:z,getTransitionProps:W,portalRef:te,isTopModal:ne,exited:ee,hasTransition:Oe}=KPe(j({},q,{rootRef:r})),ce=j({},q,{exited:ee}),oe=YPe(ce),pe={};if(x.props.tabIndex===void 0&&(pe.tabIndex="-1"),Oe){const{onEnter:ie,onExited:be}=W();pe.onEnter=ie,pe.onExited=be}const Re=(n=(o=U==null?void 0:U.root)!=null?o:b.Root)!=null?n:JPe,ye=(a=(i=U==null?void 0:U.backdrop)!=null?i:b.Backdrop)!=null?a:f,de=(s=D==null?void 0:D.root)!=null?s:g.root,he=(c=D==null?void 0:D.backdrop)!=null?c:g.backdrop,ve=Qo({elementType:Re,externalSlotProps:de,externalForwardedProps:H,getSlotProps:G,additionalProps:{ref:r,as:O},ownerState:ce,className:$e(m,de==null?void 0:de.className,oe==null?void 0:oe.root,!ce.open&&ce.exited&&(oe==null?void 0:oe.hidden))}),_e=Qo({elementType:ye,externalSlotProps:he,additionalProps:v,getSlotProps:ie=>z(j({},ie,{onClick:be=>{F&&F(be),ie!=null&&ie.onClick&&ie.onClick(be)}})),className:$e(he==null?void 0:he.className,v==null?void 0:v.className,oe==null?void 0:oe.backdrop),ownerState:ce});return!A&&!L&&(!Oe||ee)?null:S.jsx(I6,{ref:te,container:w,disablePortal:C,children:S.jsxs(Re,j({},ve,{children:[!I&&f?S.jsx(ye,j({},_e)):null,S.jsx(WPe,{disableEnforceFocus:$,disableAutoFocus:_,disableRestoreFocus:k,isEnabled:ne,open:L,children:d.cloneElement(x,pe)})]}))})});function e2e(e){return Ue("MuiDialog",e)}const rw=qe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),B6=d.createContext({}),t2e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],r2e=J(F6,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),n2e=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${Se(r)}`],paper:["paper",`paperScroll${Se(r)}`,`paperWidth${Se(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Ve(i,e2e,t)},o2e=J(b2,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),a2e=J("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Se(r.scroll)}`]]}})(({ownerState:e})=>j({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),i2e=J(Js,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Se(r.scroll)}`],t[`paperWidth${Se(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>j({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${rw.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${rw.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${rw.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Dv=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialog"}),o=_o(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:c,BackdropProps:l,children:f,className:v,disableEscapeKeyDown:m=!1,fullScreen:h=!1,fullWidth:x=!1,maxWidth:w="sm",onBackdropClick:O,onClick:b,onClose:g,open:_,PaperComponent:$=Js,PaperProps:P={},scroll:C="paper",TransitionComponent:k=M6,transitionDuration:R=a,TransitionProps:I}=n,A=Ce(n,t2e),F=j({},n,{disableEscapeKeyDown:m,fullScreen:h,fullWidth:x,maxWidth:w,scroll:C}),L=n2e(F),D=d.useRef(),U=z=>{D.current=z.target===z.currentTarget},H=z=>{b&&b(z),D.current&&(D.current=null,O&&O(z),g&&g(z,"backdropClick"))},q=tu(s),G=d.useMemo(()=>({titleId:q}),[q]);return S.jsx(o2e,j({className:$e(L.root,v),closeAfterTransition:!0,components:{Backdrop:r2e},componentsProps:{backdrop:j({transitionDuration:R,as:c},l)},disableEscapeKeyDown:m,onClose:g,open:_,ref:r,onClick:H,ownerState:F},A,{children:S.jsx(k,j({appear:!0,in:_,timeout:R,role:"presentation"},I,{children:S.jsx(a2e,{className:$e(L.container),onMouseDown:U,ownerState:F,children:S.jsx(i2e,j({as:$,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":q},P,{className:$e(L.paper,P.className),ownerState:F,children:S.jsx(B6.Provider,{value:G,children:f})}))})}))}))});function s2e(e){return Ue("MuiDialogActions",e)}qe("MuiDialogActions",["root","spacing"]);const l2e=["className","disableSpacing"],u2e=e=>{const{classes:t,disableSpacing:r}=e;return Ve({root:["root",!r&&"spacing"]},s2e,t)},c2e=J("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>j({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),_2=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=Ce(n,l2e),s=j({},n,{disableSpacing:a}),c=u2e(s);return S.jsx(c2e,j({className:$e(c.root,o),ownerState:s,ref:r},i))});function d2e(e){return Ue("MuiDialogContent",e)}qe("MuiDialogContent",["root","dividers"]);function f2e(e){return Ue("MuiDialogTitle",e)}const p2e=qe("MuiDialogTitle",["root"]),v2e=["className","dividers"],m2e=e=>{const{classes:t,dividers:r}=e;return Ve({root:["root",r&&"dividers"]},d2e,t)},h2e=J("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>j({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${p2e.root} + &`]:{paddingTop:0}})),Bv=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=Ce(n,v2e),s=j({},n,{dividers:a}),c=m2e(s);return S.jsx(h2e,j({className:$e(c.root,o),ownerState:s,ref:r},i))});function g2e(e){return Ue("MuiDialogContentText",e)}qe("MuiDialogContentText",["root"]);const y2e=["children","className"],b2e=e=>{const{classes:t}=e,n=Ve({root:["root"]},g2e,t);return j({},t,n)},_2e=J(it,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Z0=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=Ce(n,y2e),i=b2e(a);return S.jsx(_2e,j({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:$e(i.root,o)},n,{classes:i}))}),x2e=["className","id"],w2e=e=>{const{classes:t}=e;return Ve({root:["root"]},f2e,t)},S2e=J(it,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),zv=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=Ce(n,x2e),s=n,c=w2e(s),{titleId:l=a}=d.useContext(B6);return S.jsx(S2e,j({component:"h2",className:$e(c.root,o),ownerState:s,ref:r,variant:"h6",id:a??l},i))});function O2e(e){return Ue("MuiDivider",e)}const tL=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),C2e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],E2e=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:c}=e;return Ve({root:["root",t&&"absolute",c,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},O2e,n)},P2e=J("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>j({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:jt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>j({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>j({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>j({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>j({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),$2e=J("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>j({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Ly=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:c=!1,light:l=!1,orientation:f="horizontal",role:v=s!=="hr"?"separator":void 0,textAlign:m="center",variant:h="fullWidth"}=n,x=Ce(n,C2e),w=j({},n,{absolute:o,component:s,flexItem:c,light:l,orientation:f,role:v,textAlign:m,variant:h}),O=E2e(w);return S.jsx(P2e,j({as:s,className:$e(O.root,i),role:v,ref:r,ownerState:w},x,{children:a?S.jsx($2e,{className:O.wrapper,ownerState:w,children:a}):null}))});Ly.muiSkipListHighlight=!0;const R2e=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function k2e(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=Ko(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=a.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,c=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),c=parseInt(l[5],10)}return e==="left"?o?`translateX(${o.right+s-n.left}px)`:`translateX(${a.innerWidth+s-n.left}px)`:e==="right"?o?`translateX(-${n.right-o.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?o?`translateY(${o.bottom+c-n.top}px)`:`translateY(${a.innerHeight+c-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-c}px)`:`translateY(-${n.top+n.height-c}px)`}function T2e(e){return typeof e=="function"?e():e}function Oh(e,t,r){const n=T2e(r),o=k2e(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const z6=d.forwardRef(function(t,r){const n=_o(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:c,container:l,direction:f="down",easing:v=o,in:m,onEnter:h,onEntered:x,onEntering:w,onExit:O,onExited:b,onExiting:g,style:_,timeout:$=a,TransitionComponent:P=Ea}=t,C=Ce(t,R2e),k=d.useRef(null),R=sr(c.ref,k,r),I=z=>W=>{z&&(W===void 0?z(k.current):z(k.current,W))},A=I((z,W)=>{Oh(f,z,l),c2(z),h&&h(z,W)}),F=I((z,W)=>{const te=Zc({timeout:$,style:_,easing:v},{mode:"enter"});z.style.webkitTransition=n.transitions.create("-webkit-transform",j({},te)),z.style.transition=n.transitions.create("transform",j({},te)),z.style.webkitTransform="none",z.style.transform="none",w&&w(z,W)}),L=I(x),D=I(g),U=I(z=>{const W=Zc({timeout:$,style:_,easing:v},{mode:"exit"});z.style.webkitTransition=n.transitions.create("-webkit-transform",W),z.style.transition=n.transitions.create("transform",W),Oh(f,z,l),O&&O(z)}),H=I(z=>{z.style.webkitTransition="",z.style.transition="",b&&b(z)}),q=z=>{i&&i(k.current,z)},G=d.useCallback(()=>{k.current&&Oh(f,k.current,l)},[f,l]);return d.useEffect(()=>{if(m||f==="down"||f==="right")return;const z=Id(()=>{k.current&&Oh(f,k.current,l)}),W=Ko(k.current);return W.addEventListener("resize",z),()=>{z.clear(),W.removeEventListener("resize",z)}},[f,m,l]),d.useEffect(()=>{m||G()},[m,G]),S.jsx(P,j({nodeRef:k,onEnter:A,onEntered:L,onEntering:F,onExit:U,onExited:H,onExiting:D,addEndListener:q,appear:s,in:m,timeout:$},C,{children:(z,W)=>d.cloneElement(c,j({ref:R,style:j({visibility:z==="exited"&&!m?"hidden":void 0},_,c.props.style)},W))}))});function I2e(e){return Ue("MuiDrawer",e)}qe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const j2e=["BackdropProps"],A2e=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],U6=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},M2e=e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Se(r)}`,n!=="temporary"&&`paperAnchorDocked${Se(r)}`]};return Ve(o,I2e,t)},F2e=J(b2,{name:"MuiDrawer",slot:"Root",overridesResolver:U6})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),rL=J("div",{shouldForwardProp:nn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:U6})({flex:"0 0 auto"}),L2e=J(Js,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Se(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${Se(r.anchor)}`]]}})(({theme:e,ownerState:t})=>j({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),V6={left:"right",right:"left",top:"down",bottom:"up"};function N2e(e){return["left","right"].indexOf(e)!==-1}function D2e({direction:e},t){return e==="rtl"&&N2e(t)?V6[t]:t}const B2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDrawer"}),o=_o(),a=Ys(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:c,children:l,className:f,elevation:v=16,hideBackdrop:m=!1,ModalProps:{BackdropProps:h}={},onClose:x,open:w=!1,PaperProps:O={},SlideProps:b,TransitionComponent:g=z6,transitionDuration:_=i,variant:$="temporary"}=n,P=Ce(n.ModalProps,j2e),C=Ce(n,A2e),k=d.useRef(!1);d.useEffect(()=>{k.current=!0},[]);const R=D2e({direction:a?"rtl":"ltr"},s),A=j({},n,{anchor:s,elevation:v,open:w,variant:$},C),F=M2e(A),L=S.jsx(L2e,j({elevation:$==="temporary"?v:0,square:!0},O,{className:$e(F.paper,O.className),ownerState:A,children:l}));if($==="permanent")return S.jsx(rL,j({className:$e(F.root,F.docked,f),ownerState:A,ref:r},C,{children:L}));const D=S.jsx(g,j({in:w,direction:V6[R],timeout:_,appear:k.current},b,{children:L}));return $==="persistent"?S.jsx(rL,j({className:$e(F.root,F.docked,f),ownerState:A,ref:r},C,{children:D})):S.jsx(F2e,j({BackdropProps:j({},c,h,{transitionDuration:_}),className:$e(F.root,F.modal,f),open:w,ownerState:A,onClose:x,hideBackdrop:m,ref:r},C,P,{children:D}))});function z2e(e){return Ue("MuiFab",e)}const nL=qe("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),U2e=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],V2e=e=>{const{color:t,variant:r,classes:n,size:o}=e,a={root:["root",r,`size${Se(o)}`,t==="inherit"?"colorInherit":t]},i=Ve(a,z2e,n);return j({},n,i)},W2e=J(zi,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>nn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Se(r.size)}`],r.color==="inherit"&&t.colorInherit,t[Se(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return j({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${nL.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>j({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${nL.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),q2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFab"}),{children:o,className:a,color:i="default",component:s="button",disabled:c=!1,disableFocusRipple:l=!1,focusVisibleClassName:f,size:v="large",variant:m="circular"}=n,h=Ce(n,U2e),x=j({},n,{color:i,component:s,disabled:c,disableFocusRipple:l,size:v,variant:m}),w=V2e(x);return S.jsx(W2e,j({className:$e(w.root,a),component:s,disabled:c,focusRipple:!l,focusVisibleClassName:$e(w.focusVisible,f),ownerState:x,ref:r},h,{classes:w,children:o}))}),H2e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],G2e=e=>{const{classes:t,disableUnderline:r}=e,o=Ve({root:["root",!r&&"underline"],input:["input"]},hEe,t);return j({},t,o)},K2e=J(Q0,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...G0(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return j({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${vl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${vl.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${vl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${vl.disabled}, .${vl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vl.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&j({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Q2e=J(X0,{name:"MuiFilledInput",slot:"Input",overridesResolver:K0})(({theme:e,ownerState:t})=>j({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),x2=d.forwardRef(function(t,r){var n,o,a,i;const s=Ge({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:l,fullWidth:f=!1,inputComponent:v="input",multiline:m=!1,slotProps:h,slots:x={},type:w="text"}=s,O=Ce(s,H2e),b=j({},s,{fullWidth:f,inputComponent:v,multiline:m,type:w}),g=G2e(s),_={root:{ownerState:b},input:{ownerState:b}},$=h??l?$n(_,h??l):_,P=(n=(o=x.root)!=null?o:c.Root)!=null?n:K2e,C=(a=(i=x.input)!=null?i:c.Input)!=null?a:Q2e;return S.jsx(Y0,j({slots:{root:P,input:C},componentsProps:$,fullWidth:f,inputComponent:v,multiline:m,ref:r,type:w},O,{classes:g}))});x2.muiName="Input";function X2e(e){return Ue("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Y2e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],J2e=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${Se(r)}`,n&&"fullWidth"]};return Ve(o,X2e,t)},Z2e=J("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>j({},t.root,t[`margin${Se(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>j({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),W6=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:c=!1,error:l=!1,focused:f,fullWidth:v=!1,hiddenLabel:m=!1,margin:h="none",required:x=!1,size:w="medium",variant:O="outlined"}=n,b=Ce(n,Y2e),g=j({},n,{color:i,component:s,disabled:c,error:l,fullWidth:v,hiddenLabel:m,margin:h,required:x,size:w,variant:O}),_=J2e(g),[$,P]=d.useState(()=>{let D=!1;return o&&d.Children.forEach(o,U=>{if(!lg(U,["Input","Select"]))return;const H=lg(U,["Select"])?U.props.input:U;H&&uEe(H.props)&&(D=!0)}),D}),[C,k]=d.useState(()=>{let D=!1;return o&&d.Children.forEach(o,U=>{lg(U,["Input","Select"])&&(Fy(U.props,!0)||Fy(U.props.inputProps,!0))&&(D=!0)}),D}),[R,I]=d.useState(!1);c&&R&&I(!1);const A=f!==void 0&&!c?f:R;let F;const L=d.useMemo(()=>({adornedStart:$,setAdornedStart:P,color:i,disabled:c,error:l,filled:C,focused:A,fullWidth:v,hiddenLabel:m,size:w,onBlur:()=>{I(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:x,variant:O}),[$,i,c,l,C,A,v,m,F,x,w,O]);return S.jsx(H0.Provider,{value:L,children:S.jsx(Z2e,j({as:s,ownerState:g,className:$e(_.root,a),ref:r},b,{children:o}))})}),Uv=Iwe({createStyledComponent:J("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ge({props:e,name:"MuiStack"})});function e$e(e){return Ue("MuiFormControlLabel",e)}const Lf=qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),t$e=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],r$e=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e,i={root:["root",r&&"disabled",`labelPlacement${Se(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return Ve(i,e$e,t)},n$e=J("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Lf.label}`]:t.label},t.root,t[`labelPlacement${Se(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>j({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Lf.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Lf.label}`]:{[`&.${Lf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),o$e=J("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Lf.error}`]:{color:(e.vars||e).palette.error.main}})),dO=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:c,disabled:l,disableTypography:f,label:v,labelPlacement:m="end",required:h,slotProps:x={}}=a,w=Ce(a,t$e),O=Pa(),b=(n=l??c.props.disabled)!=null?n:O==null?void 0:O.disabled,g=h??c.props.required,_={disabled:b,required:g};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof c.props[I]>"u"&&typeof a[I]<"u"&&(_[I]=a[I])});const $=Ui({props:a,muiFormControl:O,states:["error"]}),P=j({},a,{disabled:b,labelPlacement:m,required:g,error:$.error}),C=r$e(P),k=(o=x.typography)!=null?o:s.typography;let R=v;return R!=null&&R.type!==it&&!f&&(R=S.jsx(it,j({component:"span"},k,{className:$e(C.label,k==null?void 0:k.className),children:R}))),S.jsxs(n$e,j({className:$e(C.root,i),ownerState:P,ref:r},w,{children:[d.cloneElement(c,_),g?S.jsxs(Uv,{display:"block",children:[R,S.jsxs(o$e,{ownerState:P,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):R]}))});function a$e(e){return Ue("MuiFormGroup",e)}qe("MuiFormGroup",["root","row","error"]);const i$e=["className","row"],s$e=e=>{const{classes:t,row:r,error:n}=e;return Ve({root:["root",r&&"row",n&&"error"]},a$e,t)},l$e=J("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>j({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),u$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=n,i=Ce(n,i$e),s=Pa(),c=Ui({props:n,muiFormControl:s,states:["error"]}),l=j({},n,{row:a,error:c.error}),f=s$e(l);return S.jsx(l$e,j({className:$e(f.root,o),ownerState:l,ref:r},i))});function c$e(e){return Ue("MuiFormHelperText",e)}const oL=qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var aL;const d$e=["children","className","component","disabled","error","filled","focused","margin","required","variant"],f$e=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:c}=e,l={root:["root",o&&"disabled",a&&"error",n&&`size${Se(n)}`,r&&"contained",s&&"focused",i&&"filled",c&&"required"]};return Ve(l,c$e,t)},p$e=J("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Se(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>j({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${oL.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${oL.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),w2=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,s=Ce(n,d$e),c=Pa(),l=Ui({props:n,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=j({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),v=f$e(f);return S.jsx(p$e,j({as:i,ownerState:f,className:$e(v.root,a),ref:r},s,{children:o===" "?aL||(aL=S.jsx("span",{className:"notranslate",children:"​"})):o}))});function v$e(e){return Ue("MuiFormLabel",e)}const ip=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),m$e=["children","className","color","component","disabled","error","filled","focused","required"],h$e=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e,c={root:["root",`color${Se(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ve(c,v$e,t)},g$e=J("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>j({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>j({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ip.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ip.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ip.error}`]:{color:(e.vars||e).palette.error.main}})),y$e=J("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ip.error}`]:{color:(e.vars||e).palette.error.main}})),b$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,s=Ce(n,m$e),c=Pa(),l=Ui({props:n,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=j({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),v=h$e(f);return S.jsxs(g$e,j({as:i,ownerState:f,className:$e(v.root,a),ref:r},s,{children:[o,l.required&&S.jsxs(y$e,{ownerState:f,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]}))}),_$e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function fO(e){return`scale(${e}, ${e**2})`}const x$e={entering:{opacity:1,transform:fO(1)},entered:{opacity:1,transform:"none"}},nw=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qp=d.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:c,onEntered:l,onEntering:f,onExit:v,onExited:m,onExiting:h,style:x,timeout:w="auto",TransitionComponent:O=Ea}=t,b=Ce(t,_$e),g=kl(),_=d.useRef(),$=_o(),P=d.useRef(null),C=sr(P,a.ref,r),k=H=>q=>{if(H){const G=P.current;q===void 0?H(G):H(G,q)}},R=k(f),I=k((H,q)=>{c2(H);const{duration:G,delay:z,easing:W}=Zc({style:x,timeout:w,easing:i},{mode:"enter"});let te;w==="auto"?(te=$.transitions.getAutoHeightDuration(H.clientHeight),_.current=te):te=G,H.style.transition=[$.transitions.create("opacity",{duration:te,delay:z}),$.transitions.create("transform",{duration:nw?te:te*.666,delay:z,easing:W})].join(","),c&&c(H,q)}),A=k(l),F=k(h),L=k(H=>{const{duration:q,delay:G,easing:z}=Zc({style:x,timeout:w,easing:i},{mode:"exit"});let W;w==="auto"?(W=$.transitions.getAutoHeightDuration(H.clientHeight),_.current=W):W=q,H.style.transition=[$.transitions.create("opacity",{duration:W,delay:G}),$.transitions.create("transform",{duration:nw?W:W*.666,delay:nw?G:G||W*.333,easing:z})].join(","),H.style.opacity=0,H.style.transform=fO(.75),v&&v(H)}),D=k(m),U=H=>{w==="auto"&&g.start(_.current||0,H),n&&n(P.current,H)};return S.jsx(O,j({appear:o,in:s,nodeRef:P,onEnter:I,onEntered:A,onEntering:R,onExit:L,onExited:D,onExiting:F,addEndListener:U,timeout:w==="auto"?null:w},b,{children:(H,q)=>d.cloneElement(a,j({style:j({opacity:0,transform:fO(.75),visibility:H==="exited"&&!s?"hidden":void 0},x$e[H],x,a.props.style),ref:C},q))}))});Qp.muiSupportAuto=!0;const w$e=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],S$e=e=>{const{classes:t,disableUnderline:r}=e,o=Ve({root:["root",!r&&"underline"],input:["input"]},vEe,t);return j({},t,o)},O$e=J(Q0,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...G0(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),j({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wf.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wf.disabled}, .${wf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${wf.disabled}:before`]:{borderBottomStyle:"dotted"}})}),C$e=J(X0,{name:"MuiInput",slot:"Input",overridesResolver:K0})({}),e_=d.forwardRef(function(t,r){var n,o,a,i;const s=Ge({props:t,name:"MuiInput"}),{disableUnderline:c,components:l={},componentsProps:f,fullWidth:v=!1,inputComponent:m="input",multiline:h=!1,slotProps:x,slots:w={},type:O="text"}=s,b=Ce(s,w$e),g=S$e(s),$={root:{ownerState:{disableUnderline:c}}},P=x??f?$n(x??f,$):$,C=(n=(o=w.root)!=null?o:l.Root)!=null?n:O$e,k=(a=(i=w.input)!=null?i:l.Input)!=null?a:C$e;return S.jsx(Y0,j({slots:{root:C,input:k},slotProps:P,fullWidth:v,inputComponent:m,multiline:h,ref:r,type:O},b,{classes:g}))});e_.muiName="Input";function E$e(e){return Ue("MuiInputAdornment",e)}const iL=qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var sL;const P$e=["children","className","component","disablePointerEvents","disableTypography","position","variant"],$$e=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Se(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},R$e=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:i}=e,s={root:["root",r&&"disablePointerEvents",o&&`position${Se(o)}`,i,n&&"hiddenLabel",a&&`size${Se(a)}`]};return Ve(s,E$e,t)},k$e=J("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:$$e})(({theme:e,ownerState:t})=>j({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${iL.positionStart}&:not(.${iL.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Cc=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:c=!1,position:l,variant:f}=n,v=Ce(n,P$e),m=Pa()||{};let h=f;f&&m.variant,m&&!h&&(h=m.variant);const x=j({},n,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:s,position:l,variant:h}),w=R$e(x);return S.jsx(H0.Provider,{value:null,children:S.jsx(k$e,j({as:i,ownerState:x,className:$e(w.root,a),ref:r},v,{children:typeof o=="string"&&!c?S.jsx(it,{color:"text.secondary",children:o}):S.jsxs(d.Fragment,{children:[l==="start"?sL||(sL=S.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function T$e(e){return Ue("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const I$e=["disableAnimation","margin","shrink","variant","className"],j$e=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e,c={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${Se(n)}`,i],asterisk:[s&&"asterisk"]},l=Ve(c,T$e,t);return j({},t,l)},A$e=J(b$e,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ip.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>j({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&j({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&j({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&j({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),q6=d.forwardRef(function(t,r){const n=Ge({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,s=Ce(n,I$e),c=Pa();let l=a;typeof l>"u"&&c&&(l=c.filled||c.focused||c.adornedStart);const f=Ui({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),v=j({},n,{disableAnimation:o,formControl:c,shrink:l,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),m=j$e(v);return S.jsx(A$e,j({"data-shrink":l,ownerState:v,ref:r,className:$e(m.root,i)},s,{classes:m}))});function M$e(e){return Ue("MuiLinearProgress",e)}qe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const F$e=["className","color","value","valueBuffer","variant"];let Fd=e=>e,lL,uL,cL,dL,fL,pL;const pO=4,L$e=Bi(lL||(lL=Fd` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`)),N$e=Bi(uL||(uL=Fd` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`)),D$e=Bi(cL||(cL=Fd` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`)),B$e=e=>{const{classes:t,variant:r,color:n}=e,o={root:["root",`color${Se(n)}`,r],dashed:["dashed",`dashedColor${Se(n)}`],bar1:["bar",`barColor${Se(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${Se(n)}`,r==="buffer"&&`color${Se(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Ve(o,M$e,t)},S2=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?V0(e.palette[t].main,.62):U0(e.palette[t].main,.5),z$e=J("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Se(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>j({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:S2(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),U$e=J("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${Se(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=S2(t,e.color);return j({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},cu(dL||(dL=Fd` - animation: ${0} 3s infinite linear; - `),D$e)),V$e=J("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Se(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>j({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${pO}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${pO}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&cu(fL||(fL=Fd` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),L$e)),W$e=J("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Se(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>j({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:S2(t,e.color),transition:`transform .${pO}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&cu(pL||(pL=Fd` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),N$e)),q$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:s,variant:c="indeterminate"}=n,l=Ce(n,F$e),f=j({},n,{color:a,variant:c}),v=B$e(f),m=Ys(),h={},x={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&i!==void 0){h["aria-valuenow"]=Math.round(i),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let w=i-100;m&&(w=-w),x.bar1.transform=`translateX(${w}%)`}if(c==="buffer"&&s!==void 0){let w=(s||0)-100;m&&(w=-w),x.bar2.transform=`translateX(${w}%)`}return S.jsxs(z$e,j({className:$e(v.root,o),ownerState:f,role:"progressbar"},h,{ref:r},l,{children:[c==="buffer"?S.jsx(U$e,{className:v.dashed,ownerState:f}):null,S.jsx(V$e,{className:v.bar1,ownerState:f,style:x.bar1}),c==="determinate"?null:S.jsx(W$e,{className:v.bar2,ownerState:f,style:x.bar2})]}))});function H$e(e){return Ue("MuiLink",e)}const G$e=qe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),H6={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},K$e=e=>H6[e]||e,Q$e=({theme:e,ownerState:t})=>{const r=K$e(t.color),n=Xc(e,`palette.${r}`,!1)||t.color,o=Xc(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:jt(n,.4)},X$e=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Y$e=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root",`underline${Se(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Ve(a,H$e,t)},J$e=J(it,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Se(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>j({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&j({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Q$e({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${G$e.focusVisible}`]:{outline:"auto"}})),Z$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiLink"}),{className:o,color:a="primary",component:i="a",onBlur:s,onFocus:c,TypographyClasses:l,underline:f="always",variant:v="inherit",sx:m}=n,h=Ce(n,X$e),{isFocusVisibleRef:x,onBlur:w,onFocus:O,ref:b}=z0(),[g,_]=d.useState(!1),$=sr(r,b),P=I=>{w(I),x.current===!1&&_(!1),s&&s(I)},C=I=>{O(I),x.current===!0&&_(!0),c&&c(I)},k=j({},n,{color:a,component:i,focusVisible:g,underline:f,variant:v}),R=Y$e(k);return S.jsx(J$e,j({color:a,className:$e(R.root,o),classes:l,component:i,onBlur:P,onFocus:C,ref:$,ownerState:k,variant:v,sx:[...Object.keys(H6).includes(a)?[]:[{color:a}],...Array.isArray(m)?m:[m]]},h))}),Xp=d.createContext({});function eRe(e){return Ue("MuiList",e)}qe("MuiList",["root","padding","dense","subheader"]);const tRe=["children","className","component","dense","disablePadding","subheader"],rRe=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Ve({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},eRe,t)},nRe=J("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>j({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),oRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:c=!1,subheader:l}=n,f=Ce(n,tRe),v=d.useMemo(()=>({dense:s}),[s]),m=j({},n,{component:i,dense:s,disablePadding:c}),h=rRe(m);return S.jsx(Xp.Provider,{value:v,children:S.jsxs(nRe,j({as:i,className:$e(h.root,a),ref:r,ownerState:m},f,{children:[l,o]}))})});function aRe(e){return Ue("MuiListItemIcon",e)}const vL=qe("MuiListItemIcon",["root","alignItemsFlexStart"]),iRe=["className"],sRe=e=>{const{alignItems:t,classes:r}=e;return Ve({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},aRe,r)},lRe=J("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>j({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),G6=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=Ce(n,iRe),i=d.useContext(Xp),s=j({},n,{alignItems:i.alignItems}),c=sRe(s);return S.jsx(lRe,j({className:$e(c.root,o),ownerState:s,ref:r},a))});function uRe(e){return Ue("MuiListItemText",e)}const Ny=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),cRe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],dRe=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return Ve({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},uRe,t)},fRe=J("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ny.primary}`]:t.primary},{[`& .${Ny.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>j({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),pRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:c,primaryTypographyProps:l,secondary:f,secondaryTypographyProps:v}=n,m=Ce(n,cRe),{dense:h}=d.useContext(Xp);let x=c??o,w=f;const O=j({},n,{disableTypography:i,inset:s,primary:!!x,secondary:!!w,dense:h}),b=dRe(O);return x!=null&&x.type!==it&&!i&&(x=S.jsx(it,j({variant:h?"body2":"body1",className:b.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:x}))),w!=null&&w.type!==it&&!i&&(w=S.jsx(it,j({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},v,{children:w}))),S.jsxs(fRe,j({className:$e(b.root,a),ownerState:O,ref:r},m,{children:[x,w]}))}),vRe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ow(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function mL(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function K6(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Sf(e,t,r,n,o,a){let i=!1,s=o(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const c=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!K6(s,a)||c)s=o(e,s,r);else return s.focus(),!0}return!1}const Q6=d.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:c=!1,disableListWrap:l=!1,onKeyDown:f,variant:v="selectedMenu"}=t,m=Ce(t,vRe),h=d.useRef(null),x=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vo(()=>{o&&h.current.focus()},[o]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:$})=>{const P=!h.current.style.width;if(_.clientHeight{const $=h.current,P=_.key,C=Pr($).activeElement;if(P==="ArrowDown")_.preventDefault(),Sf($,C,l,c,ow);else if(P==="ArrowUp")_.preventDefault(),Sf($,C,l,c,mL);else if(P==="Home")_.preventDefault(),Sf($,null,l,c,ow);else if(P==="End")_.preventDefault(),Sf($,null,l,c,mL);else if(P.length===1){const k=x.current,R=P.toLowerCase(),I=performance.now();k.keys.length>0&&(I-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&R!==k.keys[0]&&(k.repeating=!1)),k.lastTime=I,k.keys.push(R);const A=C&&!k.repeating&&K6(C,k);k.previousKeyMatched&&(A||Sf($,C,!1,c,ow,k))?_.preventDefault():k.previousKeyMatched=!1}f&&f(_)},O=sr(h,r);let b=-1;d.Children.forEach(i,(_,$)=>{if(!d.isValidElement(_)){b===$&&(b+=1,b>=i.length&&(b=-1));return}_.props.disabled||(v==="selectedMenu"&&_.props.selected||b===-1)&&(b=$),b===$&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(b+=1,b>=i.length&&(b=-1))});const g=d.Children.map(i,(_,$)=>{if($===b){const P={};return a&&(P.autoFocus=!0),_.props.tabIndex===void 0&&v==="selectedMenu"&&(P.tabIndex=0),d.cloneElement(_,P)}return _});return S.jsx(oRe,j({role:"menu",ref:O,className:s,onKeyDown:w,tabIndex:o?0:-1},m,{children:g}))});function mRe(e){return Ue("MuiPopover",e)}qe("MuiPopover",["root","paper"]);const hRe=["onEntering"],gRe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],yRe=["slotProps"];function hL(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function gL(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function yL(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function aw(e){return typeof e=="function"?e():e}const bRe=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"]},mRe,t)},_Re=J(b2,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),X6=J(Js,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),O2=d.forwardRef(function(t,r){var n,o,a;const i=Ge({props:t,name:"MuiPopover"}),{action:s,anchorEl:c,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:v="anchorEl",children:m,className:h,container:x,elevation:w=8,marginThreshold:O=16,open:b,PaperProps:g={},slots:_,slotProps:$,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:C=Qp,transitionDuration:k="auto",TransitionProps:{onEntering:R}={},disableScrollLock:I=!1}=i,A=Ce(i.TransitionProps,hRe),F=Ce(i,gRe),L=(n=$==null?void 0:$.paper)!=null?n:g,D=d.useRef(),U=sr(D,L.ref),H=j({},i,{anchorOrigin:l,anchorReference:v,elevation:w,marginThreshold:O,externalPaperSlotProps:L,transformOrigin:P,TransitionComponent:C,transitionDuration:k,TransitionProps:A}),q=bRe(H),G=d.useCallback(()=>{if(v==="anchorPosition")return f;const ie=aw(c),ge=(ie&&ie.nodeType===1?ie:Pr(D.current).body).getBoundingClientRect();return{top:ge.top+hL(ge,l.vertical),left:ge.left+gL(ge,l.horizontal)}},[c,l.horizontal,l.vertical,f,v]),z=d.useCallback(ie=>({vertical:hL(ie,P.vertical),horizontal:gL(ie,P.horizontal)}),[P.horizontal,P.vertical]),W=d.useCallback(ie=>{const be={width:ie.offsetWidth,height:ie.offsetHeight},ge=z(be);if(v==="none")return{top:null,left:null,transformOrigin:yL(ge)};const Ae=G();let Be=Ae.top-ge.vertical,V=Ae.left-ge.horizontal;const X=Be+be.height,Y=V+be.width,ae=Ko(aw(c)),se=ae.innerHeight-O,le=ae.innerWidth-O;if(O!==null&&Bese){const Ee=X-se;Be-=Ee,ge.vertical+=Ee}if(O!==null&&Vle){const Ee=Y-le;V-=Ee,ge.horizontal+=Ee}return{top:`${Math.round(Be)}px`,left:`${Math.round(V)}px`,transformOrigin:yL(ge)}},[c,v,G,z,O]),[te,ne]=d.useState(b),ee=d.useCallback(()=>{const ie=D.current;if(!ie)return;const be=W(ie);be.top!==null&&(ie.style.top=be.top),be.left!==null&&(ie.style.left=be.left),ie.style.transformOrigin=be.transformOrigin,ne(!0)},[W]);d.useEffect(()=>(I&&window.addEventListener("scroll",ee),()=>window.removeEventListener("scroll",ee)),[c,I,ee]);const Oe=(ie,be)=>{R&&R(ie,be),ee()},ce=()=>{ne(!1)};d.useEffect(()=>{b&&ee()}),d.useImperativeHandle(s,()=>b?{updatePosition:()=>{ee()}}:null,[b,ee]),d.useEffect(()=>{if(!b)return;const ie=Id(()=>{ee()}),be=Ko(c);return be.addEventListener("resize",ie),()=>{ie.clear(),be.removeEventListener("resize",ie)}},[c,b,ee]);let oe=k;k==="auto"&&!C.muiSupportAuto&&(oe=void 0);const pe=x||(c?Pr(aw(c)).body:void 0),Re=(o=_==null?void 0:_.root)!=null?o:_Re,ye=(a=_==null?void 0:_.paper)!=null?a:X6,de=Qo({elementType:ye,externalSlotProps:j({},L,{style:te?L.style:j({},L.style,{opacity:0})}),additionalProps:{elevation:w,ref:U},ownerState:H,className:$e(q.paper,L==null?void 0:L.className)}),he=Qo({elementType:Re,externalSlotProps:($==null?void 0:$.root)||{},externalForwardedProps:F,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:pe,open:b},ownerState:H,className:$e(q.root,h)}),{slotProps:ve}=he,_e=Ce(he,yRe);return S.jsx(Re,j({},_e,!qp(Re)&&{slotProps:ve,disableScrollLock:I},{children:S.jsx(C,j({appear:!0,in:b,onEntering:Oe,onExited:ce,timeout:oe},A,{children:S.jsx(ye,j({},de,{children:m}))}))}))});function xRe(e){return Ue("MuiMenu",e)}qe("MuiMenu",["root","paper","list"]);const wRe=["onEntering"],SRe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ORe={vertical:"top",horizontal:"right"},CRe={vertical:"top",horizontal:"left"},ERe=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"],list:["list"]},xRe,t)},PRe=J(O2,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$Re=J(X6,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),RRe=J(Q6,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),t_=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:c,disableAutoFocusItem:l=!1,MenuListProps:f={},onClose:v,open:m,PaperProps:h={},PopoverClasses:x,transitionDuration:w="auto",TransitionProps:{onEntering:O}={},variant:b="selectedMenu",slots:g={},slotProps:_={}}=a,$=Ce(a.TransitionProps,wRe),P=Ce(a,SRe),C=Ys(),k=j({},a,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:f,onEntering:O,PaperProps:h,transitionDuration:w,TransitionProps:$,variant:b}),R=ERe(k),I=i&&!l&&m,A=d.useRef(null),F=(z,W)=>{A.current&&A.current.adjustStyleForScrollbar(z,{direction:C?"rtl":"ltr"}),O&&O(z,W)},L=z=>{z.key==="Tab"&&(z.preventDefault(),v&&v(z,"tabKeyDown"))};let D=-1;d.Children.map(s,(z,W)=>{d.isValidElement(z)&&(z.props.disabled||(b==="selectedMenu"&&z.props.selected||D===-1)&&(D=W))});const U=(n=g.paper)!=null?n:$Re,H=(o=_.paper)!=null?o:h,q=Qo({elementType:g.root,externalSlotProps:_.root,ownerState:k,className:[R.root,c]}),G=Qo({elementType:U,externalSlotProps:H,ownerState:k,className:R.paper});return S.jsx(PRe,j({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?ORe:CRe,slots:{paper:U,root:g.root},slotProps:{root:q,paper:G},open:m,ref:r,transitionDuration:w,TransitionProps:j({onEntering:F},$),ownerState:k},P,{classes:x,children:S.jsx(RRe,j({onKeyDown:L,actions:A,autoFocus:i&&(D===-1||l),autoFocusItem:I,variant:b},f,{className:$e(R.list,f.className),children:s}))}))});function kRe(e){return Ue("MuiMenuItem",e)}const Of=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),TRe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],IRe=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},jRe=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,c=Ve({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},kRe,i);return j({},i,c)},ARe=J(zi,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:IRe})(({theme:e,ownerState:t})=>j({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Of.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:jt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Of.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:jt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Of.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:jt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:jt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Of.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Of.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${tL.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${tL.inset}`]:{marginLeft:52},[`& .${Ny.root}`]:{marginTop:0,marginBottom:0},[`& .${Ny.inset}`]:{paddingLeft:36},[`& .${vL.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&j({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${vL.root} svg`]:{fontSize:"1.25rem"}}))),lo=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:l,role:f="menuitem",tabIndex:v,className:m}=n,h=Ce(n,TRe),x=d.useContext(Xp),w=d.useMemo(()=>({dense:i||x.dense||!1,disableGutters:c}),[x.dense,i,c]),O=d.useRef(null);vo(()=>{o&&O.current&&O.current.focus()},[o]);const b=j({},n,{dense:w.dense,divider:s,disableGutters:c}),g=jRe(n),_=sr(O,r);let $;return n.disabled||($=v!==void 0?v:-1),S.jsx(Xp.Provider,{value:w,children:S.jsx(ARe,j({ref:_,role:f,tabIndex:$,component:a,focusVisibleClassName:$e(g.focusVisible,l),className:$e(g.root,m)},h,{ownerState:b,classes:g}))})});function Y6(e){return Ue("MuiNativeSelect",e)}const C2=qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),MRe=["className","disabled","error","IconComponent","inputRef","variant"],FRe=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Se(r)}`,a&&"iconOpen",n&&"disabled"]};return Ve(s,Y6,t)},J6=({ownerState:e,theme:t})=>j({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":j({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${C2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),LRe=J("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:nn,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${C2.multiple}`]:t.multiple}]}})(J6),Z6=({ownerState:e,theme:t})=>j({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${C2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),NRe=J("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Se(r.variant)}`],r.open&&t.iconOpen]}})(Z6),e9=d.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:c="standard"}=t,l=Ce(t,MRe),f=j({},t,{disabled:o,variant:c,error:a}),v=FRe(f);return S.jsxs(d.Fragment,{children:[S.jsx(LRe,j({ownerState:f,className:$e(v.select,n),disabled:o,ref:s||r},l)),t.multiple?null:S.jsx(NRe,{as:i,ownerState:f,className:v.icon})]})}),DRe=["className","children","classes","IconComponent","input","inputProps","variant"],BRe=["root"],zRe=e=>{const{classes:t}=e;return Ve({root:["root"]},Y6,t)},URe=S.jsx(e_,{}),vO=d.forwardRef(function(t,r){const n=Ge({name:"MuiNativeSelect",props:t}),{className:o,children:a,classes:i={},IconComponent:s=A6,input:c=URe,inputProps:l}=n,f=Ce(n,DRe),v=Pa(),m=Ui({props:n,muiFormControl:v,states:["variant"]}),h=j({},n,{classes:i}),x=zRe(h),w=Ce(i,BRe);return S.jsx(d.Fragment,{children:d.cloneElement(c,j({inputComponent:e9,inputProps:j({children:a,classes:w,IconComponent:s,variant:m.variant,type:void 0},l,c?c.props.inputProps:{}),ref:r},f,{className:$e(x.root,c.props.className,o)}))})});vO.muiName="Select";var bL;const VRe=["children","classes","className","label","notched"],WRe=J("fieldset",{shouldForwardProp:nn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),qRe=J("legend",{shouldForwardProp:nn})(({ownerState:e,theme:t})=>j({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&j({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function HRe(e){const{className:t,label:r,notched:n}=e,o=Ce(e,VRe),a=r!=null&&r!=="",i=j({},e,{notched:n,withLabel:a});return S.jsx(WRe,j({"aria-hidden":!0,className:t,ownerState:i},o,{children:S.jsx(qRe,{ownerState:i,children:a?S.jsx("span",{children:r}):bL||(bL=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const GRe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],KRe=e=>{const{classes:t}=e,n=Ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},mEe,t);return j({},t,n)},QRe=J(Q0,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:G0})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return j({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ts.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ts.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ts.focused} .${ts.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ts.error} .${ts.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ts.disabled} .${ts.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&j({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),XRe=J(HRe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),YRe=J(X0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:K0})(({theme:e,ownerState:t})=>j({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),E2=d.forwardRef(function(t,r){var n,o,a,i,s;const c=Ge({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:f=!1,inputComponent:v="input",label:m,multiline:h=!1,notched:x,slots:w={},type:O="text"}=c,b=Ce(c,GRe),g=KRe(c),_=Pa(),$=Ui({props:c,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P=j({},c,{color:$.color||"primary",disabled:$.disabled,error:$.error,focused:$.focused,formControl:_,fullWidth:f,hiddenLabel:$.hiddenLabel,multiline:h,size:$.size,type:O}),C=(n=(o=w.root)!=null?o:l.Root)!=null?n:QRe,k=(a=(i=w.input)!=null?i:l.Input)!=null?a:YRe;return S.jsx(Y0,j({slots:{root:C,input:k},renderSuffix:R=>S.jsx(XRe,{ownerState:P,className:g.notchedOutline,label:m!=null&&m!==""&&$.required?s||(s=S.jsxs(d.Fragment,{children:[m," ","*"]})):m,notched:typeof x<"u"?x:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:f,inputComponent:v,multiline:h,ref:r,type:O},b,{classes:j({},g,{notchedOutline:null})}))});E2.muiName="Input";function JRe(e){return Ue("MuiPagination",e)}qe("MuiPagination",["root","ul","outlined","text"]);const ZRe=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function eke(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:c,page:l,showFirstButton:f=!1,showLastButton:v=!1,siblingCount:m=1}=e,h=Ce(e,ZRe),[x,w]=Jc({controlled:l,default:o,name:r,state:"page"}),O=(I,A)=>{l||w(A),c&&c(I,A)},b=(I,A)=>{const F=A-I+1;return Array.from({length:F},(L,D)=>I+D)},g=b(1,Math.min(t,n)),_=b(Math.max(n-t+1,t+1),n),$=Math.max(Math.min(x-m,n-t-m*2-1),t+2),P=Math.min(Math.max(x+m,t+m*2+2),_.length>0?_[0]-2:n-1),C=[...f?["first"]:[],...s?[]:["previous"],...g,...$>t+2?["start-ellipsis"]:t+1t?[n-t]:[],..._,...i?[]:["next"],...v?["last"]:[]],k=I=>{switch(I){case"first":return 1;case"previous":return x-1;case"next":return x+1;case"last":return n;default:return null}},R=C.map(I=>typeof I=="number"?{onClick:A=>{O(A,I)},type:"page",page:I,selected:I===x,disabled:a,"aria-current":I===x?"true":void 0}:{onClick:A=>{O(A,k(I))},type:I,page:k(I),selected:!1,disabled:a||I.indexOf("ellipsis")===-1&&(I==="next"||I==="last"?x>=n:x<=1)});return j({items:R},h)}function tke(e){return Ue("MuiPaginationItem",e)}const To=qe("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),mO=xo(S.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),hO=xo(S.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),_L=xo(S.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),xL=xo(S.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),rke=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],t9=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Se(r.size)}`],r.variant==="text"&&t[`text${Se(r.color)}`],r.variant==="outlined"&&t[`outlined${Se(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},nke=e=>{const{classes:t,color:r,disabled:n,selected:o,size:a,shape:i,type:s,variant:c}=e,l={root:["root",`size${Se(a)}`,c,i,r!=="standard"&&`color${Se(r)}`,r!=="standard"&&`${c}${Se(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return Ve(l,tke,t)},oke=J("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:t9})(({theme:e,ownerState:t})=>j({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${To.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),ake=J(zi,{name:"MuiPaginationItem",slot:"Root",overridesResolver:t9})(({theme:e,ownerState:t})=>j({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${To.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${To.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${To.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:jt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${To.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:jt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${To.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>j({},t.variant==="text"&&{[`&.${To.selected}`]:j({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${To.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${To.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${To.selected}`]:j({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:jt(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:jt(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:jt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${To.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:jt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${To.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),ike=J("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>j({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),ske=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiPaginationItem"}),{className:o,color:a="standard",component:i,components:s={},disabled:c=!1,page:l,selected:f=!1,shape:v="circular",size:m="medium",slots:h={},type:x="page",variant:w="text"}=n,O=Ce(n,rke),b=j({},n,{color:a,disabled:c,selected:f,shape:v,size:m,type:x,variant:w}),g=Ys(),_=nke(b),P=(g?{previous:h.next||s.next||xL,next:h.previous||s.previous||_L,last:h.first||s.first||mO,first:h.last||s.last||hO}:{previous:h.previous||s.previous||_L,next:h.next||s.next||xL,first:h.first||s.first||mO,last:h.last||s.last||hO})[x];return x==="start-ellipsis"||x==="end-ellipsis"?S.jsx(oke,{ref:r,ownerState:b,className:$e(_.root,o),children:"…"}):S.jsxs(ake,j({ref:r,ownerState:b,component:i,disabled:c,className:$e(_.root,o)},O,{children:[x==="page"&&l,P?S.jsx(ike,{as:P,ownerState:b,className:_.icon}):null]}))}),lke=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],uke=e=>{const{classes:t,variant:r}=e;return Ve({root:["root",r],ul:["ul"]},JRe,t)},cke=J("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),dke=J("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function fke(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const pke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:a,color:i="standard",count:s=1,defaultPage:c=1,disabled:l=!1,getItemAriaLabel:f=fke,hideNextButton:v=!1,hidePrevButton:m=!1,renderItem:h=R=>S.jsx(ske,j({},R)),shape:x="circular",showFirstButton:w=!1,showLastButton:O=!1,siblingCount:b=1,size:g="medium",variant:_="text"}=n,$=Ce(n,lke),{items:P}=eke(j({},n,{componentName:"Pagination"})),C=j({},n,{boundaryCount:o,color:i,count:s,defaultPage:c,disabled:l,getItemAriaLabel:f,hideNextButton:v,hidePrevButton:m,renderItem:h,shape:x,showFirstButton:w,showLastButton:O,siblingCount:b,size:g,variant:_}),k=uke(C);return S.jsx(cke,j({"aria-label":"pagination navigation",className:$e(k.root,a),ownerState:C,ref:r},$,{children:S.jsx(dke,{className:k.ul,ownerState:C,children:P.map((R,I)=>S.jsx("li",{children:h(j({},R,{color:i,"aria-label":f(R.type,R.page,R.selected),shape:x,size:g,variant:_}))},I))})}))});function vke(e){return Ue("MuiScopedCssBaseline",e)}qe("MuiScopedCssBaseline",["root"]);const mke=["className","component","enableColorScheme"],hke=e=>{const{classes:t}=e;return Ve({root:["root"]},vke,t)},gke=J("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={};return t.enableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,o])=>{var a;r[`&${e.getColorSchemeSelector(n).replace(/\s*&/,"")}`]={colorScheme:(a=o.palette)==null?void 0:a.mode}}),j({},TPe(e,t.enableColorScheme),IPe(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},r)}),yke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiScopedCssBaseline"}),{className:o,component:a="div"}=n,i=Ce(n,mke),s=j({},n,{component:a}),c=hke(s);return S.jsx(gke,j({as:a,className:$e(c.root,o),ref:r,ownerState:s},i))});function bke(e){return Ue("MuiSelect",e)}const Cf=qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var wL;const _ke=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],xke=J("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Cf.select}`]:t.select},{[`&.${Cf.select}`]:t[r.variant]},{[`&.${Cf.error}`]:t.error},{[`&.${Cf.multiple}`]:t.multiple}]}})(J6,{[`&.${Cf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),wke=J("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Se(r.variant)}`],r.open&&t.iconOpen]}})(Z6),Ske=J("input",{shouldForwardProp:e=>_6(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function SL(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Oke(e){return e==null||typeof e=="string"&&!e.trim()}const Cke=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Se(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ve(s,bke,t)},Eke=d.forwardRef(function(t,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:c,className:l,defaultOpen:f,defaultValue:v,disabled:m,displayEmpty:h,error:x=!1,IconComponent:w,inputRef:O,labelId:b,MenuProps:g={},multiple:_,name:$,onBlur:P,onChange:C,onClose:k,onFocus:R,onOpen:I,open:A,readOnly:F,renderValue:L,SelectDisplayProps:D={},tabIndex:U,value:H,variant:q="standard"}=t,G=Ce(t,_ke),[z,W]=Jc({controlled:H,default:v,name:"Select"}),[te,ne]=Jc({controlled:A,default:f,name:"Select"}),ee=d.useRef(null),Oe=d.useRef(null),[ce,oe]=d.useState(null),{current:pe}=d.useRef(A!=null),[Re,ye]=d.useState(),de=sr(r,O),he=d.useCallback(We=>{Oe.current=We,We&&oe(We)},[]),ve=ce==null?void 0:ce.parentNode;d.useImperativeHandle(de,()=>({focus:()=>{Oe.current.focus()},node:ee.current,value:z}),[z]),d.useEffect(()=>{f&&te&&ce&&!pe&&(ye(s?null:ve.clientWidth),Oe.current.focus())},[ce,s]),d.useEffect(()=>{i&&Oe.current.focus()},[i]),d.useEffect(()=>{if(!b)return;const We=Pr(Oe.current).getElementById(b);if(We){const et=()=>{getSelection().isCollapsed&&Oe.current.focus()};return We.addEventListener("click",et),()=>{We.removeEventListener("click",et)}}},[b]);const _e=(We,et)=>{We?I&&I(et):k&&k(et),pe||(ye(s?null:ve.clientWidth),ne(We))},ie=We=>{We.button===0&&(We.preventDefault(),Oe.current.focus(),_e(!0,We))},be=We=>{_e(!1,We)},ge=d.Children.toArray(c),Ae=We=>{const et=ge.find(Te=>Te.props.value===We.target.value);et!==void 0&&(W(et.props.value),C&&C(We,et))},Be=We=>et=>{let Te;if(et.currentTarget.hasAttribute("tabindex")){if(_){Te=Array.isArray(z)?z.slice():[];const ze=z.indexOf(We.props.value);ze===-1?Te.push(We.props.value):Te.splice(ze,1)}else Te=We.props.value;if(We.props.onClick&&We.props.onClick(et),z!==Te&&(W(Te),C)){const ze=et.nativeEvent||et,ct=new ze.constructor(ze.type,ze);Object.defineProperty(ct,"target",{writable:!0,value:{value:Te,name:$}}),C(ct,We)}_||_e(!1,et)}},V=We=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(We.key)!==-1&&(We.preventDefault(),_e(!0,We))},X=ce!==null&&te,Y=We=>{!X&&P&&(Object.defineProperty(We,"target",{writable:!0,value:{value:z,name:$}}),P(We))};delete G["aria-invalid"];let ae,se;const le=[];let Ee=!1;(Fy({value:z})||h)&&(L?ae=L(z):Ee=!0);const Ie=ge.map(We=>{if(!d.isValidElement(We))return null;let et;if(_){if(!Array.isArray(z))throw new Error(ki(2));et=z.some(Te=>SL(Te,We.props.value)),et&&Ee&&le.push(We.props.children)}else et=SL(z,We.props.value),et&&Ee&&(se=We.props.children);return d.cloneElement(We,{"aria-selected":et?"true":"false",onClick:Be(We),onKeyUp:Te=>{Te.key===" "&&Te.preventDefault(),We.props.onKeyUp&&We.props.onKeyUp(Te)},role:"option",selected:et,value:void 0,"data-value":We.props.value})});Ee&&(_?le.length===0?ae=null:ae=le.reduce((We,et,Te)=>(We.push(et),Te{const{classes:t}=e;return t},P2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>nn(e)&&e!=="variant",slot:"Root"},kke=J(e_,P2)(""),Tke=J(E2,P2)(""),Ike=J(x2,P2)(""),r_=d.forwardRef(function(t,r){const n=Ge({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:c=!1,displayEmpty:l=!1,IconComponent:f=A6,id:v,input:m,inputProps:h,label:x,labelId:w,MenuProps:O,multiple:b=!1,native:g=!1,onClose:_,onOpen:$,open:P,renderValue:C,SelectDisplayProps:k,variant:R="outlined"}=n,I=Ce(n,Pke),A=g?e9:Eke,F=Pa(),L=Ui({props:n,muiFormControl:F,states:["variant","error"]}),D=L.variant||R,U=j({},n,{variant:D,classes:i}),H=Rke(U),q=Ce(H,$ke),G=m||{standard:S.jsx(kke,{ownerState:U}),outlined:S.jsx(Tke,{label:x,ownerState:U}),filled:S.jsx(Ike,{ownerState:U})}[D],z=sr(r,G.ref);return S.jsx(d.Fragment,{children:d.cloneElement(G,j({inputComponent:A,inputProps:j({children:a,error:L.error,IconComponent:f,variant:D,type:void 0,multiple:b},g?{id:v}:{autoWidth:o,defaultOpen:c,displayEmpty:l,labelId:w,MenuProps:O,onClose:_,onOpen:$,open:P,renderValue:C,SelectDisplayProps:j({id:v},k)},h,{classes:h?$n(q,h.classes):q},m?m.props.inputProps:{})},(b&&g||l)&&D==="outlined"?{notched:!0}:{},{ref:z,className:$e(G.props.className,s,H.root)},!m&&{variant:D},I))})});r_.muiName="Select";function jke(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=kl();d.useEffect(()=>{if(!o)return;function b(g){g.defaultPrevented||(g.key==="Escape"||g.key==="Esc")&&(n==null||n(g,"escapeKeyDown"))}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[o,n]);const s=En((b,g)=>{n==null||n(b,g)}),c=En(b=>{!n||b==null||i.start(b,()=>{s(null,"timeout")})});d.useEffect(()=>(o&&c(t),i.clear),[o,t,c,i]);const l=b=>{n==null||n(b,"clickaway")},f=i.clear,v=d.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),m=b=>g=>{const _=b.onBlur;_==null||_(g),v()},h=b=>g=>{const _=b.onFocus;_==null||_(g),f()},x=b=>g=>{const _=b.onMouseEnter;_==null||_(g),f()},w=b=>g=>{const _=b.onMouseLeave;_==null||_(g),v()};return d.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",v),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",f)}},[r,o,v,f]),{getRootProps:(b={})=>{const g=j({},Ty(e),Ty(b));return j({role:"presentation"},b,g,{onBlur:m(g),onFocus:h(g),onMouseEnter:x(g),onMouseLeave:w(g)})},onClickAway:l}}function Ake(e){return Ue("MuiSnackbarContent",e)}qe("MuiSnackbarContent",["root","message","action"]);const Mke=["action","className","message","role"],Fke=e=>{const{classes:t}=e;return Ve({root:["root"],action:["action"],message:["message"]},Ake,t)},Lke=J(Js,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=Fwe(e.palette.background.default,t);return j({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),Nke=J("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),Dke=J("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Bke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:s="alert"}=n,c=Ce(n,Mke),l=n,f=Fke(l);return S.jsxs(Lke,j({role:s,square:!0,elevation:6,className:$e(f.root,a),ownerState:l,ref:r},c,{children:[S.jsx(Nke,{className:f.message,ownerState:l,children:i}),o?S.jsx(Dke,{className:f.action,ownerState:l,children:o}):null]}))});function zke(e){return Ue("MuiSnackbar",e)}qe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Uke=["onEnter","onExited"],Vke=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Wke=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${Se(r.vertical)}${Se(r.horizontal)}`]};return Ve(n,zke,t)},OL=J("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${Se(r.anchorOrigin.vertical)}${Se(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return j({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:j({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),qke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSnackbar"}),o=_o(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:f,className:v,ClickAwayListenerProps:m,ContentProps:h,disableWindowBlurListener:x=!1,message:w,open:O,TransitionComponent:b=Qp,transitionDuration:g=a,TransitionProps:{onEnter:_,onExited:$}={}}=n,P=Ce(n.TransitionProps,Uke),C=Ce(n,Vke),k=j({},n,{anchorOrigin:{vertical:s,horizontal:c},autoHideDuration:l,disableWindowBlurListener:x,TransitionComponent:b,transitionDuration:g}),R=Wke(k),{getRootProps:I,onClickAway:A}=jke(j({},k)),[F,L]=d.useState(!0),D=Qo({elementType:OL,getSlotProps:I,externalForwardedProps:C,ownerState:k,additionalProps:{ref:r},className:[R.root,v]}),U=q=>{L(!0),$&&$(q)},H=(q,G)=>{L(!1),_&&_(q,G)};return!O&&F?null:S.jsx(kPe,j({onClickAway:A},m,{children:S.jsx(OL,j({},D,{children:S.jsx(b,j({appear:!0,in:O,timeout:g,direction:s==="top"?"down":"up",onEnter:H,onExited:U},P,{children:f||S.jsx(Bke,j({message:w,action:i},h))}))}))}))});function Hke(e){return Ue("MuiTooltip",e)}const xs=qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Gke=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Kke(e){return Math.round(e*1e5)/1e5}const Qke=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${Se(a.split("-")[0])}`],arrow:["arrow"]};return Ve(i,Hke,t)},Xke=J(j6,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>j({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${xs.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${xs.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${xs.arrow}`]:j({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${xs.arrow}`]:j({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Yke=J("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Se(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>j({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:jt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Kke(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${xs.popper}[data-popper-placement*="left"] &`]:j({transformOrigin:"right center"},t.isRtl?j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):j({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${xs.popper}[data-popper-placement*="right"] &`]:j({transformOrigin:"left center"},t.isRtl?j({marginRight:"14px"},t.touch&&{marginRight:"24px"}):j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${xs.popper}[data-popper-placement*="top"] &`]:j({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${xs.popper}[data-popper-placement*="bottom"] &`]:j({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Jke=J("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:jt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Ch=!1;const CL=new Mv;let Ef={x:0,y:0};function Eh(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Wr=d.forwardRef(function(t,r){var n,o,a,i,s,c,l,f,v,m,h,x,w,O,b,g,_,$,P;const C=Ge({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:R,components:I={},componentsProps:A={},describeChild:F=!1,disableFocusListener:L=!1,disableHoverListener:D=!1,disableInteractive:U=!1,disableTouchListener:H=!1,enterDelay:q=100,enterNextDelay:G=0,enterTouchDelay:z=700,followCursor:W=!1,id:te,leaveDelay:ne=0,leaveTouchDelay:ee=1500,onClose:Oe,onOpen:ce,open:oe,placement:pe="bottom",PopperComponent:Re,PopperProps:ye={},slotProps:de={},slots:he={},title:ve,TransitionComponent:_e=Qp,TransitionProps:ie}=C,be=Ce(C,Gke),ge=d.isValidElement(R)?R:S.jsx("span",{children:R}),Ae=_o(),Be=Ys(),[V,X]=d.useState(),[Y,ae]=d.useState(null),se=d.useRef(!1),le=U||W,Ee=kl(),Ie=kl(),rt=kl(),at=kl(),[Le,De]=Jc({controlled:oe,default:!1,name:"Tooltip",state:"open"});let ft=Le;const Pt=tu(te),Et=d.useRef(),We=En(()=>{Et.current!==void 0&&(document.body.style.WebkitUserSelect=Et.current,Et.current=void 0),at.clear()});d.useEffect(()=>We,[We]);const et=ht=>{CL.clear(),Ch=!0,De(!0),ce&&!ft&&ce(ht)},Te=En(ht=>{CL.start(800+ne,()=>{Ch=!1}),De(!1),Oe&&ft&&Oe(ht),Ee.start(Ae.transitions.duration.shortest,()=>{se.current=!1})}),ze=ht=>{se.current&&ht.type!=="touchstart"||(V&&V.removeAttribute("title"),Ie.clear(),rt.clear(),q||Ch&&G?Ie.start(Ch?G:q,()=>{et(ht)}):et(ht))},ct=ht=>{Ie.clear(),rt.start(ne,()=>{Te(ht)})},{isFocusVisibleRef:bt,onBlur:Jt,onFocus:Rr,ref:hn}=z0(),[,oa]=d.useState(!1),Xn=ht=>{Jt(ht),bt.current===!1&&(oa(!1),ct(ht))},Vi=ht=>{V||X(ht.currentTarget),Rr(ht),bt.current===!0&&(oa(!0),ze(ht))},Jv=ht=>{se.current=!0;const yn=ge.props;yn.onTouchStart&&yn.onTouchStart(ht)},m_=ht=>{Jv(ht),rt.clear(),Ee.clear(),We(),Et.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",at.start(z,()=>{document.body.style.WebkitUserSelect=Et.current,ze(ht)})},Zv=ht=>{ge.props.onTouchEnd&&ge.props.onTouchEnd(ht),We(),rt.start(ee,()=>{Te(ht)})};d.useEffect(()=>{if(!ft)return;function ht(yn){(yn.key==="Escape"||yn.key==="Esc")&&Te(yn)}return document.addEventListener("keydown",ht),()=>{document.removeEventListener("keydown",ht)}},[Te,ft]);const h_=sr(ge.ref,hn,X,r);!ve&&ve!==0&&(ft=!1);const Vd=d.useRef(),g_=ht=>{const yn=ge.props;yn.onMouseMove&&yn.onMouseMove(ht),Ef={x:ht.clientX,y:ht.clientY},Vd.current&&Vd.current.update()},oi={},Wd=typeof ve=="string";F?(oi.title=!ft&&Wd&&!D?ve:null,oi["aria-describedby"]=ft?Pt:null):(oi["aria-label"]=Wd?ve:null,oi["aria-labelledby"]=ft&&!Wd?Pt:null);const gn=j({},oi,be,ge.props,{className:$e(be.className,ge.props.className),onTouchStart:Jv,ref:h_},W?{onMouseMove:g_}:{}),nl={};H||(gn.onTouchStart=m_,gn.onTouchEnd=Zv),D||(gn.onMouseOver=Eh(ze,gn.onMouseOver),gn.onMouseLeave=Eh(ct,gn.onMouseLeave),le||(nl.onMouseOver=ze,nl.onMouseLeave=ct)),L||(gn.onFocus=Eh(Vi,gn.onFocus),gn.onBlur=Eh(Xn,gn.onBlur),le||(nl.onFocus=Vi,nl.onBlur=Xn));const y_=d.useMemo(()=>{var ht;let yn=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return(ht=ye.popperOptions)!=null&&ht.modifiers&&(yn=yn.concat(ye.popperOptions.modifiers)),j({},ye.popperOptions,{modifiers:yn})},[Y,ye]),ol=j({},C,{isRtl:Be,arrow:k,disableInteractive:le,placement:pe,PopperComponentProp:Re,touch:se.current}),qd=Qke(ol),em=(n=(o=he.popper)!=null?o:I.Popper)!=null?n:Xke,tm=(a=(i=(s=he.transition)!=null?s:I.Transition)!=null?i:_e)!=null?a:Qp,rm=(c=(l=he.tooltip)!=null?l:I.Tooltip)!=null?c:Yke,nm=(f=(v=he.arrow)!=null?v:I.Arrow)!=null?f:Jke,om=vc(em,j({},ye,(m=de.popper)!=null?m:A.popper,{className:$e(qd.popper,ye==null?void 0:ye.className,(h=(x=de.popper)!=null?x:A.popper)==null?void 0:h.className)}),ol),b_=vc(tm,j({},ie,(w=de.transition)!=null?w:A.transition),ol),__=vc(rm,j({},(O=de.tooltip)!=null?O:A.tooltip,{className:$e(qd.tooltip,(b=(g=de.tooltip)!=null?g:A.tooltip)==null?void 0:b.className)}),ol),x_=vc(nm,j({},(_=de.arrow)!=null?_:A.arrow,{className:$e(qd.arrow,($=(P=de.arrow)!=null?P:A.arrow)==null?void 0:$.className)}),ol);return S.jsxs(d.Fragment,{children:[d.cloneElement(ge,gn),S.jsx(em,j({as:Re??j6,placement:pe,anchorEl:W?{getBoundingClientRect:()=>({top:Ef.y,left:Ef.x,right:Ef.x,bottom:Ef.y,width:0,height:0})}:V,popperRef:Vd,open:V?ft:!1,id:Pt,transition:!0},nl,om,{popperOptions:y_,children:({TransitionProps:ht})=>S.jsx(tm,j({timeout:Ae.transitions.duration.shorter},ht,b_,{children:S.jsxs(rm,j({},__,{children:[ve,k?S.jsx(nm,j({},x_,{ref:ae})):null]}))}))}))]})});function Zke(e){return Ue("MuiSwitch",e)}const wn=qe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),eTe=["className","color","edge","size","sx"],tTe=e=>{const{classes:t,edge:r,size:n,color:o,checked:a,disabled:i}=e,s={root:["root",r&&`edge${Se(r)}`,`size${Se(n)}`],switchBase:["switchBase",`color${Se(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Ve(s,Zke,t);return j({},t,c)},rTe=J("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Se(r.edge)}`],t[`size${Se(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${wn.thumb}`]:{width:16,height:16},[`& .${wn.switchBase}`]:{padding:4,[`&.${wn.checked}`]:{transform:"translateX(16px)"}}}}]}),nTe=J(D6,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${wn.input}`]:t.input},r.color!=="default"&&t[`color${Se(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${wn.checked}`]:{transform:"translateX(20px)"},[`&.${wn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${wn.checked} + .${wn.track}`]:{opacity:.5},[`&.${wn.disabled} + .${wn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${wn.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:jt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${wn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:jt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?V0(e.palette[t].main,.62):U0(e.palette[t].main,.55)}`}},[`&.${wn.checked} + .${wn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),oTe=J("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),aTe=J("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),$2=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:c}=n,l=Ce(n,eTe),f=j({},n,{color:a,edge:i,size:s}),v=tTe(f),m=S.jsx(aTe,{className:v.thumb,ownerState:f});return S.jsxs(rTe,{className:$e(v.root,o),sx:c,ownerState:f,children:[S.jsx(nTe,j({type:"checkbox",icon:m,checkedIcon:m,ref:r,ownerState:f},l,{classes:j({},v,{root:v.switchBase})})),S.jsx(oTe,{className:v.track,ownerState:f})]})});function iTe(e){return Ue("MuiTab",e)}const ns=qe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),sTe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],lTe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:s,disabled:c}=e,l={root:["root",a&&i&&"labelIcon",`textColor${Se(r)}`,n&&"fullWidth",o&&"wrapped",s&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return Ve(l,iTe,t)},uTe=J(zi,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Se(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${ns.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>j({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${ns.iconWrapper}`]:j({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${ns.selected}`]:{opacity:1},[`&.${ns.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ns.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ns.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ns.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ns.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),r9=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:c,iconPosition:l="top",indicator:f,label:v,onChange:m,onClick:h,onFocus:x,selected:w,selectionFollowsFocus:O,textColor:b="inherit",value:g,wrapped:_=!1}=n,$=Ce(n,sTe),P=j({},n,{disabled:a,disableFocusRipple:i,selected:w,icon:!!c,iconPosition:l,label:!!v,fullWidth:s,textColor:b,wrapped:_}),C=lTe(P),k=c&&v&&d.isValidElement(c)?d.cloneElement(c,{className:$e(C.iconWrapper,c.props.className)}):c,R=A=>{!w&&m&&m(A,g),h&&h(A)},I=A=>{O&&!w&&m&&m(A,g),x&&x(A)};return S.jsxs(uTe,j({focusRipple:!i,className:$e(C.root,o),ref:r,role:"tab","aria-selected":w,disabled:a,onClick:R,onFocus:I,ownerState:P,tabIndex:w?0:-1},$,{children:[l==="top"||l==="start"?S.jsxs(d.Fragment,{children:[k,v]}):S.jsxs(d.Fragment,{children:[v,k]}),f]}))}),n9=d.createContext();function cTe(e){return Ue("MuiTable",e)}qe("MuiTable",["root","stickyHeader"]);const dTe=["className","component","padding","size","stickyHeader"],fTe=e=>{const{classes:t,stickyHeader:r}=e;return Ve({root:["root",r&&"stickyHeader"]},cTe,t)},pTe=J("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>j({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":j({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),EL="table",o9=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTable"}),{className:o,component:a=EL,padding:i="normal",size:s="medium",stickyHeader:c=!1}=n,l=Ce(n,dTe),f=j({},n,{component:a,padding:i,size:s,stickyHeader:c}),v=fTe(f),m=d.useMemo(()=>({padding:i,size:s,stickyHeader:c}),[i,s,c]);return S.jsx(n9.Provider,{value:m,children:S.jsx(pTe,j({as:a,role:a===EL?null:"table",ref:r,className:$e(v.root,o),ownerState:f},l))})}),n_=d.createContext();function vTe(e){return Ue("MuiTableBody",e)}qe("MuiTableBody",["root"]);const mTe=["className","component"],hTe=e=>{const{classes:t}=e;return Ve({root:["root"]},vTe,t)},gTe=J("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),yTe={variant:"body"},PL="tbody",a9=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableBody"}),{className:o,component:a=PL}=n,i=Ce(n,mTe),s=j({},n,{component:a}),c=hTe(s);return S.jsx(n_.Provider,{value:yTe,children:S.jsx(gTe,j({className:$e(c.root,o),as:a,ref:r,role:a===PL?null:"rowgroup",ownerState:s},i))})});function bTe(e){return Ue("MuiTableCell",e)}const _Te=qe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),xTe=["align","className","component","padding","scope","size","sortDirection","variant"],wTe=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${Se(n)}`,o!=="normal"&&`padding${Se(o)}`,`size${Se(a)}`]};return Ve(s,bTe,t)},STe=J("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Se(r.size)}`],r.padding!=="normal"&&t[`padding${Se(r.padding)}`],r.align!=="inherit"&&t[`align${Se(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>j({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?V0(jt(e.palette.divider,1),.88):U0(jt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${_Te.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),dn=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:c,size:l,sortDirection:f,variant:v}=n,m=Ce(n,xTe),h=d.useContext(n9),x=d.useContext(n_),w=x&&x.variant==="head";let O;i?O=i:O=w?"th":"td";let b=c;O==="td"?b=void 0:!b&&w&&(b="col");const g=v||x&&x.variant,_=j({},n,{align:o,component:O,padding:s||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:f,stickyHeader:g==="head"&&h&&h.stickyHeader,variant:g}),$=wTe(_);let P=null;return f&&(P=f==="asc"?"ascending":"descending"),S.jsx(STe,j({as:O,ref:r,className:$e($.root,a),"aria-sort":P,scope:b,ownerState:_},m))});function OTe(e){return Ue("MuiTableHead",e)}qe("MuiTableHead",["root"]);const CTe=["className","component"],ETe=e=>{const{classes:t}=e;return Ve({root:["root"]},OTe,t)},PTe=J("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),$Te={variant:"head"},$L="thead",i9=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableHead"}),{className:o,component:a=$L}=n,i=Ce(n,CTe),s=j({},n,{component:a}),c=ETe(s);return S.jsx(n_.Provider,{value:$Te,children:S.jsx(PTe,j({as:a,className:$e(c.root,o),ref:r,role:a===$L?null:"rowgroup",ownerState:s},i))})});function RTe(e){return Ue("MuiToolbar",e)}qe("MuiToolbar",["root","gutters","regular","dense"]);const kTe=["className","component","disableGutters","variant"],TTe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ve({root:["root",!r&&"gutters",n]},RTe,t)},ITe=J("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>j({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Ld=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=n,c=Ce(n,kTe),l=j({},n,{component:a,disableGutters:i,variant:s}),f=TTe(l);return S.jsx(ITe,j({as:a,className:$e(f.root,o),ref:r,ownerState:l},c))}),s9=xo(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),l9=xo(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),jTe=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],ATe=d.forwardRef(function(t,r){var n,o,a,i,s,c,l,f;const{backIconButtonProps:v,count:m,disabled:h=!1,getItemAriaLabel:x,nextIconButtonProps:w,onPageChange:O,page:b,rowsPerPage:g,showFirstButton:_,showLastButton:$,slots:P={},slotProps:C={}}=t,k=Ce(t,jTe),R=Ys(),I=de=>{O(de,0)},A=de=>{O(de,b-1)},F=de=>{O(de,b+1)},L=de=>{O(de,Math.max(0,Math.ceil(m/g)-1))},D=(n=P.firstButton)!=null?n:or,U=(o=P.lastButton)!=null?o:or,H=(a=P.nextButton)!=null?a:or,q=(i=P.previousButton)!=null?i:or,G=(s=P.firstButtonIcon)!=null?s:mO,z=(c=P.lastButtonIcon)!=null?c:hO,W=(l=P.nextButtonIcon)!=null?l:l9,te=(f=P.previousButtonIcon)!=null?f:s9,ne=R?U:D,ee=R?H:q,Oe=R?q:H,ce=R?D:U,oe=R?C.lastButton:C.firstButton,pe=R?C.nextButton:C.previousButton,Re=R?C.previousButton:C.nextButton,ye=R?C.firstButton:C.lastButton;return S.jsxs("div",j({ref:r},k,{children:[_&&S.jsx(ne,j({onClick:I,disabled:h||b===0,"aria-label":x("first",b),title:x("first",b)},oe,{children:R?S.jsx(z,j({},C.lastButtonIcon)):S.jsx(G,j({},C.firstButtonIcon))})),S.jsx(ee,j({onClick:A,disabled:h||b===0,color:"inherit","aria-label":x("previous",b),title:x("previous",b)},pe??v,{children:R?S.jsx(W,j({},C.nextButtonIcon)):S.jsx(te,j({},C.previousButtonIcon))})),S.jsx(Oe,j({onClick:F,disabled:h||(m!==-1?b>=Math.ceil(m/g)-1:!1),color:"inherit","aria-label":x("next",b),title:x("next",b)},Re??w,{children:R?S.jsx(te,j({},C.previousButtonIcon)):S.jsx(W,j({},C.nextButtonIcon))})),$&&S.jsx(ce,j({onClick:L,disabled:h||b>=Math.ceil(m/g)-1,"aria-label":x("last",b),title:x("last",b)},ye,{children:R?S.jsx(G,j({},C.firstButtonIcon)):S.jsx(z,j({},C.lastButtonIcon))}))]}))});function MTe(e){return Ue("MuiTablePagination",e)}const sp=qe("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var RL;const FTe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],LTe=J(dn,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),NTe=J(Ld,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>j({[`& .${sp.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${sp.actions}`]:{flexShrink:0,marginLeft:20}})),DTe=J("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),BTe=J("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>j({},e.typography.body2,{flexShrink:0})),zTe=J(r_,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>j({[`& .${sp.selectIcon}`]:t.selectIcon,[`& .${sp.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${sp.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),UTe=J(lo,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),VTe=J("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>j({},e.typography.body2,{flexShrink:0}));function WTe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function qTe(e){return`Go to ${e} page`}const HTe=e=>{const{classes:t}=e;return Ve({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},MTe,t)},kL=d.forwardRef(function(t,r){var n;const o=Ge({props:t,name:"MuiTablePagination"}),{ActionsComponent:a=ATe,backIconButtonProps:i,className:s,colSpan:c,component:l=dn,count:f,disabled:v=!1,getItemAriaLabel:m=qTe,labelDisplayedRows:h=WTe,labelRowsPerPage:x="Rows per page:",nextIconButtonProps:w,onPageChange:O,onRowsPerPageChange:b,page:g,rowsPerPage:_,rowsPerPageOptions:$=[10,25,50,100],SelectProps:P={},showFirstButton:C=!1,showLastButton:k=!1,slotProps:R={},slots:I={}}=o,A=Ce(o,FTe),F=o,L=HTe(F),D=(n=R==null?void 0:R.select)!=null?n:P,U=D.native?"option":UTe;let H;(l===dn||l==="td")&&(H=c||1e3);const q=tu(D.id),G=tu(D.labelId),z=()=>f===-1?(g+1)*_:_===-1?f:Math.min(f,(g+1)*_);return S.jsx(LTe,j({colSpan:H,ref:r,as:l,ownerState:F,className:$e(L.root,s)},A,{children:S.jsxs(NTe,{className:L.toolbar,children:[S.jsx(DTe,{className:L.spacer}),$.length>1&&S.jsx(BTe,{className:L.selectLabel,id:G,children:x}),$.length>1&&S.jsx(zTe,j({variant:"standard"},!D.variant&&{input:RL||(RL=S.jsx(Y0,{}))},{value:_,onChange:b,id:q,labelId:G},D,{classes:j({},D.classes,{root:$e(L.input,L.selectRoot,(D.classes||{}).root),select:$e(L.select,(D.classes||{}).select),icon:$e(L.selectIcon,(D.classes||{}).icon)}),disabled:v,children:$.map(W=>d.createElement(U,j({},!qp(U)&&{ownerState:F},{className:L.menuItem,key:W.label?W.label:W,value:W.value?W.value:W}),W.label?W.label:W))})),S.jsx(VTe,{className:L.displayedRows,children:h({from:f===0?0:g*_+1,to:z(),count:f===-1?-1:f,page:g})}),S.jsx(a,{className:L.actions,backIconButtonProps:i,count:f,nextIconButtonProps:w,onPageChange:O,page:g,rowsPerPage:_,showFirstButton:C,showLastButton:k,slotProps:R.actions,slots:I.actions,getItemAriaLabel:m,disabled:v})]})}))});function GTe(e){return Ue("MuiTableRow",e)}const TL=qe("MuiTableRow",["root","selected","hover","head","footer"]),KTe=["className","component","hover","selected"],QTe=e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e;return Ve({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},GTe,t)},XTe=J("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${TL.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${TL.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:jt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:jt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),IL="tr",Yp=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableRow"}),{className:o,component:a=IL,hover:i=!1,selected:s=!1}=n,c=Ce(n,KTe),l=d.useContext(n_),f=j({},n,{component:a,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),v=QTe(f);return S.jsx(XTe,j({as:a,ref:r,className:$e(v.root,o),role:a===IL?null:"row",ownerState:f},c))}),YTe=xo(S.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function JTe(e){return Ue("MuiTableSortLabel",e)}const iw=qe("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),ZTe=["active","children","className","direction","hideSortIcon","IconComponent"],eIe=e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon",`iconDirection${Se(r)}`]};return Ve(o,JTe,t)},tIe=J(zi,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${iw.icon}`]:{opacity:.5}},[`&.${iw.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${iw.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),rIe=J("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${Se(r.direction)}`]]}})(({theme:e,ownerState:t})=>j({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),nIe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:a,className:i,direction:s="asc",hideSortIcon:c=!1,IconComponent:l=YTe}=n,f=Ce(n,ZTe),v=j({},n,{active:o,direction:s,hideSortIcon:c,IconComponent:l}),m=eIe(v);return S.jsxs(tIe,j({className:$e(m.root,i),component:"span",disableRipple:!0,ownerState:v,ref:r},f,{children:[a,c&&!o?null:S.jsx(rIe,{as:l,className:$e(m.icon),ownerState:v})]}))});function oIe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function aIe(e,t,r,n={},o=()=>{}){const{ease:a=oIe,duration:i=300}=n;let s=null;const c=t[e];let l=!1;const f=()=>{l=!0},v=m=>{if(l){o(new Error("Animation cancelled"));return}s===null&&(s=m);const h=Math.min(1,(m-s)/i);if(t[e]=a(h)*(r-c)+c,h>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(v)};return c===r?(o(new Error("Element already at target position")),f):(requestAnimationFrame(v),f)}const iIe=["onChange"],sIe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function lIe(e){const{onChange:t}=e,r=Ce(e,iIe),n=d.useRef(),o=d.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return vo(()=>{const i=Id(()=>{const c=n.current;a(),c!==n.current&&t(n.current)}),s=Ko(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{a(),t(n.current)},[t]),S.jsx("div",j({style:sIe,ref:o},r))}function uIe(e){return Ue("MuiTabScrollButton",e)}const cIe=qe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),dIe=["className","slots","slotProps","direction","orientation","disabled"],fIe=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ve({root:["root",r,n&&"disabled"]},uIe,t)},pIe=J(zi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>j({width:40,flexShrink:0,opacity:.8,[`&.${cIe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),vIe=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:c={},direction:l}=a,f=Ce(a,dIe),v=Ys(),m=j({isRtl:v},a),h=fIe(m),x=(n=s.StartScrollButtonIcon)!=null?n:s9,w=(o=s.EndScrollButtonIcon)!=null?o:l9,O=Qo({elementType:x,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),b=Qo({elementType:w,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return S.jsx(pIe,j({component:"div",className:$e(h.root,i),ref:r,role:null,ownerState:m,tabIndex:null},f,{children:l==="left"?S.jsx(x,j({},O)):S.jsx(w,j({},b))}))});function mIe(e){return Ue("MuiTabs",e)}const sw=qe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),hIe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],jL=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,AL=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ph=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(e,o);else{o.focus();return}}},gIe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:c}=e;return Ve({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},mIe,c)},yIe=J("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${sw.scrollButtons}`]:t.scrollButtons},{[`& .${sw.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>j({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${sw.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),bIe=J("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>j({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),_Ie=J("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>j({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),xIe=J("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>j({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),wIe=J(lIe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),ML={},u9=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTabs"}),o=_o(),a=Ys(),{"aria-label":i,"aria-labelledby":s,action:c,centered:l=!1,children:f,className:v,component:m="div",allowScrollButtonsMobile:h=!1,indicatorColor:x="primary",onChange:w,orientation:O="horizontal",ScrollButtonComponent:b=vIe,scrollButtons:g="auto",selectionFollowsFocus:_,slots:$={},slotProps:P={},TabIndicatorProps:C={},TabScrollButtonProps:k={},textColor:R="primary",value:I,variant:A="standard",visibleScrollbar:F=!1}=n,L=Ce(n,hIe),D=A==="scrollable",U=O==="vertical",H=U?"scrollTop":"scrollLeft",q=U?"top":"left",G=U?"bottom":"right",z=U?"clientHeight":"clientWidth",W=U?"height":"width",te=j({},n,{component:m,allowScrollButtonsMobile:h,indicatorColor:x,orientation:O,vertical:U,scrollButtons:g,textColor:R,variant:A,visibleScrollbar:F,fixed:!D,hideScrollbar:D&&!F,scrollableX:D&&!U,scrollableY:D&&U,centered:l&&!D,scrollButtonsHideMobile:!h}),ne=gIe(te),ee=Qo({elementType:$.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:te}),Oe=Qo({elementType:$.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:te}),[ce,oe]=d.useState(!1),[pe,Re]=d.useState(ML),[ye,de]=d.useState(!1),[he,ve]=d.useState(!1),[_e,ie]=d.useState(!1),[be,ge]=d.useState({overflow:"hidden",scrollbarWidth:0}),Ae=new Map,Be=d.useRef(null),V=d.useRef(null),X=()=>{const Te=Be.current;let ze;if(Te){const bt=Te.getBoundingClientRect();ze={clientWidth:Te.clientWidth,scrollLeft:Te.scrollLeft,scrollTop:Te.scrollTop,scrollLeftNormalized:swe(Te,a?"rtl":"ltr"),scrollWidth:Te.scrollWidth,top:bt.top,bottom:bt.bottom,left:bt.left,right:bt.right}}let ct;if(Te&&I!==!1){const bt=V.current.children;if(bt.length>0){const Jt=bt[Ae.get(I)];ct=Jt?Jt.getBoundingClientRect():null}}return{tabsMeta:ze,tabMeta:ct}},Y=En(()=>{const{tabsMeta:Te,tabMeta:ze}=X();let ct=0,bt;if(U)bt="top",ze&&Te&&(ct=ze.top-Te.top+Te.scrollTop);else if(bt=a?"right":"left",ze&&Te){const Rr=a?Te.scrollLeftNormalized+Te.clientWidth-Te.scrollWidth:Te.scrollLeft;ct=(a?-1:1)*(ze[bt]-Te[bt]+Rr)}const Jt={[bt]:ct,[W]:ze?ze[W]:0};if(isNaN(pe[bt])||isNaN(pe[W]))Re(Jt);else{const Rr=Math.abs(pe[bt]-Jt[bt]),hn=Math.abs(pe[W]-Jt[W]);(Rr>=1||hn>=1)&&Re(Jt)}}),ae=(Te,{animation:ze=!0}={})=>{ze?aIe(H,Be.current,Te,{duration:o.transitions.duration.standard}):Be.current[H]=Te},se=Te=>{let ze=Be.current[H];U?ze+=Te:(ze+=Te*(a?-1:1),ze*=a&&o6()==="reverse"?-1:1),ae(ze)},le=()=>{const Te=Be.current[z];let ze=0;const ct=Array.from(V.current.children);for(let bt=0;btTe){bt===0&&(ze=Te);break}ze+=Jt[z]}return ze},Ee=()=>{se(-1*le())},Ie=()=>{se(le())},rt=d.useCallback(Te=>{ge({overflow:null,scrollbarWidth:Te})},[]),at=()=>{const Te={};Te.scrollbarSizeListener=D?S.jsx(wIe,{onChange:rt,className:$e(ne.scrollableX,ne.hideScrollbar)}):null;const ct=D&&(g==="auto"&&(ye||he)||g===!0);return Te.scrollButtonStart=ct?S.jsx(b,j({slots:{StartScrollButtonIcon:$.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ee},orientation:O,direction:a?"right":"left",onClick:Ee,disabled:!ye},k,{className:$e(ne.scrollButtons,k.className)})):null,Te.scrollButtonEnd=ct?S.jsx(b,j({slots:{EndScrollButtonIcon:$.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Oe},orientation:O,direction:a?"left":"right",onClick:Ie,disabled:!he},k,{className:$e(ne.scrollButtons,k.className)})):null,Te},Le=En(Te=>{const{tabsMeta:ze,tabMeta:ct}=X();if(!(!ct||!ze)){if(ct[q]ze[G]){const bt=ze[H]+(ct[G]-ze[G]);ae(bt,{animation:Te})}}}),De=En(()=>{D&&g!==!1&&ie(!_e)});d.useEffect(()=>{const Te=Id(()=>{Be.current&&Y()});let ze;const ct=Rr=>{Rr.forEach(hn=>{hn.removedNodes.forEach(oa=>{var Xn;(Xn=ze)==null||Xn.unobserve(oa)}),hn.addedNodes.forEach(oa=>{var Xn;(Xn=ze)==null||Xn.observe(oa)})}),Te(),De()},bt=Ko(Be.current);bt.addEventListener("resize",Te);let Jt;return typeof ResizeObserver<"u"&&(ze=new ResizeObserver(Te),Array.from(V.current.children).forEach(Rr=>{ze.observe(Rr)})),typeof MutationObserver<"u"&&(Jt=new MutationObserver(ct),Jt.observe(V.current,{childList:!0})),()=>{var Rr,hn;Te.clear(),bt.removeEventListener("resize",Te),(Rr=Jt)==null||Rr.disconnect(),(hn=ze)==null||hn.disconnect()}},[Y,De]),d.useEffect(()=>{const Te=Array.from(V.current.children),ze=Te.length;if(typeof IntersectionObserver<"u"&&ze>0&&D&&g!==!1){const ct=Te[0],bt=Te[ze-1],Jt={root:Be.current,threshold:.99},Rr=Vi=>{de(!Vi[0].isIntersecting)},hn=new IntersectionObserver(Rr,Jt);hn.observe(ct);const oa=Vi=>{ve(!Vi[0].isIntersecting)},Xn=new IntersectionObserver(oa,Jt);return Xn.observe(bt),()=>{hn.disconnect(),Xn.disconnect()}}},[D,g,_e,f==null?void 0:f.length]),d.useEffect(()=>{oe(!0)},[]),d.useEffect(()=>{Y()}),d.useEffect(()=>{Le(ML!==pe)},[Le,pe]),d.useImperativeHandle(c,()=>({updateIndicator:Y,updateScrollButtons:De}),[Y,De]);const ft=S.jsx(xIe,j({},C,{className:$e(ne.indicator,C.className),ownerState:te,style:j({},pe,C.style)}));let Pt=0;const Et=d.Children.map(f,Te=>{if(!d.isValidElement(Te))return null;const ze=Te.props.value===void 0?Pt:Te.props.value;Ae.set(ze,Pt);const ct=ze===I;return Pt+=1,d.cloneElement(Te,j({fullWidth:A==="fullWidth",indicator:ct&&!ce&&ft,selected:ct,selectionFollowsFocus:_,onChange:w,textColor:R,value:ze},Pt===1&&I===!1&&!Te.props.tabIndex?{tabIndex:0}:{}))}),We=Te=>{const ze=V.current,ct=Pr(ze).activeElement;if(ct.getAttribute("role")!=="tab")return;let Jt=O==="horizontal"?"ArrowLeft":"ArrowUp",Rr=O==="horizontal"?"ArrowRight":"ArrowDown";switch(O==="horizontal"&&a&&(Jt="ArrowRight",Rr="ArrowLeft"),Te.key){case Jt:Te.preventDefault(),Ph(ze,ct,AL);break;case Rr:Te.preventDefault(),Ph(ze,ct,jL);break;case"Home":Te.preventDefault(),Ph(ze,null,jL);break;case"End":Te.preventDefault(),Ph(ze,null,AL);break}},et=at();return S.jsxs(yIe,j({className:$e(ne.root,v),ownerState:te,ref:r,as:m},L,{children:[et.scrollButtonStart,et.scrollbarSizeListener,S.jsxs(bIe,{className:ne.scroller,ownerState:te,style:{overflow:be.overflow,[U?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-be.scrollbarWidth},ref:Be,children:[S.jsx(_Ie,{"aria-label":i,"aria-labelledby":s,"aria-orientation":O==="vertical"?"vertical":null,className:ne.flexContainer,ownerState:te,onKeyDown:We,ref:V,role:"tablist",children:Et}),ce&&ft]}),et.scrollButtonEnd]}))});function SIe(e){return Ue("MuiTextField",e)}qe("MuiTextField",["root"]);const OIe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],CIe={standard:e_,filled:x2,outlined:E2},EIe=e=>{const{classes:t}=e;return Ve({root:["root"]},SIe,t)},PIe=J(W6,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vv=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:c="primary",defaultValue:l,disabled:f=!1,error:v=!1,FormHelperTextProps:m,fullWidth:h=!1,helperText:x,id:w,InputLabelProps:O,inputProps:b,InputProps:g,inputRef:_,label:$,maxRows:P,minRows:C,multiline:k=!1,name:R,onBlur:I,onChange:A,onFocus:F,placeholder:L,required:D=!1,rows:U,select:H=!1,SelectProps:q,type:G,value:z,variant:W="outlined"}=n,te=Ce(n,OIe),ne=j({},n,{autoFocus:a,color:c,disabled:f,error:v,fullWidth:h,multiline:k,required:D,select:H,variant:W}),ee=EIe(ne),Oe={};W==="outlined"&&(O&&typeof O.shrink<"u"&&(Oe.notched=O.shrink),Oe.label=$),H&&((!q||!q.native)&&(Oe.id=void 0),Oe["aria-describedby"]=void 0);const ce=tu(w),oe=x&&ce?`${ce}-helper-text`:void 0,pe=$&&ce?`${ce}-label`:void 0,Re=CIe[W],ye=S.jsx(Re,j({"aria-describedby":oe,autoComplete:o,autoFocus:a,defaultValue:l,fullWidth:h,multiline:k,name:R,rows:U,maxRows:P,minRows:C,type:G,value:z,id:ce,inputRef:_,onBlur:I,onChange:A,onFocus:F,placeholder:L,inputProps:b},Oe,g));return S.jsxs(PIe,j({className:$e(ee.root,s),disabled:f,error:v,fullWidth:h,ref:r,required:D,color:c,variant:W,ownerState:ne},te,{children:[$!=null&&$!==""&&S.jsx(q6,j({htmlFor:ce,id:pe},O,{children:$})),H?S.jsx(r_,j({"aria-describedby":oe,id:ce,labelId:pe,value:z,input:ye},q,{children:i})):ye,x&&S.jsx(w2,j({id:oe},m,{children:x}))]}))}),$Ie=["getTrigger","target"];function RIe(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=o.pageYOffset!==void 0?o.pageYOffset:o.scrollTop),!r&&a!==void 0&&e.currentn}const kIe=typeof window<"u"?window:null;function c9(e={}){const{getTrigger:t=RIe,target:r=kIe}=e,n=Ce(e,$Ie),o=d.useRef(),[a,i]=d.useState(()=>t(o,n));return d.useEffect(()=>{const s=()=>{i(t(o,j({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),a}var R2={},lw={};const TIe=Ya(WSe);var FL;function Xe(){return FL||(FL=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=TIe}(lw)),lw}var IIe=He;Object.defineProperty(R2,"__esModule",{value:!0});var Wv=R2.default=void 0,jIe=IIe(Xe()),AIe=S;Wv=R2.default=(0,jIe.default)((0,AIe.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var lp=function(){return lp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(UMe,null):null,t&&d.createElement(Aje,null),d.createElement(b9,null))},Lje=d.createElement(Fje,null);P9.propTypes={alwaysOn:E.bool,children:E.node,className:E.string,color:E.oneOf(["default","inherit","primary","secondary","transparent"]),container:s0,open:E.bool,toolbar:E.element,userMenu:E.oneOfType([E.element,E.bool])};var Nje=d.createElement(L2,null),Sl="RaAppBar",jl={appBar:"".concat(Sl,"-appBar"),toolbar:"".concat(Sl,"-toolbar"),menuButton:"".concat(Sl,"-menuButton"),menuButtonIconClosed:"".concat(Sl,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(Sl,"-menuButtonIconOpen"),title:"".concat(Sl,"-title")},Dje=J(AOe,{name:Sl,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(jl.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(jl.menuButton)]={marginRight:"0.2em"},t["& .".concat(jl.title)]={},t}),V2={},Bje=He;Object.defineProperty(V2,"__esModule",{value:!0});var $9=V2.default=void 0,zje=Bje(Xe()),Uje=S;$9=V2.default=(0,zje.default)((0,Uje.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var W2={},Vje=He;Object.defineProperty(W2,"__esModule",{value:!0});var R9=W2.default=void 0,Wje=Vje(Xe()),qje=S;R9=W2.default=(0,Wje.default)((0,qje.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var cp=function(){return cp=Object.assign||function(e){for(var t,r=1,n=arguments.length;rb.closest("ul").getBoundingClientRect().bottom?_=g.lastChild:_=g.firstChild),_&&g===_.closest("ul")?o(b.dataset.index,c.current):(O.preventDefault(),O.stopPropagation()),b.classList.remove("drag-active"),document.removeEventListener("dragover",v)},w=function(O){O.preventDefault(),O.dataTransfer.dropEffect="move"};return d.createElement(gAe,{key:a,draggable:o?"true":void 0,onDrag:o?h:void 0,onDragStart:o?m:void 0,onDragEnd:o?x:void 0,onDragOver:o?w:void 0,"data-index":i},d.createElement("label",{htmlFor:"switch_".concat(i)},d.createElement($2,{checked:t,onChange:n,name:i,id:"switch_".concat(i),size:"small",sx:{mr:.5,ml:-.5}}),d.createElement(it,{variant:"body2",component:"span"},d.createElement(Go,{label:r,source:a,resource:s}))),o&&d.createElement(A9,{className:"dragIcon",color:"disabled",fontSize:"small"}))},gAe=J("li",{name:"RaFieldToggle",overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{display:"flex",justifyContent:"space-between",paddingLeft:0,"& svg":{cursor:"move"},"&.drag-active":{background:"transparent",color:"transparent",outline:"1px solid ".concat(t.palette.action.selected),"& .MuiSwitch-root, & svg":{visibility:"hidden"}}}}),os=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n$?P=os(os(os(os([],s.slice(0,$),!0),[s[_]],!1),s.slice($,_),!0),s.slice(_+1),!0):P=os(os(os(os([],s.slice(0,_),!0),s.slice(_+1,$+1),!0),[s[_]],!1),s.slice($+1),!0),c(P),m(function(C){return P.filter(function(k){return C.includes(k.index)}).map(function(k){return k.index})})}},w=function(){m([])},O=function(){m(s.map(function(b){return b.index}))};return d.createElement(Cn,{pt:.5},d.createElement(Cn,{component:"ul",sx:{paddingInlineStart:0,m:0}},s.map(function(b){return d.createElement(M9,{key:b.index,source:b.source,label:b.label,index:b.index,selected:v.includes(b.index),onToggle:h,onMove:x})})),d.createElement(Cn,{onDrop:function(b){return b.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},d.createElement($r,{size:"small",onClick:w},a("ra.inspector.hideAll",{_:"Hide All"})),d.createElement($r,{size:"small",onClick:O},a("ra.inspector.showAll",{_:"Show All"}))))},Z2={},bAe=He;Object.defineProperty(Z2,"__esModule",{value:!0});var F9=Z2.default=void 0,_Ae=bAe(Xe()),xAe=S;F9=Z2.default=(0,_Ae.default)((0,xAe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");var e$={},wAe=He;Object.defineProperty(e$,"__esModule",{value:!0});var L9=e$.default=void 0,SAe=wAe(Xe()),OAe=S;L9=e$.default=(0,SAe.default)((0,OAe.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");var CAe=function(){var e=je();return rz("ra.configurable.inspector.title",{_:"Inspector"}),d.createElement(it,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},N9=function(){var e=NP(),t=e.isEnabled,r=e.disable,n=e.title,o=e.titleOptions,a=e.editor,i=e.preferenceKey,s=d.useRef(!1),c=Qbe(i),l=_o(),f=je(),v=d.useState(0),m=v[0],h=v[1],x=pn("ra.inspector.position",{x:(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8,y:8}),w=x[0],O=x[1],b=d.useState(),g=b[0],_=b[1],$=function(k){var R=document==null?void 0:document.elementFromPoint(k.clientX,k.clientY);R.id==="inspector-dialog-title"&&(s.current=!0,k.dataTransfer.effectAllowed="move",k.dataTransfer.setData("inspector",""),setTimeout(function(){k.target.classList.add("hide")},0),_({x:k.clientX-w.x,y:k.clientY-w.y}))},P=function(k){s.current&&(O({x:k.clientX-g.x,y:k.clientY-g.y}),k.target.classList.remove("hide"),s.current=!1)};d.useEffect(function(){if(t){var k=function(R){R.dataTransfer.types.includes("inspector")&&R.preventDefault()};return document==null||document.addEventListener("dragover",k),function(){document==null||document.removeEventListener("dragover",k)}}},[t]),d.useEffect(function(){if(t){var k=function(){window==null||window.requestAnimationFrame(function(){O(function(R){return{x:Math.min(R.x,(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8),y:Math.min(R.y,(window==null?void 0:window.innerHeight)-50)}})})};return k(),window==null||window.addEventListener("resize",k),function(){window==null||window.removeEventListener("resize",k)}}},[t,O,l.breakpoints.values.sm]);var C=function(){c(),h(function(k){return k+1})};return t?d.createElement(EAe,{className:dp.modal,elevation:3,draggable:!0,onDragStart:$,onDragEnd:P,sx:{left:w.x,top:w.y}},d.createElement("div",{className:dp.title},d.createElement(it,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},n&&f(n,o)),d.createElement("span",{id:"inspector-toolbar"}),i&&d.createElement(or,{"aria-label":f("ra.action.remove"),onClick:C,size:"small"},d.createElement(L9,{fontSize:"inherit"})),d.createElement(or,{"aria-label":f("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},d.createElement(F9,{fontSize:"inherit"}))),d.createElement("div",{className:dp.content,key:m},d.createElement(tz,{value:i},a||d.createElement(CAe,null)))):null},vg="RaInspector",dp={modal:"".concat(vg,"-modal"),title:"".concat(vg,"-title"),content:"".concat(vg,"-content")},EAe=J(Js,{name:vg,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"fixed",zIndex:r.zIndex.modal+1,width:r.breakpoints.values.sm/2,transition:r.transitions.create(["height","width"]),"&.hide":{display:"none"}},t["& .".concat(dp.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(dp.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});N9.displayName="Inspector";var Cl=function(){return Cl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element"),Ib.createPortal(d.createElement(TAe,RO({title:r,defaultTitle:t,preferenceKey:n},o)),i)):null},s_=E.oneOfType([E.string,E.element]);el.propTypes={defaultTitle:E.string,className:E.string,record:E.any,title:s_};var jAe=function(e){var t=Lr().pathname,r=d.useRef(t);d.useEffect(function(){t!==r.current&&e()},[t,e])},kO=function(){return kO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0,A=lFe(O===!1||O===void 0?void 0:!O,l||!I||k||R);LP(v==="submit"&&(c&&(c.onSuccess||c.onError)||m),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var F=d.useCallback(function(U){return UL(void 0,void 0,void 0,function(){var H;return VL(this,function(q){switch(q.label){case 0:return $!=null&&$.save?[4,$.save(U,pp(pp({},c),{transform:m}))]:[3,2];case 1:H=q.sent(),q.label=2;case 2:return H!=null&&iz(H,_.setError),[2]}})})},[_.setError,$,c,m]),L=d.useCallback(function(U){return UL(void 0,void 0,void 0,function(){return VL(this,function(H){switch(H.label){case 0:return s&&s(U),U.defaultPrevented?[2]:v!=="button"?[3,2]:(U.stopPropagation(),[4,_.handleSubmit(F)(U)]);case 1:H.sent(),H.label=2;case 2:return[2]}})})},[s,v,_,F]),D=i&&g(i,{_:i});return d.createElement(sFe,pp({variant:x,type:v,color:r,"aria-label":D,disabled:A,onClick:L},b),R?d.createElement(Md,{sx:oFe,size:14,thickness:3,color:"inherit"}):o,D)},oFe={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},aFe=d.createElement(o8,null);Qv.propTypes={className:E.string,invalid:E.bool,label:E.string,variant:E.oneOf(["text","outlined","contained"]),icon:E.element,alwaysEnable:E.bool};var iFe="RaSaveButton",sFe=J($r,{name:iFe,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),lFe=function(e,t){return typeof e>"u"?t:e},uFe=function(){return fe.createElement(dFe,{onClick:fFe,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},cFe="RaSkipNavigationButton",dFe=J(Nt,{name:cFe,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),fFe=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},GO=function(){return GO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=o-1,color:"primary"},d.createElement(v8,{fontSize:"small"})))},b$={},UFe=He;Object.defineProperty(b$,"__esModule",{value:!0});var m8=b$.default=void 0,VFe=UFe(Xe()),WFe=S;m8=b$.default=(0,VFe.default)((0,WFe.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff");var tC=function(){return tC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){var oe=D[0];oe.id;var pe=HFe(oe,["id"]);Oe.current=pe;for(var Re in Oe.current)Oe.current[Re]=null}var ye=d.useCallback(function(be){be===void 0&&(be=void 0);var ge=be;be==null&&(ge=Oe.current,d.Children.count(s)===1&&d.isValidElement(d.Children.only(s))&&!d.Children.only(s).props.source&&d.Children.map(s,function(Ae){return d.isValidElement(Ae)&&Ae.type!==HS}).some(Boolean)?ge="":(ge=ge||{},d.Children.forEach(s,function(Ae){var Be;d.isValidElement(Ae)&&Ae.type!==HS&&Ae.props.source&&(ge[Ae.props.source]=(Be=Ae.props.defaultValue)!==null&&Be!==void 0?Be:null)}))),L(ge),z("".concat(f,".").concat(D.length),{defaultValue:ge})},[L,s,z,f,D.length]),de=function(be){return function(ge){ye(),be&&be(ge)}},he=d.useCallback(function(be,ge){U(be,ge)},[U]),ve=d.useCallback(function(){q([]),A(!1)},[q]),_e=vt(ee,f),ie=d.useMemo(function(){return{total:D.length,add:ye,remove:ce,reOrder:he,source:f}},[ye,D.length,he,ce,f]);return D?d.createElement(l8.Provider,{value:ie},d.createElement(GFe,{className:Je(c,C&&"fullwidth",(m||v)&&"disabled"),sx:k},d.createElement("ul",{className:Sr.list},D.map(function(be,ge){return d.createElement(EFe,{key:be.id,disabled:m||v,disableRemove:b,disableReordering:g,fields:D,getItemLabel:P,index:ge,member:"".concat(f,".").concat(ge),onRemoveField:ce,onReorder:he,record:_e&&_e[ge]||{},removeButton:o,reOrderButtons:i,resource:l,source:f,inline:_},s)})),!(m||v)&&!(x&&(w||b))&&d.createElement("div",{className:Sr.buttons},!x&&d.createElement("div",{className:Sr.add},d.cloneElement(r,{className:Je("button-add","button-add-".concat(f)),onClick:de(r.props.onClick)})),D.length>0&&!w&&!b&&d.createElement("div",{className:Sr.clear},d.createElement(a_,{isOpen:I,title:ne("ra.action.clear_array_input"),content:ne("ra.message.clear_array_input"),onConfirm:ve,onClose:function(){return A(!1)}}),d.createElement(qFe,{onClick:function(){return A(!0)}}))))):null};ev.propTypes={addButton:E.element,removeButton:E.element,children:E.node,className:E.string,field:E.object,fields:E.array,fieldState:E.object,formState:E.object,fullWidth:E.bool,inline:E.bool,record:E.object,source:E.string,resource:E.string,translate:E.func,readOnly:E.bool,disabled:E.bool,disableAdd:E.bool,disableRemove:E.oneOfType([E.func,E.bool]),TransitionProps:E.shape({})};var GFe=J("div",{name:Ia,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n,o=e.theme;return t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}},t["& .".concat(Sr.line)]=(r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(o.palette.divider)},r[o.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(Sr.index)]=(n={display:"flex",alignItems:"top",marginRight:o.spacing(1),marginTop:o.spacing(1)},n[o.breakpoints.down("md")]={display:"none"},n),t["& .".concat(Sr.form)]={alignItems:"flex-start",display:"flex",flexDirection:"column"},t["&.fullwidth > ul > li > .".concat(Sr.form)]={flex:2},t["& .".concat(Sr.inline)]={flexDirection:"row",columnGap:"1em",flexWrap:"wrap"},t["& .".concat(Sr.action)]={marginTop:o.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(Sr.buttons)]={display:"flex"},t["& .".concat(Sr.add)]={borderBottom:"none"},t["& .".concat(Sr.clear)]={borderBottom:"none"},t["& .".concat(Sr.line,":hover > .").concat(Sr.action)]={visibility:"visible"},t}),KFe=function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(f){try{l(n.next(f))}catch(v){i(v)}}function c(f){try{l(n.throw(f))}catch(v){i(v)}}function l(f){f.done?a(f.value):o(f.value).then(s,c)}l((n=n.apply(e,t||[])).next())})},QFe=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(f){return c([l,f])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=ELe&&(a=CLe,i=!1,t=new _Le(t));e:for(;++o0&&$.length>0&&$.every(function(P){return x.includes(P)}),onChange:_,onClick:function(P){return P.stopPropagation()}})),d.Children.map(t,function(P,C){return d.isValidElement(P)?d.createElement(vLe,{className:Je(Ze.headerCell,"column-".concat(P.props.source)),sort:v,field:P,isSorting:v.field===(P.props.sortBy||P.props.source),key:P.props.source||C,resource:c,updateSort:g}):null})))};S$.propTypes={children:E.node,className:E.string,sort:E.exact({field:E.string,order:E.oneOf(["ASC","DESC"])}),data:E.arrayOf(E.any),hasExpand:E.bool,hasBulkActions:E.bool,isRowSelectable:E.func,isRowExpandable:E.func,onSelect:E.func,onToggleItem:E.func,resource:E.string,selectedIds:E.arrayOf(E.any),setSort:E.func};S$.displayName="DatagridHeader";var LLe=function(e){var t=e.children,r=e.value;return fe.createElement(x$.Provider,{value:r},t)},O$={},NLe=He;Object.defineProperty(O$,"__esModule",{value:!0});var w8=O$.default=void 0,DLe=NLe(Xe()),BLe=S;w8=O$.default=(0,DLe.default)((0,BLe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var sC=function(){return sC=Object.assign||function(e){for(var t,r=1,n=arguments.length;rR?I=as(as(as(as([],c.slice(0,R),!0),[c[k]],!1),c.slice(R,k),!0),c.slice(k+1),!0):I=as(as(as(as([],c.slice(0,k),!0),c.slice(k+1,R+1),!0),[c[k]],!1),c.slice(R+1),!0),l(I),h(function(A){return I.filter(function(F){return A.includes(F.index)}).map(function(F){return F.index})})}};return d.createElement(d.Fragment,null,w?d.createElement(Wr,{title:O},d.createElement(or,ob({"aria-label":O,color:"primary",onClick:b,size:"large"},QL(e)),d.createElement(lC,null))):d.createElement(eNe,ob({size:"small",onClick:b,startIcon:d.createElement(lC,null)},QL(e)),O),d.createElement(O2,{open:!!a,anchorEl:a,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},d.createElement(Cn,{component:"ul",p:1,my:0},c.map(function(P){return d.createElement(M9,{key:P.index,source:P.source,label:P.label,index:P.index,selected:m.includes(P.index),onToggle:_,onMove:$})}))))},eNe=J($r,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),QL=function(e){e.resource,e.preferenceKey;var t=ZLe(e,["resource","preferenceKey"]);return t};function tNe(e,t){for(var r=-1,n=e==null?0:e.length;++r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1] element instead.")})},[r]);var f=function(){var m=a.getValues();return r.filter(function(h){var x=vt(m,h.props.source);return h.props.alwaysOn||c[h.props.source]||!j8(x)})},v=d.useCallback(function(m){return l(m.currentTarget.dataset.key)},[l]);return d.createElement(QB,{prefix:"resources.".concat(o,".fields"),concatenate:!1},d.createElement(k3e,Ms({className:t},P3e(n),{onSubmit:E3e}),f().map(function(m){return d.createElement(k8,{key:m.key||m.props.source,filterElement:m,handleHide:v,resource:o,className:ib.filterFormInput})}),d.createElement("div",{className:ib.clearFix})))},E3e=function(e){return e.preventDefault(),!1};T8.propTypes={resource:E.string,filters:E.arrayOf(E.node).isRequired,displayedFilters:E.object,hideFilter:E.func,initialValues:E.object,className:E.string};var P3e=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;var t=P$(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"]);return t},$3e=function(e,t){return Ms(Ms({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return Vb(Ms({},r),n.props.source,n.props.defaultValue)},{})),e)},R3e=function(e){return e.preventDefault(),e.stopPropagation(),!1},cC="RaFilterForm",ib={clearFix:"".concat(cC,"-clearFix"),filterFormInput:"".concat(cC,"-filterFormInput")},k3e=J("form",{name:cC,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(ib.clearFix)]={clear:"right"},t["& .".concat(ib.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),T3e=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=I8(e,o,t),n},(r=R8(t))!==null&&r!==void 0?r:{})},I8=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return vt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(o,a){var i,s=I8(e[t],a,(i=(r||{})[t])!==null&&i!==void 0?i:{});return o[a]=s,o},{});return Object.keys(n).length?n:""}return vt(r,t,"")},j8=function(e){return e===""||typeof e>"u"?!0:typeof e=="object"?Object.keys(e).every(function(t){return j8(e[t])}):!1},$$={},I3e=He;Object.defineProperty($$,"__esModule",{value:!0});var A8=$$.default=void 0,j3e=I3e(Xe()),A3e=S;A8=$$.default=(0,j3e.default)((0,A3e.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var M8=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,o=e.autoFocus,a=Ct(e),i=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return d.createElement(lo,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i,autoFocus:o,ref:t,disabled:r.props.disabled},d.createElement(Go,{label:r.props.label,source:r.props.source,resource:a}))});M8.propTypes={filter:E.element.isRequired,onShow:E.func.isRequired,resource:E.string,autoFocus:E.bool};var R$=function(e){return pn("".concat(e,".savedQueries"),[])},k$=function(e){return Array.isArray(e)?e.filter(function(t){return M3e(t)}):[]},M3e=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},F3e=function(e){var t=e.open,r=e.onClose,n=je(),o=rn(),a=o.resource,i=o.filterValues,s=o.displayedFilters,c=o.sort,l=o.perPage,f=R$(a),v=f[0],m=f[1],h=d.useState(""),x=h[0],w=h[1],O=function(_){w(_.target.value)},b=function(_){_.preventDefault(),g()},g=function(){var _={label:x,value:{filter:i,sort:c,perPage:l,displayedFilters:s}},$=k$(v);m($.concat(_)),w(""),r()};return d.createElement(Dv,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(zv,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(Bv,null,d.createElement("form",{onSubmit:b},d.createElement(Vv,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:x,onChange:O}))),d.createElement(_2,null,d.createElement($r,{onClick:r},n("ra.action.cancel")),d.createElement($r,{onClick:g,color:"primary"},n("ra.action.save"))))},nN=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n component requires the prop to be set");var F=s.filter(function(oe){return!oe.props.alwaysOn&&!x[oe.props.source]&&typeof vt(w,oe.props.source)>"u"}),L=d.useCallback(function(oe){oe.preventDefault(),I(!0),A.current=oe.currentTarget},[A,I]),D=d.useCallback(function(){I(!1)},[I]),U=d.useCallback(function(oe){var pe=oe.source,Re=oe.defaultValue;g(pe,Re===""?void 0:Re),setTimeout(function(){var ye=document.querySelector("input[name='".concat(pe,"']"));ye&&ye.focus()},50),I(!1)},[g,I]),H=d.useState(!1),q=H[0],G=H[1],z=function(){G(!1)},W=function(){I(!1),G(!0)},te=d.useState(!1),ne=te[0],ee=te[1],Oe=function(){ee(!1)},ce=function(){I(!1),ee(!0)};return F.length===0&&P.length===0&&!$?null:d.createElement(B3e,dC({className:r},N3e(i)),d.createElement(Nt,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:L,variant:a,size:o},d.createElement(A8,null)),d.createElement(t_,{open:R,anchorEl:A.current,onClose:D},F.map(function(oe,pe){return d.createElement(M8,{key:oe.props.source,filter:oe,resource:c,onShow:U,autoFocus:pe===0})}),P.map(function(oe,pe){return Vo(oe.value,{filter:w,sort:_,perPage:O,displayedFilters:x})?d.createElement(lo,{onClick:ce,key:pe},l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:oe.label})):d.createElement(lo,{onClick:function(){v({search:Yl.stringify({filter:JSON.stringify(oe.value.filter),sort:oe.value.sort.field,order:oe.value.sort.order,page:1,perPage:oe.value.perPage,displayedFilters:JSON.stringify(oe.value.displayedFilters)})}),I(!1)},key:pe},oe.label)}),$&&!C&&!n&&d.createElement(lo,{onClick:W},l("ra.saved_queries.new_label",{_:"Save current query..."})),$&&d.createElement(lo,{onClick:function(){b({},{},!1),I(!1)}},l("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&d.createElement(d.Fragment,null,d.createElement(F3e,{open:q,onClose:z}),d.createElement(L3e,{open:ne,onClose:Oe})))},N3e=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=F8(e,["displayedFilters","filterValues","showFilter"]);return t};L8.propTypes={resource:E.string,filters:E.arrayOf(E.node),displayedFilters:E.object,filterValues:E.object,showFilter:E.func,className:E.string};var D3e="RaFilterButton",B3e=J("div",{name:D3e,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),T$={},z3e=He;Object.defineProperty(T$,"__esModule",{value:!0});var N8=T$.default=void 0,U3e=z3e(Xe()),V3e=S;N8=T$.default=(0,U3e.default)((0,V3e.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");var fC=function(){return fC=Object.assign||function(e){for(var t,r=1,n=arguments.length;rb-1)throw new Error(w("ra.navigation.page_out_of_boundaries",{page:R+1}));h(R+1)},[b,h,w]),_=d.useCallback(function(k){x(k.target.value)},[x]),$=d.useCallback(function(k){var R=k.from,I=k.to,A=k.count;return A===-1&&l?w("ra.navigation.partial_page_range_info",{offsetBegin:R,offsetEnd:I,_:"%{from}-%{to} of more than %{to}"}):w("ra.navigation.page_range_info",{offsetBegin:R,offsetEnd:I,total:A===-1?I:A,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[w,l]),P=d.useCallback(function(k){return w("ra.navigation.".concat(k),{_:"Go to ".concat(k," page")})},[w]);if(c)return d.createElement(Ld,{variant:"dense"});if(m===0||f<1||m!=null&&f>b)return a!=null,null;if(O)return d.createElement(kL,sb({count:m??-1,rowsPerPage:v,page:f-1,onPageChange:g,rowsPerPageOptions:K3e,component:"span",labelDisplayedRows:$},Lp(i)));var C=n||(!c&&m!=null?B8:void 0);return d.createElement(kL,sb({count:m??-1,rowsPerPage:v,page:f-1,onPageChange:g,onRowsPerPageChange:_,ActionsComponent:C,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:w("ra.navigation.page_rows_per_page"),labelDisplayedRows:$,getItemAriaLabel:P,rowsPerPageOptions:r},Lp(i)))});tl.propTypes={actions:s0,limit:E.element,rowsPerPageOptions:E.arrayOf(E.oneOfType([E.number,E.exact({label:E.string.isRequired,value:E.number.isRequired})]))};var G3e=[5,10,25,50],K3e=[],lb=function(){return lb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof he.target.value>"u")){var ve=he.target;ee(ve.value);var _e=ve.valueAsNumber!==void 0&&ve.valueAsNumber!==null&&!isNaN(ve.valueAsNumber)?m?m(ve.valueAsNumber):ve.valueAsNumber:m?m(ve.value):u4e(ve.value);A.onChange(_e)}},oe=function(he){v&&v(he),Oe.current=!0},pe=function(){z&&z(),Oe.current=!1;var he=a(A.value);ee(function(ve){return ve!==he?he:ve})},Re=i!==!1||(U||H)&&D,ye=A.ref,de=sN(A,["ref"]);return d.createElement(Vv,ds({id:q},de,{inputRef:ye,value:ne,onChange:ce,onFocus:oe,onBlur:pe,className:Je("ra-input","ra-input-".concat(x),t),type:"number",size:"small",variant:$,error:(U||H)&&D,disabled:C||k,readOnly:k,helperText:Re?d.createElement(nu,{touched:U||H,error:L==null?void 0:L.message,helperText:i}):null,label:d.createElement(Go,{label:s,source:x,resource:h,isRequired:G}),margin:c,inputProps:ds(ds({},W),{readOnly:k})},Bd(R)))};zl.propTypes={label:E.oneOfType([E.string,E.bool,E.element]),resource:E.string,source:E.string,step:E.oneOfType([E.string,E.number])};var u4e=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},c4e=function(e){return e==null||isNaN(e)?"":e.toString()},j$={},d4e=He;Object.defineProperty(j$,"__esModule",{value:!0});var A$=j$.default=void 0,f4e=d4e(Xe()),p4e=S;A$=j$.default=(0,f4e.default)((0,p4e.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var M$={},v4e=He;Object.defineProperty(M$,"__esModule",{value:!0});var V8=M$.default=void 0,m4e=v4e(Xe()),h4e=S;V8=M$.default=(0,m4e.default)((0,h4e.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var cb=function(){return cb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r isn't designed to be used with a label prop. Use if you need a label.");return d.createElement(x4e,vC({hiddenLabel:!0,label:"",resettable:!0,placeholder:n("ra.action.search"),InputProps:{endAdornment:d.createElement(Cc,{position:"end"},d.createElement(N8,{color:"disabled"}))},size:"small"},r))},_4e="RaSearchInput",x4e=J(Er,{name:_4e,overridesResolver:function(e,t){return t.root}})({marginTop:0}),ld=function(){return ld=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"u"||!v.message?"ra.auth.sign_in_error":v.message,{type:"error",messageArgs:{_:typeof v=="string"?v:v&&v.message?v.message:void 0}})})};return d.createElement(P4e,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(Ao,{className:Rc.content},d.createElement(Er,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:co(),fullWidth:!0}),d.createElement(Er,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:co(),fullWidth:!0}),d.createElement($r,{variant:"contained",type:"submit",color:"primary",disabled:o,fullWidth:!0,className:Rc.button},o?d.createElement(Md,{className:Rc.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},bg="RaLoginForm",Rc={content:"".concat(bg,"-content"),button:"".concat(bg,"-button"),icon:"".concat(bg,"-icon")},P4e=J(l0,{name:bg,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(Rc.content)]={width:300},t["& .".concat(Rc.button)]={marginTop:r.spacing(2)},t["& .".concat(Rc.icon)]={margin:r.spacing(.3)},t});q8.propTypes={redirectTo:E.string};var mC=function(){return mC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&f?d.createElement(X8,null):r;return o?d.createElement(F4e,bC({className:Je("edit-page",a)},M4e(l)),d.createElement(el,{title:c,defaultTitle:h,preferenceKey:"".concat(m,".edit.title")}),w,d.createElement("div",{className:Je(Ic.main,(t={},t[Ic.noActions]=!w,t))},d.createElement(s,{className:Ic.card},x?o:d.createElement(Ao,null," ")),n)):null};J8.propTypes={actions:E.oneOfType([E.element,E.bool]),aside:E.element,className:E.string,component:s0,defaultTitle:E.any,hasList:E.bool,hasShow:E.bool,mutationMode:E.oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:E.object,record:E.object,redirect:E.oneOfType([E.string,E.bool,E.func]),resource:E.string,save:E.func,title:E.node};var M4e=function(e){e.addMiddleware,e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isFetching,e.isLoading,e.location,e.match,e.options,e.queryOptions,e.mutationOptions,e.permissions,e.refetch,e.removeMiddleware,e.resource,e.save,e.saving,e.transform;var t=Y8(e,["addMiddleware","defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isFetching","isLoading","location","match","options","queryOptions","mutationOptions","permissions","refetch","removeMiddleware","resource","save","saving","transform"]);return t},wg="RaEdit",Ic={main:"".concat(wg,"-main"),noActions:"".concat(wg,"-noActions"),card:"".concat(wg,"-card")},F4e=J("div",{name:wg,overridesResolver:function(e,t){return t.root}})((Pf={},Pf["& .".concat(Ic.main)]={display:"flex",alignItems:"flex-start"},Pf["& .".concat(Ic.noActions)]={marginTop:"1em"},Pf["& .".concat(Ic.card)]={flex:"1 1 auto"},Pf)),_C=function(){return _C=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t.toString():""},SC=function(){return SC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&O?r5e:r;return!o||!w&&l?null:d.createElement(o5e,OC({className:Je("show-page",a)},n5e(v)),d.createElement(el,{title:f,defaultTitle:x,preferenceKey:"".concat(h,".show.title")}),b!==!1&&b,d.createElement("div",{className:Je(Ac.main,(t={},t[Ac.noActions]=!b,t))},d.createElement(s,{className:Ac.card},o),n))};cU.propTypes={actions:E.oneOfType([E.element,E.bool]),children:E.node,className:E.string,emptyWhileLoading:E.bool,title:E.any};var n5e=function(e){e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isLoading,e.isFetching,e.location,e.match,e.options,e.refetch,e.permissions;var t=uU(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"]);return t},Og="RaShow",Ac={main:"".concat(Og,"-main"),noActions:"".concat(Og,"-noActions"),card:"".concat(Og,"-card")},o5e=J("div",{name:Og,overridesResolver:function(e,t){return t.root}})(($f={},$f["& .".concat(Ac.main)]={display:"flex"},$f["& .".concat(Ac.noActions)]={marginTop:"1em"},$f["& .".concat(Ac.card)]={flex:"1 1 auto"},$f)),CC=function(){return CC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var x=mt(e);if(!x)return null;var w=vt(x,l);if(w==null||w==="")return r?d.createElement(it,Vl({component:"span",variant:"body2",className:t},Xa(m)),r&&h(r,{_:r})):null;var O=v(w),b="";if(i&&c)b=fw?O.toLocaleString(n,o):O.toLocaleString();else if(c){var g=o??(typeof w=="string"&&w.length<=10?{timeZone:"UTC"}:void 0);b=fw?O.toLocaleDateString(n,g):O.toLocaleDateString()}else i&&(b=fw?O.toLocaleTimeString(n,o):O.toLocaleTimeString());return d.createElement(it,Vl({component:"span",variant:"body2",className:t},Xa(m)),b)};V$.propTypes=Vl(Vl(Vl({},it.propTypes),wa),{locales:E.oneOfType([E.string,E.arrayOf(E.string)]),options:E.object,showTime:E.bool,showDate:E.bool});V$.displayName="DateFieldImpl";var Zr=vu(V$),v5e=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},fw=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),Mc=function(){return Mc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),Oi=function(e){var t=e.children,r=e.debounce,n=e.filter,o=n===void 0?E5e:n,a=e.page,i=a===void 0?1:a,s=e.pagination,c=s===void 0?null:s,l=e.perPage,f=l===void 0?25:l,v=e.reference,m=e.resource,h=e.sort,x=h===void 0?P5e:h,w=e.source,O=w===void 0?"id":w,b=e.target,g=mt(e),_=Bye({debounce:r,filter:o,page:i,perPage:f,record:g,reference:v,resource:m,sort:x,source:O,target:b});return fe.createElement(uu,{value:v},fe.createElement(kP,{value:_},t,c))};Oi.propTypes={children:E.node.isRequired,className:E.string,filter:E.object,label:wa.label,perPage:E.number,record:E.any,reference:E.string.isRequired,resource:E.string,sortBy:E.string,sortByOrder:wa.sortByOrder,source:E.string,sort:E.exact({field:E.string,order:E.oneOf(["ASC","DESC"])}),target:E.string.isRequired};E.element,E.string,E.exact({field:E.string,order:E.oneOf(["ASC","DESC"])}),E.any,E.bool,E.element,E.string,E.func;var E5e={},P5e={field:"id",order:"DESC"},ql=function(){return ql=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")};yU.propTypes={children:E.node};var hp=function(){return hp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=this._config.preview;if(a)n.postMessage({results:D,workerId:c.WORKER_ID,finished:H});else if(k(this._config.chunk)&&!A){if(this._config.chunk(D,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);D=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(D.data),this._completeResults.errors=this._completeResults.errors.concat(D.errors),this._completeResults.meta=D.meta),this._completed||!H||!k(this._config.complete)||D&&D.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),H||D&&D.meta.paused||this._nextChunk(),D}this._halted=!0},this._sendError=function(I){k(this._config.error)?this._config.error(I):a&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:I,finished:!1})}}function v(R){var I;(R=R||{}).chunkSize||(R.chunkSize=c.RemoteChunkSize),f.call(this,R),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(A){this._input=A,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(I=new XMLHttpRequest,this._config.withCredentials&&(I.withCredentials=this._config.withCredentials),o||(I.onload=C(this._chunkLoaded,this),I.onerror=C(this._chunkError,this)),I.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var A=this._config.downloadRequestHeaders;for(var F in A)I.setRequestHeader(F,A[F])}if(this._config.chunkSize){var L=this._start+this._config.chunkSize-1;I.setRequestHeader("Range","bytes="+this._start+"-"+L)}try{I.send(this._config.downloadRequestBody)}catch(D){this._chunkError(D.message)}o&&I.status===0&&this._chunkError()}},this._chunkLoaded=function(){I.readyState===4&&(I.status<200||400<=I.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:I.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(A){var F=A.getResponseHeader("Content-Range");return F===null?-1:parseInt(F.substring(F.lastIndexOf("/")+1))}(I),this.parseChunk(I.responseText)))},this._chunkError=function(A){var F=I.statusText||A;this._sendError(new Error(F))}}function m(R){var I,A;(R=R||{}).chunkSize||(R.chunkSize=c.LocalChunkSize),f.call(this,R);var F=typeof FileReader<"u";this.stream=function(L){this._input=L,A=L.slice||L.webkitSlice||L.mozSlice,F?((I=new FileReader).onload=C(this._chunkLoaded,this),I.onerror=C(this._chunkError,this)):I=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(L.target.result)},this._chunkError=function(){this._sendError(I.error)}}function h(R){var I;f.call(this,R=R||{}),this.stream=function(A){return I=A,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var A,F=this._config.chunkSize;return F?(A=I.substring(0,F),I=I.substring(F)):(A=I,I=""),this._finished=!I,this.parseChunk(A)}}}function x(R){f.call(this,R=R||{});var I=[],A=!0,F=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(L){this._input=L,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){F&&I.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),I.length?this.parseChunk(I.shift()):A=!0},this._streamData=C(function(L){try{I.push(typeof L=="string"?L:L.toString(this._config.encoding)),A&&(A=!1,this._checkIsFinished(),this.parseChunk(I.shift()))}catch(D){this._streamError(D)}},this),this._streamError=C(function(L){this._streamCleanUp(),this._sendError(L)},this),this._streamEnd=C(function(){this._streamCleanUp(),F=!0,this._streamData("")},this),this._streamCleanUp=C(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function w(R){var I,A,F,L=Math.pow(2,53),D=-L,U=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,H=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,q=this,G=0,z=0,W=!1,te=!1,ne=[],ee={data:[],errors:[],meta:{}};if(k(R.step)){var Oe=R.step;R.step=function(de){if(ee=de,pe())oe();else{if(oe(),ee.data.length===0)return;G+=de.data.length,R.preview&&G>R.preview?A.abort():(ee.data=ee.data[0],Oe(ee,q))}}}function ce(de){return R.skipEmptyLines==="greedy"?de.join("").trim()==="":de.length===1&&de[0].length===0}function oe(){return ee&&F&&(ye("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),F=!1),R.skipEmptyLines&&(ee.data=ee.data.filter(function(de){return!ce(de)})),pe()&&function(){if(!ee)return;function de(ve,_e){k(R.transformHeader)&&(ve=R.transformHeader(ve,_e)),ne.push(ve)}if(Array.isArray(ee.data[0])){for(var he=0;pe()&&he=ne.length?"__parsed_extra":ne[ie]),R.transform&&(Ae=R.transform(Ae,ge)),Ae=Re(ge,Ae),ge==="__parsed_extra"?(be[ge]=be[ge]||[],be[ge].push(Ae)):be[ge]=Ae}return R.header&&(ie>ne.length?ye("FieldMismatch","TooManyFields","Too many fields: expected "+ne.length+" fields but parsed "+ie,z+_e):ie=V.length/2?`\r -`:"\r"}(de,_e)),F=!1,R.delimiter)k(R.delimiter)&&(R.delimiter=R.delimiter(de),ee.meta.delimiter=R.delimiter);else{var ie=function(ge,Ae,Be,V,X){var Y,ae,se,le;X=X||[","," ","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var Ee=0;Ee=U)return Et(!0)}else for(Ie=G,G++;;){if((Ie=W.indexOf(I,Ie+1))===-1)return ne||ye.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Re.length,index:G}),ft();if(Ie===ee-1)return ft(W.substring(G,Ie).replace(Ee,I));if(I!==q||W[Ie+1]!==q){if(I===q||Ie===0||W[Ie-1]!==q){se!==-1&&se=U)return Et(!0);break}ye.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Re.length,index:G}),Ie++}}else Ie++}return ft();function Le(et){Re.push(et),he=G}function De(et){var Te=0;if(et!==-1){var ze=W.substring(Ie+1,et);ze&&ze.trim()===""&&(Te=ze.length)}return Te}function ft(et){return ne||(et===void 0&&(et=W.substring(G)),de.push(et),G=ee,Le(de),pe&&We()),Et()}function Pt(et){G=et,Le(de),de=[],le=W.indexOf(F,G)}function Et(et){return{data:Re,errors:ye,meta:{delimiter:A,linebreak:F,aborted:z,truncated:!!et,cursor:he+(te||0)}}}function We(){D(Et()),Re=[],ye=[]}},this.abort=function(){z=!0},this.getCharIndex=function(){return G}}function g(R){var I=R.data,A=i[I.workerId],F=!1;if(I.error)A.userError(I.error,I.file);else if(I.results&&I.results.data){var L={abort:function(){F=!0,_(I.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:$,resume:$};if(k(A.userStep)){for(var D=0;D{var r;return(r=/^@(?[a-zA-Z0-9._=\-/]+):(?[a-zA-Z0-9\-.]+\.[a-zA-Z]+)$/.exec(e))==null?void 0:r.groups},sBe=e=>/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e),lBe=async e=>{const t=`https://${e}/.well-known/matrix/client`;try{return(await Jl(t,{method:"GET"})).json["m.homeserver"].base_url}catch{return`https://${e}`}},uBe=async e=>{const t=`${e}/_synapse/admin/v1/server_version`;return(await Jl(t,{method:"GET"})).json.server_version},cBe=async e=>{const t=`${e}/_matrix/client/versions`;return(await Jl(t,{method:"GET"})).json},dBe=async e=>{const t=`${e}/_matrix/client/r0/login`;return(await Jl(t,{method:"GET"})).json.flows},fBe=e=>`${St.getItem("base_url")}/_matrix/media/v1/download/${e}?allow_redirect=true`;function pN(){const e=St.getItem("home_server"),t="0123456789abcdefghijklmnopqrstuvwxyz";return`@${Array.from(crypto.getRandomValues(new Uint32Array(8))).map(n=>t[n%t.length]).join("")}:${e}`}function pBe(e=20){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(r=>t[r%t.length]).join("")}const vw=!0,vBe=["id","displayname"].sort();function jh({value:e,text:t}){const r=je();return S.jsx("option",{value:e,children:r(t)})}const mBe=()=>{const[e,t]=d.useState([]),[r,n]=d.useState(null),[o,a]=d.useState(null),[i,s]=d.useState(!0),[c,l]=d.useState(null),[f,v]=d.useState(null),[m,h]=d.useState(""),[x,w]=d.useState("stop"),[O,b]=d.useState(!0),[g,_]=d.useState("ignore"),$=je(),P=Ht(),C=yo(),k=async ce=>{if(c!==null)return;t([]),n(null),a(null),v(null);const oe=ce.target.files?ce.target.files[0]:null;if(oe){if(oe.size>1e8){const pe=$("import_users.errors.unreasonably_big",{size:(oe.size/1048576).toFixed(2)});P(pe),n(pe);return}try{fN.parse(oe,{header:!0,skipEmptyLines:!0,complete:pe=>{pe.errors&&n(pe.errors.map(Re=>Re.toString())),R(pe,{setValues:t,setStats:a,setError:n})}})}catch{return n("Unknown error"),null}}},R=({data:ce,meta:oe,errors:pe},{setValues:Re,setStats:ye,setError:de})=>{const he=vBe.filter(ie=>{var be;return!((be=oe.fields)!=null&&be.includes(ie))});if(he.length>0)return de($("import_users.error.required_field",{field:he[0]})),!1;const ve={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:ce.length},_e=pe.map(ie=>ie.message);return ce.forEach((ie,be)=>{var ge,Ae,Be;ie.user_type===void 0||ie.user_type===""?ve.user_types.default++:ve.user_types[ie.user_type]+=1,(ge=oe.fields)!=null&&ge.includes("name")&&delete ie.name,(Ae=oe.fields)!=null&&Ae.includes("user_type")&&delete ie.user_type,(Be=oe.fields)!=null&&Be.includes("is_admin")&&delete ie.is_admin,["is_guest","admin","deactivated"].forEach(V=>{ie[V]==="true"?(ve[V]++,ie[V]=!0):(ie[V]!=="false"&&ie[V]!==""&&_e.push($("import_users.error.invalid_value",{field:V,row:be})),ie[V]=!1)}),ie.password!==void 0&&ie.password!==""&&ve.password++,ie.avatar_url!==void 0&&ie.avatar_url!==""&&ve.avatar_url++,ie.id!==void 0&&ie.id!==""&&ve.id++}),_e.length>0&&de(_e),ye(ve),Re(ce),!0},I=async()=>{if(c!==null){P("import_users.errors.already_in_progress");return}const ce=await A(C,e,x,O,g,i,l,n);v(ce),h(fN.unparse(ce.skippedRecords)),console.log("Skipped records:"),console.log(m)},A=async(ce,oe,pe,Re,ye,de,he,ve)=>{const _e=[],ie=[],be=[],ge={total:0,id:0,is_guest:0,admin:0,password:0};let Ae=0;const Be=oe.length;try{he({done:Ae,limit:Be});for(const V of oe){const X={...V};(ye==="ignore"||X.id===void 0)&&(X.id=pN()),(Re===!1||V.password===void 0)&&(X.password=pBe()),vw&&console.log("will check for existence of record "+JSON.stringify(X));let Y=0;const ae=se=>ce.getOne("users",{id:se.id}).then(async()=>{if(vw&&console.log("already existed"),ye==="update"||pe==="skip")_e.push(se);else{if(pe==="stop")throw new Error($("import_users.error.id_exits",{id:se.id}));{const le=Object.assign({},se,{id:pN()});Y++,Y>512?(console.warn("retry loop got stuck? pathological situation?"),_e.push(se)):await ae(le)}}},async()=>{vw&&console.log("OK to create record "+se.id+" ("+se.displayname+")."),de||await ce.create("users",{data:se}),be.push(se)});await ae(X),Ae++,he({done:Ae,limit:oe.length})}he(null)}catch(V){ve($("import_users.error.at_entry",{entry:Ae+1,message:V instanceof Error?V.message:String(V)})),he(null)}return{skippedRecords:_e,erroredRecords:ie,succeededRecords:be,totalRecordCount:Be,changeStats:ge,wasDryRun:de}},F=()=>{const ce=document.createElement("a");console.log(m);const oe=new Blob([m],{type:"text/comma-separated-values"});ce.href=URL.createObjectURL(oe),ce.download="skippedRecords.csv",document.body.appendChild(ce),ce.click()},L=async ce=>{if(c!==null)return;const oe=ce.target.value;w(oe)},D=ce=>{c===null&&b(ce.target.checked)},U=async ce=>{if(c!==null)return;const oe=ce.target.value;_(oe)},H=ce=>{c===null&&s(ce.target.checked)},q=o&&!f&&[S.jsxs(Uu,{children:[S.jsx(ml,{title:$("import_users.cards.importstats.header")}),S.jsxs(Ao,{children:[S.jsx("div",{children:$("import_users.cards.importstats.users_total",o.total)}),S.jsx("div",{children:$("import_users.cards.importstats.guest_count",o.is_guest)}),S.jsx("div",{children:$("import_users.cards.importstats.admin_count",o.admin)})]})]}),S.jsxs(Uu,{children:[S.jsx(ml,{title:$("import_users.cards.ids.header")}),S.jsxs(Ao,{children:[S.jsx("div",{children:o.id===o.total?$("import_users.cards.ids.all_ids_present"):$("import_users.cards.ids.count_ids_present",o.id)}),o.id>0?S.jsx("div",{children:S.jsxs(vO,{onChange:U,value:g,disabled:c!==null,children:[S.jsx(jh,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),S.jsx(jh,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),S.jsxs(Uu,{children:[S.jsx(ml,{title:$("import_users.cards.passwords.header")}),S.jsxs(Ao,{children:[S.jsx("div",{children:o.password===o.total?$("import_users.cards.passwords.all_passwords_present"):$("import_users.cards.passwords.count_passwords_present",o.password)}),o.password>0?S.jsx("div",{children:S.jsx(dO,{control:S.jsx(ad,{checked:O,disabled:c!==null,onChange:D}),label:$("import_users.cards.passwords.use_passwords")})}):""]})]})],G=o&&!f&&S.jsxs(Uu,{children:[S.jsx(ml,{title:$("import_users.cards.conflicts.header")}),S.jsx(Ao,{children:S.jsx("div",{children:S.jsxs(vO,{onChange:L,value:x,disabled:c!==null,children:[S.jsx(jh,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),S.jsx(jh,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),z=r&&S.jsxs(Uu,{children:[S.jsx(ml,{title:$("import_users.error.error")}),S.jsx(Ao,{children:(Array.isArray(r)?r:[r]).map(ce=>S.jsx("div",{children:ce}))})]}),W=!f&&S.jsxs(Uu,{children:[S.jsx(ml,{title:$("import_users.cards.upload.header")}),S.jsxs(Ao,{children:[$("import_users.cards.upload.explanation"),S.jsx("a",{href:"./data/example.csv",children:"example.csv"}),S.jsx("br",{}),S.jsx("br",{}),S.jsx("input",{type:"file",onChange:k,disabled:c!==null})]})]}),te=f&&S.jsxs(Ao,{children:[S.jsx(ml,{title:$("import_users.cards.results.header")}),S.jsxs("div",{children:[$("import_users.cards.results.total",f.totalRecordCount),S.jsx("br",{}),$("import_users.cards.results.successful",f.succeededRecords.length),S.jsx("br",{}),f.skippedRecords.length?[$("import_users.cards.results.skipped",f.skippedRecords.length),S.jsx("div",{children:S.jsx("button",{onClick:F,children:$("import_users.cards.results.download_skipped")})}),S.jsx("br",{})]:"",f.erroredRecords.length?[$("import_users.cards.results.skipped",f.erroredRecords.length),S.jsx("br",{})]:"",S.jsx("br",{}),f.wasDryRun&&[$("import_users.cards.results.simulated_only"),S.jsx("br",{})]]})]}),ne=!e||e.length===0||f?void 0:S.jsxs(N6,{children:[S.jsx(dO,{control:S.jsx(ad,{checked:i,onChange:H,disabled:c!==null}),label:$("import_users.cards.startImport.simulate_only")}),S.jsx($r,{size:"large",onClick:I,disabled:c!==null,children:$("import_users.cards.startImport.run_import")}),c!==null?S.jsxs("div",{children:[c.done," of ",c.limit," done"]}):null]}),ee=[];W&&ee.push(W),z&&ee.push(z),G&&ee.push(G),q&&ee.push(...q),ne&&ee.push(ne),te&&ee.push(te);const Oe=S.jsx(du,{children:ee});return[S.jsx(el,{defaultTitle:$("import_users.title")}),Oe]},hBe=mBe,TU={ra:{action:{add_filter:"Filter hinzufügen",add:"Neu",back:"Zurück",bulk_actions:"Ein Element ausgewählt |||| %{smart_count} Elemente ausgewählt",cancel:"Abbrechen",clear_array_input:"Liste löschen",clear_input_value:"Eingabe löschen",clone:"Klonen",confirm:"Bestätigen",create:"Erstellen",create_item:"%{item} erstellen",delete:"Löschen",edit:"Bearbeiten",export:"Exportieren",list:"Liste",refresh:"Neu laden",remove_filter:"Filter entfernen",remove_all_filters:"Alle Filter entfernen",remove:"Entfernen",save:"Speichern",search:"Suchen",select_all:"Alles auswählen",select_row:"Reihe auswählen",show:"Anzeigen",sort:"Sortieren",undo:"Rückgängig machen",unselect:"Abwählen",expand:"Erweitern",close:"Schließen",open_menu:"Menü öffnen",close_menu:"Menü schließen",update:"Aktualisieren",move_up:"Nach oben",move_down:"Nach unten",open:"Öffnen",toggle_theme:"Theme wechseln",select_columns:"Spalten"},boolean:{true:"Ja",false:"Nein",null:" "},page:{create:"%{name} erstellen",dashboard:"Dashboard",edit:"%{name} %{recordRepresentation}",error:"Etwas ist schiefgelaufen",list:"%{name}",loading:"Laden",not_found:"Nicht gefunden",show:"%{name} %{recordRepresentation}",empty:"Noch kein %{name}.",invite:"Neu erstellen?"},input:{file:{upload_several:"Dateien hier ablegen, oder zum Auswählen klicken.",upload_single:"Dateien hier ablegen, oder zum Auswählen klicken."},image:{upload_several:"Bilder hier ablegen, oder zum Auswählen klicken.",upload_single:"Bild hier ablegen, oder zum Auswählen klicken."},references:{all_missing:"Die Daten der Referenz können nicht gefunden werden.",many_missing:"Mindestens eine Referenz scheint nicht mehr verfügbar zu sein.",single_missing:"Die Referenz scheint nicht mehr verfügbar zu sein."},password:{toggle_visible:"Passwort verbergen",toggle_hidden:"Passwort einblenden"}},message:{about:"Über",are_you_sure:"Sind Sie sicher?",auth_error:"Bei der Validierung des Authentifizierungstokens ist ein Fehler aufgetreten.",bulk_delete_content:"Sicher, dass Sie %{name} löschen wollen? |||| Sicher, dass Sie diese %{smart_count} Elemente löschen wollen?",bulk_delete_title:"%{name} löschen |||| %{smart_count} %{name} löschen",bulk_update_content:"Sicher, dass Sie %{name} aktualisieren wollen? |||| Sicher, dass Sie %{smart_count} Elemente aktualisieren wollen?",bulk_update_title:"%{name} aktualisieren |||| %{smart_count} %{name} aktualisieren",clear_array_input:"Sicher, dass Sie die ganze Liste löschen wollen?",delete_content:"Sicher, dass Sie dieses Element löschen wollen?",delete_title:"%{name} #%{id} löschen",details:"Details",error:"Ein Fehler trat auf, Ihre Anfrage konnte nicht verarbeitet werden.",invalid_form:"Das Formular ist ungültig. Bitte überprüfen Sie Ihre Eingaben.",loading:"Die Seite wird geladen, noch einen Moment.",no:"Nein",not_found:"Sie eine falsche URL aufgerufen oder eingegeben.",yes:"Ja",unsaved_changes:"Einige Änderungen wurden nicht gespeichert. Sicher, dass Sie diese nicht übernehmen wollen?"},navigation:{no_results:"Keine Ergebnisse gefunden.",no_more_results:"Es gibt keine Seite %{page}. Versuche eine vorherige.",page_out_of_boundaries:"Es gibt keine Seite %{page}.",page_out_from_end:"Es gibt keine Seite mehr nach dieser.",page_out_from_begin:"Es gibt keine Seite vor Seite 1.",page_range_info:"%{offsetBegin}-%{offsetEnd} von %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} von mehr als %{offsetEnd}",current_page:"Seite %{page}",page:"Gehe zu Seite %{page}",first:"Gehe zur ersten Seite",last:"Gehe zur letzten Seite",next:"Gehe zur nächsten Seite",previous:"Gehe zur vorherigen Seite",page_rows_per_page:"Reihen pro Seite:",skip_nav:"Zum Inhalt springen"},sort:{sort_by:"Nach %{field} %{order} sortieren",ASC:"Aufsteigend",DESC:"Absteigend"},auth:{auth_check_error:"Bitte anmelden um fortzufahren",user_menu:"Profil",username:"Nutzername",password:"Passwort",sign_in:"Anmelden",sign_in_error:"Anmeldung fehlgeschlagen, bitte erneut versuchen.",logout:"Abmelden"},notification:{updated:"Element aktualisiert |||| %{smart_count} Elemente aktualisiert",created:"Element erstellt",deleted:"Element gelöscht |||| %{smart_count} Elemente gelöscht",bad_item:"Fehlerhaftes Element",item_doesnt_exist:"Element existiert nicht",http_error:"Kommunikation mit Server fehlgeschlagen",data_provider_error:"DataProvider-Fehler. Mehr Details in der Konsole.",i18n_error:"Die Übersetzungen für die ausgewählte Sprache können nicht geladen werden",canceled:"Aktion abgebrochen",logged_out:"Ihre Sitzung ist abgelaufen, bitte erneut verbinden.",not_authorized:"Sie sind nicht berechtigt, auf diese Ressource zuzugreifen."},validation:{required:"Erforderlich",minLength:"Muss mindestens %{min} Zeichen betragen",maxLength:"Darf %{max} Zeichen oder weniger betragen",minValue:"Muss mindestens %{min} betragen",maxValue:"Darf %{max} oder weniger betragen",number:"Muss eine Nummer sein",email:"Muss eine gültige E-Mail sein",oneOf:"Muss eine der folgenden Optionen sein: %{options}",regex:"Muss einem gewissen Format entsprechen (regexp): %{pattern}"},saved_queries:{label:"Gespeicherte Anfragen",query_name:"Name der Anfrage",new_label:"Speichere aktuelle Anfrage...",new_dialog_title:"Speichere aktuelle Anfrage als",remove_label:"Gespeicherte Anfrage löschen",remove_label_with_name:'Anfrage "%{name}" löschen',remove_dialog_title:"Gespeicherte Anfrage löschen?",remove_message:"Sicher, dass Sie diese Anfrage aus der Liste der gespeicherten löschen wollen?",help:"Liste filtern und diese Anfrage für später speichern"},configurable:{customize:"Anpassen",configureMode:"Diese Seite anpassen",inspector:{title:"Inspektor",content:"Bewegen Sie den Mauszeigen über die UI-Elemente, um sie zu konfigurieren",reset:"Einstellungen zurücksetzen",hideAll:"Alles verbergen",showAll:"Alles anzeigen"},Datagrid:{title:"Datagrid",unlabeled:"Unbekannte Spalte #%{column}"},SimpleForm:{title:"Formular",unlabeled:"Unbenannter Input #%{input}"},SimpleList:{title:"Liste",primaryText:"Primärtext",secondaryText:"Sekundärtext",tertiaryText:"Tertiärtext"}}}},gBe={ra:{message:{are_you_sure:"Bist du sicher?",bulk_delete_content:"Sicher, dass du %{name} löschen willst? |||| Sicher, dass du diese %{smart_count} Elemente löschen willst?",bulk_update_content:"Sicher, dass du %{name} aktualisieren willst? |||| Sicher, dass du %{smart_count} Elemente aktualisieren willst?",clear_array_input:"Sicher, dass du die ganze Liste löschen willst?",delete_content:"Sicher, dass du dieses Element löschen willst?",error:"Ein Fehler trat auf, Deine Anfrage konnte nicht verarbeitet werden.",invalid_form:"Das Formular ist ungültig. Bitte überprüfe Deine Eingaben.",not_found:"Du hast eine falsche URL aufgerufen oder eingegeben.",unsaved_changes:"Einige Änderungen wurden nicht gespeichert. Sicher, dass du diese nicht übernehmen willst?"},notification:{logged_out:"Deine Sitzung ist abgelaufen, bitte erneut verbinden.",not_authorized:"Du bist nicht berechtigt, auf diese Ressource zuzugreifen."},saved_queries:{remove_message:"Sicher, dass du diese Anfrage aus der Liste der gespeicherten löschen willst?"},configurable:{inspector:{content:"Bewege den Mauszeigen über die UI-Elemente, um sie zu konfigurieren"}}}};yP(TU,gBe);const yBe={...TU,synapseadmin:{auth:{base_url:"Heimserver URL",welcome:"Willkommen bei Synapse-admin",server_version:"Synapse Version",supports_specs:"unterstützt Matrix-Specs",username_error:"Bitte vollständigen Nutzernamen angeben: '@user:domain'",protocol_error:"Die URL muss mit 'http://' oder 'https://' beginnen",url_error:"Keine gültige Matrix Server URL",sso_sign_in:"Anmeldung mit SSO"},users:{invalid_user_id:"Lokaler Anteil der Matrix Benutzer-ID ohne Homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Raumdetails",tabs:{basic:"Allgemein",members:"Mitglieder",detail:"Details",permission:"Berechtigungen"}},reports:{tabs:{basic:"Allgemein",detail:"Details"}}},import_users:{error:{at_entry:"Bei Eintrag %{entry}: %{message}",error:"Fehler",required_field:"Pflichtfeld '%{field}' fehlt",invalid_value:"Ungültiger Wert in Zeile %{row}. Feld '%{field}' darf nur die Werte 'true' oder 'false' enthalten",unreasonably_big:"Datei ist zu groß für den Import (%{size} Megabytes)",already_in_progress:"Es läuft bereits ein Import",id_exits:"ID %{id} existiert bereits"},title:"Benutzer aus CSV importieren",goToPdf:"Gehe zum PDF",cards:{importstats:{header:"Benutzer importieren",users_total:"%{smart_count} Benutzer in der CSV Datei |||| %{smart_count} Benutzer in der CSV Datei",guest_count:"%{smart_count} Gast |||| %{smart_count} Gäste",admin_count:"%{smart_count} Server Administrator |||| %{smart_count} Server Administratoren"},conflicts:{header:"Konfliktstrategie",mode:{stop:"Stoppe bei Fehlern",skip:"Zeige Fehler und überspringe fehlerhafte Einträge"}},ids:{header:"IDs",all_ids_present:"IDs in jedem Eintrag vorhanden",count_ids_present:"%{smart_count} Eintrag mit ID |||| %{smart_count} Einträge mit IDs",mode:{ignore:"Ignoriere IDs der CSV-Datei und erstelle neue",update:"Aktualisiere existierende Benutzer"}},passwords:{header:"Passwörter",all_passwords_present:"Passwörter in jedem Eintrag vorhanden",count_passwords_present:"%{smart_count} Eintrag mit Passwort |||| %{smart_count} Einträge mit Passwörtern",use_passwords:"Verwende Passwörter aus der CSV Datei"},upload:{header:"CSV Datei importieren",explanation:"Hier können Sie eine Datei mit kommagetrennten Daten hochladen, die verwendet werden um Benutzer anzulegen oder zu ändern. Die Datei muss mindestens die Felder 'id' und 'displayname' enthalten. Hier können Sie eine Beispieldatei herunterladen und anpassen: "},startImport:{simulate_only:"Nur simulieren",run_import:"Importieren"},results:{header:"Ergebnis",total:"%{smart_count} Eintrag insgesamt |||| %{smart_count} Einträge insgesamt",successful:"%{smart_count} Einträge erfolgreich importiert",skipped:"%{smart_count} Einträge übersprungen",download_skipped:"Übersprungene Einträge herunterladen",with_error:"%{smart_count} Eintrag mit Fehlern ||| %{smart_count} Einträge mit Fehlern",simulated_only:"Import-Vorgang war nur simuliert"}}},delete_media:{name:"Medien",fields:{before_ts:"Letzter Zugriff vor",size_gt:"Größer als (in Bytes)",keep_profiles:"Behalte Profilbilder"},action:{send:"Medien löschen",send_success:"Anfrage erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:"Diese API löscht die lokalen Medien von der Festplatte des eigenen Servers. Dies umfasst alle lokalen Miniaturbilder und Kopien von Medien. Diese API wirkt sich nicht auf Medien aus, die sich in externen Medien-Repositories befinden."}},resources:{users:{name:"Benutzer",email:"E-Mail",msisdn:"Telefon",threepid:"E-Mail / Telefon",fields:{avatar:"Avatar",id:"Benutzer-ID",name:"Name",is_guest:"Gast",admin:"Server Administrator",locked:"Gesperrt",deactivated:"Deaktiviert",erased:"Gelöscht",guests:"Zeige Gäste",show_deactivated:"Zeige deaktivierte Benutzer",user_id:"Suche Benutzer",displayname:"Anzeigename",password:"Passwort",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Adresse",creation_ts_ms:"Zeitpunkt der Erstellung",consent_version:"Zugestimmte Geschäftsbedingungen",auth_provider:"Provider",user_type:"Benutzertyp"},helper:{password:"Durch die Änderung des Passworts wird der Benutzer von allen Sitzungen abgemeldet.",deactivate:"Sie müssen ein Passwort angeben, um ein Konto wieder zu aktivieren.",erase:"DSGVO konformes Löschen der Benutzerdaten"},action:{erase:"Lösche Benutzerdaten"}},rooms:{name:"Raum |||| Räume",fields:{room_id:"Raum-ID",name:"Name",canonical_alias:"Alias",joined_members:"Mitglieder",joined_local_members:"Lokale Mitglieder",joined_local_devices:"Lokale Endgeräte",state_events:"Zustandsereignisse / Komplexität",version:"Version",is_encrypted:"Verschlüsselt",encryption:"Verschlüsselungs-Algorithmus",federatable:"Fö­de­rierbar",public:"Sichtbar im Raumverzeichnis",creator:"Ersteller",join_rules:"Beitrittsregeln",guest_access:"Gastzugriff",history_visibility:"Historie-Sichtbarkeit",topic:"Thema",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Öffentlich",knock:"Auf Anfrage",invite:"Nur auf Einladung",private:"Privat"},guest_access:{can_join:"Gäste können beitreten",forbidden:"Gäste können nicht beitreten"},history_visibility:{invited:"Ab Einladung",joined:"Ab Beitritt",shared:"Ab Setzen der Einstellung",world_readable:"Jeder"},unencrypted:"Nicht verschlüsselt"},action:{erase:{title:"Raum löschen",content:"Sind Sie sicher dass Sie den Raum löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden. Alle Nachrichten und Medien, die der Raum beinhaltet werden vom Server gelöscht!"}}},reports:{name:"Gemeldetes Ereignis |||| Gemeldete Ereignisse",fields:{id:"ID",received_ts:"Meldezeit",user_id:"Meldender",name:"Raumname",score:"Wert",reason:"Grund",event_id:"Event-ID",event_json:{origin:"Ursprungsserver",origin_server_ts:"Sendezeit",type:"Eventtyp",content:{msgtype:"Inhaltstyp",body:"Nachrichteninhalt",format:"Nachrichtenformat",formatted_body:"Formatierter Nachrichteninhalt",algorithm:"Verschlüsselungsalgorithmus",info:{mimetype:"Typ"},url:"URL"}}},action:{erase:{title:"Gemeldetes Event löschen",content:"Sind Sie sicher dass Sie das gemeldete Event löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden."}}},connections:{name:"Verbindungen",fields:{last_seen:"Datum",ip:"IP-Adresse",user_agent:"User Agent"}},devices:{name:"Gerät |||| Geräte",fields:{device_id:"Geräte-ID",display_name:"Gerätename",last_seen_ts:"Zeitstempel",last_seen_ip:"IP-Adresse"},action:{erase:{title:"Entferne %{id}",content:'Möchten Sie das Gerät "%{name}" wirklich entfernen?',success:"Gerät erfolgreich entfernt.",failure:"Beim Entfernen ist ein Fehler aufgetreten."}}},users_media:{name:"Medien",fields:{media_id:"Medien ID",media_length:"Größe",media_type:"Typ",upload_name:"Dateiname",quarantined_by:"Zur Quarantäne hinzugefügt",safe_from_quarantine:"Schutz vor Quarantäne",created_ts:"Erstellt",last_access_ts:"Letzter Zugriff"},action:{open:"Mediendatei in neuem Fenster öffnen"}},protect_media:{action:{create:"Ungeschützt, Schutz erstellen",delete:"Geschützt, Schutz aufheben",none:"In Quarantäne",send_success:"Erfolgreich den Schutz-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},quarantine_media:{action:{name:"Quarantäne",create:"Zur Quarantäne hinzufügen",delete:"In Quarantäne, Quarantäne aufheben",none:"Geschützt vor Quarantäne",send_success:"Erfolgreich den Quarantäne-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App-Anzeigename",app_id:"App ID",device_display_name:"Geräte-Anzeigename",kind:"Art",lang:"Sprache",profile_tag:"Profil-Tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Serverbenachrichtigungen",send:"Servernachricht versenden",fields:{body:"Nachricht"},action:{send:"Sende Nachricht",send_success:"Nachricht erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:'Sendet eine Serverbenachrichtigung an die ausgewählten Nutzer. Hierfür muss das Feature "Server Notices" auf dem Server aktiviert sein.'}},user_media_statistics:{name:"Dateien je Benutzer",fields:{media_count:"Anzahl der Dateien",media_length:"Größe der Dateien"}},forward_extremities:{name:"Vorderextremitäten",fields:{id:"Event-ID",received_ts:"Zeitstempel",depth:"Tiefe",state_group:"Zustandsgruppe"}},room_state:{name:"Zustandsereignisse",fields:{type:"Typ",content:"Inhalt",origin_server_ts:"Sendezeit",sender:"Absender"}},room_directory:{name:"Raumverzeichnis",fields:{world_readable:"Gastbenutzer dürfen ohne Beitritt lesen",guest_can_join:"Gastbenutzer dürfen beitreten"},action:{title:"Raum aus Verzeichnis löschen |||| %{smart_count} Räume aus Verzeichnis löschen",content:"Möchten Sie den Raum wirklich aus dem Raumverzeichnis löschen? |||| Möchten Sie die %{smart_count} Räume wirklich aus dem Raumverzeichnis löschen?",erase:"Lösche aus Verzeichnis",create:"Eintragen ins Verzeichnis",send_success:"Raum erfolgreich eingetragen.",send_failure:"Beim Entfernen ist ein Fehler aufgetreten."}},destinations:{name:"Föderation",fields:{destination:"Ziel",failure_ts:"Fehlerzeitpunkt",retry_last_ts:"Letzter Wiederholungsversuch",retry_interval:"Wiederholungsintervall",last_successful_stream_ordering:"letzte erfogreicher Stream",stream_ordering:"Stream"},action:{reconnect:"Neu verbinden"}},registration_tokens:{name:"Registrierungstoken",fields:{token:"Token",valid:"Gültige Token",uses_allowed:"Anzahl",pending:"Ausstehend",completed:"Abgeschlossen",expiry_time:"Ablaufzeit",length:"Länge"},helper:{length:"Länge des Tokens, wenn kein Token vorgegeben wird."}}}},bBe={...RU,synapseadmin:{auth:{base_url:"Homeserver URL",welcome:"Welcome to Synapse-admin",server_version:"Synapse version",supports_specs:"supports Matrix specs",username_error:"Please enter fully qualified user ID: '@user:domain'",protocol_error:"URL has to start with 'http://' or 'https://'",url_error:"Not a valid Matrix server URL",sso_sign_in:"Sign in with SSO"},users:{invalid_user_id:"Localpart of a Matrix user-id without homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Room details",tabs:{basic:"Basic",members:"Members",detail:"Details",permission:"Permissions"}},reports:{tabs:{basic:"Basic",detail:"Details"}}},import_users:{error:{at_entry:"At entry %{entry}: %{message}",error:"Error",required_field:"Required field '%{field}' is not present",invalid_value:"Invalid value on line %{row}. '%{field}' field may only be 'true' or 'false'",unreasonably_big:"Refused to load unreasonably big file of %{size} megabytes",already_in_progress:"An import run is already in progress",id_exits:"ID %{id} already present"},title:"Import users via CSV",goToPdf:"Go to PDF",cards:{importstats:{header:"Import users",users_total:"%{smart_count} user in CSV file |||| %{smart_count} users in CSV file",guest_count:"%{smart_count} guest |||| %{smart_count} guests",admin_count:"%{smart_count} admin |||| %{smart_count} admins"},conflicts:{header:"Conflict strategy",mode:{stop:"Stop on conflict",skip:"Show error and skip on conflict"}},ids:{header:"IDs",all_ids_present:"IDs present on every entry",count_ids_present:"%{smart_count} entry with ID |||| %{smart_count} entries with IDs",mode:{ignore:"Ignore IDs in CSV and create new ones",update:"Update existing records"}},passwords:{header:"Passwords",all_passwords_present:"Passwords present on every entry",count_passwords_present:"%{smart_count} entry with password |||| %{smart_count} entries with passwords",use_passwords:"Use passwords from CSV"},upload:{header:"Input CSV file",explanation:"Here you can upload a file with comma separated values that is processed to create or update users. The file must include the fields 'id' and 'displayname'. You can download and adapt an example file here: "},startImport:{simulate_only:"Simulate only",run_import:"Import"},results:{header:"Import results",total:"%{smart_count} entry in total |||| %{smart_count} entries in total",successful:"%{smart_count} entries successfully imported",skipped:"%{smart_count} entries skipped",download_skipped:"Download skipped records",with_error:"%{smart_count} entry with errors |||| %{smart_count} entries with errors",simulated_only:"Run was only simulated"}}},delete_media:{name:"Media",fields:{before_ts:"last access before",size_gt:"Larger then (in bytes)",keep_profiles:"Keep profile images"},action:{send:"Delete media",send_success:"Request successfully sent.",send_failure:"An error has occurred."},helper:{send:"This API deletes the local media from the disk of your own server. This includes any local thumbnails and copies of media downloaded. This API will not affect media that has been uploaded to external media repositories."}},resources:{users:{name:"User |||| Users",email:"Email",msisdn:"Phone",threepid:"Email / Phone",fields:{avatar:"Avatar",id:"User-ID",name:"Name",is_guest:"Guest",admin:"Server Administrator",locked:"Locked",deactivated:"Deactivated",erased:"Erased",guests:"Show guests",show_deactivated:"Show deactivated users",show_locked:"Show locked users",user_id:"Search user",displayname:"Displayname",password:"Password",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Address",creation_ts_ms:"Creation timestamp",consent_version:"Consent version",auth_provider:"Provider",user_type:"User type"},helper:{password:"Changing password will log user out of all sessions.",deactivate:"You must provide a password to re-activate an account.",erase:"Mark the user as GDPR-erased"},action:{erase:"Erase user data"}},rooms:{name:"Room |||| Rooms",fields:{room_id:"Room-ID",name:"Name",canonical_alias:"Alias",joined_members:"Members",joined_local_members:"Local members",joined_local_devices:"Local devices",state_events:"State events / Complexity",version:"Version",is_encrypted:"Encrypted",encryption:"Encryption",federatable:"Federatable",public:"Visible in room directory",creator:"Creator",join_rules:"Join rules",guest_access:"Guest access",history_visibility:"History visibility",topic:"Topic",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Public",knock:"Knock",invite:"Invite",private:"Private"},guest_access:{can_join:"Guests can join",forbidden:"Guests can not join"},history_visibility:{invited:"Since invited",joined:"Since joined",shared:"Since shared",world_readable:"Anyone"},unencrypted:"Unencrypted"},action:{erase:{title:"Delete room",content:"Are you sure you want to delete the room? This cannot be undone. All messages and shared media in the room will be deleted from the server!"}}},reports:{name:"Reported event |||| Reported events",fields:{id:"ID",received_ts:"report time",user_id:"announcer",name:"name of the room",score:"score",reason:"reason",event_id:"event ID",event_json:{origin:"origin server",origin_server_ts:"time of send",type:"event type",content:{msgtype:"content type",body:"content",format:"format",formatted_body:"formatted content",algorithm:"algorithm",url:"URL",info:{mimetype:"Type"}}}},action:{erase:{title:"Delete reported event",content:"Are you sure you want to delete the reported event? This cannot be undone."}}},connections:{name:"Connections",fields:{last_seen:"Date",ip:"IP address",user_agent:"User agent"}},devices:{name:"Device |||| Devices",fields:{device_id:"Device-ID",display_name:"Device name",last_seen_ts:"Timestamp",last_seen_ip:"IP address"},action:{erase:{title:"Removing %{id}",content:'Are you sure you want to remove the device "%{name}"?',success:"Device successfully removed.",failure:"An error has occurred."}}},users_media:{name:"Media",fields:{media_id:"Media ID",media_length:"File Size (in Bytes)",media_type:"Type",upload_name:"File name",quarantined_by:"Quarantined by",safe_from_quarantine:"Safe from quarantine",created_ts:"Created",last_access_ts:"Last access"},action:{open:"Open media file in new window"}},protect_media:{action:{create:"Unprotected, create protection",delete:"Protected, remove protection",none:"In quarantine",send_success:"Successfully changed the protection status.",send_failure:"An error has occurred."}},quarantine_media:{action:{name:"Quarantine",create:"Add to quarantine",delete:"In quarantine, unquarantine",none:"Protected from quarantine",send_success:"Successfully changed the quarantine status.",send_failure:"An error has occurred."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App display name",app_id:"App ID",device_display_name:"Device display name",kind:"Kind",lang:"Language",profile_tag:"Profile tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Server Notices",send:"Send server notices",fields:{body:"Message"},action:{send:"Send note",send_success:"Server notice successfully sent.",send_failure:"An error has occurred."},helper:{send:'Sends a server notice to the selected users. The feature "Server Notices" has to be activated at the server.'}},user_media_statistics:{name:"Users' media",fields:{media_count:"Media count",media_length:"Media length"}},forward_extremities:{name:"Forward Extremities",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Depth",state_group:"State group"}},room_state:{name:"State events",fields:{type:"Type",content:"Content",origin_server_ts:"time of send",sender:"Sender"}},room_directory:{name:"Room directory",fields:{world_readable:"guest users may view without joining",guest_can_join:"guest users may join"},action:{title:"Delete room from directory |||| Delete %{smart_count} rooms from directory",content:"Are you sure you want to remove this room from directory? |||| Are you sure you want to remove these %{smart_count} rooms from directory?",erase:"Delete from room directory",create:"Publish in room directory",send_success:"Room successfully published.",send_failure:"An error has occurred."}},destinations:{name:"Federation",fields:{destination:"Destination",failure_ts:"Failure timestamp",retry_last_ts:"Last retry timestamp",retry_interval:"Retry interval",last_successful_stream_ordering:"Last successful stream",stream_ordering:"Stream"},action:{reconnect:"Reconnect"}},registration_tokens:{name:"Registration tokens",fields:{token:"Token",valid:"Valid token",uses_allowed:"Uses allowed",pending:"Pending",completed:"Completed",expiry_time:"Expiry time",length:"Length"},helper:{length:"Length of the token if no token is given."}}}};var _Be={ra:{action:{add_filter:"Ajouter un filtre",add:"Ajouter",back:"Retour",bulk_actions:"%{smart_count} sélectionné |||| %{smart_count} sélectionnés",cancel:"Annuler",clear_array_input:"Vider la liste",clear_input_value:"Vider le champ",clone:"Dupliquer",confirm:"Confirmer",create:"Créer",create_item:"Créer %{item}",delete:"Supprimer",edit:"Éditer",export:"Exporter",list:"Liste",refresh:"Actualiser",remove_filter:"Supprimer ce filtre",remove_all_filters:"Supprimer tous les filtres",remove:"Supprimer",save:"Enregistrer",select_all:"Tout sélectionner",select_row:"Sélectionner cette ligne",search:"Rechercher",show:"Afficher",sort:"Trier",undo:"Annuler",unselect:"Désélectionner",expand:"Étendre",close:"Fermer",open_menu:"Ouvrir le menu",close_menu:"Fermer le menu",update:"Modifier",move_up:"Déplacer vers le haut",move_down:"Déplacer vers le bas",open:"Ouvrir",toggle_theme:"Thème clair/sombre",select_columns:"Colonnes",update_application:"Recharger l'application"},boolean:{true:"Oui",false:"Non",null:" "},page:{create:"Créer %{name}",dashboard:"Tableau de bord",edit:"%{name} %{recordRepresentation}",error:"Un problème est survenu",list:"%{name}",loading:"Chargement",not_found:"Page manquante",show:"%{name} %{recordRepresentation}",empty:"Pas encore de %{name}.",invite:"Voulez-vous en créer un ?"},input:{file:{upload_several:"Déposez les fichiers à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez le fichier à uploader, ou cliquez pour le sélectionner."},image:{upload_several:"Déposez les images à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez l'image à uploader, ou cliquez pour la sélectionner."},references:{all_missing:"Impossible de trouver des données de références.",many_missing:"Au moins une des références associées semble ne plus être disponible.",single_missing:"La référence associée ne semble plus disponible."},password:{toggle_visible:"Cacher le mot de passe",toggle_hidden:"Montrer le mot de passe"}},message:{about:"Au sujet de",are_you_sure:"Êtes-vous sûr ?",auth_error:"Une erreur est survenue lors de la validation de votre jeton d'authentification.",bulk_delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ? |||| Êtes-vous sûr(e) de vouloir supprimer ces %{smart_count} éléments ?",bulk_delete_title:"Supprimer %{name} |||| Supprimer %{smart_count} %{name}",bulk_update_content:"Êtes-vous sûr(e) de vouloir modifier cet élément ? |||| Êtes-vous sûr(e) de vouloir modifier ces %{smart_count} éléments ?",bulk_update_title:"Modifier %{name} |||| Modifier %{smart_count} %{name}",clear_array_input:"Êtes-vous sûr(e) de vouloir supprimer tous les éléments de la liste ?",delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ?",delete_title:"Supprimer %{name} #%{id}",details:"Détails",error:"En raison d'une erreur côté navigateur, votre requête n'a pas pu aboutir.",invalid_form:"Le formulaire n'est pas valide.",loading:"La page est en cours de chargement, merci de bien vouloir patienter.",no:"Non",not_found:"L'URL saisie est incorrecte, ou vous avez suivi un mauvais lien.",yes:"Oui",unsaved_changes:"Certains changements n'ont pas été enregistrés. Êtes-vous sûr(e) de vouloir quitter cette page ?"},navigation:{no_results:"Aucun résultat",no_more_results:"La page numéro %{page} est en dehors des limites. Essayez la page précédente.",page_out_of_boundaries:"La page %{page} est en dehors des limites",page_out_from_end:"Fin de la pagination",page_out_from_begin:"La page doit être supérieure à 1",page_range_info:"%{offsetBegin}-%{offsetEnd} sur %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} sur plus de %{offsetEnd}",page_rows_per_page:"Lignes par page :",current_page:"Page %{page}",page:"Aller à la page %{page}",first:"Aller à la première page",last:"Aller à la dernière page",next:"Aller à la prochaine page",previous:"Aller à la page précédente",skip_nav:"Aller au contenu"},sort:{sort_by:"Trier par %{field} %{order}",ASC:"croissant",DESC:"décroissant"},auth:{auth_check_error:"Merci de vous connecter pour continuer",user_menu:"Profil",username:"Identifiant",password:"Mot de passe",sign_in:"Connexion",sign_in_error:"Échec de l'authentification, merci de réessayer",logout:"Déconnexion"},notification:{updated:"Élément mis à jour |||| %{smart_count} éléments mis à jour",created:"Élément créé",deleted:"Élément supprimé |||| %{smart_count} éléments supprimés",bad_item:"Élément inconnu",item_doesnt_exist:"L'élément n'existe pas",http_error:"Erreur de communication avec le serveur",data_provider_error:"Erreur dans le dataProvider. Plus de détails dans la console.",i18n_error:"Erreur de chargement des traductions pour la langue sélectionnée",canceled:"Action annulée",logged_out:"Votre session a pris fin, veuillez vous reconnecter.",not_authorized:"Vous n'êtes pas autorisé(e) à accéder à cette ressource.",application_update_available:"Une mise à jour est disponible."},validation:{required:"Ce champ est requis",minLength:"Minimum %{min} caractères",maxLength:"Maximum %{max} caractères",minValue:"Minimum %{min}",maxValue:"Maximum %{max}",number:"Doit être un nombre",email:"Doit être un email",oneOf:"Doit être au choix: %{options}",regex:"Doit respecter un format spécifique (regexp): %{pattern}",unique:"Doit être unique"},saved_queries:{label:"Mes requêtes",query_name:"Nom de la requête",new_label:"Ajouter à mes requêtes...",new_dialog_title:"Ajouter la requête en cours à mes requêtes",remove_label:"Retirer de mes requêtes",remove_label_with_name:'Retirer "%{name}" des mes requêtes',remove_dialog_title:"Effacer de mes requêtes ?",remove_message:"Etes-vous sûr(e) de vouloir supprimer cette requête de votre liste de requêtes ?",help:"Filtrez la liste et ajoutez cette requête à votre liste"},configurable:{customize:"Personnaliser",configureMode:"Configurer cette page",inspector:{title:"Inspecteur",content:"Sélectionner un composant pour le configurer",reset:"Réinitialiser",hideAll:"Masquer tout",showAll:"Afficher tout"},Datagrid:{title:"Tableau",unlabeled:"Colonne #%{column}"},SimpleForm:{title:"Formulaire",unlabeled:"Champ #%{input}"},SimpleList:{title:"Liste",primaryText:"Texte principal",secondaryText:"Texte secondaire",tertiaryText:"Texte annexe"}}}};const xBe={..._Be,synapseadmin:{auth:{base_url:"URL du serveur d’accueil",welcome:"Bienvenue sur Synapse-admin",server_version:"Version du serveur Synapse",username_error:"Veuillez entrer un nom d'utilisateur complet : « @utilisateur:domaine »",protocol_error:"L'URL doit commencer par « http:// » ou « https:// »",url_error:"L'URL du serveur Matrix n'est pas valide",sso_sign_in:"Se connecter avec l’authentification unique"},users:{invalid_user_id:"Partie locale d'un identifiant utilisateur Matrix sans le nom du serveur d’accueil.",tabs:{sso:"Authentification unique"}},rooms:{tabs:{basic:"Informations de base",members:"Membres",detail:"Détails",permission:"Permissions"}},reports:{tabs:{basic:"Informations de base",detail:"Détails"}}},import_users:{error:{at_entry:"Pour l'entrée %{entry} : %{message}",error:"Erreur",required_field:"Le champ requis « %{field} » est manquant",invalid_value:"Valeur non valide à la ligne %{row}. Le champ « %{field} » ne peut être que « true » ou « false »",unreasonably_big:"Refus de charger un fichier trop volumineux de %{size} mégaoctets",already_in_progress:"Un import est déjà en cours",id_exits:"L'identifiant %{id} déjà présent"},title:"Importer des utilisateurs à partir d'un fichier CSV",goToPdf:"Voir le PDF",cards:{importstats:{header:"Importer des utilisateurs",users_total:"%{smart_count} utilisateur dans le fichier CSV |||| %{smart_count} utilisateurs dans le fichier CSV",guest_count:"%{smart_count} visiteur |||| %{smart_count} visiteurs",admin_count:"%{smart_count} administrateur |||| %{smart_count} administrateurs"},conflicts:{header:"Stratégie de résolution des conflits",mode:{stop:"S'arrêter en cas de conflit",skip:"Afficher l'erreur et ignorer le conflit"}},ids:{header:"Identifiants",all_ids_present:"Identifiants présents pour chaque entrée",count_ids_present:"%{smart_count} entrée avec identifiant |||| %{smart_count} entrées avec identifiant",mode:{ignore:"Ignorer les identifiants dans le ficher CSV et en créer de nouveaux",update:"Mettre à jour les enregistrements existants"}},passwords:{header:"Mots de passe",all_passwords_present:"Mots de passe présents pour chaque entrée",count_passwords_present:"%{smart_count} entrée avec mot de passe |||| %{smart_count} entrées avec mot de passe",use_passwords:"Utiliser les mots de passe provenant du fichier CSV"},upload:{header:"Fichier CSV en entrée",explanation:"Vous pouvez télécharger ici un fichier contenant des valeurs séparées par des virgules qui sera traité pour créer ou mettre à jour des utilisateurs. Le fichier doit inclure les champs « id » et « displayname ». Vous pouvez télécharger et adapter un fichier d'exemple ici : "},startImport:{simulate_only:"Simuler",run_import:"Importer"},results:{header:"Résultats de l'import",total:"%{smart_count} entrée au total |||| %{smart_count} entrées au total",successful:"%{smart_count} entrées importées avec succès",skipped:"%{smart_count} entrées ignorées",download_skipped:"Télécharger les entrées ignorées",with_error:"%{smart_count} entrée avec des erreurs ||| %{smart_count} entrées avec des erreurs",simulated_only:"L'import était simulé"}}},delete_media:{name:"Media",fields:{before_ts:"Dernier accès avant",size_gt:"Plus grand que (en octets)",keep_profiles:"Conserver les images de profil"},action:{send:"Supprimer le média",send_success:"Requête envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Cette API supprime les médias locaux du disque de votre propre serveur. Cela inclut toutes les vignettes locales et les copies des médias téléchargés. Cette API n'affectera pas les médias qui ont été téléversés dans des dépôts de médias externes."}},resources:{users:{name:"Utilisateur |||| Utilisateurs",email:"Adresse électronique",msisdn:"Numéro de téléphone",threepid:"Adresse électronique / Numéro de téléphone",fields:{avatar:"Avatar",id:"Identifiant",name:"Nom",is_guest:"Visiteur",admin:"Administrateur du serveur",locked:"Verrouillé",deactivated:"Désactivé",guests:"Afficher les visiteurs",show_deactivated:"Afficher les utilisateurs désactivés",user_id:"Rechercher un utilisateur",displayname:"Nom d'affichage",password:"Mot de passe",avatar_url:"URL de l'avatar",avatar_src:"Avatar",medium:"Type",threepids:"Identifiants tiers",address:"Adresse",creation_ts_ms:"Date de création",consent_version:"Version du consentement",auth_provider:"Fournisseur d'identité"},helper:{deactivate:"Vous devrez fournir un mot de passe pour réactiver le compte.",erase:"Marquer l'utilisateur comme effacé conformément au RGPD"},action:{erase:"Effacer les données de l'utilisateur"}},rooms:{name:"Salon |||| Salons",fields:{room_id:"Identifiant du salon",name:"Nom",canonical_alias:"Alias",joined_members:"Membres",joined_local_members:"Membres locaux",joined_local_devices:"Appareils locaux",state_events:"Événements d'État / Complexité",version:"Version",is_encrypted:"Chiffré",encryption:"Chiffrement",federatable:"Fédérable",public:"Visible dans le répertoire des salons",creator:"Créateur",join_rules:"Règles d'adhésion",guest_access:"Accès des visiteurs",history_visibility:"Visibilité de l'historique",topic:"Sujet",avatar:"Avatar"},helper:{forward_extremities:"Les extrémités avant sont les événements feuilles à la fin d'un graphe orienté acyclique (DAG) dans un salon, c'est-à-dire les événements qui n'ont pas de descendants. Plus il y en a dans un salon, plus la résolution d'état que Synapse doit effectuer est importante (indice : c'est une opération coûteuse). Bien que Synapse dispose d'un algorithme pour éviter qu'un trop grand nombre de ces événements n'existent en même temps dans un salon, des bogues peuvent parfois les faire réapparaître. Si un salon présente plus de 10 extrémités avant, cela vaut la peine d'y prêter attention et éventuellement de les supprimer en utilisant les requêtes SQL mentionnées dans la discussion traitant du problème https://github.com/matrix-org/synapse/issues/1760."},enums:{join_rules:{public:"Public",knock:"Sur demande",invite:"Sur invitation",private:"Privé"},guest_access:{can_join:"Les visiteurs peuvent rejoindre le salon",forbidden:"Les visiteurs ne peuvent pas rejoindre le salon"},history_visibility:{invited:"Depuis l'invitation",joined:"Depuis l'adhésion",shared:"Depuis le partage",world_readable:"Tout le monde"},unencrypted:"Non chiffré"},action:{erase:{title:"Supprimer le salon",content:"Voulez-vous vraiment supprimer le salon ? Cette opération ne peut être annulée. Tous les messages et médias partagés du salon seront supprimés du serveur !"}}},reports:{name:"Événement signalé |||| Événements signalés",fields:{id:"Identifiant",received_ts:"Date du rapport",user_id:"Rapporteur",name:"Nom du salon",score:"Score",reason:"Motif",event_id:"Identifiant de l'événement",event_json:{origin:"Serveur d'origine",origin_server_ts:"Date d'envoi",type:"Type d'événement",content:{msgtype:"Type de contenu",body:"Contenu",format:"Format",formatted_body:"Contenu mis en forme",algorithm:"Algorithme"}}}},connections:{name:"Connexions",fields:{last_seen:"Date",ip:"Adresse IP",user_agent:"Agent utilisateur"}},devices:{name:"Appareil |||| Appareils",fields:{device_id:"Identifiant de l'appareil",display_name:"Nom de l'appareil",last_seen_ts:"Date",last_seen_ip:"Adresse IP"},action:{erase:{title:"Suppression de %{id}",content:"Voulez-vous vraiment supprimer l'appareil « %{name} » ?",success:"Appareil supprimé avec succès",failure:"Une erreur s'est produite"}}},users_media:{name:"Media",fields:{media_id:"Identifiant du média",media_length:"Taille du fichier (en octets)",media_type:"Type",upload_name:"Nom du fichier",quarantined_by:"Mis en quarantaine par",safe_from_quarantine:"Protection contre la mise en quarantaine",created_ts:"Date de création",last_access_ts:"Dernier accès"}},protect_media:{action:{create:"Protéger",delete:"Révoquer la protection",none:"En quarantaine",send_success:"Le statut de protection a été modifié avec succès",send_failure:"Une erreur s'est produite"}},quarantine_media:{action:{name:"Quarantaine",create:"Mettre en quarantaine",delete:"Révoquer la mise en quarantaine",none:"Protégé contre la mise en quarantaine",send_success:"Le statut de la quarantaine a été modifié avec succès",send_failure:"Une erreur s'est produite"}},pushers:{name:"Émetteur de notifications |||| Émetteurs de notifications",fields:{app:"Application",app_display_name:"Nom d'affichage de l'application",app_id:"Identifiant de l'application",device_display_name:"Nom d'affichage de l'appareil",kind:"Type",lang:"Langue",profile_tag:"Profil",pushkey:"Identifiant de l'émetteur",data:{url:"URL"}}},servernotices:{name:"Annonces du serveur",send:"Envoyer des « Annonces du serveur »",fields:{body:"Message"},action:{send:"Envoyer une annonce",send_success:"Annonce envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Envoie une annonce au nom du serveur aux utilisateurs sélectionnés. La fonction « Annonces du serveur » doit être activée sur le serveur."}},user_media_statistics:{name:"Médias des utilisateurs",fields:{media_count:"Nombre de médias",media_length:"Taille des médias"}},forward_extremities:{name:"Extrémités avant",fields:{id:"Identifiant de l'événement",received_ts:"Date de réception",depth:"Profondeur",state_group:"Groupe d'état"}},room_state:{name:"Événements d'état",fields:{type:"Type",content:"Contenu",origin_server_ts:"Date d'envoi",sender:"Expéditeur"}},room_directory:{name:"Répertoire des salons",fields:{world_readable:"Tout utilisateur peut avoir un aperçu du salon, sans en devenir membre",guest_can_join:"Les visiteurs peuvent rejoindre le salon"},action:{title:"Supprimer un salon du répertoire |||| Supprimer %{smart_count} salons du répertoire",content:"Voulez-vous vraiment supprimer ce salon du répertoire ? |||| Voulez-vous vraiment supprimer ces %{smart_count} salons du répertoire ?",erase:"Supprimer du répertoire des salons",create:"Publier dans le répertoire des salons",send_success:"Salon publié avec succès",send_failure:"Une erreur s'est produite"}},registration_tokens:{name:"Jetons d'inscription",fields:{token:"Jeton",valid:"Jeton valide",uses_allowed:"Nombre d'inscription autorisées",pending:"Nombre d'inscription en cours",completed:"Nombre d'inscription accomplie",expiry_time:"Date d'expiration",length:"Longueur"},helper:{length:"Longueur du jeton généré aléatoirement si aucun jeton n'est pas spécifié"}}}};var wBe={ra:{action:{add_filter:"Aggiungi un filtro",add:"Aggiungi",back:"Indietro",bulk_actions:"%{smart_count} selezionati",cancel:"Annulla",clear_input_value:"Svuota il modulo",clone:"Duplica",confirm:"Conferma",create:"Crea",delete:"Cancella",edit:"Modifica",export:"Esporta",list:"Elenco",refresh:"Aggiorna",remove_filter:"Rimuovi questo filtro",remove:"Rimuovi",save:"Salva",search:"Ricerca",show:"Mostra",sort:"Ordina",undo:"Annulla",unselect:"Annulla selezione",expand:"Espandi",close:"Chiudi",open_menu:"Apri il menu",close_menu:"Chiudi il menu"},boolean:{true:"Si",false:"No",null:" "},page:{create:"Aggiungi %{name}",dashboard:"Cruscotto",edit:"%{name} %{id}",error:"Qualcosa non ha funzionato",list:"%{name}",loading:"Caricamento in corso",not_found:"Non trovato",show:"%{name} %{id}",empty:"Nessun %{name} ancora.",invite:"Vuoi aggiungerne uno?"},input:{file:{upload_several:"Trascina i files da caricare, oppure clicca per selezionare.",upload_single:"Trascina il file da caricare, oppure clicca per selezionarlo."},image:{upload_several:"Trascina le immagini da caricare, oppure clicca per selezionarle.",upload_single:"Trascina l'immagine da caricare, oppure clicca per selezionarla."},references:{all_missing:"Impossibile trovare i riferimenti associati.",many_missing:"Almeno uno dei riferimenti associati non sembra più disponibile.",single_missing:"Il riferimento associato non sembra più disponibile."}},password:{toggle_visible:"Nascondi la password",toggle_hidden:"Mostra la password"},message:{about:"Informazioni",are_you_sure:"Sei sicuro ?",bulk_delete_content:"Sei sicuro di voler cancellare questo %{name}? |||| Sei sicuro di voler eliminare questi %{smart_count}?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name} items",delete_content:"Are you sure you want to delete this item?",delete_title:"Cancella %{name} #%{id}",details:"Dettagli",error:"Un errore locale è occorso e la tua richiesta non è stata completata.",invalid_form:"Il modulo non è valido. Si prega di verificare la presenza di errori.",loading:"La pagina si sta caricando, solo un momento per favore",no:"No",not_found:"Hai inserito un URL errato, oppure hai cliccato un link errato",yes:"Si",unsaved_changes:"Alcune modifiche non sono state salvate. Sei sicuro di volerle ignorare?"},navigation:{no_results:"Nessun risultato trovato",no_more_results:"La pagina numero %{page} è fuori dell'intervallo. Prova la pagina precedente.",page_out_of_boundaries:"Il numero di pagina %{page} è fuori dei limiti",page_out_from_end:"Fine della paginazione",page_out_from_begin:"Il numero di pagina deve essere maggiore di 1",page_range_info:"%{offsetBegin}-%{offsetEnd} di %{total}",page_rows_per_page:"Righe per pagina",next:"Successivo",prev:"Precedente",skip_nav:"Vai al contenuto"},sort:{sort_by:"Ordina per %{field} %{order}",ASC:"cresente",DESC:"decrescente"},auth:{auth_check_error:"È necessario accedere per continuare",user_menu:"Profilo",username:"Nome utente",password:"Password",sign_in:"Login",sign_in_error:"Autenticazione fallita, riprovare.",logout:"Disconnessione"},notification:{updated:"Record aggiornato |||| %{smart_count} records aggiornati",created:"Record creato",deleted:"Record eliminato |||| %{smart_count} records eliminati",bad_item:"Record errato",item_doesnt_exist:"Record inesistente",http_error:"Errore di comunicazione con il server dati",data_provider_error:"Errore del data provider. Controlla la console per i dettagli.",i18n_error:"Traduzioni non trovate per il linguaggio specificato",canceled:"Azione annullata",logged_out:"La sessione è stata terminata, si prega di ripetere l'autenticazione."},validation:{required:"Campo obbligatorio",minLength:"Deve essere lungo %{min} caratteri almeno",maxLength:"Deve essere lungo %{max} caratteri al massimo",minValue:"Deve essere almeno %{min}",maxValue:"Deve essere al massimo %{max}",number:"Deve essere un numero",email:"Deve essere un valido indirizzo email",oneOf:"Deve essere uno di: %{options}",regex:"Deve rispettare il formato (espressione regolare): %{pattern}"}}};const SBe=gr(wBe),OBe={...SBe,synapseadmin:{auth:{base_url:"URL dell'homeserver",welcome:"Benvenuto in Synapse-admin",server_version:"Versione di Synapse",username_error:"Per favore inserisci un ID utente completo: '@utente:dominio'",protocol_error:"L'URL deve iniziare per 'http://' o 'https://'",url_error:"URL del server Matrix non valido",sso_sign_in:"Accedi con SSO"},users:{invalid_user_id:"ID utente non valido su questo homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Semplice",members:"Membro",detail:"Dettagli",permission:"Permessi"}},reports:{tabs:{basic:"Semplice",detail:"Dettagli"}}},import_users:{error:{at_entry:"Alla voce %{entry}: %{message}",error:"Errore",required_field:"Il campo '%{field}' non è presente",invalid_value:"Valore non valido alla riga %{row}. '%{field}' Il campo può essere solo 'true' o 'false'",unreasonably_big:"Impossibile caricare un file così grosso (%{size} megabyte)",already_in_progress:"Un import è attualmente già in caricamento",id_exits:"L'ID %{id} è già presente"},title:"Importa utenti tramite file CSV",goToPdf:"Vai al PDF",cards:{importstats:{header:"Importa utenti",users_total:"%{smart_count} utente nel file CSV |||| %{smart_count} utenti nel file CSV",guest_count:"%{smart_count} ospite |||| %{smart_count} ospiti",admin_count:"%{smart_count} amministratore |||| %{smart_count} amministratori"},conflicts:{header:"Strategia di conflitto",mode:{stop:"Stoppa al conflitto",skip:"Mostra l'errore e ignora il conflitto"}},ids:{header:"ID",all_ids_present:"ID presenti in ogni voce",count_ids_present:"%{smart_count} voce con ID |||| %{smart_count} voci con ID",mode:{ignore:"Ignora gli ID nel file CSV e creane di nuovi",update:"Aggiorna le voci esistenti"}},passwords:{header:"Passwords",all_passwords_present:"Password presenti in ogni voce",count_passwords_present:"%{smart_count} voce con password |||| %{smart_count} voci con password",use_passwords:"Usa le password dal file CSV"},upload:{header:"Input file CSV",explanation:"Qui puoi caricare un file con valori separati da virgole che verrà poi utilizzato per creare o aggiornare gli utenti. Il file deve includere i campi 'id' and 'displayname'. Puoi scaricare un file di esempio per adattarlo: "},startImport:{simulate_only:"Solo simulazione",run_import:"Importa"},results:{header:"Importa i risultati",total:"%{smart_count} voce in totale |||| %{smart_count} voci in totale",successful:"%{smart_count} voci importate con successo",skipped:"%{smart_count} voci ignorate",download_skipped:"Scarica le voci ignorate",with_error:"%{smart_count} voce con errori ||| %{smart_count} voci con errori",simulated_only:"Il processo era stato solamente simulato"}}},delete_media:{name:"Media",fields:{before_ts:"ultimo accesso effettuato prima",size_gt:"Più grande di (in byte)",keep_profiles:"Mantieni le immagini del profilo"},action:{send:"Cancella media",send_success:"Richiesta inviata con successo.",send_failure:"C'è stato un errore."},helper:{send:"Questa API cancella i media locali dal disco del tuo server. Questo include anche ogni miniatura e copia del media scaricato. Questa API non inciderà sui media che sono stati caricati nei repository esterni."}},resources:{users:{name:"Utente |||| Utenti",email:"Email",msisdn:"Telefono",threepid:"Email / Telefono",fields:{avatar:"Avatar",id:"ID utente",name:"Nome",is_guest:"Ospite",admin:"Amministratore",locked:"Bloccato",deactivated:"Disattivato",guests:"Mostra gli ospiti",show_deactivated:"Mostra gli utenti disattivati",user_id:"Cerca utente",displayname:"Nickname",password:"Password",avatar_url:"URL dell'avatar",avatar_src:"Avatar",medium:"Medium",threepids:"3PID",address:"Indirizzo",creation_ts_ms:"Creazione del timestamp",consent_version:"Versione minima richiesta",auth_provider:"Provider",user_type:"Tipo d'utente"},helper:{password:"Cambiando la password l'utente verrà disconnesso da tutte le sessioni attive.",deactivate:"Devi fornire una password per riattivare l'account.",erase:"Constrassegna l'utente come cancellato dal GDPR"},action:{erase:"Cancella i dati dell'utente"}},rooms:{name:"Stanza |||| Stanze",fields:{room_id:"ID della stanza",name:"Nome",canonical_alias:"Alias",joined_members:"Membri",joined_local_members:"Membri locali",joined_local_devices:"Dispositivi locali",state_events:"Eventi di stato / Complessità",version:"Versione",is_encrypted:"Criptato",encryption:"Crittografia",federatable:"Federabile",public:"Visibile nella cartella della stanza",creator:"Creatore",join_rules:"Regole per entrare",guest_access:"Entra come ospite",history_visibility:"Visibilità temporale",topic:"Topic",avatar:"Avatar"},helper:{},enums:{join_rules:{public:"Pubblica",knock:"Bussa",invite:"Invita",private:"Privata"},guest_access:{can_join:"Gli utenti ospiti possono entrare",forbidden:"Gli utenti ospiti non possono entrare"},history_visibility:{invited:"Dall'invito",joined:"Dall'entrata",shared:"Dalla condivisione",world_readable:"Chiunque"},unencrypted:"Non criptata"},action:{erase:{title:"Cancella stanza",content:"Sei sicuro di voler eliminare questa stanza? Questa azione è definitiva. Tutti i messaggi e i media condivisi in questa stanza verranno eliminati dal server!"}}},reports:{name:"Evento segnalato |||| Eventi segnalati",fields:{id:"ID",received_ts:"Orario del report",user_id:"richiedente",name:"nome della stanza",score:"punteggio",reason:"ragione",event_id:"ID dell'evento",event_json:{origin:"server di origine",origin_server_ts:"ora dell'invio",type:"tipo di evento",content:{msgtype:"tipo di contenuto",body:"contenuto",format:"formato",formatted_body:"contenuto formattato",algorithm:"algoritmo"}}}},connections:{name:"Connessioni",fields:{last_seen:"Data",ip:"Indirizzo IP",user_agent:"agente utente"}},devices:{name:"Dispositivo |||| Dispositivi",fields:{device_id:"ID del dispositivo",display_name:"Nome del dispositivo",last_seen_ts:"Timestamp",last_seen_ip:"Indirizzo IP"},action:{erase:{title:"Rimozione del dispositivo %{id}",content:'Sei sicuro di voler rimuovere il dispositivo "%{name}"?',success:"Dispositivo rimosso con successo.",failure:"C'è stato un errore."}}},users_media:{name:"Media",fields:{media_id:"ID del media",media_length:"Peso del file (in Byte)",media_type:"Tipo",upload_name:"Nome del file",quarantined_by:"In quarantena da",safe_from_quarantine:"Protetto dalla quarantena",created_ts:"Creato",last_access_ts:"Ultimo accesso"}},protect_media:{action:{create:"Non protetto, proteggi",delete:"Protetto, rimuovi protezione",none:"In quarantena",send_success:"Stato della protezione cambiato con successo.",send_failure:"C'è stato un errore."}},quarantine_media:{action:{name:"Quarantina",create:"Aggiungi alla quarantena",delete:"In quarantena, rimuovi dalla quarantena",none:"Protetto dalla quarantena",send_success:"Stato della quarantena cambiato con successo.",send_failure:"C'è stato un errore."}},pushers:{name:"Pusher |||| Pusher",fields:{app:"App",app_display_name:"Nome dell'app",app_id:"ID dell'app",device_display_name:"Nome del dispositivo",kind:"Tipo",lang:"Lingua",profile_tag:"Tag del profilo",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Avvisi del server",send:"Invia avvisi",fields:{body:"Messaggio"},action:{send:"Invia nota",send_success:"Avviso inviato con successo.",send_failure:"C'è stato un errore."},helper:{send:'Invia un avviso dal server agli utenti selezionati. La feature "Avvisi del server" è stata attivata sul server.'}},user_media_statistics:{name:"Media degli utenti",fields:{media_count:"Numero media",media_length:"Lunghezza media"}},forward_extremities:{name:"Invia estremità",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Profondità",state_group:"State group"}},room_state:{name:"Eventi di stato",fields:{type:"Tipo",content:"Contenuto",origin_server_ts:"Ora dell'invio",sender:"Mittente"}},room_directory:{name:"Elenco delle stanze",fields:{world_readable:"gli utenti ospite possono vedere senza entrare",guest_can_join:"gli utenti ospite possono entrare"},action:{title:"Cancella stanza dall'elenco |||| Cancella %{smart_count} stanze dall'elenco",content:"Sei sicuro di voler rimuovere questa stanza dall'elenco? |||| Sei sicuro di voler rimuovere %{smart_count} stanze dall'elenco?",erase:"Rimuovi dall'elenco",create:"Crea",send_success:"Stanza creata con successo.",send_failure:"C'è stato un errore."}},destinations:{name:"Federazione",fields:{destination:"Destinazione",failure_ts:"Timestamp dell'errore",retry_last_ts:"Tentativo ultimo timestamp",retry_interval:"Intervallo dei tentativi",last_successful_stream_ordering:"Ultimo flusso riuscito con successo",stream_ordering:"Flusso"},action:{reconnect:"Riconnetti"}},registration_tokens:{name:"Token di registrazione",fields:{token:"Token",valid:"Token valido",uses_allowed:"Usi permessi",pending:"In attesa",completed:"Completato",expiry_time:"Data della scadenza",length:"Lunghezza"},helper:{length:"Lunghezza del token se non viene dato alcun token."}}}},CBe={ra:{action:{add_filter:"Добавить фильтр",add:"Добавить",back:"Назад",bulk_actions:"1 выбран |||| %{smart_count} выбрано |||| %{smart_count} выбрано",cancel:"Отмена",clear_array_input:"Очистить список",clear_input_value:"Очистить",clone:"Дублировать",confirm:"Подтвердить",create:"Создать",create_item:"Создать %{item}",delete:"Удалить",edit:"Редактировать",export:"Экспорт",list:"Список",refresh:"Обновить",remove_filter:"Убрать фильтр",remove_all_filters:"Убрать все фильтры",remove:"Удалить",save:"Сохранить",search:"Поиск",select_all:"Выбрать все",select_row:"Выбрать эту запись",show:"Просмотр",sort:"Сортировка",undo:"Отменить",unselect:"Не выбрано",expand:"Раскрыть",close:"Закрыть",open_menu:"Открыть меню",close_menu:"Закрыть меню",update:"Обновить",move_up:"Переместить вверх",move_down:"Переместить вниз",open:"Открыть",toggle_theme:"Переключить тему",select_columns:"Столбцы",update_application:"Обновить приложение"},boolean:{true:"Да",false:"Нет",null:" "},page:{create:"Создать %{name}",dashboard:"Главная",edit:"%{name} %{recordRepresentation}",error:"Что-то пошло не так",list:"%{name}",loading:"Загрузка",not_found:"Не найдено",show:"%{name} %{recordRepresentation}",empty:"Нет %{name}.",invite:"Вы хотите добавить еще одну?"},input:{file:{upload_several:"Перетащите файлы сюда или нажмите для выбора.",upload_single:"Перетащите файл сюда или нажмите для выбора."},image:{upload_several:"Перетащите изображения сюда или нажмите для выбора.",upload_single:"Перетащите изображение сюда или нажмите для выбора."},references:{all_missing:"Связанных данных не найдено",many_missing:"Некоторые из связанных данных недоступны",single_missing:"Связанный объект недоступен"},password:{toggle_visible:"Скрыть пароль",toggle_hidden:"Показать пароль"}},message:{about:"Справка",are_you_sure:"Вы уверены?",auth_error:"Произошла ошибка при валидации токена аутентификации",bulk_delete_content:"Вы уверены, что хотите удалить %{name}? |||| Вы уверены, что хотите удалить %{smart_count} объектов? |||| Вы уверены, что хотите удалить %{smart_count} объектов?",bulk_delete_title:"Удалить %{name} |||| Удалить %{smart_count} %{name} |||| Удалить %{smart_count} %{name}",bulk_update_content:"Вы уверены, что хотите обновить %{name}? |||| Вы уверены, что хотите обновить %{smart_count} объектов?",bulk_update_title:"Обновить %{name} |||| Обновить %{smart_count} %{name}",clear_array_input:"Вы уверены, что хотите очистить весь список?",delete_content:"Вы уверены что хотите удалить этот объект",delete_title:"Удалить %{name} #%{id}",details:"Описание",error:"В процессе запроса возникла ошибка, и он не может быть завершен",invalid_form:"Форма заполнена неверно, проверьте, пожалуйста, ошибки",loading:"Идет загрузка, пожалуйста, подождите...",no:"Нет",not_found:"Ошибка URL или вы следуете по неверной ссылке",yes:"Да",unsaved_changes:"Некоторые из ваших изменений не были сохранены. Вы уверены, что хотите их игнорировать?"},navigation:{no_results:"Результатов не найдено",no_more_results:"Страница %{page} выходит за пределы нумерации, попробуйте предыдущую",page_out_of_boundaries:"Страница %{page} вне границ",page_out_from_end:"Невозможно переместиться дальше последней страницы",page_out_from_begin:"Номер страницы не может быть меньше 1",page_range_info:"%{offsetBegin}-%{offsetEnd} из %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} из более %{offsetEnd}",current_page:"Страница %{page}",page:"На %{page} страницу",first:"На первую страницу",last:"На последнюю страницу",next:"Следующая",prev:"Предыдущая",previous:"Предыдущая",page_rows_per_page:"Строк на странице:",skip_nav:"Перейти к содержанию"},sort:{sort_by:"Сортировать по %{field} %{order}",ASC:"возрастанию",DESC:"убыванию"},auth:{auth_check_error:"Пожалуйста, авторизуйтесь для продолжения работы",user_menu:"Профиль",username:"Имя пользователя",password:"Пароль",sign_in:"Войти",sign_in_error:"Ошибка аутентификации, попробуйте снова",logout:"Выйти"},notification:{updated:"Элемент обновлен |||| %{smart_count} обновлено |||| %{smart_count} обновлено",created:"Элемент создан",deleted:"Элемент удален |||| %{smart_count} удалено |||| %{smart_count} удалено",bad_item:"Элемент не валиден",item_doesnt_exist:"Элемент не существует",http_error:"Ошибка сервера",data_provider_error:"Ошибка dataProvider, проверьте консоль",i18n_error:"Не удалось загрузить перевод для указанного языка",canceled:"Операция отменена",logged_out:"Ваша сессия завершена, попробуйте переподключиться/войти снова",not_authorized:"У вас нет доступа к этому ресурсу",application_update_available:"Имеется новая версия приложения."},validation:{required:"Обязательно для заполнения",minLength:"Минимальное кол-во символов %{min}",maxLength:"Максимальное кол-во символов %{max}",minValue:"Минимальное значение %{min}",maxValue:"Значение может быть %{max} или меньше",number:"Должно быть цифрой",email:"Некорректный email",oneOf:"Должно быть одним из: %{options}",regex:"Должно быть в формате (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Сохраненные запросы",query_name:"Имя запроса",new_label:"Сохранить текущий запрос...",new_dialog_title:"Сохранить текущий запрос как",remove_label:"Удалить сохраненный запрос",remove_label_with_name:'Удалить запрос "%{name}"',remove_dialog_title:"Удалить сохраненный запрос?",remove_message:"Вы уверены, что хотите удалить этот запрос из списка сохраненных запросов?",help:"Отфильтровать список и сохранить запрос на будущее"},configurable:{customize:"Настроить",configureMode:"Настроить эту страницу",inspector:{title:"Инспектор",content:"Наведите на UI-элементы приложения, чтобы настроить",reset:"Сбросить настройки",hideAll:"Скрыть все",showAll:"Показать все"},Datagrid:{title:"Таблица данных",unlabeled:"Безымянный столбец #%{column}"},SimpleForm:{title:"Форма",unlabeled:"Безымянное поле ввода #%{input}"},SimpleList:{title:"Список",primaryText:"Первичный текст",secondaryText:"Вторичный текст",tertiaryText:"Третичный текст"}}}},EBe={...CBe,synapseadmin:{auth:{base_url:"Адрес домашнего сервера",welcome:"Добро пожаловать в Synapse-admin",server_version:"Версия Synapse",supports_specs:"поддерживает спецификации Matrix",username_error:"Пожалуйста, укажите полный ID пользователя: '@user:domain'",protocol_error:"Адрес должен начинаться с 'http://' или 'https://'",url_error:"Неверный адрес сервера Matrix",sso_sign_in:"Вход через SSO"},users:{invalid_user_id:"Локальная часть ID пользователя Matrix без адреса домашнего сервера.",tabs:{sso:"SSO"}},rooms:{details:"Данные комнаты",tabs:{basic:"Основные",members:"Участники",detail:"Подробности",permission:"Права доступа"}},reports:{tabs:{basic:"Основные",detail:"Подробности"}}},import_users:{error:{at_entry:"В записи %{entry}: %{message}",error:"Ошибка",required_field:"Отсутствует обязательное поле '%{field}'",invalid_value:"Неверное значение в строке %{row}. Поле '%{field}' может быть либо 'true', либо 'false'",unreasonably_big:"Отказано в загрузке слишком большого файла размером %{size} мегабайт",already_in_progress:"Импорт уже в процессе",id_exits:"ID %{id} уже существует"},title:"Импорт пользователей из CSV",goToPdf:"Перейти к PDF",cards:{importstats:{header:"Импорт пользователей",users_total:"%{smart_count} пользователь в CSV файле |||| %{smart_count} пользователя в CSV файле |||| %{smart_count} пользователей в CSV файле",guest_count:"%{smart_count} гость |||| %{smart_count} гостя |||| %{smart_count} гостей",admin_count:"%{smart_count} администратор |||| %{smart_count} администратора |||| %{smart_count} администраторов"},conflicts:{header:"Стратегия разрешения конфликтов",mode:{stop:"Остановка при конфликте",skip:"Показать ошибку и пропустить при конфликте"}},ids:{header:"Идентификаторы",all_ids_present:"Идентификаторы присутствуют в каждой записи",count_ids_present:"%{smart_count} запись с ID |||| %{smart_count} записи с ID |||| %{smart_count} записей с ID",mode:{ignore:"Игнорировать идентификаторы в CSV и создать новые",update:"Обновить существующие записи"}},passwords:{header:"Пароли",all_passwords_present:"Пароли присутствуют в каждой записи",count_passwords_present:"%{smart_count} запись с паролем |||| %{smart_count} записи с паролями |||| %{smart_count} записей с паролями",use_passwords:"Использовать пароли из CSV"},upload:{header:"Загрузить CSV файл",explanation:"Здесь вы можете загрузить файл со значениями, разделёнными запятыми, которые будут использованы для создания или обновления данных пользователей. В файле должны быть поля 'id' и 'displayname'. Вы можете скачать и изменить файл-образец отсюда: "},startImport:{simulate_only:"Только симулировать",run_import:"Импорт"},results:{header:"Результаты импорта",total:"%{smart_count} запись всего |||| %{smart_count} записи всего |||| %{smart_count} записей всего",successful:"%{smart_count} запись успешно импортирована |||| %{smart_count} записи успешно импортированы |||| %{smart_count} записей успешно импортированы",skipped:"%{smart_count} запись пропущена |||| %{smart_count} записи пропущены |||| %{smart_count} записей пропущено",download_skipped:"Скачать пропущенные записи",with_error:"%{smart_count} запись с ошибкой |||| %{smart_count} записи с ошибками |||| %{smart_count} записей с ошибками",simulated_only:"Импорт был симулирован"}}},delete_media:{name:"Файлы",fields:{before_ts:"Последнее обращение до",size_gt:"Более чем (в байтах)",keep_profiles:"Сохранить аватары"},action:{send:"Удалить файлы",send_success:"Запрос успешно отправлен.",send_failure:"Произошла ошибка."},helper:{send:"Это API удаляет локальные файлы с вашего собственного сервера, включая локальные миниатюры и копии скачанных файлов. Данный API не затрагивает файлы, загруженные во внешние хранилища."}},resources:{users:{name:"Пользователь |||| Пользователи",email:"Почта",msisdn:"Телефон",threepid:"Почта / Телефон",fields:{avatar:"Аватар",id:"ID пользователя",name:"Имя",is_guest:"Гость",admin:"Администратор сервера",locked:"Заблокирован",deactivated:"Деактивирован",erased:"Удалён",guests:"Показывать гостей",show_deactivated:"Показывать деактивированных",user_id:"Поиск пользователя",displayname:"Отображаемое имя",password:"Пароль",avatar_url:"Адрес аватары",avatar_src:"Аватар",medium:"Тип",threepids:"3PID'ы",address:"Адрес",creation_ts_ms:"Дата создания",consent_version:"Версия соглашения",auth_provider:"Провайдер",user_type:"Тип пользователя"},helper:{password:"Смена пароля завершит все сессии пользователя.",deactivate:"Вы должны предоставить пароль для реактивации учётной записи.",erase:"Пометить пользователя как удалённого в соответствии с GDPR"},action:{erase:"Удалить данные пользователя"}},rooms:{name:"Комната |||| Комнаты",fields:{room_id:"ID комнаты",name:"Название",canonical_alias:"Псевдоним",joined_members:"Участники",joined_local_members:"Локальные участники",joined_local_devices:"Локальные устройства",state_events:"События состояния / Сложность",version:"Версия",is_encrypted:"Зашифровано",encryption:"Шифрование",federatable:"Федерация",public:"Отображается в каталоге комнат",creator:"Создатель",join_rules:"Правила входа",guest_access:"Гостевой доступ",history_visibility:"Видимость истории",topic:"Тема",avatar:"Аватар"},helper:{forward_extremities:"Оконечности — это события-листья в конце ориентированного ациклического графа (DAG) в комнате, т.е. события без дочерних элементов. Чем больше их в комнате, тем больше Synapse работает над разрешением состояния (это дорогостоящая операция). Хотя Synapse старается не допускать существования слишком большого числа таких событий в комнате, из-за ошибок они иногда снова появляются. Если в комнате >10 оконечностей, стоит найти комнату-виновника и попробовать удалить их с помощью SQL-запросов из #1760."},enums:{join_rules:{public:"Для всех",knock:"Надо постучать",invite:"По приглашению",private:"Приватная"},guest_access:{can_join:"Гости могут войти",forbidden:"Гости не могут войти"},history_visibility:{invited:"С момента приглашения",joined:"С момента входа",shared:"С момента открытия доступа",world_readable:"Для всех"},unencrypted:"Без шифрования"},action:{erase:{title:"Удалить комнату",content:"Действительно удалить эту комнату? Это действие будет невозможно отменить. Все сообщения и файлы в комнате будут удалены с сервера!"}}},reports:{name:"Жалоба |||| Жалобы",fields:{id:"ID",received_ts:"Дата и время жалобы",user_id:"Автор жалобы",name:"Название комнаты",score:"Баллы",reason:"Причина",event_id:"ID события",event_json:{origin:"Исходнный сервер",origin_server_ts:"Дата и время отправки",type:"Тип события",content:{msgtype:"Тип содержимого",body:"Содержимое",format:"Формат",formatted_body:"Форматированное содержимое",algorithm:"Алгоритм",url:"Ссылка",info:{mimetype:"Тип"}}}},action:{erase:{title:"Удалить жалобу",content:"Действительно удалить жалобу? Это действие будет невозможно отменить."}}},connections:{name:"Подключения",fields:{last_seen:"Дата",ip:"IP адрес",user_agent:"Юзер-агент"}},devices:{name:"Устройство |||| Устройства",fields:{device_id:"ID устройства",display_name:"Название",last_seen_ts:"Дата и время",last_seen_ip:"IP адрес"},action:{erase:{title:"Удаление %{id}",content:'Действительно удалить устройство "%{name}"?',success:"Устройство успешно удалено.",failure:"Произошла ошибка."}}},users_media:{name:"Файлы",fields:{media_id:"ID файла",media_length:"Размер файла (в байтах)",media_type:"Тип",upload_name:"Имя файла",quarantined_by:"На карантине",safe_from_quarantine:"Защитить от карантина",created_ts:"Создано",last_access_ts:"Последний доступ"},action:{open:"Открыть файл в новом окне"}},protect_media:{action:{create:"Не защищён, установить защиту",delete:"Защищён, снять защиту",none:"На карантине",send_success:"Статус защиты успешно изменён.",send_failure:"Произошла ошибка."}},quarantine_media:{action:{name:"Карантин",create:"Поместить на карантин",delete:"На карантине, снять карантин",none:"Защищено от карантина",send_success:"Статус карантина успешно изменён.",send_failure:"Произошла ошибка."}},pushers:{name:"Пушер |||| Пушеры",fields:{app:"Приложение",app_display_name:"Название приложения",app_id:"ID приложения",device_display_name:"Название устройства",kind:"Вид",lang:"Язык",profile_tag:"Тег профиля",pushkey:"Ключ",data:{url:"URL"}}},servernotices:{name:"Серверные уведомления",send:"Отправить серверные уведомления",fields:{body:"Сообщение"},action:{send:"Отправить",send_success:"Серверное уведомление успешно отправлено.",send_failure:"Произошла ошибка."},helper:{send:'Отправить серверное уведомление выбранным пользователям. На сервере должна быть активна функция "Server Notices".'}},user_media_statistics:{name:"Файлы пользователей",fields:{media_count:"Количество файлов",media_length:"Размер файлов"}},forward_extremities:{name:"Оконечности",fields:{id:"ID события",received_ts:"Дата и время",depth:"Глубина",state_group:"Группа состояния"}},room_state:{name:"События состояния",fields:{type:"Тип",content:"Содержимое",origin_server_ts:"Дата отправки",sender:"Отправитель"}},room_directory:{name:"Каталог комнат",fields:{world_readable:"Гости могут просматривать без входа",guest_can_join:"Гости могут войти"},action:{title:"Удалить комнату из каталога |||| Удалить %{smart_count} комнаты из каталога |||| Удалить %{smart_count} комнат из каталога",content:"Действительно удалить комнату из каталога? |||| Действительно удалить %{smart_count} комнаты из каталога? |||| Действительно удалить %{smart_count} комнат из каталога?",erase:"Удалить из каталога комнат",create:"Опубликовать в каталоге комнат",send_success:"Комната успешно опубликована.",send_failure:"Произошла ошибка."}},destinations:{name:"Федерация",fields:{destination:"Назначение",failure_ts:"Дата и время ошибки",retry_last_ts:"Дата и время последней попытки",retry_interval:"Интервал между попытками",last_successful_stream_ordering:"Последний успешный поток",stream_ordering:"Поток"},action:{reconnect:"Переподключиться"}},registration_tokens:{name:"Токены регистрации",fields:{token:"Токен",valid:"Рабочий токен",uses_allowed:"Количество использований",pending:"Ожидает",completed:"Завершено",expiry_time:"Дата окончания",length:"Длина"},helper:{length:"Длина токена, если токен не задан."}}}};var IU={};Object.defineProperty(IU,"__esModule",{value:!0});var PBe={ra:{action:{add:"增加",add_filter:"添加搜索条件",back:"回退",bulk_actions:"选中1项 |||| 选中%{smart_count}项",cancel:"取消",clear_array_input:"清空列表",clear_input_value:"清空输入",clone:"克隆",close:"关闭",close_menu:"关闭菜单",confirm:"确认",create:"新建",create_item:"新建 %{item}",delete:"删除",edit:"编辑",expand:"展开",export:"导出",list:"列表",move_down:"下移",move_up:"上移",open:"打开",open_menu:"打开菜单",refresh:"刷新",remove:"删除",remove_all_filters:"移除所有检索",remove_filter:"移除检索",save:"保存",search:"检索",select_all:"选择所有",select_columns:"列",select_row:"选择此行",show:"查看",sort:"排序",toggle_theme:"切换主题",undo:"撤销",unselect:"反选",update:"更新",update_application:"重载应用"},auth:{auth_check_error:"请登录以继续",user_menu:"设置",username:"用户名",password:"密码",sign_in:"登录",sign_in_error:"验证失败, 请重试",logout:"登出"},boolean:{true:"是",false:"否",null:" "},configurable:{customize:"自定义",configureMode:"配置此页面",inspector:{title:"Inspector",content:"悬停应用程序UI元素来配置它们",reset:"重置设置",hideAll:"隐藏所有",showAll:"显示所有"},Datagrid:{title:"数据网格",unlabeled:"未设置标签的列 #%{column}"},SimpleForm:{title:"表单",unlabeled:"未设置标签的输入框 #%{input}"},SimpleList:{title:"列表",primaryText:"主要的文本",secondaryText:"二级文本",tertiaryText:"三级文本"}},input:{file:{upload_several:"将文件集合拖拽到这里, 或点击这里选择文件集合.",upload_single:"将文件拖拽到这里, 或点击这里选择文件."},image:{upload_several:"将图片文件集合拖拽到这里, 或点击这里选择图片文件集合.",upload_single:"将图片文件拖拽到这里, 或点击这里选择图片文件."},password:{toggle_visible:"隐藏密码",toggle_hidden:"显示密码"},references:{all_missing:"未找到参考数据.",many_missing:"至少有一条参考数据不再可用.",single_missing:"关联的参考数据不再可用."}},message:{about:"关于",are_you_sure:"您确定操作?",bulk_delete_content:"您确定要删除 %{name}? |||| 您确定要删除 %{smart_count} 项?",bulk_delete_title:"删除 %{name} |||| 删除 %{smart_count}项 %{name} ",delete_content:"您确定要删除该条目?",delete_title:"删除 %{name} #%{id}",error:"客户端错误导致请求未完成.",invalid_form:"表单输入无效. 请检查错误提示",loading:"正在加载页面, 请稍候",no:"否",not_found:"您输入了错误的URL或者错误的链接.",unsaved_changes:"修改未保存. 放弃修改吗?",yes:"是",auth_error:"身份认证出错",bulk_update_content:"是否确实要更新此 %{name}? |||| 是否确实要更新这些 %{smart_count} ?",bulk_update_title:"更新 %{name} |||| 更新 %{smart_count} %{name}",clear_array_input:"您确定要清除整个列表吗?",details:"详情"},navigation:{no_results:"结果为空",no_more_results:"页码 %{page} 超出边界. 试试上一页.",page_out_of_boundaries:"页码 %{page} 超出边界",page_out_from_end:"已到最末页",page_out_from_begin:"已到最前页",page_range_info:"%{offsetBegin}-%{offsetEnd} / %{total}",page_rows_per_page:"每页行数:",next:"向后",prev:"向前",skip_nav:"跳到内容",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}",current_page:"页码 %{page}",page:"跳到页码 %{page}",first:"第一页",last:"最后一页",previous:"向前"},notification:{updated:"条目已更新 |||| %{smart_count} 项条目已更新",created:"条目已新建",deleted:"条目已删除 |||| %{smart_count} 项条目已删除",bad_item:"不正确的条目",item_doesnt_exist:"条目不存在",http_error:"与服务通信出错",canceled:"取消动作",data_provider_error:"dataProvider错误. 请检查console的详细信息.",i18n_error:"无法加载指定语言包",logged_out:"会话失效, 请重连.",not_authorized:"你没有权限访问此资源.",application_update_available:"新版本可用."},page:{create:"新建 %{name}",dashboard:"概览",edit:"%{name} #%{id}",empty:"无 %{name} ",error:"出现错误",invite:"要增加吗?",list:"%{name} 列表",loading:"加载中",not_found:"未发现",show:"%{name} #%{id}"},saved_queries:{label:"保存查询",query_name:"查询名称",new_label:"保存当前查询...",new_dialog_title:"保存当前查询为",remove_label:"删除保存的查询",remove_label_with_name:'删除查询 "%{name}"',remove_dialog_title:"删除保存的查询?",remove_message:"确定要从保存的查询列表中删除该项吗?",help:"过滤列表,并保存此查询"},sort:{sort_by:"按 %{field} %{order}",ASC:"升序",DESC:"降序"},validation:{required:"必填",minLength:"必须不少于 %{min} 个字符",maxLength:"必须不多于 %{max} 个字符",minValue:"必须不小于 %{min}",maxValue:"必须不大于 %{max}",number:"必须为数字",email:"必须是有效的邮箱",oneOf:"必须为: %{options}其中一项",regex:"必须符合指定的格式 (regexp): %{pattern}"}}},$Be=IU.default=PBe;const RBe={...$Be,synapseadmin:{auth:{base_url:"服务器 URL",welcome:"欢迎来到 Synapse-admin",server_version:"Synapse 版本",username_error:"请输入完整有效的用户 ID: '@user:domain'",protocol_error:"URL 需要以'http://'或'https://'作为起始",url_error:"不是一个有效的 Matrix 服务器地址",sso_sign_in:"使用 SSO 登录"},users:{invalid_user_id:"必须要是一个有效的 Matrix 用户 ID ,例如 @user_id:homeserver",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"基本",members:"成员",detail:"细节",permission:"权限"}},reports:{tabs:{basic:"基本",detail:"细节"}}},import_users:{error:{at_entry:"在条目 %{entry}: %{message}",error:"错误",required_field:"需要的值 '%{field}' 未被设置。",invalid_value:"第 %{row} 行出现无效值。 '%{field}' 只可以是 'true' 或 'false'。",unreasonably_big:"拒绝加载过大的文件: %{size} MB",already_in_progress:"一个导入进程已经在运行中",id_exits:"ID %{id} 已经存在"},title:"通过 CSV 导入用户",goToPdf:"转到 PDF",cards:{importstats:{header:"导入用户",users_total:"%{smart_count} 用户在 CSV 文件中 |||| %{smart_count} 用户在 CSV 文件中",guest_count:"%{smart_count} 访客 |||| %{smart_count} 访客",admin_count:"%{smart_count} 管理员 |||| %{smart_count} 管理员"},conflicts:{header:"冲突处理策略",mode:{stop:"在冲突处停止",skip:"显示错误并跳过冲突"}},ids:{header:"IDs",all_ids_present:"每条记录的 ID",count_ids_present:"%{smart_count} 个含 ID 的记录 |||| %{smart_count} 个含 ID 的记录",mode:{ignore:"忽略 CSV 中的 ID 并创建新的",update:"更新已经存在的记录"}},passwords:{header:"密码",all_passwords_present:"每条记录的密码",count_passwords_present:"%{smart_count} 个含密码的记录 |||| %{smart_count} 个含密码的记录",use_passwords:"使用 CSV 中标记的密码"},upload:{header:"导入 CSV 文件",explanation:"在这里,你可以上传一个用逗号分隔的文件,用于创建或更新用户。该文件必须包括 'id' 和 'displayname' 字段。你可以在这里下载并修改一个示例文件:"},startImport:{simulate_only:"模拟模式",run_import:"导入"},results:{header:"导入结果",total:"共计 %{smart_count} 条记录 |||| 共计 %{smart_count} 条记录",successful:"%{smart_count} 条记录导入成功",skipped:"跳过 %{smart_count} 条记录",download_skipped:"下载跳过的记录",with_error:"%{smart_count} 条记录出现错误 ||| %{smart_count} 条记录出现错误",simulated_only:"只是一次模拟运行"}}},delete_media:{name:"媒体文件",fields:{before_ts:"最后访问时间",size_gt:"大于 (字节)",keep_profiles:"保留头像"},action:{send:"删除媒体",send_success:"请求发送成功。",send_failure:"出现了一个错误。"},helper:{send:"这个API会删除您硬盘上的本地媒体。包含了任何的本地缓存和下载的媒体备份。这个API不会影响上传到外部媒体存储库上的媒体文件。"}},resources:{users:{name:"用户",email:"邮箱",msisdn:"电话",threepid:"邮箱 / 电话",fields:{avatar:"邮箱",id:"用户 ID",name:"用户名",is_guest:"访客",admin:"服务器管理员",deactivated:"被禁用",guests:"显示访客",show_deactivated:"显示被禁用的账户",user_id:"搜索用户",displayname:"显示名字",password:"密码",avatar_url:"头像 URL",avatar_src:"头像",medium:"Medium",threepids:"3PIDs",address:"地址",creation_ts_ms:"创建时间戳",consent_version:"协议版本"},helper:{deactivate:"您必须提供一串密码来激活账户。",erase:"将用户标记为根据 GDPR 的要求抹除了"},action:{erase:"抹除用户信息"}},rooms:{name:"房间",fields:{room_id:"房间 ID",name:"房间名",canonical_alias:"别名",joined_members:"成员",joined_local_members:"本地成员",state_events:"状态事件",version:"版本",is_encrypted:"已经加密",encryption:"加密",federatable:"可联合的",public:"公开",creator:"创建者",join_rules:"加入规则",guest_access:"访客访问",history_visibility:"历史可见性"},enums:{join_rules:{public:"公开",knock:"申请",invite:"邀请",private:"私有"},guest_access:{can_join:"访客可以加入",forbidden:"访客不可加入"},history_visibility:{invited:"自从被邀请",joined:"自从加入",shared:"自从分享",world_readable:"任何人"},unencrypted:"未加密"}},reports:{name:"报告事件",fields:{id:"ID",received_ts:"报告时间",user_id:"报告者",name:"房间名",score:"分数",reason:"原因",event_id:"事件 ID",event_json:{origin:"原始服务器",origin_server_ts:"发送时间",type:"事件类型",content:{msgtype:"内容类型",body:"内容",format:"格式",formatted_body:"格式化的数据",algorithm:"算法"}}}},connections:{name:"连接",fields:{last_seen:"日期",ip:"IP 地址",user_agent:"用户代理 (UA)"}},devices:{name:"设备",fields:{device_id:"设备 ID",display_name:"设备名",last_seen_ts:"时间戳",last_seen_ip:"IP 地址"},action:{erase:{title:"移除 %{id}",content:'您确定要移除设备 "%{name}"?',success:"设备移除成功。",failure:"出现了一个错误。"}}},users_media:{name:"媒体文件",fields:{media_id:"媒体文件 ID",media_length:"长度",media_type:"类型",upload_name:"文件名",quarantined_by:"被隔离",safe_from_quarantine:"取消隔离",created_ts:"创建",last_access_ts:"上一次访问"}},pushers:{name:"发布者",fields:{app:"App",app_display_name:"App 名称",app_id:"App ID",device_display_name:"设备显示名",kind:"类型",lang:"语言",profile_tag:"数据标签",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"服务器提示",send:"发送服务器提示",fields:{body:"信息"},action:{send:"发送提示",send_success:"服务器提示发送成功。",send_failure:"出现了一个错误。"},helper:{send:'向选中的用户发送服务器提示。服务器配置中的 "服务器提示(Server Notices)" 选项需要被设置为启用。'}},user_media_statistics:{name:"用户的媒体文件",fields:{media_count:"媒体文件统计",media_length:"媒体文件长度"}}}},jU=d.createContext({}),kBe=()=>d.useContext(jU),TBe=J(Cn)(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"calc(100vh - 1rem)",alignItems:"center",justifyContent:"flex-start",background:"url(./images/floating-cogs.svg)",backgroundColor:"#f9f9f9",backgroundRepeat:"no-repeat",backgroundSize:"cover","& .card":{width:"30rem",marginTop:"6rem",marginBottom:"6rem"},"& .avatar":{margin:"1rem",display:"flex",justifyContent:"center"},"& .icon":{backgroundColor:e.palette.grey[500]},"& .hint":{marginTop:"1em",marginBottom:"1em",display:"flex",justifyContent:"center",color:e.palette.grey[600]},"& .form":{padding:"0 1rem 1rem 1rem"},"& .select":{marginBottom:"2rem"},"& .actions":{padding:"0 1rem 1rem 1rem"},"& .serverVersion":{color:e.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",marginLeft:"0.5rem"},"& .matrixVersions":{color:e.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.8rem",marginBottom:"1rem",marginLeft:"0.5rem"}})),IBe=()=>{const e=JB(),t=Ht(),{restrictBaseUrl:r}=kBe(),n=typeof r=="string",o=Array.isArray(r),a=!(n||o),[i,s]=d.useState(!1),[c,l]=d.useState(!0),[f,v]=_P(),m=xP(),h=je(),x=n?r:St.getItem("base_url"),[w,O]=d.useState(""),b=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(b){const C=b[1];console.log("SSO token is",C),window.history.replaceState({},"",window.location.href.replace(b[0],"#").split("#")[0]);const k=St.getItem("sso_base_url");if(St.removeItem("sso_base_url"),k){const R={base_url:k,username:null,password:null,loginToken:C};console.log("Base URL is:",k),console.log("SSO Token is:",C),console.log("Let's try token login..."),e(R).catch(I=>{alert(typeof I=="string"?I:typeof I>"u"||!I.message?"ra.auth.sign_in_error":I.message),console.error(I)})}}const g=C=>C.match(/^(http|https):\/\//)?C.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:h("synapseadmin.auth.url_error"):h("synapseadmin.auth.protocol_error"),_=C=>{s(!0),e(C).catch(k=>{s(!1),t(typeof k=="string"?k:typeof k>"u"||!k.message?"ra.auth.sign_in_error":k.message,{type:"warning"})})},$=()=>{St.setItem("sso_base_url",w);const C=`${w}/_matrix/client/r0/login/sso/redirect?redirectUrl=${encodeURIComponent(window.location.href)}`;window.location.href=C},P=({formData:C})=>{const k=ta(),[R,I]=d.useState(""),[A,F]=d.useState(""),L=()=>{var U;if(C.base_url||n)return;const D=(U=iBe(C.username))==null?void 0:U.domain;D&&lBe(D).then(H=>{(a||o&&r.includes(H))&&k.setValue("base_url",H)})};return d.useEffect(()=>{C.base_url===""&&o&&k.setValue("base_url",r[0]),sBe(C.base_url)&&(uBe(C.base_url).then(D=>I(`${h("synapseadmin.auth.server_version")} ${D}`)).catch(()=>I("")),cBe(C.base_url).then(D=>F(`${h("synapseadmin.auth.supports_specs")} ${D.versions.join(", ")}`)).catch(()=>F("")),dBe(C.base_url).then(D=>{const U=D.find(q=>q.type==="m.login.password")!==void 0,H=D.find(q=>q.type==="m.login.sso")!==void 0;l(U),O(H?C.base_url:"")}).catch(()=>O("")))},[C.base_url,k]),S.jsxs(S.Fragment,{children:[S.jsx(Cn,{children:S.jsx(Er,{autoFocus:!0,source:"username",label:"ra.auth.username",autoComplete:"username",disabled:i||!c,onBlur:L,resettable:!0,fullWidth:!0,validate:co()})}),S.jsx(Cn,{children:S.jsx(F$,{source:"password",label:"ra.auth.password",type:"password",autoComplete:"current-password",disabled:i||!c,resettable:!0,fullWidth:!0,validate:co()})}),S.jsx(Cn,{children:S.jsx(Er,{source:"base_url",label:"synapseadmin.auth.base_url",select:o,autoComplete:"url",disabled:i,readOnly:n,resettable:a,fullWidth:!0,validate:[co(),g],children:o&&r.map(D=>S.jsx(lo,{value:D,children:D},D))})}),S.jsx(it,{className:"serverVersion",children:R}),S.jsx(it,{className:"matrixVersions",children:A})]})};return S.jsxs(l0,{defaultValues:{base_url:x},onSubmit:_,mode:"onTouched",children:[S.jsx(TBe,{children:S.jsxs(du,{className:"card",children:[S.jsx(Cn,{className:"avatar",children:i?S.jsx(Md,{size:25,thickness:2}):S.jsx(Kp,{className:"icon",children:S.jsx(Wv,{})})}),S.jsx(Cn,{className:"hint",children:h("synapseadmin.auth.welcome")}),S.jsxs(Cn,{className:"form",children:[S.jsx(r_,{value:f,onChange:C=>v(C.target.value),fullWidth:!0,disabled:i,className:"select",children:m.map(C=>S.jsx(lo,{value:C.locale,children:C.name},C.locale))}),S.jsx(HS,{children:C=>S.jsx(P,{...C})}),S.jsxs(N6,{className:"actions",children:[S.jsx($r,{variant:"contained",type:"submit",color:"primary",disabled:i||!c,fullWidth:!0,children:h("ra.auth.sign_in")}),S.jsx($r,{variant:"contained",color:"secondary",onClick:$,disabled:i||w==="",fullWidth:!0,children:h("synapseadmin.auth.sso_sign_in")})]})]})]})}),S.jsx(o$,{})]})};var K$={},jBe=He;Object.defineProperty(K$,"__esModule",{value:!0});var AU=K$.default=void 0,ABe=jBe(Xe()),MBe=S;AU=K$.default=(0,ABe.default)((0,MBe.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var Q$={},FBe=He;Object.defineProperty(Q$,"__esModule",{value:!0});var MU=Q$.default=void 0,LBe=FBe(Xe()),NBe=S;MU=Q$.default=(0,LBe.default)((0,NBe.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.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"}),"CloudQueue");var X$={},DBe=He;Object.defineProperty(X$,"__esModule",{value:!0});var mu=X$.default=void 0,BBe=DBe(Xe()),zBe=S;mu=X$.default=(0,BBe.default)((0,zBe.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2z"}),"FolderShared");const fn={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},Y$=e=>new Date(e).getTime(),UBe=e=>{if(e==null)return"";const t=new Date(e),r="00",n=t.getFullYear().toString(),o=(r+(t.getMonth()+1).toString()).slice(-2),a=(r+t.getDate().toString()).slice(-2),i=(r+t.getHours().toString()).slice(-2),s=(r+t.getMinutes().toString()).slice(-2);return`${n}-${o}-${a}T${i}:${s}`},FU=()=>S.jsx(tl,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),VBe=[S.jsx(p_,{source:"destination",alwaysOn:!0})],LU=()=>{const e=mt(),t=ri(),r=Ht(),[n,{isLoading:o}]=_v();if(!e||!e.failure_ts)return null;const a=i=>{i.stopPropagation(),n("destinations",{id:e.id},{onSuccess:()=>{r("ra.notification.updated",{messageArgs:{smart_count:1}}),t()},onError:()=>{r("ra.message.error",{type:"error"})}})};return S.jsx(Nt,{label:"resources.destinations.action.reconnect",onClick:a,disabled:o,children:S.jsx(AU,{})})},WBe=()=>S.jsx(wo,{children:S.jsx(LU,{})}),qBe=()=>{const e=mt(),t=je();return S.jsxs("span",{children:[t("resources.destinations.name",1)," ",e==null?void 0:e.destination]})},HBe=e=>{const t=mt(e);return e.source&&uv.get(t,e.source)===0?S.jsx(Zr,{...e,record:{...t,[e.source]:null}}):S.jsx(Zr,{...e})},GBe=e=>{const{palette:{error:t,mode:r}}=_o(),n=o=>({backgroundColor:o.retry_last_ts>0?r6(t[r],.5):void 0,"& > td":r==="dark"?{color:o.retry_last_ts>0?"black":"white","& > button":{color:_l[700]}}:void 0});return S.jsx(rl,{...e,filters:VBe,pagination:S.jsx(FU,{}),sort:{field:"destination",order:"ASC"},children:S.jsxs(Ur,{rowSx:n,rowClick:o=>`${o}/show/rooms`,bulkActionButtons:!1,children:[S.jsx(Fe,{source:"destination"}),S.jsx(Zr,{source:"failure_ts",showTime:!0,options:fn}),S.jsx(HBe,{source:"retry_last_ts",showTime:!0,options:fn}),S.jsx(Fe,{source:"retry_interval"}),S.jsx(Fe,{source:"last_successful_stream_ordering"}),S.jsx(LU,{})]})})},KBe=e=>{const t=je();return S.jsx(v_,{actions:S.jsx(WBe,{}),title:S.jsx(qBe,{}),...e,children:S.jsxs(Yv,{children:[S.jsxs(No,{label:"status",icon:S.jsx(fu,{}),children:[S.jsx(Fe,{source:"destination"}),S.jsx(Zr,{source:"failure_ts",showTime:!0,options:fn}),S.jsx(Zr,{source:"retry_last_ts",showTime:!0,options:fn}),S.jsx(Fe,{source:"retry_interval"}),S.jsx(Fe,{source:"last_successful_stream_ordering"})]}),S.jsx(No,{label:t("resources.rooms.name",{smart_count:2}),icon:S.jsx(mu,{}),path:"rooms",children:S.jsx(Oi,{reference:"destination_rooms",target:"destination",label:!1,pagination:S.jsx(FU,{}),perPage:50,children:S.jsxs(Ur,{style:{width:"100%"},rowClick:r=>`/rooms/${r}/show`,children:[S.jsx(Fe,{source:"room_id",label:"resources.rooms.fields.room_id"}),S.jsx(Fe,{source:"stream_ordering",sortable:!1}),S.jsx(Ka,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:S.jsx(Fe,{source:"name",sortable:!1})})]})})})]})})},QBe={name:"destinations",icon:MU,list:GBe,show:KBe};var J$={},XBe=He;Object.defineProperty(J$,"__esModule",{value:!0});var NU=J$.default=void 0,YBe=XBe(Xe()),JBe=S;NU=J$.default=(0,YBe.default)((0,JBe.jsx)("path",{d:"M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2m-9 7.5h-2v-2h2zm0-4.5h-2v-2h2zm0-4.5h-2v-2h2z"}),"ConfirmationNumber");const ZBe=[DP(/^[A-Za-z0-9._~-]{0,64}$/)],DU=[lz()],eze=[lz(),X0e(64)],tze=[S.jsx(ha,{source:"valid",alwaysOn:!0})],rze=e=>S.jsx(rl,{...e,filters:tze,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:S.jsxs(Ur,{rowClick:"edit",children:[S.jsx(Fe,{source:"token",sortable:!1}),S.jsx(Ga,{source:"uses_allowed",sortable:!1}),S.jsx(Ga,{source:"pending",sortable:!1}),S.jsx(Ga,{source:"completed",sortable:!1}),S.jsx(Zr,{source:"expiry_time",showTime:!0,options:fn,sortable:!1})]})}),nze=e=>S.jsx(L$,{...e,redirect:"list",children:S.jsxs(Ud,{toolbar:S.jsx(zd,{children:S.jsx(Qv,{alwaysEnable:!0})}),children:[S.jsx(Er,{source:"token",autoComplete:"off",validate:ZBe,resettable:!0}),S.jsx(zl,{source:"length",validate:eze,helperText:"resources.registration_tokens.helper.length",step:1}),S.jsx(zl,{source:"uses_allowed",validate:DU,step:1}),S.jsx(f_,{source:"expiry_time",parse:Y$})]})}),oze=e=>S.jsx(N$,{...e,children:S.jsxs(Ud,{children:[S.jsx(Er,{source:"token",disabled:!0}),S.jsx(zl,{source:"pending",disabled:!0}),S.jsx(zl,{source:"completed",disabled:!0}),S.jsx(zl,{source:"uses_allowed",validate:DU,step:1}),S.jsx(f_,{source:"expiry_time",parse:Y$,format:UBe})]})}),aze={name:"registration_tokens",icon:NU,list:rze,edit:oze,create:nze};var Z$={},ize=He;Object.defineProperty(Z$,"__esModule",{value:!0});var eR=Z$.default=void 0,sze=ize(Xe()),lze=S;eR=Z$.default=(0,sze.default)((0,lze.jsx)("path",{d:"M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-3.21 14.21-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9z"}),"Pageview");var tR={},uze=He;Object.defineProperty(tR,"__esModule",{value:!0});var BU=tR.default=void 0,cze=uze(Xe()),dze=S;BU=tR.default=(0,cze.default)((0,dze.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");var rR={},fze=He;Object.defineProperty(rR,"__esModule",{value:!0});var FC=rR.default=void 0,pze=fze(Xe()),vze=S;FC=rR.default=(0,pze.default)((0,vze.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");var nR={},mze=He;Object.defineProperty(nR,"__esModule",{value:!0});var oR=nR.default=void 0,hze=mze(Xe()),gze=S;oR=nR.default=(0,hze.default)((0,gze.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var aR={},yze=He;Object.defineProperty(aR,"__esModule",{value:!0});var iR=aR.default=void 0,bze=yze(Xe()),_ze=S;iR=aR.default=(0,bze.default)((0,_ze.jsx)("path",{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3zM14 5h-3l-1-1H6L5 5H2v2h12z"}),"DeleteSweep");var sR={},xze=He;Object.defineProperty(sR,"__esModule",{value:!0});var zU=sR.default=void 0,wze=xze(Xe()),Sze=S;zU=sR.default=(0,wze.default)((0,Sze.jsx)("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H15v-8h5V8zm-1 7V3.5L18.5 9zm4 12.66V16h5.66v2h-2.24l2.95 2.95-1.41 1.41L19 19.41v2.24h-2z"}),"FileOpen");var lR={},Oze=He;Object.defineProperty(lR,"__esModule",{value:!0});var UU=lR.default=void 0,Cze=Oze(Xe()),Eze=S;UU=lR.default=(0,Cze.default)((0,Eze.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"}),"LockOpen");const Pze=({open:e,onClose:t,onSubmit:r})=>{const n=je(),o=a=>S.jsxs(zd,{...a,children:[S.jsx(Qv,{label:"delete_media.action.send",icon:S.jsx(iR,{})}),S.jsx(Nt,{label:"ra.action.cancel",onClick:t,children:S.jsx(oR,{})})]});return S.jsxs(Dv,{open:e,onClose:t,children:[S.jsx(zv,{children:n("delete_media.action.send")}),S.jsxs(Bv,{children:[S.jsx(Z0,{children:n("delete_media.helper.send")}),S.jsxs(Ud,{toolbar:S.jsx(o,{}),onSubmit:r,children:[S.jsx(f_,{fullWidth:!0,source:"before_ts",label:"delete_media.fields.before_ts",defaultValue:0,parse:Y$}),S.jsx(zl,{fullWidth:!0,source:"size_gt",label:"delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),S.jsx(ha,{fullWidth:!0,source:"keep_profiles",label:"delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},$ze=e=>{const t=_o(),[r,n]=d.useState(!1),o=Ht(),a=yo(),{mutate:i,isLoading:s}=iu(f=>a.deleteMedia(f),{onSuccess:()=>{o("delete_media.action.send_success"),l()},onError:()=>{o("delete_media.action.send_failure",{type:"error"})}}),c=()=>n(!0),l=()=>n(!1);return S.jsxs(S.Fragment,{children:[S.jsx(Nt,{...e,label:"delete_media.action.send",onClick:c,disabled:s,sx:{color:t.palette.error.main,"&:hover":{backgroundColor:Yc(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:S.jsx(iR,{})}),S.jsx(Pze,{open:r,onClose:l,onSubmit:i})]})},Rze=e=>{const t=mt(),r=je(),n=ri(),o=Ht(),[a,{isLoading:i}]=bv(),[s]=_v();if(!t)return null;const c=()=>{a("protect_media",{data:t},{onSuccess:()=>{o("resources.protect_media.action.send_success"),n()},onError:()=>o("resources.protect_media.action.send_failure",{type:"error"})})},l=()=>{s("protect_media",{id:t.id},{onSuccess:()=>{o("resources.protect_media.action.send_success"),n()},onError:()=>o("resources.protect_media.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[t.quarantined_by&&S.jsx(Wr,{title:r("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,disabled:!0,children:S.jsx(sd,{})})})}),t.safe_from_quarantine&&S.jsx(Wr,{title:r("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:S.jsx("div",{children:S.jsx(Nt,{...e,onClick:l,disabled:i,children:S.jsx(Wv,{})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&S.jsx(Wr,{title:r("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,onClick:c,disabled:i,children:S.jsx(UU,{})})})})]})},kze=e=>{const t=mt(),r=je(),n=ri(),o=Ht(),[a,{isLoading:i}]=bv(),[s]=_v();if(!t)return null;const c=()=>{a("quarantine_media",{data:t},{onSuccess:()=>{o("resources.quarantine_media.action.send_success"),n()},onError:()=>o("resources.quarantine_media.action.send_failure",{type:"error"})})},l=()=>{s("quarantine_media",{id:t.id,previousData:t},{onSuccess:()=>{o("resources.quarantine_media.action.send_success"),n()},onError:()=>o("resources.quarantine_media.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[t.safe_from_quarantine&&S.jsx(Wr,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,disabled:!0,children:S.jsx(sd,{})})})}),t.quarantined_by&&S.jsx(Wr,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,onClick:l,disabled:i,children:S.jsx(FC,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&S.jsx(Wr,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,onClick:c,disabled:i,children:S.jsx(FC,{})})})})]})},VU=({media_id:e,label:t})=>{const r=je(),n=fBe(e);return S.jsxs(Cn,{style:{whiteSpace:"pre"},children:[S.jsx(Wr,{title:r("resources.users_media.action.open"),children:S.jsx("span",{children:S.jsx(Nt,{component:_a,to:n,target:"_blank",rel:"noopener",style:{minWidth:0,paddingLeft:0,paddingRight:0},children:S.jsx(zU,{})})})}),t]})},Tze=({source:e})=>{var o;const t=St.getItem("home_server"),r=mt();if(!r)return null;const n=(o=uv.get(r,e))==null?void 0:o.toString();return n?S.jsx(VU,{media_id:`${t}/${n}`,label:n}):null},Ize=({source:e})=>{var o;const t=mt();if(!t)return null;const r=(o=uv.get(t,e))==null?void 0:o.toString();if(!r)return null;const n=r.replace("mxc://","");return S.jsx(VU,{media_id:n,label:r})},jze=()=>S.jsx(tl,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Aze=e=>{const t=je();return S.jsx(v_,{...e,actions:S.jsx(Mze,{}),children:S.jsxs(Yv,{children:[S.jsxs(No,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:S.jsx(fu,{}),children:[S.jsx(Zr,{source:"received_ts",showTime:!0,options:fn,sortable:!0}),S.jsx(Ka,{source:"user_id",reference:"users",children:S.jsx(Fe,{source:"id"})}),S.jsx(Ga,{source:"score"}),S.jsx(Fe,{source:"reason"}),S.jsx(Fe,{source:"name"}),S.jsx(Fe,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),S.jsx(Ka,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:S.jsx(Fe,{source:"id"})})]}),S.jsxs(No,{label:"synapseadmin.reports.tabs.detail",icon:S.jsx(eR,{}),path:"detail",children:[S.jsx(Zr,{source:"event_json.origin_server_ts",showTime:!0,options:fn,sortable:!0}),S.jsx(Ka,{source:"sender",reference:"users",children:S.jsx(Fe,{source:"id"})}),S.jsx(Fe,{source:"sender",label:"Sender (raw user ID)"}),S.jsx(Fe,{source:"event_id"}),S.jsx(Fe,{source:"event_json.origin"}),S.jsx(Fe,{source:"event_json.type"}),S.jsx(Fe,{source:"event_json.content.msgtype"}),S.jsx(Fe,{source:"event_json.content.body"}),S.jsx(Fe,{source:"event_json.content.info.mimetype"}),S.jsx(Ize,{source:"event_json.content.url"}),S.jsx(Fe,{source:"event_json.content.format"}),S.jsx(Fe,{source:"event_json.content.formatted_body"}),S.jsx(Fe,{source:"event_json.content.algorithm"}),S.jsx(Fe,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})})},Mze=()=>{const e=mt();return S.jsx(wo,{children:S.jsx(pu,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},Fze=e=>S.jsx(rl,{...e,pagination:S.jsx(jze,{}),sort:{field:"received_ts",order:"DESC"},children:S.jsxs(Ur,{rowClick:"show",bulkActionButtons:!1,children:[S.jsx(Fe,{source:"id",sortable:!1}),S.jsx(Zr,{source:"received_ts",showTime:!0,options:fn,sortable:!0}),S.jsx(Fe,{sortable:!1,source:"user_id"}),S.jsx(Fe,{sortable:!1,source:"name"}),S.jsx(Fe,{sortable:!1,source:"score"})]})}),Lze={name:"reports",icon:BU,list:Fze,show:Aze},uR=({source:e,...t})=>{var l;const r=mt(t),n=(l=uv.get(r,e))==null?void 0:l.toString(),{alt:o,classes:a,sizes:i,sx:s,variant:c}=t;return S.jsx(Kp,{alt:o,classes:a,sizes:i,src:n,sx:s,variant:c})},Nze=()=>S.jsx(tl,{rowsPerPageOptions:[100,500,1e3,2e3]}),Dze=e=>{const t=je();return S.jsx(pu,{...e,label:"resources.room_directory.action.erase",redirect:!1,mutationMode:"pessimistic",confirmTitle:t("resources.room_directory.action.title",{smart_count:1}),confirmContent:t("resources.room_directory.action.content",{smart_count:1}),resource:"room_directory",icon:S.jsx(mu,{})})},WU=e=>S.jsx(Kv,{...e,label:"resources.room_directory.action.erase",mutationMode:"pessimistic",confirmTitle:"resources.room_directory.action.title",confirmContent:"resources.room_directory.action.content",resource:"room_directory",icon:S.jsx(mu,{})}),Bze=e=>{const{selectedIds:t}=rn(),r=Ht(),n=ri(),o=cB("rooms"),a=yo(),{mutate:i,isLoading:s}=iu(()=>a.createMany("room_directory",{ids:t,data:{}}),{onSuccess:()=>{r("resources.room_directory.action.send_success"),o(),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})});return S.jsx(Nt,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:s,children:S.jsx(mu,{})})},zze=e=>{const t=mt(),r=Ht(),n=ri(),[o,{isLoading:a}]=bv(),i=()=>{o("room_directory",{data:{id:t.id}},{onSuccess:()=>{r("resources.room_directory.action.send_success"),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})})};return S.jsx(Nt,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:a,children:S.jsx(mu,{})})},Uze=()=>S.jsxs(wo,{children:[S.jsx(C8,{}),S.jsx(Dd,{})]}),Vze=()=>S.jsx(rl,{pagination:S.jsx(Nze,{}),perPage:100,actions:S.jsx(Uze,{}),children:S.jsxs(C$,{rowClick:e=>"/rooms/"+e+"/show",bulkActionButtons:S.jsx(WU,{}),omit:["room_id","canonical_alias","topic"],children:[S.jsx(uR,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),S.jsx(Fe,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),S.jsx(Fe,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),S.jsx(Fe,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),S.jsx(Fe,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),S.jsx(Ga,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),S.jsx(Bo,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),S.jsx(Bo,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})}),Wze={name:"room_directory",icon:mu,list:Vze};var cR={},qze=He;Object.defineProperty(cR,"__esModule",{value:!0});var qU=cR.default=void 0,Hze=qze(Xe()),Gze=S;qU=cR.default=(0,Hze.default)((0,Gze.jsx)("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event");var dR={},Kze=He;Object.defineProperty(dR,"__esModule",{value:!0});var HU=dR.default=void 0,Qze=Kze(Xe()),Xze=S;HU=dR.default=(0,Qze.default)((0,Xze.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward");var fR={},Yze=He;Object.defineProperty(fR,"__esModule",{value:!0});var pR=fR.default=void 0,Jze=Yze(Xe()),Zze=S;pR=fR.default=(0,Jze.default)((0,Zze.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 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"}),"Group");var vR={},e6e=He;Object.defineProperty(vR,"__esModule",{value:!0});var LC=vR.default=void 0,t6e=e6e(Xe()),r6e=S;LC=vR.default=(0,t6e.default)((0,r6e.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Https");var mR={},n6e=He;Object.defineProperty(mR,"__esModule",{value:!0});var GU=mR.default=void 0,o6e=n6e(Xe()),a6e=S;GU=mR.default=(0,o6e.default)((0,a6e.jsx)("path",{d:"M21 21.78 4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H9.66L20 18.34V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5-2.56 0-4.64 1.93-4.94 4.4L8.9 7.24z"}),"NoEncryption");const i6e=()=>S.jsx(tl,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),s6e=()=>{const e=mt(),t=je();let r="";return e&&(r=e.name!==""?e.name:e.id),S.jsxs("span",{children:[t("resources.rooms.name",1)," ",r]})},l6e=()=>{const e=mt(),t=e!=null&&e.public?S.jsx(Dze,{}):S.jsx(zze,{});return S.jsxs(wo,{children:[t,S.jsx(pu,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},u6e=e=>{const t=je();return S.jsx(v_,{...e,actions:S.jsx(l6e,{}),title:S.jsx(s6e,{}),children:S.jsxs(Yv,{children:[S.jsxs(No,{label:"synapseadmin.rooms.tabs.basic",icon:S.jsx(fu,{}),children:[S.jsx(Fe,{source:"room_id"}),S.jsx(Fe,{source:"name"}),S.jsx(Fe,{source:"topic"}),S.jsx(Fe,{source:"canonical_alias"}),S.jsx(Ka,{source:"creator",reference:"users",children:S.jsx(Fe,{source:"id"})})]}),S.jsxs(No,{label:"synapseadmin.rooms.tabs.detail",icon:S.jsx(eR,{}),path:"detail",children:[S.jsx(Fe,{source:"joined_members"}),S.jsx(Fe,{source:"joined_local_members"}),S.jsx(Fe,{source:"joined_local_devices"}),S.jsx(Fe,{source:"state_events"}),S.jsx(Fe,{source:"version"}),S.jsx(Fe,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),S.jsx(No,{label:"synapseadmin.rooms.tabs.members",icon:S.jsx(pR,{}),path:"members",children:S.jsx(Oi,{reference:"room_members",target:"room_id",label:!1,children:S.jsxs(Ur,{style:{width:"100%"},rowClick:r=>"/users/"+r,bulkActionButtons:!1,children:[S.jsx(Fe,{source:"id",sortable:!1,label:"resources.users.fields.id"}),S.jsx(Ka,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:S.jsx(Fe,{source:"displayname",sortable:!1})})]})})}),S.jsxs(No,{label:"synapseadmin.rooms.tabs.permission",icon:S.jsx(A$,{}),path:"permission",children:[S.jsx(Bo,{source:"federatable"}),S.jsx(Bo,{source:"public"}),S.jsx(pw,{source:"join_rules",choices:[{id:"public",name:"resources.rooms.enums.join_rules.public"},{id:"knock",name:"resources.rooms.enums.join_rules.knock"},{id:"invite",name:"resources.rooms.enums.join_rules.invite"},{id:"private",name:"resources.rooms.enums.join_rules.private"}]}),S.jsx(pw,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),S.jsx(pw,{source:"history_visibility",choices:[{id:"invited",name:"resources.rooms.enums.history_visibility.invited"},{id:"joined",name:"resources.rooms.enums.history_visibility.joined"},{id:"shared",name:"resources.rooms.enums.history_visibility.shared"},{id:"world_readable",name:"resources.rooms.enums.history_visibility.world_readable"}]})]}),S.jsx(No,{label:t("resources.room_state.name",{smart_count:2}),icon:S.jsx(qU,{}),path:"state",children:S.jsx(Oi,{reference:"room_state",target:"room_id",label:!1,children:S.jsxs(Ur,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Fe,{source:"type",sortable:!1}),S.jsx(Zr,{source:"origin_server_ts",showTime:!0,options:fn,sortable:!1}),S.jsx(Fe,{source:"content",sortable:!1}),S.jsx(Ka,{source:"sender",reference:"users",sortable:!1,children:S.jsx(Fe,{source:"id"})})]})})}),S.jsxs(No,{label:"resources.forward_extremities.name",icon:S.jsx(HU,{}),path:"forward_extremities",children:[S.jsx(Cn,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),S.jsx(Oi,{reference:"forward_extremities",target:"room_id",label:!1,children:S.jsxs(Ur,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Fe,{source:"id",sortable:!1}),S.jsx(Zr,{source:"received_ts",showTime:!0,options:fn,sortable:!1}),S.jsx(Ga,{source:"depth",sortable:!1}),S.jsx(Fe,{source:"state_group",sortable:!1})]})})]})]})})},c6e=()=>S.jsxs(S.Fragment,{children:[S.jsx(Bze,{}),S.jsx(WU,{}),S.jsx(Kv,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),d6e=[S.jsx(p_,{source:"search_term",alwaysOn:!0})],f6e=()=>S.jsxs(wo,{children:[S.jsx(C8,{}),S.jsx(Dd,{})]}),p6e=e=>{const t=_o();return S.jsx(rl,{...e,pagination:S.jsx(i6e,{}),sort:{field:"name",order:"ASC"},filters:d6e,actions:S.jsx(f6e,{}),children:S.jsxs(C$,{rowClick:"show",bulkActionButtons:S.jsx(c6e,{}),omit:["joined_local_members","state_events","version","federatable"],children:[S.jsx(Bo,{source:"is_encrypted",sortBy:"encryption",TrueIcon:LC,FalseIcon:GU,label:S.jsx(LC,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),S.jsx(fU,{source:"name",render:r=>r.name||r.canonical_alias||r.id}),S.jsx(Fe,{source:"joined_members"}),S.jsx(Fe,{source:"joined_local_members"}),S.jsx(Fe,{source:"state_events"}),S.jsx(Fe,{source:"version"}),S.jsx(Bo,{source:"federatable"}),S.jsx(Bo,{source:"public"})]})})},v6e={name:"rooms",icon:fu,list:p6e,show:u6e};var hR={},m6e=He;Object.defineProperty(hR,"__esModule",{value:!0});var KU=hR.default=void 0,h6e=m6e(Xe()),g6e=S;KU=hR.default=(0,h6e.default)((0,g6e.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer");const y6e=()=>{const{isLoading:e,total:t}=rn();return S.jsxs(wo,{children:[S.jsx($ze,{}),S.jsx(Dd,{disabled:e||t===0})]})},b6e=()=>S.jsx(tl,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),_6e=[S.jsx(p_,{source:"search_term",alwaysOn:!0})],x6e=e=>S.jsx(rl,{...e,actions:S.jsx(y6e,{}),filters:_6e,pagination:S.jsx(b6e,{}),sort:{field:"media_length",order:"DESC"},children:S.jsxs(Ur,{rowClick:t=>"/users/"+t+"/media",bulkActionButtons:!1,children:[S.jsx(Fe,{source:"user_id",label:"resources.users.fields.id"}),S.jsx(Fe,{source:"displayname",label:"resources.users.fields.displayname"}),S.jsx(Ga,{source:"media_count"}),S.jsx(Ga,{source:"media_length"})]})}),w6e={name:"user_media_statistics",icon:KU,list:x6e};var gR={},S6e=He;Object.defineProperty(gR,"__esModule",{value:!0});var QU=gR.default=void 0,O6e=S6e(Xe()),C6e=S;QU=gR.default=(0,O6e.default)((0,C6e.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1z"}),"AssignmentInd");var yR={},E6e=He;Object.defineProperty(yR,"__esModule",{value:!0});var XU=yR.default=void 0,P6e=E6e(Xe()),$6e=S;XU=yR.default=(0,P6e.default)((0,$6e.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail");var bR={},R6e=He;Object.defineProperty(bR,"__esModule",{value:!0});var YU=bR.default=void 0,k6e=R6e(Xe()),T6e=S;YU=bR.default=(0,k6e.default)((0,T6e.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"}),"Devices");var _R={},I6e=He;Object.defineProperty(_R,"__esModule",{value:!0});var JU=_R.default=void 0,j6e=I6e(Xe()),A6e=S;JU=_R.default=(0,j6e.default)((0,A6e.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var xR={},M6e=He;Object.defineProperty(xR,"__esModule",{value:!0});var ZU=xR.default=void 0,F6e=M6e(Xe()),L6e=S;ZU=xR.default=(0,F6e.default)((0,L6e.jsx)("path",{d:"M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M7 15l4.5-6 3.5 4.51 2.5-3.01L21 15z"}),"PermMedia");var wR={},N6e=He;Object.defineProperty(wR,"__esModule",{value:!0});var eV=wR.default=void 0,D6e=N6e(Xe()),B6e=S;eV=wR.default=(0,D6e.default)((0,B6e.jsx)("path",{d:"M12 2c-4.97 0-9 4.03-9 9 0 4.17 2.84 7.67 6.69 8.69L12 22l2.31-2.31C18.16 18.67 21 15.17 21 11c0-4.97-4.03-9-9-9m0 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m0 14.3c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22"}),"PersonPin");var SR={},z6e=He;Object.defineProperty(SR,"__esModule",{value:!0});var tV=SR.default=void 0,U6e=z6e(Xe()),V6e=S;tV=SR.default=(0,U6e.default)((0,V6e.jsx)("path",{d:"M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6z"}),"SettingsInputComponent");var OR={},W6e=He;Object.defineProperty(OR,"__esModule",{value:!0});var CR=OR.default=void 0,q6e=W6e(Xe()),H6e=S;CR=OR.default=(0,q6e.default)((0,H6e.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-2 12H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"}),"Message");const rV=({open:e,onClose:t,onSubmit:r})=>{const n=je(),o=a=>S.jsxs(zd,{...a,children:[S.jsx(Qv,{label:"resources.servernotices.action.send",disabled:a.pristine}),S.jsx(Nt,{label:"ra.action.cancel",onClick:t,children:S.jsx(oR,{})})]});return S.jsxs(Dv,{open:e,onClose:t,children:[S.jsx(zv,{children:n("resources.servernotices.action.send")}),S.jsxs(Bv,{children:[S.jsx(Z0,{children:n("resources.servernotices.helper.send")}),S.jsx(Ud,{toolbar:S.jsx(o,{}),onSubmit:r,children:S.jsx(Er,{source:"body",label:"resources.servernotices.fields.body",fullWidth:!0,multiline:!0,rows:"4",resettable:!0,validate:co()})})]})]})},G6e=()=>{const e=mt(),[t,r]=d.useState(!1),n=Ht(),[o,{isLoading:a}]=bv(),i=()=>r(!0),s=()=>r(!1),c=l=>{o("servernotices",{data:{id:e.id,...l}},{onSuccess:()=>{n("resources.servernotices.action.send_success"),s()},onError:()=>n("resources.servernotices.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[S.jsx(Nt,{label:"resources.servernotices.send",onClick:i,disabled:a,children:S.jsx(CR,{})}),S.jsx(rV,{open:t,onClose:s,onSubmit:c})]})},K6e=()=>{const{selectedIds:e}=rn(),[t,r]=d.useState(!1),n=()=>r(!0),o=()=>r(!1),a=Ht(),i=cB("users"),s=yo(),{mutate:c,isLoading:l}=iu(f=>s.createMany("servernotices",{ids:e,data:f}),{onSuccess:()=>{a("resources.servernotices.action.send_success"),i(),o()},onError:()=>a("resources.servernotices.action.send_failure",{type:"error"})});return S.jsxs(S.Fragment,{children:[S.jsx(Nt,{label:"resources.servernotices.send",onClick:n,disabled:l,children:S.jsx(CR,{})}),S.jsx(rV,{open:t,onClose:o,onSubmit:c})]})},Q6e=e=>{const t=mt();return t?S.jsx(s$,{...e,label:"ra.action.remove",confirmTitle:"resources.devices.action.erase.title",confirmContent:"resources.devices.action.erase.content",mutationMode:"pessimistic",redirect:!1,translateOptions:{id:t.id,name:t.display_name?t.display_name:t.id}}):null},nV=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],oV=[{id:"bot",name:"bot"},{id:"support",name:"support"}],aV=()=>{const{isLoading:e,total:t}=rn();return S.jsxs(wo,{children:[S.jsx(T2,{}),S.jsx(Dd,{disabled:e||t===0,maxResults:1e4}),S.jsx(Nt,{component:_a,to:"/import_users",label:"CSV Import",children:S.jsx(i$,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})};aV.defaultProps={selectedIds:[],onUnselectItems:()=>null};const iV=()=>S.jsx(tl,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),X6e=[S.jsx(p_,{source:"name",alwaysOn:!0}),S.jsx(ha,{source:"guests",alwaysOn:!0}),S.jsx(ha,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0}),S.jsx(ha,{label:"resources.users.fields.show_locked",source:"locked",alwaysOn:!0})],Y6e=()=>S.jsxs(S.Fragment,{children:[S.jsx(K6e,{}),S.jsx(Kv,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),J6e=e=>S.jsx(rl,{...e,filters:X6e,filterDefaultValues:{guests:!0,deactivated:!1,locked:!1},sort:{field:"name",order:"ASC"},actions:S.jsx(aV,{}),pagination:S.jsx(iV,{}),children:S.jsxs(Ur,{rowClick:(t,r)=>`/${r}/${t}`,bulkActionButtons:S.jsx(Y6e,{}),children:[S.jsx(uR,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),S.jsx(Fe,{source:"id",sortBy:"name"}),S.jsx(Fe,{source:"displayname"}),S.jsx(Bo,{source:"is_guest"}),S.jsx(Bo,{source:"admin"}),S.jsx(Bo,{source:"deactivated"}),S.jsx(Bo,{source:"locked"}),S.jsx(Bo,{source:"erased",sortable:!1}),S.jsx(Zr,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:fn})]})}),Z6e=[co(),Py(253),DP(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],e9e=[co(),Py(255)],t9e=()=>{const e=mt(),t=je();return S.jsxs(wo,{children:[!(e!=null&&e.deactivated)&&S.jsx(G6e,{}),S.jsx(pu,{label:"resources.users.action.erase",confirmTitle:t("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},r9e=e=>S.jsx(L$,{...e,redirect:(t,r)=>`${t}/${r}`,children:S.jsxs(Ud,{children:[S.jsx(Er,{source:"id",autoComplete:"off",validate:Z6e}),S.jsx(Er,{source:"displayname",validate:Py(256)}),S.jsx(F$,{source:"password",autoComplete:"new-password",validate:Py(512)}),S.jsx(rv,{source:"user_type",choices:oV,translateChoice:!1,resettable:!0}),S.jsx(ha,{source:"admin"}),S.jsx(eb,{source:"threepids",children:S.jsxs(ev,{disableReordering:!0,children:[S.jsx(rv,{source:"medium",choices:nV,validate:co()}),S.jsx(Er,{source:"address",validate:e9e})]})}),S.jsx(eb,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:S.jsxs(ev,{disableReordering:!0,children:[S.jsx(Er,{source:"auth_provider",validate:co()}),S.jsx(Er,{source:"external_id",label:"resources.users.fields.id",validate:co()})]})})]})}),n9e=()=>{const e=mt(),t=je();return S.jsxs("span",{children:[t("resources.users.name",{smart_count:1})," ",e?`"${e.displayname}"`:""]})},o9e=e=>{const t=je();return S.jsx(N$,{...e,title:S.jsx(n9e,{}),actions:S.jsx(t9e,{}),children:S.jsxs(D$,{children:[S.jsxs(da,{label:t("resources.users.name",{smart_count:1}),icon:S.jsx(eV,{}),children:[S.jsx(uR,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),S.jsx(Er,{source:"id",disabled:!0}),S.jsx(Er,{source:"displayname"}),S.jsx(F$,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),S.jsx(rv,{source:"user_type",choices:oV,translateChoice:!1,resettable:!0}),S.jsx(ha,{source:"admin"}),S.jsx(ha,{source:"locked"}),S.jsx(ha,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),S.jsx(ha,{source:"erased",disabled:!0}),S.jsx(Zr,{source:"creation_ts_ms",showTime:!0,options:fn}),S.jsx(Fe,{source:"consent_version"})]}),S.jsx(da,{label:"resources.users.threepid",icon:S.jsx(XU,{}),path:"threepid",children:S.jsx(eb,{source:"threepids",children:S.jsxs(ev,{disableReordering:!0,children:[S.jsx(rv,{source:"medium",choices:nV}),S.jsx(Er,{source:"address"})]})})}),S.jsx(da,{label:"synapseadmin.users.tabs.sso",icon:S.jsx(QU,{}),path:"sso",children:S.jsx(eb,{source:"external_ids",label:!1,children:S.jsxs(ev,{disableReordering:!0,children:[S.jsx(Er,{source:"auth_provider",validate:co()}),S.jsx(Er,{source:"external_id",label:"resources.users.fields.id",validate:co()})]})})}),S.jsx(da,{label:t("resources.devices.name",{smart_count:2}),icon:S.jsx(YU,{}),path:"devices",children:S.jsx(Oi,{reference:"devices",target:"user_id",label:!1,children:S.jsxs(Ur,{style:{width:"100%"},children:[S.jsx(Fe,{source:"device_id",sortable:!1}),S.jsx(Fe,{source:"display_name",sortable:!1}),S.jsx(Fe,{source:"last_seen_ip",sortable:!1}),S.jsx(Zr,{source:"last_seen_ts",showTime:!0,options:fn,sortable:!1}),S.jsx(Q6e,{})]})})}),S.jsx(da,{label:"resources.connections.name",icon:S.jsx(tV,{}),path:"connections",children:S.jsx(Ka,{reference:"connections",source:"id",label:!1,link:!1,children:S.jsx(i5e,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:S.jsxs(Ur,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Fe,{source:"ip",sortable:!1}),S.jsx(Zr,{source:"last_seen",showTime:!0,options:fn,sortable:!1}),S.jsx(Fe,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),S.jsx(da,{label:t("resources.users_media.name",{smart_count:2}),icon:S.jsx(ZU,{}),path:"media",children:S.jsx(Oi,{reference:"users_media",target:"user_id",label:!1,pagination:S.jsx(iV,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:S.jsxs(Ur,{style:{width:"100%"},children:[S.jsx(Tze,{source:"media_id"}),S.jsx(Zr,{source:"created_ts",showTime:!0,options:fn}),S.jsx(Zr,{source:"last_access_ts",showTime:!0,options:fn}),S.jsx(Ga,{source:"media_length"}),S.jsx(Fe,{source:"media_type"}),S.jsx(Fe,{source:"upload_name"}),S.jsx(Fe,{source:"quarantined_by"}),S.jsx(kze,{label:"resources.quarantine_media.action.name"}),S.jsx(Rze,{label:"resources.users_media.fields.safe_from_quarantine"}),S.jsx(pu,{mutationMode:"pessimistic",redirect:!1})]})})}),S.jsx(da,{label:t("resources.rooms.name",{smart_count:2}),icon:S.jsx(fu,{}),path:"rooms",children:S.jsx(Oi,{reference:"joined_rooms",target:"user_id",label:!1,children:S.jsxs(Ur,{style:{width:"100%"},rowClick:r=>"/rooms/"+r+"/show",bulkActionButtons:!1,children:[S.jsx(Fe,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),S.jsx(Ka,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:S.jsx(Fe,{source:"name",sortable:!1})})]})})}),S.jsx(da,{label:t("resources.pushers.name",{smart_count:2}),icon:S.jsx(JU,{}),path:"pushers",children:S.jsx(Oi,{reference:"pushers",target:"user_id",label:!1,children:S.jsxs(Ur,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Fe,{source:"kind",sortable:!1}),S.jsx(Fe,{source:"app_display_name",sortable:!1}),S.jsx(Fe,{source:"app_id",sortable:!1}),S.jsx(Fe,{source:"data.url",sortable:!1}),S.jsx(Fe,{source:"device_display_name",sortable:!1}),S.jsx(Fe,{source:"lang",sortable:!1}),S.jsx(Fe,{source:"profile_tag",sortable:!1}),S.jsx(Fe,{source:"pushkey",sortable:!1})]})})})]})})},a9e={name:"users",icon:pR,list:J6e,edit:o9e,create:r9e},i9e={login:async({base_url:e,username:t,password:r,loginToken:n})=>{console.log("login ");const o={method:"POST",body:JSON.stringify(Object.assign({device_id:St.getItem("device_id"),initial_device_display_name:"Synapse Admin"},n?{type:"m.login.token",token:n}:{type:"m.login.password",user:t,password:r,identifier:{type:"m.id.user",user:t}}))};e=e.replace(/\/+$/g,""),St.setItem("base_url",e);const i=window.decodeURIComponent(e)+"/_matrix/client/r0/login",{json:s}=await Jl(i,o);St.setItem("home_server",s.home_server),St.setItem("user_id",s.user_id),St.setItem("access_token",s.access_token),St.setItem("device_id",s.device_id)},logout:async()=>{console.log("logout");const e=St.getItem("base_url")+"/_matrix/client/r0/logout",t=St.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:`Bearer ${t}`}};typeof t=="string"&&(await Jl(e,r),St.removeItem("access_token"))},checkError:({status:e})=>(console.log("checkError "+e),e===401||e===403?Promise.reject():Promise.resolve()),checkAuth:()=>{const e=St.getItem("access_token");return console.log("checkAuth "+e),typeof e=="string"?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},no=(e,t={})=>{const r=St.getItem("access_token");return console.log("httpClient "+e),r!=null&&(t.user={authenticated:!0,token:`Bearer ${r}`}),Jl(e,t)},vN=e=>{const t=St.getItem("base_url"),n=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+n),n==null)return null;const o=n[1],a=n[2];return`${t}/_matrix/media/r0/thumbnail/${o}/${a}?width=24&height=24&method=scale`},_r={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:e.avatar_url?vN(e.avatar_url):void 0,is_guest:!!e.is_guest,admin:!!e.admin,deactivated:!!e.deactivated,creation_ts_ms:e.creation_ts*1e3}),data:"users",total:e=>e.total,create:e=>({endpoint:`/_synapse/admin/v2/users/@${encodeURIComponent(e.id)}:${St.getItem("home_server")}`,body:e,method:"PUT"}),delete:e=>({endpoint:`/_synapse/admin/v1/deactivate/${encodeURIComponent(e.id)}`,body:{erase:!0},method:"POST"})},rooms:{path:"/_synapse/admin/v1/rooms",map:e=>({...e,id:e.room_id,alias:e.canonical_alias,members:e.joined_members,is_encrypted:!!e.encryption,federatable:!!e.federatable,public:!!e.public}),data:"rooms",total:e=>e.total_rooms,delete:e=>({endpoint:`/_synapse/admin/v2/rooms/${e.id}`,body:{block:!1}})},reports:{path:"/_synapse/admin/v1/event_reports",map:e=>({...e}),data:"event_reports",total:e=>e.total},devices:{map:e=>({...e,id:e.device_id}),data:"devices",total:e=>e.total,reference:e=>({endpoint:`/_synapse/admin/v2/users/${encodeURIComponent(e)}/devices`}),delete:e=>({endpoint:`/_synapse/admin/v2/users/${encodeURIComponent(e.previousData.user_id)}/devices/${e.id}`})},connections:{path:"/_synapse/admin/v1/whois",map:e=>({...e,id:e.user_id}),data:"connections"},room_members:{map:e=>({id:e}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/members`}),data:"members",total:e=>e.total},room_state:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/state`}),data:"state",total:e=>e.state.length},pushers:{map:e=>({...e,id:e.pushkey}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/pushers`}),data:"pushers",total:e=>e.total},joined_rooms:{map:e=>({id:e}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/joined_rooms`}),data:"joined_rooms",total:e=>e.total},users_media:{map:e=>({...e,id:e.media_id}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/media`}),data:"media",total:e=>e.total,delete:e=>({endpoint:`/_synapse/admin/v1/media/${St.getItem("home_server")}/${e.id}`})},protect_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/protect/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unprotect/${e.id}`,method:"POST"})},quarantine_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/quarantine/${St.getItem("home_server")}/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unquarantine/${St.getItem("home_server")}/${e.id}`,method:"POST"})},servernotices:{map:e=>({id:e.event_id}),create:e=>({endpoint:"/_synapse/admin/v1/send_server_notice",body:{user_id:e.id,content:{msgtype:"m.text",body:e.body}},method:"POST"})},user_media_statistics:{path:"/_synapse/admin/v1/statistics/users/media",map:e=>({...e,id:e.user_id}),data:"users",total:e=>e.total},forward_extremities:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/forward_extremities`}),data:"results",total:e=>e.count,delete:e=>({endpoint:`/_synapse/admin/v1/rooms/${e.id}/forward_extremities`})},room_directory:{path:"/_matrix/client/r0/publicRooms",map:e=>({...e,id:e.room_id,public:!!e.public,guest_access:!!e.guest_access,avatar_src:e.avatar_url?vN(e.avatar_url):void 0}),data:"chunk",total:e=>e.total_room_count_estimate,create:e=>({endpoint:`/_matrix/client/r0/directory/list/room/${e.id}`,body:{visibility:"public"},method:"PUT"}),delete:e=>({endpoint:`/_matrix/client/r0/directory/list/room/${e.id}`,body:{visibility:"private"},method:"PUT"})},destinations:{path:"/_synapse/admin/v1/federation/destinations",map:e=>({...e,id:e.destination}),data:"destinations",total:e=>e.total,delete:e=>({endpoint:`/_synapse/admin/v1/federation/destinations/${e.id}/reset_connection`,method:"POST"})},destination_rooms:{map:e=>({...e,id:e.room_id}),reference:e=>({endpoint:`/_synapse/admin/v1/federation/destinations/${e}/rooms`}),data:"rooms",total:e=>e.total},registration_tokens:{path:"/_synapse/admin/v1/registration_tokens",map:e=>({...e,id:e.token}),data:"registration_tokens",total:e=>e.registration_tokens.length,create:e=>({endpoint:"/_synapse/admin/v1/registration_tokens/new",body:e,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/registration_tokens/${e.id}`})}};function Rf(e,t){if(!(t===null&&e!=="user_type"))return t}function mN(e){return e==="DESC"?"b":"f"}const s9e={getList:async(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:o,deactivated:a,locked:i,search_term:s,destination:c,valid:l}=t.filter,{page:f,perPage:v}=t.pagination,{field:m,order:h}=t.sort,x=(f-1)*v,w={from:x,limit:v,user_id:r,search_term:s,name:n,destination:c,guests:o,deactivated:a,locked:i,valid:l,order_by:m,dir:mN(h)},O=St.getItem("base_url");if(!O||!(e in _r))throw Error("Homeserver not set");const b=_r[e],_=`${O+b.path}?${Yl.stringify(w)}`,{json:$}=await no(_);return{data:$[b.data].map(b.map),total:b.total($,x,v)}},getOne:async(e,t)=>{console.log("getOne "+e);const r=St.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e],o=r+n.path,{json:a}=await no(`${o}/${encodeURIComponent(t.id)}`);return{data:n.map(a)}},getMany:async(e,t)=>{console.log("getMany "+e);const r=St.getItem("base_url");if(!r||!(e in _r))throw Error("Homerserver not set");const n=_r[e],o=r+n.path,a=await Promise.all(t.ids.map(i=>no(`${o}/${encodeURIComponent(i)}`)));return{data:a.map(({json:i})=>n.map(i)),total:a.length}},getManyReference:async(e,t)=>{console.log("getManyReference "+e);const{page:r,perPage:n}=t.pagination,{field:o,order:a}=t.sort,i=(r-1)*n,s={from:i,limit:n,order_by:o,dir:mN(a)},c=St.getItem("base_url");if(!c||!(e in _r))throw Error("Homeserver not set");const l=_r[e],f=l.reference(t.id),v=`${c}${f.endpoint}?${Yl.stringify(s)}`,{json:m}=await no(v);return{data:m[l.data].map(l.map),total:l.total(m,i,n)}},update:async(e,t)=>{console.log("update "+e);const r=St.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e],o=r+n.path,{json:a}=await no(`${o}/${encodeURIComponent(t.id)}`,{method:"PUT",body:JSON.stringify(t.data,Rf)});return{data:n.map(a)}},updateMany:async(e,t)=>{console.log("updateMany "+e);const r=St.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e],o=r+n.path;return{data:(await Promise.all(t.ids.map(i=>no(`${o}/${encodeURIComponent(i)}`),{method:"PUT",body:JSON.stringify(t.data,Rf)}))).map(({json:i})=>i)}},create:async(e,t)=>{console.log("create "+e);const r=St.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e];if(!("create"in n))return Promise.reject();const o=n.create(t.data),a=r+o.endpoint,{json:i}=await no(a,{method:o.method,body:JSON.stringify(o.body,Rf)});return{data:n.map(i)}},createMany:async(e,t)=>{console.log("createMany "+e);const r=St.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e];if(!("create"in n))throw Error(`Create ${e} is not allowed`);return{data:(await Promise.all(t.ids.map(a=>{t.data.id=a;const i=n.create(t.data),s=r+i.endpoint;return no(s,{method:i.method,body:JSON.stringify(i.body,Rf)})}))).map(({json:a})=>a)}},delete:async(e,t)=>{console.log("delete "+e);const r=St.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e];if("delete"in n){const o=n.delete(t),a=r+o.endpoint,{json:i}=await no(a,{method:"method"in o?o.method:"DELETE",body:"body"in o?JSON.stringify(o.body):null});return{data:i}}else{const o=r+n.path,{json:a}=await no(`${o}/${t.id}`,{method:"DELETE",body:JSON.stringify(t.previousData,Rf)});return{data:a}}},deleteMany:async(e,t)=>{console.log("deleteMany "+e);const r=St.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e];if("delete"in n)return{data:(await Promise.all(t.ids.map(a=>{const i=n.delete({...t,id:a}),s=r+i.endpoint;return no(s,{method:"method"in i?i.method:"DELETE",body:"body"in i?JSON.stringify(i.body):null})}))).map(({json:a})=>a)};{const o=r+n.path;return{data:(await Promise.all(t.ids.map(i=>no(`${o}/${i}`,{method:"DELETE"})))).map(({json:i})=>i)}}},deleteMedia:async({before_ts:e,size_gt:t=0,keep_profiles:r=!0})=>{const o=`/_synapse/admin/v1/media/${St.getItem("home_server")}/delete?before_ts=${e}&size_gt=${t}&keep_profiles=${r}`,i=St.getItem("base_url")+o,{json:s}=await no(i,{method:"POST"});return s}},Ah={de:yBe,en:bBe,fr:xBe,it:OBe,ru:EBe,zh:RBe},l9e=x4(e=>Ah[e]?uv.merge({},Ah.en,Ah[e]):Ah.en,mpe(),[{locale:"en",name:"English"},{locale:"de",name:"Deutsch"},{locale:"fr",name:"Français"},{locale:"it",name:"Italiano"},{locale:"fa",name:"Persian(فارسی)"},{locale:"ru",name:"Russian(Русский)"},{locale:"zh",name:"简体中文"}]),u9e=()=>S.jsxs(aBe,{disableTelemetry:!0,requireAuth:!0,loginPage:IBe,authProvider:i9e,dataProvider:s9e,i18nProvider:l9e,darkTheme:{palette:{mode:"dark"}},children:[S.jsx(MB,{children:S.jsx(zr,{path:"/import_users",element:S.jsx(hBe,{})})}),S.jsx(Ir,{...a9e}),S.jsx(Ir,{...v6e}),S.jsx(Ir,{...w6e}),S.jsx(Ir,{...Lze}),S.jsx(Ir,{...Wze}),S.jsx(Ir,{...QBe}),S.jsx(Ir,{...aze}),S.jsx(Ir,{name:"connections"}),S.jsx(Ir,{name:"devices"}),S.jsx(Ir,{name:"room_members"}),S.jsx(Ir,{name:"users_media"}),S.jsx(Ir,{name:"joined_rooms"}),S.jsx(Ir,{name:"pushers"}),S.jsx(Ir,{name:"servernotices"}),S.jsx(Ir,{name:"forward_extremities"}),S.jsx(Ir,{name:"room_state"}),S.jsx(Ir,{name:"destination_rooms"})]});fetch("/synapse-admin/config.json").then(e=>e.json()).then(e=>$3(document.getElementById("root")).render(S.jsx(fe.StrictMode,{children:S.jsx(jU.Provider,{value:e,children:S.jsx(u9e,{})})}))); diff --git a/index.html b/index.html index af1bef2..b7c3be0 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - + @@ -113,7 +113,7 @@ } } - + @@ -129,8 +129,8 @@ Synapse-Admin by Awesome Technologies Innovationslabor GmbH - - + +