From c4dfa0656e66798f7360d2c5c1fac2ee1296adf2 Mon Sep 17 00:00:00 2001 From: awesome-manuel <37705355+awesome-manuel@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:21:54 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20Awesome-?= =?UTF-8?q?Technologies/synapse-admin@dbcb4f92dc1ef88cd2af3b956fbf242fa9c4?= =?UTF-8?q?8093=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/index-C7i13C9_.js | 305 +++++++++++++++++++++++++++++++++++++++ assets/index-IqI7-CAq.js | 305 --------------------------------------- index.html | 8 +- 3 files changed, 309 insertions(+), 309 deletions(-) create mode 100644 assets/index-C7i13C9_.js delete mode 100644 assets/index-IqI7-CAq.js diff --git a/assets/index-C7i13C9_.js b/assets/index-C7i13C9_.js new file mode 100644 index 00000000..5fcb150e --- /dev/null +++ b/assets/index-C7i13C9_.js @@ -0,0 +1,305 @@ +function $Q(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 Xa(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 pN={exports:{}},vb={},vN={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 rv=Symbol.for("react.element"),RQ=Symbol.for("react.portal"),TQ=Symbol.for("react.fragment"),kQ=Symbol.for("react.strict_mode"),IQ=Symbol.for("react.profiler"),jQ=Symbol.for("react.provider"),AQ=Symbol.for("react.context"),MQ=Symbol.for("react.forward_ref"),FQ=Symbol.for("react.suspense"),LQ=Symbol.for("react.memo"),NQ=Symbol.for("react.lazy"),Hk=Symbol.iterator;function DQ(e){return e===null||typeof e!="object"?null:(e=Hk&&e[Hk]||e["@@iterator"],typeof e=="function"?e:null)}var mN={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hN=Object.assign,gN={};function ud(e,t,r){this.props=e,this.context=t,this.refs=gN,this.updater=r||mN}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 yN(){}yN.prototype=ud.prototype;function MC(e,t,r){this.props=e,this.context=t,this.refs=gN,this.updater=r||mN}var FC=MC.prototype=new yN;FC.constructor=MC;hN(FC,ud.prototype);FC.isPureReactComponent=!0;var Gk=Array.isArray,bN=Object.prototype.hasOwnProperty,LC={current:null},_N={key:!0,ref:!0,__self:!0,__source:!0};function xN(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)bN.call(t,n)&&!_N.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,T=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}}}})(EN);CN.exports=EN;var XQ=CN.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 YQ=d,po=XQ;function Te(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"),pw=Object.prototype.hasOwnProperty,JQ=/^[: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]*$/,Qk={},Xk={};function ZQ(e){return pw.call(Xk,e)?!0:pw.call(Qk,e)?!1:JQ.test(e)?Xk[e]=!0:(Qk[e]=!0,!1)}function eX(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 tX(e,t,r,n){if(t===null||typeof t>"u"||eX(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 Tn(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 en={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){en[e]=new Tn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];en[t]=new Tn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){en[e]=new Tn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){en[e]=new Tn(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){en[e]=new Tn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){en[e]=new Tn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){en[e]=new Tn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){en[e]=new Tn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){en[e]=new Tn(e,5,!1,e.toLowerCase(),null,!1,!1)});var DC=/[\-:]([a-z])/g;function BC(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(DC,BC);en[t]=new Tn(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(DC,BC);en[t]=new Tn(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(DC,BC);en[t]=new Tn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){en[e]=new Tn(e,1,!1,e.toLowerCase(),null,!1,!1)});en.xlinkHref=new Tn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){en[e]=new Tn(e,1,!1,e.toLowerCase(),null,!0,!0)});function zC(e,t,r,n){var o=en.hasOwnProperty(t)?en[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{k1=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Rf(e):""}function rX(e){switch(e.tag){case 5:return Rf(e.type);case 16:return Rf("Lazy");case 13:return Rf("Suspense");case 19:return Rf("SuspenseList");case 0:case 2:case 15:return e=I1(e.type,!1),e;case 11:return e=I1(e.type.render,!1),e;case 1:return e=I1(e.type,!0),e;default:return""}}function gw(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 vw:return"Profiler";case UC:return"StrictMode";case mw:return"Suspense";case hw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case RN:return(e.displayName||"Context")+".Consumer";case $N:return(e._context.displayName||"Context")+".Provider";case VC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case WC:return t=e.displayName||null,t!==null?t:gw(e.type)||"Memo";case is:t=e._payload,e=e._init;try{return gw(e(t))}catch{}}return null}function nX(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 gw(t);case 8:return t===UC?"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 kN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oX(e){var t=kN(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 Gm(e){e._valueTracker||(e._valueTracker=oX(e))}function IN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=kN(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Og(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 yw(e,t){var r=t.checked;return ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Jk(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 jN(e,t){t=t.checked,t!=null&&zC(e,"checked",t,!1)}function bw(e,t){jN(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")?_w(e,t.type,r):t.hasOwnProperty("defaultValue")&&_w(e,t.type,Fs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Zk(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 _w(e,t,r){(t!=="number"||Og(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=Km.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function yp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Nf={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},aX=["Webkit","ms","Moz","O"];Object.keys(Nf).forEach(function(e){aX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nf[t]=Nf[e]})});function LN(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Nf.hasOwnProperty(e)&&Nf[e]?(""+t).trim():t+"px"}function NN(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=LN(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var iX=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 Sw(e,t){if(t){if(iX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function Ow(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 Cw=null;function qC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ew=null,hc=null,gc=null;function rI(e){if(e=av(e)){if(typeof Ew!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=bb(t),Ew(e.stateNode,e.type,t))}}function DN(e){hc?gc?gc.push(e):gc=[e]:hc=e}function BN(){if(hc){var e=hc,t=gc;if(gc=hc=null,rI(e),t)for(e=0;e>>=0,e===0?32:31-(gX(e)/yX|0)|0}var Qm=64,Xm=4194304;function kf(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 $g(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=kf(s):(a&=i,a!==0&&(n=kf(a)))}else i=r&~o,i!==0?n=kf(i):a!==0&&(n=kf(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 nv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ha(t),e[t]=r}function wX(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=Bf),dI=" ",fI=!1;function iD(e,t){switch(e){case"keyup":return XX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qu=!1;function JX(e,t){switch(e){case"compositionend":return sD(t);case"keypress":return t.which!==32?null:(fI=!0,dI);case"textInput":return e=t.data,e===dI&&fI?null:e;default:return null}}function ZX(e,t){if(Qu)return e==="compositionend"||!ZC&&iD(e,t)?(e=oD(),Fh=XC=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=hI(r)}}function dD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fD(){for(var e=window,t=Og();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Og(e.document)}return t}function eE(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 lY(e){var t=fD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dD(r.ownerDocument.documentElement,r)){if(n!==null&&eE(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=gI(r,a);var i=gI(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,Iw=null,Uf=null,jw=!1;function yI(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;jw||Xu==null||Xu!==Og(n)||(n=Xu,"selectionStart"in n&&eE(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}),Uf&&Op(Uf,n)||(Uf=n,n=kg(Iw,"onSelect"),0Zu||(e.current=Dw[Zu],Dw[Zu]=null,Zu--)}function qt(e,t){Zu++,Dw[Zu]=e.current,e.current=t}var Ls={},vn=zs(Ls),Wn=zs(!1),ql=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 jg(){Yt(Wn),Yt(vn)}function CI(e,t,r){if(vn.current!==Ls)throw Error(Te(168));qt(vn,t),qt(Wn,r)}function xD(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(Te(108,nX(e)||"Unknown",o));return ir({},r,n)}function Ag(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ls,ql=vn.current,qt(vn,e),qt(Wn,Wn.current),!0}function EI(e,t,r){var n=e.stateNode;if(!n)throw Error(Te(169));r?(e=xD(e,t,ql),n.__reactInternalMemoizedMergedChildContext=e,Yt(Wn),Yt(vn),qt(vn,e)):Yt(Wn),qt(Wn,r)}var yi=null,_b=!1,H1=!1;function wD(e){yi===null?yi=[e]:yi.push(e)}function _Y(e){_b=!0,wD(e)}function Us(){if(!H1&&yi!==null){H1=!0;var e=0,t=At;try{var r=yi;for(At=1;e>=i,o-=i,xi=1<<32-ha(t)+o|r<R?(I=T,T=null):I=T.sibling;var A=m(b,T,_[R],$);if(A===null){T===null&&(T=I);break}e&&T&&A.alternate===null&&t(b,T),g=a(A,g,R),C===null?P=A:C.sibling=A,C=A,T=I}if(R===_.length)return r(b,T),tr&&gl(b,R),P;if(T===null){for(;R<_.length;R++)T=v(b,_[R],$),T!==null&&(g=a(T,g,R),C===null?P=T:C.sibling=T,C=T);return tr&&gl(b,R),P}for(T=n(b,T);R<_.length;R++)I=h(T,b,R,_[R],$),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?R:I.key),g=a(I,g,R),C===null?P=I:C.sibling=I,C=I);return e&&T.forEach(function(F){return t(b,F)}),tr&&gl(b,R),P}function w(b,g,_,$){var P=sf(_);if(typeof P!="function")throw Error(Te(150));if(_=P.call(_),_==null)throw Error(Te(151));for(var C=P=null,T=g,R=g=0,I=null,A=_.next();T!==null&&!A.done;R++,A=_.next()){T.index>R?(I=T,T=null):I=T.sibling;var F=m(b,T,A.value,$);if(F===null){T===null&&(T=I);break}e&&T&&F.alternate===null&&t(b,T),g=a(F,g,R),C===null?P=F:C.sibling=F,C=F,T=I}if(A.done)return r(b,T),tr&&gl(b,R),P;if(T===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(T=n(b,T);!A.done;R++,A=_.next())A=h(T,b,R,A.value,$),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?R:A.key),g=a(A,g,R),C===null?P=A:C.sibling=A,C=A);return e&&T.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 Hm: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&&RI(P)===C.type){r(b,C.sibling),g=o(C,_.props),g.ref=ff(b,C,_),g.return=b,b=g;break e}r(b,C);break}else t(b,C);C=C.sibling}_.type===Ku?(g=Al(_.props.children,b.mode,$,_.key),g.return=b,b=g):($=Wh(_.type,_.key,_.props,null,b.mode,$),$.ref=ff(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=ex(_,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(sf(_))return w(b,g,_,$);nh(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=Z1(_,b.mode,$),g.return=b,b=g),i(b)):r(b,g)}return O}var Bc=ED(!0),PD=ED(!1),Lg=zs(null),Ng=null,rc=null,oE=null;function aE(){oE=rc=Ng=null}function iE(e){var t=Lg.current;Yt(Lg),e._currentValue=t}function Uw(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){Ng=e,oE=rc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Un=!0),e.firstContext=null)}function Wo(e){var t=e._currentValue;if(oE!==e)if(e={context:e,memoizedValue:t,next:null},rc===null){if(Ng===null)throw Error(Te(308));rc=e,Ng.dependencies={lanes:0,firstContext:e}}else rc=rc.next=e;return t}var El=null;function sE(e){El===null?El=[e]:El.push(e)}function $D(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,sE(t)):(r.next=o.next,o.next=r),t.interleaved=r,Pi(e,n)}function Pi(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 lE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function RD(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 Oi(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,Pi(e,r)}return o=n.interleaved,o===null?(t.next=t,sE(n)):(t.next=o.next,o.next=t),n.interleaved=t,Pi(e,r)}function Nh(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,GC(e,r)}}function TI(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 Dg(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);Kl|=i,e.lanes=i,e.memoizedState=v}}function kI(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=K1.transition;K1.transition={};try{e(!1),t()}finally{At=r,K1.transition=n}}function HD(){return qo().memoizedState}function OY(e,t,r){var n=Rs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},GD(e))KD(t,r);else if(r=$D(e,t,r,n),r!==null){var o=Pn();ga(r,e,n,o),QD(r,t,n)}}function CY(e,t,r){var n=Rs(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(GD(e))KD(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,ya(s,i)){var c=t.interleaved;c===null?(o.next=o,sE(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}r=$D(e,t,o,n),r!==null&&(o=Pn(),ga(r,e,n,o),QD(r,t,n))}}function GD(e){var t=e.alternate;return e===ar||t!==null&&t===ar}function KD(e,t){Vf=zg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function QD(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,GC(e,r)}}var Ug={readContext:Wo,useCallback:an,useContext:an,useEffect:an,useImperativeHandle:an,useInsertionEffect:an,useLayoutEffect:an,useMemo:an,useReducer:an,useRef:an,useState:an,useDebugValue:an,useDeferredValue:an,useTransition:an,useMutableSource:an,useSyncExternalStore:an,useId:an,unstable_isNewReconciler:!1},EY={readContext:Wo,useCallback:function(e,t){return ka().memoizedState=[e,t===void 0?null:t],e},useContext:Wo,useEffect:jI,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Bh(4194308,4,zD.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Bh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bh(4,2,e,t)},useMemo:function(e,t){var r=ka();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ka();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=OY.bind(null,ar,e),[n.memoizedState,e]},useRef:function(e){var t=ka();return e={current:e},t.memoizedState=e},useState:II,useDebugValue:hE,useDeferredValue:function(e){return ka().memoizedState=e},useTransition:function(){var e=II(!1),t=e[0];return e=SY.bind(null,e[1]),ka().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ar,o=ka();if(tr){if(r===void 0)throw Error(Te(407));r=r()}else{if(r=t(),Vr===null)throw Error(Te(349));Gl&30||jD(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,jI(MD.bind(null,n,a,e),[e]),n.flags|=2048,Ip(9,AD.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ka(),t=Vr.identifierPrefix;if(tr){var r=wi,n=xi;r=(n&~(1<<32-ha(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[La]=t,e[Pp]=n,a3(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ow(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,pf(a,!1),t.lanes=4194304)}else{if(!n)if(e=Bg(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),pf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!tr)return sn(t),null}else 2*mr()-a.renderingStartTime>Vc&&r!==1073741824&&(t.flags|=128,n=!0,pf(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):(sn(t),null);case 22:case 23:return wE(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?oo&1073741824&&(sn(t),t.subtreeFlags&6&&(t.flags|=8192)):sn(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function AY(e,t){switch(rE(t),t.tag){case 1:return qn(t.type)&&jg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zc(),Yt(Wn),Yt(vn),dE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return cE(t),null;case 13:if(Yt(nr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(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 iE(t.type._context),null;case 22:case 23:return wE(),null;case 24:return null;default:return null}}var ah=!1,un=!1,MY=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 Yw(e,t,r){try{r()}catch(n){dr(e,t,n)}}var WI=!1;function FY(e,t){if(Aw=Rg,e=fD(),eE(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(Mw={focusedElem:e,selectionRange:r},Rg=!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(Te(163))}}catch($){dr(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,Qe=e;break}Qe=t.return}return x=WI,WI=!1,x}function Wf(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&&Yw(t,r,a)}o=o.next}while(o!==n)}}function Sb(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 Jw(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 l3(e){var t=e.alternate;t!==null&&(e.alternate=null,l3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[La],delete t[Pp],delete t[Nw],delete t[yY],delete t[bY])),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 u3(e){return e.tag===5||e.tag===3||e.tag===4}function qI(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||u3(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 Zw(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=Ig));else if(n!==4&&(e=e.child,e!==null))for(Zw(e,t,r),e=e.sibling;e!==null;)Zw(e,t,r),e=e.sibling}function eS(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(eS(e,t,r),e=e.sibling;e!==null;)eS(e,t,r),e=e.sibling}var Xr=null,fa=!1;function Zi(e,t,r){for(r=r.child;r!==null;)c3(e,t,r),r=r.sibling}function c3(e,t,r){if(Ua&&typeof Ua.onCommitFiberUnmount=="function")try{Ua.onCommitFiberUnmount(mb,r)}catch{}switch(r.tag){case 5:un||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?q1(e.parentNode,r):e.nodeType===1&&q1(e,r),wp(e)):q1(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(!un&&(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)&&Yw(r,t,i),o=o.next}while(o!==n)}Zi(e,t,r);break;case 1:if(!un&&(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?(un=(n=un)||r.memoizedState!==null,Zi(e,t,r),un=n):Zi(e,t,r);break;default:Zi(e,t,r)}}function HI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new MY),t.forEach(function(n){var o=qY.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*NY(n/1960))-n,10e?16:e,hs===null)var n=!1;else{if(e=hs,hs=null,qg=0,Ot&6)throw Error(Te(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()-_E?jl(e,0):bE|=r),Hn(e,t)}function y3(e,t){t===0&&(e.mode&1?(t=Xm,Xm<<=1,!(Xm&130023424)&&(Xm=4194304)):t=1);var r=Pn();e=Pi(e,t),e!==null&&(nv(e,t,r),Hn(e,r))}function WY(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),y3(e,r)}function qY(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(Te(314))}n!==null&&n.delete(t),y3(e,r)}var b3;b3=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,IY(e,t,r);Un=!!(e.flags&131072)}else Un=!1,tr&&t.flags&1048576&&SD(t,Fg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;zh(e,t),e=t.pendingProps;var o=Nc(t,vn.current);bc(t,r),o=pE(null,t,n,e,o,r);var a=vE();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,Ag(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,lE(t),o.updater=wb,t.stateNode=o,o._reactInternals=t,Ww(t,n,e,r),t=Gw(null,t,n,!0,a,r)):(t.tag=0,tr&&a&&tE(t),Sn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(zh(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=GY(n),e=ca(n,e),o){case 0:t=Hw(null,t,n,e,r);break e;case 1:t=zI(null,t,n,e,r);break e;case 11:t=DI(null,t,n,e,r);break e;case 14:t=BI(null,t,n,ca(n.type,e),r);break e}throw Error(Te(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),Hw(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),zI(e,t,n,o,r);case 3:e:{if(r3(t),e===null)throw Error(Te(387));n=t.pendingProps,a=t.memoizedState,o=a.element,RD(e,t),Dg(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(Te(423)),t),t=UI(e,t,n,r,o);break e}else if(n!==o){o=Uc(Error(Te(424)),t),t=UI(e,t,n,r,o);break e}else for(so=Es(t.stateNode.containerInfo.firstChild),uo=t,tr=!0,pa=null,r=PD(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Dc(),n===o){t=$i(e,t,r);break e}Sn(e,t,n,r)}t=t.child}return t;case 5:return TD(t),e===null&&zw(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Fw(n,o)?i=null:a!==null&&Fw(n,a)&&(t.flags|=32),t3(e,t),Sn(e,t,i,r),t.child;case 6:return e===null&&zw(t),null;case 13:return n3(e,t,r);case 4:return uE(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),DI(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(Lg,n._currentValue),n._currentValue=i,a!==null)if(ya(a.value,i)){if(a.children===o.children&&!Wn.current){t=$i(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=Oi(-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),Uw(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(Te(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),Uw(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=Wo(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),BI(e,t,n,o,r);case 15:return ZD(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),zh(e,t),t.tag=1,qn(n)?(e=!0,Ag(t)):e=!1,bc(t,r),XD(t,n,o),Ww(t,n,o,r),Gw(null,t,n,!0,e,r);case 19:return o3(e,t,r);case 22:return e3(e,t,r)}throw Error(Te(156,t.tag))};function _3(e,t){return GN(e,t)}function HY(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 Bo(e,t,r,n){return new HY(e,t,r,n)}function OE(e){return e=e.prototype,!(!e||!e.isReactComponent)}function GY(e){if(typeof e=="function")return OE(e)?1:0;if(e!=null){if(e=e.$$typeof,e===VC)return 11;if(e===WC)return 14}return 2}function Ts(e,t){var r=e.alternate;return r===null?(r=Bo(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 Wh(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")OE(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ku:return Al(r.children,o,a,t);case UC:i=8,o|=8;break;case vw:return e=Bo(12,r,t,o|2),e.elementType=vw,e.lanes=a,e;case mw:return e=Bo(13,r,t,o),e.elementType=mw,e.lanes=a,e;case hw:return e=Bo(19,r,t,o),e.elementType=hw,e.lanes=a,e;case TN:return Cb(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $N:i=10;break e;case RN:i=9;break e;case VC:i=11;break e;case WC:i=14;break e;case is:i=16,n=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=Bo(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function Al(e,t,r,n){return e=Bo(7,e,n,t),e.lanes=r,e}function Cb(e,t,r,n){return e=Bo(22,e,n,t),e.elementType=TN,e.lanes=r,e.stateNode={isHidden:!1},e}function Z1(e,t,r){return e=Bo(6,e,null,t),e.lanes=r,e}function ex(e,t,r){return t=Bo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function KY(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=A1(0),this.expirationTimes=A1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=A1(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function CE(e,t,r,n,o,a,i,s,c){return e=new KY(e,t,r,s,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Bo(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},lE(a),e}function QY(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(O3)}catch(e){console.error(e)}}O3(),ON.exports=ho;var Tb=ON.exports;const jf=gr(Tb);var C3,ej=Tb;C3=ej.createRoot,ej.hydrateRoot;var Kg={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 + */Kg.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,T=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",T],["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]",ke="[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),Xv=/<%-([\s\S]+?)%>/g,f_=/<%([\s\S]+?)%>/g,Yv=/<%=([\s\S]+?)%>/g,p_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ud=/^\w*$/,v_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ni=/[\\^$.*+?()[\]{}|]/g,Vd=RegExp(ni.source),gn=/^\s+/,nl=/\s/,m_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ol=/\{\n\/\* \[wrapped with (.+)\] \*/,Wd=/,? & /,Jv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Zv=/[()=,{}\[\]\/\s]/,em=/\\(\\)?/g,tm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rm=/\w*$/,h_=/^[-+]0x[0-9a-f]+$/i,g_=/^0b[01]+$/i,y_=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,yn=/^(?:0|[1-9]\d*)$/,bV=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nm=/($^)/,_V=/['\n\r\u2028\u2029\\]/g,om="\\ud800-\\udfff",xV="\\u0300-\\u036f",wV="\\ufe20-\\ufe2f",SV="\\u20d0-\\u20ff",xR=xV+wV+SV,wR="\\u2700-\\u27bf",SR="a-z\\xdf-\\xf6\\xf8-\\xff",OV="\\xac\\xb1\\xd7\\xf7",CV="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",EV="\\u2000-\\u206f",PV=" \\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",OR="A-Z\\xc0-\\xd6\\xd8-\\xde",CR="\\ufe0e\\ufe0f",ER=OV+CV+EV+PV,b_="['’]",$V="["+om+"]",PR="["+ER+"]",am="["+xR+"]",$R="\\d+",RV="["+wR+"]",RR="["+SR+"]",TR="[^"+om+ER+$R+wR+SR+OR+"]",__="\\ud83c[\\udffb-\\udfff]",TV="(?:"+am+"|"+__+")",kR="[^"+om+"]",x_="(?:\\ud83c[\\udde6-\\uddff]){2}",w_="[\\ud800-\\udbff][\\udc00-\\udfff]",mu="["+OR+"]",IR="\\u200d",jR="(?:"+RR+"|"+TR+")",kV="(?:"+mu+"|"+TR+")",AR="(?:"+b_+"(?:d|ll|m|re|s|t|ve))?",MR="(?:"+b_+"(?:D|LL|M|RE|S|T|VE))?",FR=TV+"?",LR="["+CR+"]?",IV="(?:"+IR+"(?:"+[kR,x_,w_].join("|")+")"+LR+FR+")*",jV="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",AV="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",NR=LR+FR+IV,MV="(?:"+[RV,x_,w_].join("|")+")"+NR,FV="(?:"+[kR+am+"?",am,x_,w_,$V].join("|")+")",LV=RegExp(b_,"g"),NV=RegExp(am,"g"),S_=RegExp(__+"(?="+__+")|"+FV+NR,"g"),DV=RegExp([mu+"?"+RR+"+"+AR+"(?="+[PR,mu,"$"].join("|")+")",kV+"+"+MR+"(?="+[PR,mu+jR,"$"].join("|")+")",mu+"?"+jR+"+"+AR,mu+"+"+MR,AV,jV,$R,MV].join("|"),"g"),BV=RegExp("["+IR+om+xR+CR+"]"),zV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,UV=["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"],VV=-1,Gt={};Gt[De]=Gt[ft]=Gt[Pt]=Gt[Et]=Gt[We]=Gt[et]=Gt[ke]=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[ke]=zt[ze]=zt[ct]=!0,zt[ve]=zt[_e]=zt[Ie]=!1;var WV={À:"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"},qV={"&":"&","<":"<",">":">",'"':""","'":"'"},HV={"&":"&","<":"<",">":">",""":'"',"'":"'"},GV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},KV=parseFloat,QV=parseInt,DR=typeof ao=="object"&&ao&&ao.Object===Object&&ao,XV=typeof self=="object"&&self&&self.Object===Object&&self,Hr=DR||XV||Function("return this")(),O_=t&&!t.nodeType&&t,al=O_&&!0&&e&&!e.nodeType&&e,BR=al&&al.exports===O_,C_=BR&&DR.process,wo=function(){try{var Z=al&&al.require&&al.require("util").types;return Z||C_&&C_.binding&&C_.binding("util")}catch{}}(),zR=wo&&wo.isArrayBuffer,UR=wo&&wo.isDate,VR=wo&&wo.isMap,WR=wo&&wo.isRegExp,qR=wo&&wo.isSet,HR=wo&&wo.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 YV(Z,me,ue,Ke){for(var st=-1,$t=Z==null?0:Z.length;++st<$t;){var Tr=Z[st];me(Ke,Tr,ue(Tr),Z)}return Ke}function So(Z,me){for(var ue=-1,Ke=Z==null?0:Z.length;++ue-1}function E_(Z,me,ue){for(var Ke=-1,st=Z==null?0:Z.length;++Ke-1;);return ue}function eT(Z,me){for(var ue=Z.length;ue--&&hu(me,Z[ue],0)>-1;);return ue}function iW(Z,me){for(var ue=Z.length,Ke=0;ue--;)Z[ue]===me&&++Ke;return Ke}var sW=T_(WV),lW=T_(qV);function uW(Z){return"\\"+GV[Z]}function cW(Z,me){return Z==null?r:Z[me]}function gu(Z){return BV.test(Z)}function dW(Z){return zV.test(Z)}function fW(Z){for(var me,ue=[];!(me=Z.next()).done;)ue.push(me.value);return ue}function A_(Z){var me=-1,ue=Array(Z.size);return Z.forEach(function(Ke,st){ue[++me]=[st,Ke]}),ue}function tT(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__,k=Sm(y,u);return k<0?(++this.size,y.push([u,p])):y[k][1]=p,this}oi.prototype.clear=QW,oi.prototype.delete=XW,oi.prototype.get=YW,oi.prototype.has=JW,oi.prototype.set=ZW;function ai(u){var p=-1,y=u==null?0:u.length;for(this.clear();++p=p?u:p)),u}function Eo(u,p,y,k,M,B){var K,Q=p&v,re=p&m,xe=p&h;if(y&&(K=M?y(u,k,M,B):y(u)),K!==r)return K;if(!rr(u))return u;var we=lt(u);if(we){if(K=nq(u),!Q)return jn(u,K)}else{var Pe=on(u),Ne=Pe==_e||Pe==ie;if(Ji(u))return LT(u,Q);if(Pe==Be||Pe==oe||Ne&&!M){if(K=re||Ne?{}:rk(u),!Q)return re?H7(u,m7(K,u)):q7(u,pT(K,u))}else{if(!zt[Pe])return M?u:{};K=oq(u,Pe,Q)}}B||(B=new ia);var Ye=B.get(u);if(Ye)return Ye;B.set(u,K),kk(u)?u.forEach(function(ot){K.add(Eo(ot,p,y,ot,u,B))}):Rk(u)&&u.forEach(function(ot,gt){K.set(gt,Eo(ot,p,y,gt,u,B))});var nt=xe?re?i1:a1:re?Mn:Nr,dt=we?r:nt(u);return So(dt||u,function(ot,gt){dt&&(gt=ot,ot=u[gt]),Yd(K,gt,Eo(ot,p,y,gt,u,B))}),K}function h7(u){var p=Nr(u);return function(y){return vT(y,u,p)}}function vT(u,p,y){var k=y.length;if(u==null)return!k;for(u=Dt(u);k--;){var M=y[k],B=p[M],K=u[M];if(K===r&&!(M in u)||!B(K))return!1}return!0}function mT(u,p,y){if(typeof u!="function")throw new Oo(i);return of(function(){u.apply(r,y)},p)}function Jd(u,p,y,k){var M=-1,B=im,K=!0,Q=u.length,re=[],xe=p.length;if(!Q)return re;y&&(p=Zt(p,Jn(y))),k?(B=E_,K=!1):p.length>=o&&(B=qd,K=!1,p=new ll(p));e:for(;++MM?0:M+y),k=k===r||k>M?M:ut(k),k<0&&(k+=M),k=y>k?0:jk(k);y0&&y(Q)?p>1?Gr(Q,p-1,y,k,M):qi(M,Q):k||(M[M.length]=Q)}return M}var z_=VT(),yT=VT(!0);function Ea(u,p){return u&&z_(u,p,Nr)}function U_(u,p){return u&&yT(u,p,Nr)}function Cm(u,p){return Wi(p,function(y){return ci(u[y])})}function cl(u,p){p=Xi(p,u);for(var y=0,k=p.length;u!=null&&yp}function b7(u,p){return u!=null&&It.call(u,p)}function _7(u,p){return u!=null&&p in Dt(u)}function x7(u,p,y){return u>=nn(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&&hm.call(Q,re,1),hm.call(u,re,1);return u}function RT(u,p){for(var y=u?p.length:0,k=y-1;y--;){var M=p[y];if(y==k||M!==B){var B=M;ui(M)?hm.call(u,M,1):J_(u,M)}}return u}function Q_(u,p){return u+bm(uT()*(p-u+1))}function A7(u,p,y,k){for(var M=-1,B=kr(ym((p-u)/(y||1)),0),K=ue(B);B--;)K[k?B:++M]=u,u+=y;return K}function X_(u,p){var y="";if(!u||p<1||p>z)return y;do p%2&&(y+=u),p=bm(p/2),p&&(u+=u);while(p);return y}function pt(u,p){return p1(ak(u,p,Fn),u+"")}function M7(u){return fT($u(u))}function F7(u,p){var y=$u(u);return Fm(y,ul(p,0,y.length))}function tf(u,p,y,k){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);++k>>1,K=u[B];K!==null&&!eo(K)&&(y?K<=p:K=o){var xe=p?null:X7(u);if(xe)return lm(xe);K=!1,M=qd,re=new ll}else re=p?[]:Q;e:for(;++k=k?u:Po(u,p,y)}var FT=PW||function(u){return Hr.clearTimeout(u)};function LT(u,p){if(p)return u.slice();var y=u.length,k=oT?oT(y):new u.constructor(y);return u.copy(k),k}function r1(u){var p=new u.constructor(u.byteLength);return new vm(p).set(new vm(u)),p}function z7(u,p){var y=p?r1(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function U7(u){var p=new u.constructor(u.source,rm.exec(u));return p.lastIndex=u.lastIndex,p}function V7(u){return Xd?Dt(Xd.call(u)):{}}function NT(u,p){var y=p?r1(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function DT(u,p){if(u!==p){var y=u!==r,k=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||k&&K&&re||!y&&re||!M)return 1;if(!k&&!B&&!xe&&u=Q)return re;var xe=y[k];return re*(xe=="desc"?-1:1)}}return u.index-p.index}function BT(u,p,y,k){for(var M=-1,B=u.length,K=y.length,Q=-1,re=p.length,xe=kr(B-K,0),we=ue(re+xe),Pe=!k;++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);++k-1?M[B?p[K]:K]:r}}function HT(u){return li(function(p){var y=p.length,k=y,M=Co.prototype.thru;for(u&&p.reverse();k--;){var B=p[k];if(typeof B!="function")throw new Oo(i);if(M&&!K&&Am(B)=="wrapper")var K=new Co([],!0)}for(k=K?k:y;++k1&&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[k],p=p.join(y>2?", ":" "),u.replace(m_,`{ +/* [wrapped with `+p+`] */ +`)}function iq(u){return lt(u)||pl(u)||!!(sT&&u&&u[sT])}function ui(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 Fm(u,p){var y=-1,k=u.length,M=k-1;for(p=p===r?k:p;++y1?u[p-1]:r;return y=typeof y=="function"?(u.pop(),y):r,gk(u,y)});function yk(u){var p=N(u);return p.__chain__=!0,p}function gH(u,p){return p(u),u}function Lm(u,p){return p(u)}var yH=li(function(u){var p=u.length,y=p?u[0]:0,k=this.__wrapped__,M=function(B){return B_(B,u)};return p>1||this.__actions__.length||!(k instanceof _t)||!ui(y)?this.thru(M):(k=k.slice(y,+y+(p?1:0)),k.__actions__.push({func:Lm,args:[M],thisArg:r}),new Co(k,this.__chain__).thru(function(B){return p&&!B.length&&B.push(r),B}))});function bH(){return yk(this)}function _H(){return new Co(this.value(),this.__chain__)}function xH(){this.__values__===r&&(this.__values__=Ik(this.value()));var u=this.__index__>=this.__values__.length,p=u?r:this.__values__[this.__index__++];return{done:u,value:p}}function wH(){return this}function SH(u){for(var p,y=this;y instanceof wm;){var k=dk(y);k.__index__=0,k.__values__=r,p?M.__wrapped__=k:p=k;var M=k;y=y.__wrapped__}return M.__wrapped__=u,p}function OH(){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:Lm,args:[v1],thisArg:r}),new Co(p,this.__chain__)}return this.thru(v1)}function CH(){return AT(this.__wrapped__,this.__actions__)}var EH=Rm(function(u,p,y){It.call(u,y)?++u[y]:ii(u,y,1)});function PH(u,p,y){var k=lt(u)?GR:g7;return y&&_n(u,p,y)&&(p=r),k(u,tt(p,3))}function $H(u,p){var y=lt(u)?Wi:gT;return y(u,tt(p,3))}var RH=qT(fk),TH=qT(pk);function kH(u,p){return Gr(Nm(u,p),1)}function IH(u,p){return Gr(Nm(u,p),G)}function jH(u,p,y){return y=y===r?1:ut(y),Gr(Nm(u,p),y)}function bk(u,p){var y=lt(u)?So:Ki;return y(u,tt(p,3))}function _k(u,p){var y=lt(u)?JV:hT;return y(u,tt(p,3))}var AH=Rm(function(u,p,y){It.call(u,y)?u[y].push(p):ii(u,y,[p])});function MH(u,p,y,k){u=An(u)?u:$u(u),y=y&&!k?ut(y):0;var M=u.length;return y<0&&(y=kr(M+y,0)),Vm(u)?y<=M&&u.indexOf(p,y)>-1:!!M&&hu(u,p,y)>-1}var FH=pt(function(u,p,y){var k=-1,M=typeof p=="function",B=An(u)?ue(u.length):[];return Ki(u,function(K){B[++k]=M?Yn(p,K,y):Zd(K,p,y)}),B}),LH=Rm(function(u,p,y){ii(u,y,p)});function Nm(u,p){var y=lt(u)?Zt:ST;return y(u,tt(p,3))}function NH(u,p,y,k){return u==null?[]:(lt(p)||(p=p==null?[]:[p]),y=k?r:y,lt(y)||(y=y==null?[]:[y]),PT(u,p,y))}var DH=Rm(function(u,p,y){u[y?0:1].push(p)},function(){return[[],[]]});function BH(u,p,y){var k=lt(u)?P_:YR,M=arguments.length<3;return k(u,tt(p,4),y,M,Ki)}function zH(u,p,y){var k=lt(u)?ZV:YR,M=arguments.length<3;return k(u,tt(p,4),y,M,hT)}function UH(u,p){var y=lt(u)?Wi:gT;return y(u,zm(tt(p,3)))}function VH(u){var p=lt(u)?fT:M7;return p(u)}function WH(u,p,y){(y?_n(u,p,y):p===r)?p=1:p=ut(p);var k=lt(u)?f7:F7;return k(u,p)}function qH(u){var p=lt(u)?p7:N7;return p(u)}function HH(u){if(u==null)return 0;if(An(u))return Vm(u)?yu(u):u.length;var p=on(u);return p==be||p==ae?u.size:H_(u).length}function GH(u,p,y){var k=lt(u)?$_:D7;return y&&_n(u,p,y)&&(p=r),k(u,tt(p,3))}var KH=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]]),PT(u,Gr(p,1),[])}),Dm=$W||function(){return Hr.Date.now()};function QH(u,p){if(typeof p!="function")throw new Oo(i);return u=ut(u),function(){if(--u<1)return p.apply(this,arguments)}}function xk(u,p,y){return p=y?r:p,p=u&&p==null?u.length:p,si(u,T,r,r,r,r,p)}function wk(u,p){var y;if(typeof p!="function")throw new Oo(i);return u=ut(u),function(){return--u>0&&(y=p.apply(this,arguments)),u<=1&&(p=r),y}}var h1=pt(function(u,p,y){var k=O;if(y.length){var M=Hi(y,Eu(h1));k|=P}return si(u,k,p,y,M)}),Sk=pt(function(u,p,y){var k=O|b;if(y.length){var M=Hi(y,Eu(Sk));k|=P}return si(p,k,u,y,M)});function Ok(u,p,y){p=y?r:p;var k=si(u,_,r,r,r,r,r,p);return k.placeholder=Ok.placeholder,k}function Ck(u,p,y){p=y?r:p;var k=si(u,$,r,r,r,r,r,p);return k.placeholder=Ck.placeholder,k}function Ek(u,p,y){var k,M,B,K,Q,re,xe=0,we=!1,Pe=!1,Ne=!0;if(typeof u!="function")throw new Oo(i);p=Ro(p)||0,rr(y)&&(we=!!y.leading,Pe="maxWait"in y,B=Pe?kr(Ro(y.maxWait)||0,p):B,Ne="trailing"in y?!!y.trailing:Ne);function Ye(pr){var la=k,fi=M;return k=M=r,xe=pr,K=u.apply(fi,la),K}function nt(pr){return xe=pr,Q=of(gt,p),we?Ye(pr):K}function dt(pr){var la=pr-re,fi=pr-xe,qk=p-la;return Pe?nn(qk,B-fi):qk}function ot(pr){var la=pr-re,fi=pr-xe;return re===r||la>=p||la<0||Pe&&fi>=B}function gt(){var pr=Dm();if(ot(pr))return wt(pr);Q=of(gt,dt(pr))}function wt(pr){return Q=r,Ne&&k?Ye(pr):(k=M=r,K)}function to(){Q!==r&&FT(Q),xe=0,k=re=M=Q=r}function xn(){return Q===r?K:wt(Dm())}function ro(){var pr=Dm(),la=ot(pr);if(k=arguments,M=this,re=pr,la){if(Q===r)return nt(re);if(Pe)return FT(Q),Q=of(gt,p),Ye(re)}return Q===r&&(Q=of(gt,p)),K}return ro.cancel=to,ro.flush=xn,ro}var XH=pt(function(u,p){return mT(u,1,p)}),YH=pt(function(u,p,y){return mT(u,Ro(p)||0,y)});function JH(u){return si(u,I)}function Bm(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new Oo(i);var y=function(){var k=arguments,M=p?p.apply(this,k):k[0],B=y.cache;if(B.has(M))return B.get(M);var K=u.apply(this,k);return y.cache=B.set(M,K)||B,K};return y.cache=new(Bm.Cache||ai),y}Bm.Cache=ai;function zm(u){if(typeof u!="function")throw new Oo(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 wk(2,u)}var eG=B7(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(k){for(var M=-1,B=nn(k.length,y);++M=p}),pl=_T(function(){return arguments}())?_T:function(u){return lr(u)&&It.call(u,"callee")&&!iT.call(u,"callee")},lt=ue.isArray,mG=zR?Jn(zR):S7;function An(u){return u!=null&&Um(u.length)&&!ci(u)}function fr(u){return lr(u)&&An(u)}function hG(u){return u===!0||u===!1||lr(u)&&bn(u)==ye}var Ji=TW||$1,gG=UR?Jn(UR):O7;function yG(u){return lr(u)&&u.nodeType===1&&!af(u)}function bG(u){if(u==null)return!0;if(An(u)&&(lt(u)||typeof u=="string"||typeof u.splice=="function"||Ji(u)||Pu(u)||pl(u)))return!u.length;var p=on(u);if(p==be||p==ae)return!u.size;if(nf(u))return!H_(u).length;for(var y in u)if(It.call(u,y))return!1;return!0}function _G(u,p){return ef(u,p)}function xG(u,p,y){y=typeof y=="function"?y:r;var k=y?y(u,p):r;return k===r?ef(u,p,r,y):!!k}function y1(u){if(!lr(u))return!1;var p=bn(u);return p==ve||p==he||typeof u.message=="string"&&typeof u.name=="string"&&!af(u)}function wG(u){return typeof u=="number"&&lT(u)}function ci(u){if(!rr(u))return!1;var p=bn(u);return p==_e||p==ie||p==Re||p==X}function $k(u){return typeof u=="number"&&u==ut(u)}function Um(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 Rk=VR?Jn(VR):E7;function SG(u,p){return u===p||q_(u,p,l1(p))}function OG(u,p,y){return y=typeof y=="function"?y:r,q_(u,p,l1(p),y)}function CG(u){return Tk(u)&&u!=+u}function EG(u){if(uq(u))throw new st(a);return xT(u)}function PG(u){return u===null}function $G(u){return u==null}function Tk(u){return typeof u=="number"||lr(u)&&bn(u)==ge}function af(u){if(!lr(u)||bn(u)!=Be)return!1;var p=mm(u);if(p===null)return!0;var y=It.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&dm.call(y)==OW}var b1=WR?Jn(WR):P7;function RG(u){return $k(u)&&u>=-z&&u<=z}var kk=qR?Jn(qR):$7;function Vm(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 Pu=HR?Jn(HR):R7;function TG(u){return u===r}function kG(u){return lr(u)&&on(u)==Ie}function IG(u){return lr(u)&&bn(u)==rt}var jG=jm(G_),AG=jm(function(u,p){return u<=p});function Ik(u){if(!u)return[];if(An(u))return Vm(u)?aa(u):jn(u);if(Hd&&u[Hd])return fW(u[Hd]());var p=on(u),y=p==be?A_:p==ae?lm:$u;return y(u)}function di(u){if(!u)return u===0?u:0;if(u=Ro(u),u===G||u===-G){var p=u<0?-1:1;return p*W}return u===u?u:0}function ut(u){var p=di(u),y=p%1;return p===p?y?p-y:p:0}function jk(u){return u?ul(ut(u),0,ne):0}function Ro(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=JR(u);var y=g_.test(u);return y||mt.test(u)?QV(u.slice(2),y?2:8):h_.test(u)?te:+u}function Ak(u){return Pa(u,Mn(u))}function MG(u){return u?ul(ut(u),-z,z):u===0?u:0}function kt(u){return u==null?"":Zn(u)}var FG=Ou(function(u,p){if(nf(p)||An(p)){Pa(p,Nr(p),u);return}for(var y in p)It.call(p,y)&&Yd(u,y,p[y])}),Mk=Ou(function(u,p){Pa(p,Mn(p),u)}),Wm=Ou(function(u,p,y,k){Pa(p,Mn(p),u,k)}),LG=Ou(function(u,p,y,k){Pa(p,Nr(p),u,k)}),NG=li(B_);function DG(u,p){var y=Su(u);return p==null?y:pT(y,p)}var BG=pt(function(u,p){u=Dt(u);var y=-1,k=p.length,M=k>2?p[2]:r;for(M&&_n(p[0],p[1],M)&&(k=1);++y1),B}),Pa(u,i1(u),y),k&&(y=Eo(y,v|m|h,Y7));for(var M=p.length;M--;)J_(y,p[M]);return y});function oK(u,p){return Lk(u,zm(tt(p)))}var aK=li(function(u,p){return u==null?{}:I7(u,p)});function Lk(u,p){if(u==null)return{};var y=Zt(i1(u),function(k){return[k]});return p=tt(p),$T(u,y,function(k,M){return p(k,M[0])})}function iK(u,p,y){p=Xi(p,u);var k=-1,M=p.length;for(M||(M=1,u=r);++kp){var k=u;u=p,p=k}if(y||u%1||p%1){var M=uT();return nn(u+M*(p-u+KV("1e-"+((M+"").length-1))),p)}return Q_(u,p)}var gK=Cu(function(u,p,y){return p=p.toLowerCase(),u+(y?Bk(p):p)});function Bk(u){return w1(kt(u).toLowerCase())}function zk(u){return u=kt(u),u&&u.replace(bV,sW).replace(NV,"")}function yK(u,p,y){u=kt(u),p=Zn(p);var k=u.length;y=y===r?k:ul(ut(y),0,k);var M=y;return y-=p.length,y>=0&&u.slice(y,M)==p}function bK(u){return u=kt(u),u&&Vi.test(u)?u.replace(oa,lW):u}function _K(u){return u=kt(u),u&&Vd.test(u)?u.replace(ni,"\\$&"):u}var xK=Cu(function(u,p,y){return u+(y?"-":"")+p.toLowerCase()}),wK=Cu(function(u,p,y){return u+(y?" ":"")+p.toLowerCase()}),SK=WT("toLowerCase");function OK(u,p,y){u=kt(u),p=ut(p);var k=p?yu(u):0;if(!p||k>=p)return u;var M=(p-k)/2;return Im(bm(M),y)+u+Im(ym(M),y)}function CK(u,p,y){u=kt(u),p=ut(p);var k=p?yu(u):0;return p&&k>>0,y?(u=kt(u),u&&(typeof p=="string"||p!=null&&!b1(p))&&(p=Zn(p),!p&&gu(u))?Yi(aa(u),0,y):u.split(p,y)):[]}var IK=Cu(function(u,p,y){return u+(y?" ":"")+w1(p)});function jK(u,p,y){return u=kt(u),y=y==null?0:ul(ut(y),0,u.length),p=Zn(p),u.slice(y,y+p.length)==p}function AK(u,p,y){var k=N.templateSettings;y&&_n(u,p,y)&&(p=r),u=kt(u),p=Wm({},p,k,YT);var M=Wm({},p.imports,k.imports,YT),B=Nr(M),K=j_(M,B),Q,re,xe=0,we=p.interpolate||nm,Pe="__p += '",Ne=M_((p.escape||nm).source+"|"+we.source+"|"+(we===Yv?tm:nm).source+"|"+(p.evaluate||nm).source+"|$","g"),Ye="//# sourceURL="+(It.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++VV+"]")+` +`;u.replace(Ne,function(ot,gt,wt,to,xn,ro){return wt||(wt=to),Pe+=u.slice(xe,ro).replace(_V,uW),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(Zv.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=Vk(function(){return $t(B,Ye+"return "+Pe).apply(r,K)});if(dt.source=Pe,y1(dt))throw dt;return dt}function MK(u){return kt(u).toLowerCase()}function FK(u){return kt(u).toUpperCase()}function LK(u,p,y){if(u=kt(u),u&&(y||p===r))return JR(u);if(!u||!(p=Zn(p)))return u;var k=aa(u),M=aa(p),B=ZR(k,M),K=eT(k,M)+1;return Yi(k,B,K).join("")}function NK(u,p,y){if(u=kt(u),u&&(y||p===r))return u.slice(0,rT(u)+1);if(!u||!(p=Zn(p)))return u;var k=aa(u),M=eT(k,aa(p))+1;return Yi(k,0,M).join("")}function DK(u,p,y){if(u=kt(u),u&&(y||p===r))return u.replace(gn,"");if(!u||!(p=Zn(p)))return u;var k=aa(u),M=ZR(k,aa(p));return Yi(k,M).join("")}function BK(u,p){var y=A,k=F;if(rr(p)){var M="separator"in p?p.separator:M;y="length"in p?ut(p.length):y,k="omission"in p?Zn(p.omission):k}u=kt(u);var B=u.length;if(gu(u)){var K=aa(u);B=K.length}if(y>=B)return u;var Q=y-yu(k);if(Q<1)return k;var re=K?Yi(K,0,Q).join(""):u.slice(0,Q);if(M===r)return re+k;if(K&&(Q+=re.length-Q),b1(M)){if(u.slice(Q).search(M)){var xe,we=re;for(M.global||(M=M_(M.source,kt(rm.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+k}function zK(u){return u=kt(u),u&&Xn.test(u)?u.replace(hn,hW):u}var UK=Cu(function(u,p,y){return u+(y?" ":"")+p.toUpperCase()}),w1=WT("toUpperCase");function Uk(u,p,y){return u=kt(u),p=y?r:p,p===r?dW(u)?bW(u):rW(u):u.match(p)||[]}var Vk=pt(function(u,p){try{return Yn(u,r,p)}catch(y){return y1(y)?y:new st(y)}}),VK=li(function(u,p){return So(p,function(y){y=$a(y),ii(u,y,h1(u[y],u))}),u});function WK(u){var p=u==null?0:u.length,y=tt();return u=p?Zt(u,function(k){if(typeof k[1]!="function")throw new Oo(i);return[y(k[0]),k[1]]}):[],pt(function(k){for(var M=-1;++Mz)return[];var y=ne,k=nn(u,ne);p=tt(p),u-=ne;for(var M=I_(k,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)},Ea(_t.prototype,function(u,p){var y=/^(?:filter|find|map|reject)|While$/.test(p),k=/^(?:head|last)$/.test(p),M=N[k?"take"+(p=="last"?"Right":""):p],B=k||/^find/.test(p);M&&(N.prototype[p]=function(){var K=this.__wrapped__,Q=k?[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 k&&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:Lm,args:[Pe],thisArg:r}),new Co(ot,Ne)}return nt&&dt?u.apply(this,Q):(ot=this.thru(Pe),nt?k?ot.value()[0]:ot.value():ot)})}),So(["pop","push","shift","sort","splice","unshift"],function(u){var p=um[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",k=/^(?:pop|shift)$/.test(u);N.prototype[u]=function(){var M=arguments;if(k&&!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)})}}),Ea(_t.prototype,function(u,p){var y=N[p];if(y){var k=y.name+"";It.call(wu,k)||(wu[k]=[]),wu[k].push({name:p,func:y})}}),wu[Tm(r,b).name]=[{name:"wrapper",func:r}],_t.prototype.clone=zW,_t.prototype.reverse=UW,_t.prototype.value=VW,N.prototype.at=yH,N.prototype.chain=bH,N.prototype.commit=_H,N.prototype.next=xH,N.prototype.plant=SH,N.prototype.reverse=OH,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=CH,N.prototype.first=N.prototype.head,Hd&&(N.prototype[Hd]=wH),N},bu=_W();al?((al.exports=bu)._=bu,O_._=bu):Hr._=bu}).call(ao)})(Kg,Kg.exports);var kb=Kg.exports,tj=Object.prototype.toString,E3=function(t){var r=tj.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&tj.call(t.callee)==="[object Function]"),n},tx,rj;function eJ(){if(rj)return tx;rj=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=E3,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),Fl={__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%":OJ,"%eval%":eval,"%EvalError%":CJ,"%Float32Array%":typeof Float32Array>"u"?xt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?xt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?xt:FinalizationRegistry,"%Function%":T3,"%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%":EJ,"%ReferenceError%":PJ,"%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%":RJ,"%TypedArray%":kJ,"%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%":$J,"%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 IJ=Dr(Dr(e));Fl["%Error.prototype%"]=IJ}var jJ=function e(t){var r;if(t==="%AsyncFunction%")r=nx("async function () {}");else if(t==="%GeneratorFunction%")r=nx("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=nx("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 Fl[t]=r,r},sj={__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"]},sv=RE,Qg=SJ,AJ=sv.call(Function.call,Array.prototype.concat),MJ=sv.call(Function.apply,Array.prototype.splice),lj=sv.call(Function.call,String.prototype.replace),Xg=sv.call(Function.call,String.prototype.slice),FJ=sv.call(Function.call,RegExp.prototype.exec),LJ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,NJ=/\\(\\)?/g,DJ=function(t){var r=Xg(t,0,1),n=Xg(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 lj(t,LJ,function(a,i,s,c){o[o.length]=s?lj(c,NJ,"$1"):i||a}),o},BJ=function(t,r){var n=t,o;if(Qg(sj,n)&&(o=sj[n],n="%"+o[0]+"%"),Qg(Fl,n)){var a=Fl[n];if(a===Vu&&(a=jJ(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!")},Ya=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(FJ(/^%?[^%]*%?$/,t)===null)throw new Wc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=DJ(t),o=n.length>0?n[0]:"",a=BJ("%"+o+"%",r),i=a.name,s=a.value,c=!1,l=a.alias;l&&(o=l[0],MJ(n,AJ([0,1],l)));for(var f=1,v=!0;f=n.length){var w=Ml(s,m);v=!!w,v&&"get"in w&&!("originalValue"in w.get)?s=w.get:s=s[m]}else v=Qg(s,m),s=s[m];v&&!c&&(Fl[i]=s)}}return s},zJ=Ya,Hh=zJ("%Object.defineProperty%",!0)||!1;if(Hh)try{Hh({},"a",{value:1})}catch{Hh=!1}var TE=Hh,UJ=Ya,Gh=UJ("%Object.getOwnPropertyDescriptor%",!0);if(Gh)try{Gh([],"length")}catch{Gh=null}var k3=Gh,uj=TE,VJ=P3,ku=kn,cj=k3,I3=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new ku("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new ku("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ku("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ku("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ku("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ku("`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=!!cj&&cj(t,r);if(uj)uj(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 VJ("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},aS=TE,j3=function(){return!!aS};j3.hasArrayLengthDefineBug=function(){if(!aS)return null;try{return aS([],"length",{value:1}).length!==1}catch{return!0}};var A3=j3,WJ=nJ,qJ=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",HJ=Object.prototype.toString,GJ=Array.prototype.concat,dj=I3,KJ=function(e){return typeof e=="function"&&HJ.call(e)==="[object Function]"},M3=A3(),QJ=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!KJ(n)||!n())return}M3?dj(e,t,r,!0):dj(e,t,r)},F3=function(e,t){var r=arguments.length>2?arguments[2]:{},n=WJ(t);qJ&&(n=GJ.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||JJ(r)!==r)throw new vj("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&pj){var i=pj(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(YJ?fj(t,"length",r,!0,!0):fj(t,"length",r)),t};(function(e){var t=RE,r=Ya,n=ZJ,o=kn,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,a),c=TE,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})(L3);var Ib=L3.exports,N3=Ya,D3=Ib,eZ=D3(N3("String.prototype.indexOf")),Ii=function(t,r){var n=N3(t,!!r);return typeof n=="function"&&eZ(t,".prototype.")>-1?D3(n):n},tZ=kn,lv=function(t){if(t==null)throw new tZ(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},rZ=Ya,B3=rZ("%Array%"),nZ=!B3.isArray&&Ii("Object.prototype.toString"),oZ=B3.isArray||function(t){return nZ(t)==="[object Array]"},aZ=oZ,iZ=Ya,sZ=Ii,lZ=kn,uZ=aZ,cZ=iZ("%Reflect.apply%",!0)||sZ("Function.prototype.apply"),dZ=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!uZ(n))throw new lZ("Assertion failed: optional `argumentsList`, if provided, must be a List");return cZ(t,r,n)};const fZ={},pZ=Object.freeze(Object.defineProperty({__proto__:null,default:fZ},Symbol.toStringTag,{value:"Module"})),vZ=Xa(pZ);var kE=typeof Map=="function"&&Map.prototype,ax=Object.getOwnPropertyDescriptor&&kE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Yg=kE&&ax&&typeof ax.get=="function"?ax.get:null,mj=kE&&Map.prototype.forEach,IE=typeof Set=="function"&&Set.prototype,ix=Object.getOwnPropertyDescriptor&&IE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Jg=IE&&ix&&typeof ix.get=="function"?ix.get:null,hj=IE&&Set.prototype.forEach,mZ=typeof WeakMap=="function"&&WeakMap.prototype,Gf=mZ?WeakMap.prototype.has:null,hZ=typeof WeakSet=="function"&&WeakSet.prototype,Kf=hZ?WeakSet.prototype.has:null,gZ=typeof WeakRef=="function"&&WeakRef.prototype,gj=gZ?WeakRef.prototype.deref:null,yZ=Boolean.prototype.valueOf,bZ=Object.prototype.toString,_Z=Function.prototype.toString,xZ=String.prototype.match,jE=String.prototype.slice,gs=String.prototype.replace,wZ=String.prototype.toUpperCase,yj=String.prototype.toLowerCase,z3=RegExp.prototype.test,bj=Array.prototype.concat,ja=Array.prototype.join,SZ=Array.prototype.slice,_j=Math.floor,iS=typeof BigInt=="function"?BigInt.prototype.valueOf:null,sx=Object.getOwnPropertySymbols,sS=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,U3=Object.prototype.propertyIsEnumerable,xj=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function wj(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||z3.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-_j(-e):_j(e);if(n!==e){var o=String(n),a=jE.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 lS=vZ,Sj=lS.custom,Oj=W3(Sj)?Sj:null,OZ=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 H3(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return s?wj(t,c):c}if(typeof t=="bigint"){var l=String(t)+"n";return s?wj(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 uS(t)?"[Array]":"[Object]";var v=UZ(a,n);if(typeof o>"u")o=[];else if(q3(o,t)>=0)return"[Circular]";function m(D,U,H){if(U&&(o=SZ.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"&&!Cj(t)){var h=jZ(t),x=lh(t,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(x.length>0?" { "+ja.call(x,", ")+" }":"")}if(W3(t)){var w=qc?gs.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):sS.call(t);return typeof t=="object"&&!qc?mf(w):w}if(DZ(t)){for(var O="<"+yj.call(String(t.nodeName)),b=t.attributes||[],g=0;g",O}if(uS(t)){if(t.length===0)return"[]";var _=lh(t,m);return v&&!zZ(_)?"["+cS(_,v)+"]":"[ "+ja.call(_,", ")+" ]"}if(PZ(t)){var $=lh(t,m);return!("cause"in Error.prototype)&&"cause"in t&&!U3.call(t,"cause")?"{ ["+String(t)+"] "+ja.call(bj.call("[cause]: "+m(t.cause),$),", ")+" }":$.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ja.call($,", ")+" }"}if(typeof t=="object"&&i){if(Oj&&typeof t[Oj]=="function"&&lS)return lS(t,{depth:f-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(AZ(t)){var P=[];return mj&&mj.call(t,function(D,U){P.push(m(U,t,!0)+" => "+m(D,t))}),Ej("Map",Yg.call(t),P,v)}if(LZ(t)){var C=[];return hj&&hj.call(t,function(D){C.push(m(D,t))}),Ej("Set",Jg.call(t),C,v)}if(MZ(t))return lx("WeakMap");if(NZ(t))return lx("WeakSet");if(FZ(t))return lx("WeakRef");if(RZ(t))return mf(m(Number(t)));if(kZ(t))return mf(m(iS.call(t)));if(TZ(t))return mf(yZ.call(t));if($Z(t))return mf(m(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===ao)return"{ [object globalThis] }";if(!EZ(t)&&!Cj(t)){var T=lh(t,m),R=xj?xj(t)===Object.prototype:t instanceof Object||t.constructor===Object,I=t instanceof Object?"":"null prototype",A=!R&&mn&&Object(t)===t&&mn in t?jE.call(Vs(t),8,-1):I?"Object":"",F=R||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",L=F+(A||I?"["+ja.call(bj.call([],A||[],I||[]),": ")+"] ":"");return T.length===0?L+"{}":v?L+"{"+cS(T,v)+"}":L+"{ "+ja.call(T,", ")+" }"}return String(t)};function V3(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function CZ(e){return gs.call(String(e),/"/g,""")}function uS(e){return Vs(e)==="[object Array]"&&(!mn||!(typeof e=="object"&&mn in e))}function EZ(e){return Vs(e)==="[object Date]"&&(!mn||!(typeof e=="object"&&mn in e))}function Cj(e){return Vs(e)==="[object RegExp]"&&(!mn||!(typeof e=="object"&&mn in e))}function PZ(e){return Vs(e)==="[object Error]"&&(!mn||!(typeof e=="object"&&mn in e))}function $Z(e){return Vs(e)==="[object String]"&&(!mn||!(typeof e=="object"&&mn in e))}function RZ(e){return Vs(e)==="[object Number]"&&(!mn||!(typeof e=="object"&&mn in e))}function TZ(e){return Vs(e)==="[object Boolean]"&&(!mn||!(typeof e=="object"&&mn in e))}function W3(e){if(qc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!sS)return!1;try{return sS.call(e),!0}catch{}return!1}function kZ(e){if(!e||typeof e!="object"||!iS)return!1;try{return iS.call(e),!0}catch{}return!1}var IZ=Object.prototype.hasOwnProperty||function(e){return e in this};function ls(e,t){return IZ.call(e,t)}function Vs(e){return bZ.call(e)}function jZ(e){if(e.name)return e.name;var t=xZ.call(_Z.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function q3(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 H3(jE.call(e,0,t.maxStringLength),t)+n}var o=gs.call(gs.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,BZ);return V3(o,"single",t)}function BZ(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":"")+wZ.call(t.toString(16))}function mf(e){return"Object("+e+")"}function lx(e){return e+" { ? }"}function Ej(e,t,r,n){var o=n?cS(r,n):ja.call(r,", ");return e+" ("+t+") {"+o+"}"}function zZ(e){for(var t=0;t=0)return!1;return!0}function UZ(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ja.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ja.call(Array(t+1),r)}}function cS(e,t){if(e.length===0)return"";var r=` +`+t.prev+t.base;return r+ja.call(e,","+r)+` +`+t.prev}function lh(e,t){var r=uS(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"},WZ=VZ,AE=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":WZ(t)},Pj=kn,qZ=OZ,HZ=G3,GZ=AE,K3=function(t,r){if(GZ(t)!=="Object")throw new Pj("Assertion failed: Type(O) is not Object");if(!HZ(r))throw new Pj("Assertion failed: IsPropertyKey(P) is not true, got "+qZ(r));return t[r]},$j=kn,KZ=G3,QZ=AE,XZ=function(t,r){if(QZ(t)!=="Object")throw new $j("Assertion failed: `O` must be an Object");if(!KZ(r))throw new $j("Assertion failed: `P` must be a Property Key");return r in t},Q3=Function.prototype.toString,ac=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,dS,Kh;if(typeof ac=="function"&&typeof Object.defineProperty=="function")try{dS=Object.defineProperty({},"length",{get:function(){throw Kh}}),Kh={},ac(function(){throw 42},null,dS)}catch(e){e!==Kh&&(ac=null)}else ac=null;var YZ=/^\s*class\b/,fS=function(t){try{var r=Q3.call(t);return YZ.test(r)}catch{return!1}},ux=function(t){try{return fS(t)?!1:(Q3.call(t),!0)}catch{return!1}},Qh=Object.prototype.toString,JZ="[object Object]",ZZ="[object Function]",eee="[object GeneratorFunction]",tee="[object HTMLAllCollection]",ree="[object HTML document.all class]",nee="[object HTMLCollection]",oee=typeof Symbol=="function"&&!!Symbol.toStringTag,aee=!(0 in[,]),pS=function(){return!1};if(typeof document=="object"){var iee=document.all;Qh.call(iee)===Qh.call(document.all)&&(pS=function(t){if((aee||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Qh.call(t);return(r===tee||r===ree||r===nee||r===JZ)&&t("")==null}catch{}return!1})}var X3=ac?function(t){if(pS(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{ac(t,null,dS)}catch(r){if(r!==Kh)return!1}return!fS(t)&&ux(t)}:function(t){if(pS(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(oee)return ux(t);if(fS(t))return!1;var r=Qh.call(t);return r!==ZZ&&r!==eee&&!/^\[object HTML/.test(r)?!1:ux(t)},see=X3,lee=Number.MAX_SAFE_INTEGER||9007199254740991,cx,Rj;function uee(){return Rj||(Rj=1,cx=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),cx}var dx,Tj;function cee(){return Tj||(Tj=1,dx=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),dx}var dee=$3,ME=function(){return dee()&&!!Symbol.toStringTag},fx,kj;function fee(){if(kj)return fx;kj=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=ME();return fx=function(i){return typeof i!="object"||i===null?!1:o?t(i):r.call(i)===n},fx}var uh={exports:{}},Ij;function pee(){if(Ij)return uh.exports;Ij=1;var e=Object.prototype.toString,t=R3();if(t){var r=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,o=function(i){return typeof i.valueOf()!="symbol"?!1:n.test(r.call(i))};uh.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 uh.exports=function(i){return!1};return uh.exports}var px,jj;function vee(){if(jj)return px;jj=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=cee(),r=X3,n=fee(),o=pee(),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)},px}var vx,Aj;function mee(){if(Aj)return vx;Aj=1;var e=vee();return vx=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},vx}var mx,Mj;function hee(){if(Mj)return mx;Mj=1;var e=Ii,t=ME(),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 mx=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},mx}var hx,Fj;function gee(){if(Fj)return hx;Fj=1;var e=Ii,t=hee(),r=e("RegExp.prototype.exec"),n=kn;return hx=function(a){if(!t(a))throw new n("`regex` must be a RegExp");return function(s){return r(a,s)!==null}},hx}var yee=Ya,bee=yee("%String%"),_ee=kn,Y3=function(t){if(typeof t=="symbol")throw new _ee("Cannot convert a Symbol value to a string");return bee(t)},xee=lv,wee=Y3,See=Ii,Lj=See("String.prototype.replace"),J3=/^\s$/.test("᠎"),Oee=J3?/^[\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]+/,Cee=J3?/[\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]+$/,Z3=function(){var t=wee(xee(this));return Lj(Lj(t,Oee,""),Cee,"")},Eee=Z3,Nj="​",Iu="᠎",e4=function(){return String.prototype.trim&&Nj.trim()===Nj&&Iu.trim()===Iu&&("_"+Iu).trim()==="_"+Iu&&(Iu+"_").trim()===Iu+"_"?String.prototype.trim:Eee},Pee=fd,$ee=e4,Ree=function(){var t=$ee();return Pee(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},Tee=Ib,kee=fd,Iee=lv,jee=Z3,t4=e4,Aee=Ree,Mee=Tee(t4()),r4=function(t){return Iee(t),Mee(t)};kee(r4,{getPolyfill:t4,implementation:jee,shim:Aee});var n4=r4,gx,Dj;function Fee(){if(Dj)return gx;Dj=1;var e=Ya,t=e("%Number%"),r=e("%RegExp%"),n=kn,o=e("%parseInt%"),a=Ii,i=gee(),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=n4;return gx=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)},gx}var Lee=Ya,Bj=kn,zj=Lee("%Number%"),Nee=uee(),Dee=mee(),Bee=Fee(),zee=function(t){var r=Nee(t)?t:Dee(t,zj);if(typeof r=="symbol")throw new Bj("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new Bj("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?Bee(r):zj(r)},Uee=Math.floor,Vee=function(t){return typeof t=="bigint"?t:Uee(t)},Uj=Vee,Wee=kn,qee=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new Wee("argument must be a Number or a BigInt");var r=t<0?-Uj(-t):Uj(t);return r===0?0:r},o4=Number.isNaN||function(t){return t!==t},Hee=o4,Gee=function(e){return(typeof e=="number"||typeof e=="bigint")&&!Hee(e)&&e!==1/0&&e!==-1/0},Kee=zee,Qee=qee,Xee=o4,Yee=Gee,Jee=function(t){var r=Kee(t);return Xee(r)||r===0?0:Yee(r)?Qee(r):r},Vj=lee,Zee=Jee,ete=function(t){var r=Zee(t);return r<=0?0:r>Vj?Vj:r},tte=kn,rte=K3,nte=ete,ote=AE,ate=function(t){if(ote(t)!=="Object")throw new tte("Assertion failed: `obj` must be an Object");return nte(rte(t,"length"))},ite=Object,ste=ite,lte=lv,ute=function(t){return lte(t),ste(t)},cte=String.prototype.valueOf,dte=function(t){try{return cte.call(t),!0}catch{return!1}},fte=Object.prototype.toString,pte="[object String]",vte=ME(),mte=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:vte?dte(t):fte.call(t)===pte},hte=Ii,gte=kn,yte=dZ,bte=K3,_te=XZ,xte=see,wte=ate,Ste=ute,Ote=Y3,Cte=mte,Ete=hte("String.prototype.split"),Wj=Object("a"),Pte=Wj[0]!=="a"||!(0 in Wj),a4=function(t){var r=Ste(this),n=Pte&&Cte(this)?Ete(this,""):r,o=wte(n);if(!xte(t))throw new gte("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},g4={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:_x,chinese:function(){return 0},croatian:_x,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:_x,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 nre(e){var t={};return Zg(FE(e),function(r){var n=r[0],o=r[1];Zg(o,function(a){t[a]=n})}),t}function ore(e,t){var r=nre(e.pluralTypeToLanguages);return r[t]||r[h4.call(t,/-/,1)[0]]||r.en}function are(e,t,r){return e.pluralTypes[t](r)}function ire(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=ore(t,r),n&&(e[r]=n)),n}}function Gj(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function sre(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===Xh||r===Xh)throw new RangeError('"'+Xh+'" token is reserved for pluralization');return new RegExp(Gj(t)+"(.*?)"+Gj(r),"g")}var lre=ire(),ure=/%\{(.*?)\}/g;function LE(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||ure,c=a||m4,l=typeof t=="number"?{smart_count:t}:t;if(l.smart_count!=null&&e){var f=o||g4,v=h4.call(e,Xh),m=r||"en",h=lre(f,m),x=are(f,h,l.smart_count);i=tre(v[x]||v[0])}return i=c.call(i,s,function(w,O){return!v4(l,O)||l[O]==null?w:l[O]}),i}function ji(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?LE:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||rre,this.replaceImplementation=t.replace||m4,this.tokenRegex=sre(t.interpolation),this.pluralRules=t.pluralRules||g4}ji.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale};ji.prototype.extend=function(e,t){Zg(FE(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)};ji.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:Zg(FE(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)};ji.prototype.clear=function(){this.phrases={}};ji.prototype.replace=function(e){this.clear(),this.extend(e)};ji.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=LE(r,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n};ji.prototype.has=function(e){return v4(this.phrases,e)};ji.transformPhrase=function(t,r,n){return LE(t,r,n)};var cre=ji;const Kj=gr(cre);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 pre(e,t){return typeof e=="function"?e(t):e}function mS(e){return typeof e=="number"&&e>=0&&e!==1/0}function ty(e){return Array.isArray(e)?e:[e]}function x4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Yh(e,t,r){return uv(e)?typeof t=="function"?j({},r,{queryKey:e,queryFn:t}):j({},t,{queryKey:e}):e}function vre(e,t,r){return uv(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 uv(e)?[j({},t,{queryKey:e}),r]:[e||{},t]}function mre(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 Qj(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(uv(s)){if(n){if(t.queryHash!==NE(s,t.options))return!1}else if(!ry(t.queryKey,s))return!1}var l=mre(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 Xj(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(uv(a)){if(!t.options.mutationKey)return!1;if(r){if(ys(t.options.mutationKey)!==ys(a))return!1}else if(!ry(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function NE(e,t){var r=(t==null?void 0:t.queryKeyHashFn)||ys;return r(e)}function ys(e){var t=ty(e);return hre(t)}function hre(e){return JSON.stringify(e,function(t,r){return hS(r)?Object.keys(r).sort().reduce(function(n,o){return n[o]=r[o],n},{}):r})}function ry(e,t){return w4(ty(e),ty(t))}function w4(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!w4(e[r],t[r])}):!1}function ny(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||hS(e)&&hS(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!(!Yj(r)||!r.hasOwnProperty("isPrototypeOf"))}function Yj(e){return Object.prototype.toString.call(e)==="[object Object]"}function uv(e){return typeof e=="string"||Array.isArray(e)}function yre(e){return new Promise(function(t){setTimeout(t,e)})}function Jj(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function S4(){if(typeof AbortController=="function")return new AbortController}var bre=function(e){Mi(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!ey&&((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),Qf=new bre,_re=function(e){Mi(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!ey&&((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),Jh=new _re;function xre(e){return Math.min(1e3*Math.pow(2,e),3e4)}function oy(e){return typeof(e==null?void 0:e.cancel)=="function"}var O4=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Zh(e){return e instanceof O4}var C4=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 O4(w)),r.abort==null||r.abort(),oy(h)))try{h.cancel()}catch{}},r.isTransportCancelable=oy(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:xre,_=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 Qj(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 Qj(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),Ere=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||P4(),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),ay().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 C4({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=Pre(this.state,n),Wt.batch(function(){o.observers.forEach(function(a){a.onMutationUpdate(n)}),o.mutationCache.notify(o)})},e}();function P4(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function Pre(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 $re=function(e){Mi(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 Ere({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 Xj(o,a)})},r.findAll=function(o){return this.mutations.filter(function(a){return Xj(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 Rre(){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=S4(),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(oy(W)){var ne=te;ne.cancel=W.cancel}return te},C;if(!h.length)C=P([]);else if(v){var T=typeof f<"u",R=T?f:Zj(t.options,h);C=P(h,T,R)}else if(m){var I=typeof f<"u",A=I?f:Tre(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]:Zj(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=Yh(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=Yh(n,o,a);return i.behavior=Rre(),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 ry(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 ry(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=NE(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}(),Ire=function(e){Mi(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),eA(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return gS(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return gS(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&&tA(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(),!(ey||this.currentResult.isStale||!mS(this.options.staleTime))){var a=x4(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,!(ey||this.options.enabled===!1||!mS(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||Qf.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 T=this.hasListeners(),R=!T&&eA(o,a),I=T&&tA(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=ny(c==null?void 0:c.data,C)),this.selectResult=C,this.selectError=null}catch(L){ay().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=ny(c==null?void 0:c.data,A)),this.selectError=null}catch(L){ay().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:DE(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,!gre(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"&&!Zh(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 jre(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function eA(e,t){return jre(e,t)||e.state.dataUpdatedAt>0&&gS(e,t,t.refetchOnMount)}function gS(e,t,r){if(t.enabled!==!1){var n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&DE(e,t)}return!1}function tA(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&DE(e,r)}function DE(e,t){return e.isStaleByTime(t.staleTime)}var Are=function(e){Mi(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:P4(),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),Mre=jf.unstable_batchedUpdates;Wt.setBatchNotifyFunction(Mre);var Fre=console;Sre(Fre);var rA=fe.createContext(void 0),$4=fe.createContext(!1);function R4(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=rA),window.ReactQueryClientContext):rA}var Jo=function(){var t=fe.useContext(R4(fe.useContext($4)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Lre=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=R4(o);return fe.createElement($4.Provider,{value:o},fe.createElement(i.Provider,{value:r},a))};function Nre(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var Dre=fe.createContext(Nre()),Bre=function(){return fe.useContext(Dre)};function T4(e,t,r){return typeof t=="function"?t.apply(void 0,r):typeof t=="boolean"?t:!!e}function au(e,t,r){var n=fe.useRef(!1),o=fe.useState(0),a=o[1],i=vre(e,t,r),s=Jo(),c=fe.useRef();c.current?c.current.setOptions(i):c.current=new Are(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 zre(e,t){var r=fe.useRef(!1),n=fe.useState(0),o=n[1],a=Jo(),i=Bre(),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=Yh(e,t,r);return zre(n,Ire)}/** + * @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 yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function k4(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nA(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 cv(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 oA;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(oA||(oA={}));function Ure(e,t,r){return r===void 0&&(r="/"),Vre(e,t,r,!1)}function Vre(e,t,r,n){let o=typeof t=="string"?cv(t):t,a=BE(o.pathname||"/",r);if(a==null)return null;let i=I4(e);Wre(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=ks([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+'".')),I4(a.children,t,f,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:Yre(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 j4(a.path))o(a,i,c)}),t}function j4(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=j4(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 Wre(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Jre(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const qre=/^:[\w-]+$/,Hre=3,Gre=2,Kre=1,Qre=10,Xre=-2,aA=e=>e==="*";function Yre(e,t){let r=e.split("/"),n=r.length;return r.some(aA)&&(n+=Xre),t&&(n+=Gre),r.filter(o=>!aA(o)).reduce((o,a)=>o+(qre.test(a)?Hre:a===""?Kre:Qre),n)}function Jre(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){r===void 0&&(r=!1);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 ene(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),k4(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 A4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return k4(!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 BE(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 tne(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?cv(e):e;return{pathname:r?r.startsWith("/")?r:rne(r,t):t,search:ane(n),hash:ine(o)}}function rne(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 xx(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 nne(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function zE(e,t){let r=nne(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function UE(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=cv(e):(o=yS({},e),hr(!o.pathname||!o.pathname.includes("?"),xx("?","pathname","search",o)),hr(!o.pathname||!o.pathname.includes("#"),xx("#","pathname","hash",o)),hr(!o.search||!o.search.includes("#"),xx("#","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=tne(o,s),l=i&&i!=="/"&&i.endsWith("/"),f=(a||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||f)&&(c.pathname+="/"),c}const ks=e=>e.join("/").replace(/\/\/+/g,"/"),one=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ane=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ine=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function sne(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const M4=["post","put","patch","delete"];new Set(M4);const lne=["get",...M4];new Set(lne);/** + * 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 Ap(){return Ap=Object.assign?Object.assign.bind():function(e){for(var t=1;tHc(e,A4(t)),[t,e])}function L4(e){d.useContext(Fi).static||d.useLayoutEffect(e)}function Za(){let{isDataRoute:e}=d.useContext(Ja);return e?Ene():fne()}function fne(){qs()||hr(!1);let e=d.useContext(VE),{basename:t,future:r,navigator:n}=d.useContext(Fi),{matches:o}=d.useContext(Ja),{pathname:a}=Lr(),i=JSON.stringify(zE(o,r.v7_relativeSplatPath)),s=d.useRef(!1);return L4(()=>{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=UE(l,JSON.parse(i),a,f.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:ks([t,v.pathname])),(f.replace?n.replace:n.push)(v,f.state,f)},[t,n,i,a,e])}const pne=d.createContext(null);function vne(e){let t=d.useContext(Ja).outlet;return t&&d.createElement(pne.Provider,{value:e},t)}function Mb(){let{matches:e}=d.useContext(Ja),t=e[e.length-1];return t?t.params:{}}function WE(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Fi),{matches:o}=d.useContext(Ja),{pathname:a}=Lr(),i=JSON.stringify(zE(o,n.v7_relativeSplatPath));return d.useMemo(()=>UE(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function mne(e,t){return hne(e,t)}function hne(e,t,r,n){qs()||hr(!1);let{navigator:o}=d.useContext(Fi),{matches:a}=d.useContext(Ja),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"?cv(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=Ure(e,{pathname:h}),w=xne(x&&x.map(O=>Object.assign({},O,{params:Object.assign({},s,O.params),pathname:ks([c,o.encodeLocation?o.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?c:ks([c,o.encodeLocation?o.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),a,r,n);return t&&w?d.createElement(Ab.Provider,{value:{location:Ap({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:iy.Pop}},w):w}function gne(){let e=Cne(),t=sne(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 yne=d.createElement(gne,null);class bne 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(Ja.Provider,{value:this.props.routeContext},d.createElement(F4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _ne(e){let{routeContext:t,match:r,children:n}=e,o=d.useContext(VE);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(Ja.Provider,{value:t},n)}function xne(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||yne,c&&(l<0&&m===0?(Pne("route-fallback",!1),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(_ne,{match:v,routeContext:{outlet:f,matches:b,isDataRoute:r!=null},children:_})};return r&&(v.route.ErrorBoundary||v.route.errorElement||m===0)?d.createElement(bne,{location:r.location,revalidation:r.revalidation,component:w,error:h,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):g()},null)}var N4=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(N4||{}),sy=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}(sy||{});function wne(e){let t=d.useContext(VE);return t||hr(!1),t}function Sne(e){let t=d.useContext(une);return t||hr(!1),t}function One(e){let t=d.useContext(Ja);return t||hr(!1),t}function D4(e){let t=One(),r=t.matches[t.matches.length-1];return r.route.id||hr(!1),r.route.id}function Cne(){var e;let t=d.useContext(F4),r=Sne(sy.UseRouteError),n=D4(sy.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Ene(){let{router:e}=wne(N4.UseNavigateStable),t=D4(sy.UseNavigateStable),r=d.useRef(!1);return L4(()=>{r.current=!0}),d.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ap({fromRouteId:t},a)))},[e,t])}const iA={};function Pne(e,t,r){!t&&!iA[e]&&(iA[e]=!0)}function $ne(e){let{to:t,replace:r,state:n,relative:o}=e;qs()||hr(!1);let{future:a,static:i}=d.useContext(Fi),{matches:s}=d.useContext(Ja),{pathname:c}=Lr(),l=Za(),f=UE(t,zE(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 Rne(e){return vne(e.context)}function zr(e){hr(!1)}function Tne(e){let{basename:t="/",children:r=null,location:n,navigationType:o=iy.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:Ap({v7_relativeSplatPath:!1},s)}),[c,s,a,i]);typeof n=="string"&&(n=cv(n));let{pathname:f="/",search:v="",hash:m="",state:h=null,key:x="default"}=n,w=d.useMemo(()=>{let O=BE(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(Fi.Provider,{value:l},d.createElement(Ab.Provider,{children:r,value:w}))}function bs(e){let{children:t,location:r}=e;return mne(bS(t),r)}new Promise(()=>{});function bS(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,bS(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=bS(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 _S(){return _S=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function Ine(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jne(e,t){return e.button===0&&(!t||t==="_self")&&!Ine(e)}const Ane=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Mne="6";try{window.__reactRouterVersion=Mne}catch{}const Fne=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Lne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ba=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=kne(t,Ane),{basename:h}=d.useContext(Fi),x,w=!1;if(typeof l=="string"&&Lne.test(l)&&(x=l,Fne))try{let _=new URL(window.location.href),$=l.startsWith("//")?new URL(_.protocol+l):new URL(l),P=BE($.pathname,h);$.origin===_.origin&&P!=null?l=P+$.search+$.hash:w=!0}catch{}let O=cne(l,{relative:o}),b=Nne(l,{replace:i,state:s,target:c,preventScrollReset:f,relative:o,unstable_viewTransition:v});function g(_){n&&n(_),_.defaultPrevented||b(_)}return d.createElement("a",_S({},m,{href:x||O,onClick:w||a?n:g,ref:r,target:c}))});var sA;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(sA||(sA={}));var lA;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(lA||(lA={}));function Nne(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,c=Za(),l=Lr(),f=WE(e,{relative:i});return d.useCallback(v=>{if(jne(v,r)){v.preventDefault();let m=n!==void 0?n:nA(l)===nA(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 Dne="RaStore",Bne=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}},xS=Bne(),zne=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(Dne).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?uA(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(xS){var s=pi().getItem("".concat(r,".version"));if(s&&s!==e){var c=pi();Object.keys(c).forEach(function(l){l.startsWith(r)&&c.removeItem(l)})}pi().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){xS&&window.removeEventListener("storage",i)},getItem:function(s,c){var l=pi().getItem("".concat(r,".").concat(s));return l==null?c:uA(l)},setItem:function(s,c){c===void 0?pi().removeItem("".concat(r,".").concat(s)):pi().setItem("".concat(r,".").concat(s),JSON.stringify(c)),a(s,c)},removeItem:function(s){pi().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var c=pi();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=pi();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]}}}},uA=function(e){try{return JSON.parse(e)}catch{return e}},Une=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}(),Vne=new Une,pi=function(){return xS?window.localStorage:Vne},Wne=typeof ao=="object"&&ao&&ao.Object===Object&&ao,B4=Wne,qne=B4,Hne=typeof self=="object"&&self&&self.Object===Object&&self,Gne=qne||Hne||Function("return this")(),wa=Gne,Kne=wa,Qne=Kne.Symbol,vd=Qne,cA=vd,z4=Object.prototype,Xne=z4.hasOwnProperty,Yne=z4.toString,hf=cA?cA.toStringTag:void 0;function Jne(e){var t=Xne.call(e,hf),r=e[hf];try{e[hf]=void 0;var n=!0}catch{}var o=Yne.call(e);return n&&(t?e[hf]=r:delete e[hf]),o}var Zne=Jne,eoe=Object.prototype,toe=eoe.toString;function roe(e){return toe.call(e)}var noe=roe,dA=vd,ooe=Zne,aoe=noe,ioe="[object Null]",soe="[object Undefined]",fA=dA?dA.toStringTag:void 0;function loe(e){return e==null?e===void 0?soe:ioe:fA&&fA in Object(e)?ooe(e):aoe(e)}var md=loe;function uoe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Zo=uoe,coe=md,doe=Zo,foe="[object AsyncFunction]",poe="[object Function]",voe="[object GeneratorFunction]",moe="[object Proxy]";function hoe(e){if(!doe(e))return!1;var t=coe(e);return t==poe||t==voe||t==foe||t==moe}var qE=hoe,goe=wa,yoe=goe["__core-js_shared__"],boe=yoe,wx=boe,pA=function(){var e=/[^.]+$/.exec(wx&&wx.keys&&wx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _oe(e){return!!pA&&pA in e}var xoe=_oe,woe=Function.prototype,Soe=woe.toString;function Ooe(e){if(e!=null){try{return Soe.call(e)}catch{}try{return e+""}catch{}}return""}var U4=Ooe,Coe=qE,Eoe=xoe,Poe=Zo,$oe=U4,Roe=/[\\^$.*+?()[\]{}|]/g,Toe=/^\[object .+?Constructor\]$/,koe=Function.prototype,Ioe=Object.prototype,joe=koe.toString,Aoe=Ioe.hasOwnProperty,Moe=RegExp("^"+joe.call(Aoe).replace(Roe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Foe(e){if(!Poe(e)||Eoe(e))return!1;var t=Coe(e)?Moe:Toe;return t.test($oe(e))}var Loe=Foe;function Noe(e,t){return e==null?void 0:e[t]}var Doe=Noe,Boe=Loe,zoe=Doe;function Uoe(e,t){var r=zoe(e,t);return Boe(r)?r:void 0}var iu=Uoe,Voe=iu,Woe=function(){try{var e=Voe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),V4=Woe,vA=V4;function qoe(e,t,r){t=="__proto__"&&vA?vA(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var HE=qoe;function Hoe(e,t){return e===t||e!==e&&t!==t}var hd=Hoe,Goe=HE,Koe=hd,Qoe=Object.prototype,Xoe=Qoe.hasOwnProperty;function Yoe(e,t,r){var n=e[t];(!(Xoe.call(e,t)&&Koe(n,r))||r===void 0&&!(t in e))&&Goe(e,t,r)}var GE=Yoe,Joe=Array.isArray,Sa=Joe;function Zoe(e){return e!=null&&typeof e=="object"}var Li=Zoe,eae=md,tae=Li,rae="[object Symbol]";function nae(e){return typeof e=="symbol"||tae(e)&&eae(e)==rae}var Fb=nae,oae=Sa,aae=Fb,iae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sae=/^\w*$/;function lae(e,t){if(oae(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||aae(e)?!0:sae.test(e)||!iae.test(e)||t!=null&&e in Object(t)}var KE=lae,uae=iu,cae=uae(Object,"create"),Lb=cae,mA=Lb;function dae(){this.__data__=mA?mA(null):{},this.size=0}var fae=dae;function pae(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var vae=pae,mae=Lb,hae="__lodash_hash_undefined__",gae=Object.prototype,yae=gae.hasOwnProperty;function bae(e){var t=this.__data__;if(mae){var r=t[e];return r===hae?void 0:r}return yae.call(t,e)?t[e]:void 0}var _ae=bae,xae=Lb,wae=Object.prototype,Sae=wae.hasOwnProperty;function Oae(e){var t=this.__data__;return xae?t[e]!==void 0:Sae.call(t,e)}var Cae=Oae,Eae=Lb,Pae="__lodash_hash_undefined__";function $ae(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Eae&&t===void 0?Pae:t,this}var Rae=$ae,Tae=fae,kae=vae,Iae=_ae,jae=Cae,Aae=Rae;function gd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var Xae=Qae,Yae=Nb;function Jae(e,t){var r=this.__data__,n=Yae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Zae=Jae,eie=Lae,tie=Wae,rie=Gae,nie=Xae,oie=Zae;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&Sle?new ble:void 0;for(a.set(e,t),a.set(t,e);++v-1&&e%1==0&&e<=_ue}var oP=xue,wue=md,Sue=oP,Oue=Li,Cue="[object Arguments]",Eue="[object Array]",Pue="[object Boolean]",$ue="[object Date]",Rue="[object Error]",Tue="[object Function]",kue="[object Map]",Iue="[object Number]",jue="[object Object]",Aue="[object RegExp]",Mue="[object Set]",Fue="[object String]",Lue="[object WeakMap]",Nue="[object ArrayBuffer]",Due="[object DataView]",Bue="[object Float32Array]",zue="[object Float64Array]",Uue="[object Int8Array]",Vue="[object Int16Array]",Wue="[object Int32Array]",que="[object Uint8Array]",Hue="[object Uint8ClampedArray]",Gue="[object Uint16Array]",Kue="[object Uint32Array]",Xt={};Xt[Bue]=Xt[zue]=Xt[Uue]=Xt[Vue]=Xt[Wue]=Xt[que]=Xt[Hue]=Xt[Gue]=Xt[Kue]=!0;Xt[Cue]=Xt[Eue]=Xt[Nue]=Xt[Pue]=Xt[Due]=Xt[$ue]=Xt[Rue]=Xt[Tue]=Xt[kue]=Xt[Iue]=Xt[jue]=Xt[Aue]=Xt[Mue]=Xt[Fue]=Xt[Lue]=!1;function Que(e){return Oue(e)&&Sue(e.length)&&!!Xt[wue(e)]}var Xue=Que;function Yue(e){return function(t){return e(t)}}var Kb=Yue,cy={exports:{}};cy.exports;(function(e,t){var r=B4,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})(cy,cy.exports);var aP=cy.exports,Jue=Xue,Zue=Kb,PA=aP,$A=PA&&PA.isTypedArray,ece=$A?Zue($A):Jue,iP=ece,tce=lue,rce=Hb,nce=Sa,oce=Gb,ace=zb,ice=iP,sce=Object.prototype,lce=sce.hasOwnProperty;function uce(e,t){var r=nce(e),n=!r&&rce(e),o=!r&&!n&&oce(e),a=!r&&!n&&!o&&ice(e),i=r||n||o||a,s=i?tce(e.length,String):[],c=s.length;for(var l in e)(t||lce.call(e,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ace(l,c)))&&s.push(l);return s}var n5=uce,cce=Object.prototype;function dce(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||cce;return e===r}var sP=dce;function fce(e,t){return function(r){return e(t(r))}}var o5=fce,pce=o5,vce=pce(Object.keys,Object),mce=vce,hce=sP,gce=mce,yce=Object.prototype,bce=yce.hasOwnProperty;function _ce(e){if(!hce(e))return gce(e);var t=[];for(var r in Object(e))bce.call(e,r)&&r!="constructor"&&t.push(r);return t}var xce=_ce,wce=qE,Sce=oP;function Oce(e){return e!=null&&Sce(e.length)&&!wce(e)}var Qb=Oce,Cce=n5,Ece=xce,Pce=Qb;function $ce(e){return Pce(e)?Cce(e):Ece(e)}var Xb=$ce,Rce=e5,Tce=nP,kce=Xb;function Ice(e){return Rce(e,kce,Tce)}var a5=Ice,RA=a5,jce=1,Ace=Object.prototype,Mce=Ace.hasOwnProperty;function Fce(e,t,r,n,o,a){var i=r&jce,s=RA(e),c=s.length,l=RA(t),f=l.length;if(c!=f&&!i)return!1;for(var v=c;v--;){var m=s[v];if(!(i?m in t:Mce.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>=npe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var spe=ipe,lpe=rpe,upe=spe,cpe=upe(lpe),x5=cpe,dpe=pP,fpe=_5,ppe=x5;function vpe(e,t){return ppe(fpe(e,t,dpe),e+"")}var Jb=vpe,mpe=hd,hpe=Qb,gpe=zb,ype=Zo;function bpe(e,t,r){if(!ype(r))return!1;var n=typeof t;return(n=="number"?hpe(r)&&gpe(t,r.length):n=="string"&&t in r)?mpe(r[t],e):!1}var w5=bpe,_pe=Jb,xpe=w5;function wpe(e){return _pe(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&&xpe(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 Ape(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(Tne,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:n})}var S5=d.createContext(""),Mpe=function(e){var t=e.children,r=e.basename;return d.createElement(S5.Provider,{value:r},t)},Fpe=function(e){var t=e.history,r=e.basename,n=r===void 0?"":r,o=e.children,a=qs(),i=a?Lpe:Npe;return d.createElement(Mpe,{basename:a?n:""},d.createElement(i,{basename:n,history:t},o))},Lpe=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},Npe=function(e){var t=e.children,r=e.history,n=d.useMemo(function(){return r||Ipe()},[r]);return d.createElement(Ape,{history:n},t)},Hs=function(){return d.useContext(S5)},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 Aa("".concat(e,"/").concat(r));case"create":return Aa("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Aa("".concat(e,"/").concat(r)):Aa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Aa("".concat(e,"/").concat(r)):Aa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}},[e])},Aa=function(e){return e.replace("//","/")},Xf=function(){return Xf=Object.assign||function(e){for(var t,r=1,n=arguments.length;rencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),E5="%[a-f0-9]{2}",nM=new RegExp("("+E5+")|([^%]+?)","gi"),oM=new RegExp("("+E5+")+","gi");function $S(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([],$S(r),$S(n))}function nve(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(nM)||[],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)]},sve=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 T=typeof P=="string"&&P.includes(g.arrayFormatSeparator),R=typeof P=="string"&&!T&&v(P,g).includes(g.arrayFormatSeparator);P=R?v(P,g):P;const I=T||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 T=/(\[\])$/.test($);if($=$.replace(/\[\]$/,""),!T){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[T,R]=n(_.decode?C.replace(/\+/g," "):C,"=");R=R===void 0?null:["comma","separator","bracket-separator"].includes(_.arrayFormat)?R:v(R,_),$(v(T,_),R,P)}for(const C of Object.keys(P)){const T=P[C];if(typeof T=="object"&&T!==null)for(const R of Object.keys(T))T[R]=O(T[R],_);else P[C]=O(T,_)}return _.sort===!1?P:(_.sort===!0?Object.keys(P).sort():Object.keys(P).sort(_.sort)).reduce((C,T)=>{const R=P[T];return R&&typeof R=="object"&&!Array.isArray(R)?C[T]=m(R):C[T]=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 T=Object.keys(C);return _.sort!==!1&&T.sort(_.sort),T.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}),T=Object.assign(C,g.query);let R=e.stringify(T,_);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:T}=e.parseUrl(g,$);return e.stringifyUrl({url:P,query:o(C,_),fragmentIdentifier:T},$)},e.exclude=(g,_,$)=>{const P=Array.isArray(_)?C=>!_.includes(C):(C,T)=>!_(C,T);return e.pick(g,P,$)}})(Xl);var py=function(){return py=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new tve(c&&c.message||a,o,c)):Promise.resolve({status:o,headers:i,body:s,json:c})})},cve=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},P5=function(e,t){var r;return t===void 0&&(t=[]),cve(e)?Object.assign.apply(Object,lve([{}],Object.keys(e).map(function(n){return P5(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},$5={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},hve=["getList","getMany","getManyReference"],yo=function(){var e=d.useContext(C5)||R5,t=T5(),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},ti=function(){var e=Jo();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?I5(s,t-1,r,n,o):Ove(o,s):n||(o[o.length]=s)}return o}var yP=I5;function Eve(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a-1}var j5=Nve;function Dve(e,t,r){for(var n=-1,o=e==null?0:e.length;++n=Zve){var l=t?null:Yve(e);if(l)return Jve(l);i=!1,o=Xve,c=new Gve}else c=t?[]:s;e:for(;++n=t||T<0||v&&R>=a}function b(){var C=$x();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($x())}function P(){var C=$x(),T=O(C);if(n=arguments,o=this,c=C,T){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 Fme=Mme;const F5=gr(Fme);function dM(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var L5=function(e,t){if(dM(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(", ")))},jS=function(){return jS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0?(v=e.current)[l].apply(v,dh(dh([],m,!1),[f],!1)):a.apply(void 0,m)};return e.current.length>0?(i=e.current)[l].apply(i,dh(dh([],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},my=function(){return my=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&&Lhe(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":rB(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}(),rge=tge,nge=typeof window>"u"?ao:window;function oge(e,t){if(e instanceof nge[t])return!0;switch(typeof e>"u"?"undefined":rB(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var Tx,bM;function age(){return bM||(bM=1,Tx=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}}),Tx}var ige=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,T=!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),_M(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))),_M(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}(),cge=uge,dge=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},fge=dge,wM=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},SM=cge,OM=fge,pge=tB,vge=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:pge,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":wM(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),c=s[0];if((typeof c>"u"?"undefined":wM(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 OM(new SM(e));var m=Object.assign({},e,r),h=new SM(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 OM};const mge=gr(vge),hge=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 gge=function(e,t,r,n){return mge(e,function(o,a){return hge(a,n)})};const yge=gge;var bge=function(e){return function(t,r,n){return e.getMany(n,{ids:_ge(t,r)}).then(function(o){var a=o.data;return a.reduce(function(i,s){return i[s.id]=s,i},{})})}},_ge=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)},[])))},ju=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 ju([],c,!0);var l=c.indexOf(s);return l>-1?ju(ju([],c.slice(0,l),!0),c.slice(l+1),!0):ju(ju([],c,!0),[s],!1)})},clearSelection:function(){a()}}},[o,a]);return[n,i]},xge=[],wge=qb,Sge=lP,Oge=1,Cge=2;function Ege(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&&!T&&$(A)},[h.search]);var F=d.useCallback(function(ne){C.current&&(P.current?P.current=pM(P.current,ne):(P.current=pM(A,ne),setTimeout(function(){o?b(P.current):x({search:"?".concat(Xl.stringify(Is(Is({},P.current),{filter:JSON.stringify(P.current.filter),displayedFilters:JSON.stringify(P.current.displayedFilters)})))},{state:{_scrollToTop:ne.type===kS}}),P.current=void 0},0)))},CM(CM([],R,!0),[x],!1)),L=d.useCallback(function(ne){return F({type:D5,payload:ne})},[F]),D=d.useCallback(function(ne){return F({type:kS,payload:ne})},[F]),U=d.useCallback(function(ne){return F({type:B5,payload:ne})},[F]),H=A.filter||$M,q=A.displayedFilters||$M,G=F5(function(ne,ee){F({type:IS,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:IS,payload:{filter:Ns(ne),displayedFilters:ee}})},[F]),W=d.useCallback(function(ne){F({type:U5,payload:ne})},[F]),te=d.useCallback(function(ne,ee){F({type:z5,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}]},Aye=["page","perPage","sort","order","filter","displayedFilters"],EM=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Mye=function(e){var t=e.search,r=kye(Xl.parse(t),function(n,o){return Aye.indexOf(o)!==-1});return EM(r,"filter"),EM(r,"displayedFilters"),r},Fye=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},Lye=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:Fye(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:PM(i.page,1),perPage:PM(i.perPage,10)})},PM=function(e,t){var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},$M={},Nye={field:"id",order:Ll},RM={},SP=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});SP.displayName="ListContext";var sB=d.createContext({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null}),Dye=function(e){return d.useMemo(function(){return Zb(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};sB.displayName="ListFilterContext";var lB=d.createContext({sort:null,setSort:null,resource:null}),Bye=function(e){return d.useMemo(function(){return Zb(e,["sort","setSort","resource"])},[e.sort,e.setSort])};lB.displayName="ListSortContext";var OP=d.createContext({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});OP.displayName="ListPaginationContext";var zye=function(e){return d.useMemo(function(){return Zb(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])},CP=function(e){var t=e.value,r=e.children;return d.createElement(SP.Provider,{value:t},d.createElement(sB.Provider,{value:Dye(t)},d.createElement(lB.Provider,{value:Bye(t)},d.createElement(OP.Provider,{value:zye(t)},r))))},Nl=function(){return Nl=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=jye({debounce:r,disableSyncWithLocation:o,filterDefaultValues:c,perPage:f,resource:O,sort:x,storeKey:w}),C=P[0],T=P[1],R=pv(O),I=R[0],A=R[1],F=bve(O,{pagination:{page:C.page,perPage:C.perPage},sort:{field:C.sort,order:C.order},filter:Nl(Nl({},C.filter),s),meta:b},Nl({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)){T.setPage(1);return}if(U!=null){var ee=Math.ceil(U/C.perPage)||1;!G&&C.page>ee&&T.setPage(ee)}},[G,C.page,C.perPage,L,T,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:T.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:T.setFilters,setPage:T.setPage,setPerPage:T.setPerPage,setSort:T.setSort,showFilter:T.showFilter,total:U,hasNextPage:D?D.hasNextPage:U!=null?C.page*C.perPage1}},Wye={field:"id",order:Ll},qye=["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"],Fp=function(e){return Object.keys(e).filter(function(t){return!qye.includes(t)}).reduce(function(t,r){var n;return Nl(Nl({},t),(n={},n[r]=e[r],n))},{})},Hye=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?[]:fh(fh([],c.slice(0,l),!0),c.slice(l+1),!0):r?[t]:fh(fh([],c,!0),[t],!1)})},[a,t,r]);return[i,s]},Qye=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:Xye,selectedIds:te,setFilters:ve,setPage:L,setPerPage:U,setSort:z,showFilter:he,total:R==null?void 0:R.total}},Yye={},tn=function(e){var t=d.useContext(SP);return d.useMemo(function(){return su({},e!=null?Jye(e):{},t)},[t,e])},Jye=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,T=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:T,total:R}},Zye=function(e){var t=d.useContext(OP);return d.useMemo(function(){return su({},e!=null?ebe(e):{},t)},[t,e])},ebe=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}},cB=function(e){var t=pv(e),r=t[1].unselect;return d.useCallback(function(n){r(n)},[r])},dB=function(e){var t=pv(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:T,showFilter:W,total:ce}},vv=e=>e.type==="checkbox",dc=e=>e instanceof Date,On=e=>e==null;const fB=e=>typeof e=="object";var Fr=e=>!On(e)&&!Array.isArray(e)&&fB(e)&&!dc(e),pB=e=>Fr(e)&&e.target?vv(e.target)?e.target.checked:e.target.value:e,nbe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,vB=(e,t)=>e.has(nbe(t)),obe=e=>{const t=e.constructor&&e.constructor.prototype;return Fr(t)&&t.hasOwnProperty("isPrototypeOf")},EP=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(!(EP&&(e instanceof Blob||e instanceof FileList))&&(r||Fr(e)))if(t=r?[]:{},!r&&!obe(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=jr(e[n]));else return e;return t}var mv=e=>Array.isArray(e)?e.filter(Boolean):[],Vt=e=>e===void 0,Me=(e,t,r)=>{if(!t||!Fr(e))return r;const n=mv(t.split(/[,[\].]+?/)).reduce((o,a)=>On(o)?o:o[a],e);return Vt(n)||n===e?Vt(e[t])?r:e[t]:n},Na=e=>typeof e=="boolean",PP=e=>/^\w*$/.test(e),mB=e=>mv(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Lt=(e,t,r)=>{let n=-1;const o=PP(t)?[t]:mB(t),a=o.length,i=a-1;for(;++nfe.useContext(hB),gB=e=>{const{children:t,...r}=e;return fe.createElement(hB.Provider,{value:r},t)};var yB=(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]!==No.all&&(t._proxyFormState[i]=!n||No.all),r&&(r[i]=!0),e[i]}});return o},Bn=e=>Fr(e)&&!Object.keys(e).length,bB=(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||No.all))},Vn=e=>Array.isArray(e)?e:[e],_B=(e,t,r)=>!e||!t||e===t||Vn(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function t0(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=ea(),{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,t0({disabled:n,next:v=>c.current&&_B(f.current,v.name,a)&&bB(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]),yB(i,r,l.current,!1)}var Ba=e=>typeof e=="string",xB=(e,t,r,n,o)=>Ba(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 wB(e){const t=ea(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i}=e||{},s=fe.useRef(n);s.current=n,t0({disabled:a,subject:r._subjects.values,next:f=>{_B(s.current,f.name,i)&&l(jr(xB(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 abe(e){const t=ea(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a}=e,i=vB(o._names.array,r),s=wB({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,...Na(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,...Na(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:fe.useCallback(f=>l.current.onChange({target:{value:pB(f),name:r},type:gy.CHANGE}),[r]),onBlur:fe.useCallback(()=>l.current.onBlur({target:{value:Me(o._formValues,r),name:r},type:gy.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 ibe=(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)})},kx=(e,t,r={})=>r.shouldFocus||Vt(r.shouldFocus)?r.focusName||`${e}.${Vt(r.focusIndex)?t:r.focusIndex}.`:"",Zf=e=>({isOnSubmit:!e||e===No.onSubmit,isOnBlur:e===No.onBlur,isOnChange:e===No.onChange,isOnAll:e===No.all,isOnTouch:e===No.onTouched}),MS=(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 SB=(e,t,r)=>{const n=Vn(Me(e,r));return Lt(n,"root",t[r]),Lt(e,r,n),e},$P=e=>e.type==="file",_s=e=>typeof e=="function",yy=e=>{if(!EP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},tg=e=>Ba(e),RP=e=>e.type==="radio",by=e=>e instanceof RegExp;const IM={value:!1,isValid:!1},jM={value:!0,isValid:!0};var OB=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===""?jM:{value:e[0].value,isValid:!0}:jM:IM}return IM};const AM={isValid:!1,value:null};var CB=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,AM):AM;function MM(e,t,r="validate"){if(tg(e)||Array.isArray(e)&&e.every(tg)||Na(e)&&!e)return{type:r,message:tg(e)?e:"",ref:t}}var Au=e=>Fr(e)&&!by(e)?e:{value:e,message:""},FS=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(Na(L)?"":L||""),_.reportValidity())},P={},C=RP(a),T=vv(a),R=C||T,I=(w||$P(a))&&Vt(a.value)&&Vt(g)||yy(a)&&a.value===""||g===""||Array.isArray(g)&&!g.length,A=ibe.bind(null,x,r,P),F=(L,D,U,H=vi.maxLength,q=vi.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))||Na(g)&&!g||T&&!OB(i).isValid||C&&!CB(i).isValid)){const{value:L,message:D}=tg(s)?{value:!!s,message:s}:Au(s);if(L&&(P[x]={type:vi.required,message:D,ref:_,...A(vi.required,D)},!r))return $(D),P}if(!I&&(!On(f)||!On(v))){let L,D;const U=Au(v),H=Au(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";Ba(U.value)&&g&&(L=z?G(g)>G(U.value):W?g>U.value:q>new Date(U.value)),Ba(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&&Ba(g)){const{value:L,message:D}=Au(m);if(by(L)&&!g.match(L)&&(P[x]={type:vi.pattern,message:D,ref:a,...A(vi.pattern,D)},!r))return $(D),P}if(h){if(_s(h)){const L=await h(g,t),D=MM(L,_);if(D&&(P[x]={...D,...A(vi.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=MM(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},Ix=(e,t)=>[...e,...Vn(t)],jx=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Ax(e,t,r){return[...e.slice(0,t),...Vn(r),...e.slice(t)]}var Mx=(e,t,r)=>Array.isArray(e)?(Vt(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],Fx=(e,t)=>[...Vn(t),...Vn(e)];function sbe(e,t){let r=0;const n=[...e];for(const o of t)n.splice(o-r,1),r++;return mv(n).length?n:[]}var Lx=(e,t)=>Vt(t)?[]:sbe(e,Vn(t).sort((r,n)=>r-n)),Nx=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function lbe(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function cbe(e){const t=ea(),{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),t0({next:({values:P,name:C})=>{if(C===f.current||!C){const T=Me(P,f.current);Array.isArray(T)&&(s(T),c.current=T.map(es))}},subject:r._subjects.array});const m=fe.useCallback(P=>{v.current=!0,r._updateFieldArray(n,P)},[r,n]),h=(P,C)=>{const T=Vn(jr(P)),R=Ix(r._getFieldArray(n),T);r._names.focus=kx(n,R.length-1,C),c.current=Ix(c.current,T.map(es)),m(R),s(R),r._updateFieldArray(n,R,Ix,{argA:jx(P)})},x=(P,C)=>{const T=Vn(jr(P)),R=Fx(r._getFieldArray(n),T);r._names.focus=kx(n,0,C),c.current=Fx(c.current,T.map(es)),m(R),s(R),r._updateFieldArray(n,R,Fx,{argA:jx(P)})},w=P=>{const C=Lx(r._getFieldArray(n),P);c.current=Lx(c.current,P),m(C),s(C),r._updateFieldArray(n,C,Lx,{argA:P})},O=(P,C,T)=>{const R=Vn(jr(C)),I=Ax(r._getFieldArray(n),P,R);r._names.focus=kx(n,P,T),c.current=Ax(c.current,P,R.map(es)),m(I),s(I),r._updateFieldArray(n,I,Ax,{argA:P,argB:jx(C)})},b=(P,C)=>{const T=r._getFieldArray(n);Nx(T,P,C),Nx(c.current,P,C),m(T),s(T),r._updateFieldArray(n,T,Nx,{argA:P,argB:C},!1)},g=(P,C)=>{const T=r._getFieldArray(n);Mx(T,P,C),Mx(c.current,P,C),m(T),s(T),r._updateFieldArray(n,T,Mx,{argA:P,argB:C},!1)},_=(P,C)=>{const T=jr(C),R=FM(r._getFieldArray(n),P,T);c.current=[...R].map((I,A)=>!I||A===P?es():c.current[A]),m(R),s([...R]),r._updateFieldArray(n,R,FM,{argA:P,argB:T},!0,!1)},$=P=>{const C=Vn(jr(P));c.current=C.map(es),m([...C]),s([...C]),r._updateFieldArray(n,[...C],T=>T,{},!0,!1)};return fe.useEffect(()=>{if(r._state.action=!1,MS(n,r._names)&&r._subjects.state.next({...r._formState}),v.current&&(!Zf(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(P=>{const C=Me(P.errors,n),T=Me(r._formState.errors,n);(T?!C&&T.type||C&&(T.type!==C.type||T.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&&!(Zf(r._options.reValidateMode).isOnSubmit&&Zf(r._options.mode).isOnSubmit)&&FS(P,r._formValues,r._options.criteriaMode===No.all,r._options.shouldUseNativeValidation,!0).then(C=>!Bn(C)&&r._subjects.state.next({errors:SB(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 Dx=()=>{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=[]}}},_y=e=>On(e)||!fB(e);function $l(e,t){if(_y(e)||_y(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)?!$l(a,i):a!==i)return!1}}return!0}var EB=e=>e.type==="select-multiple",dbe=e=>RP(e)||vv(e),Bx=e=>yy(e)&&e.isConnected,PB=e=>{for(const t in e)if(_s(e[t]))return!0;return!1};function xy(e,t={}){const r=Array.isArray(e);if(Fr(e)||r)for(const n in e)Array.isArray(e[n])||Fr(e[n])&&!PB(e[n])?(t[n]=Array.isArray(e[n])?[]:{},xy(e[n],t[n])):On(e[n])||(t[n]=!0);return t}function $B(e,t,r){const n=Array.isArray(e);if(Fr(e)||n)for(const o in e)Array.isArray(e[o])||Fr(e[o])&&!PB(e[o])?Vt(t)||_y(r[o])?r[o]=Array.isArray(e[o])?xy(e[o],[]):{...xy(e[o])}:$B(e[o],On(t)?{}:t[o],r[o]):r[o]=!$l(e[o],t[o]);return r}var ph=(e,t)=>$B(e,t,xy(t)),RB=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Vt(e)?e:t?e===""?NaN:e&&+e:r&&Ba(e)?new Date(e):n?n(e):e;function zx(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return $P(t)?t.files:RP(t)?CB(e.refs).value:EB(t)?[...t.selectedOptions].map(({value:r})=>r):vv(t)?OB(e.refs).value:RB(Vt(t.value)?e.ref.value:t.value,e)}var fbe=(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}},gf=e=>Vt(e)?e:by(e)?e.source:Fr(e)?by(e.value)?e.value.source:e.value:e,pbe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function LM(e,t,r){const n=Me(e,r);if(n||PP(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 vbe=(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,mbe=(e,t)=>!mv(Me(e,t)).length&&wr(e,t);const hbe={mode:No.onSubmit,reValidateMode:No.onChange,shouldFocusError:!0};function gbe(e={}){let t={...hbe,...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:Dx(),array:Dx(),state:Dx()},m=Zf(t.mode),h=Zf(t.reValidateMode),x=t.criteriaMode===No.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),mbe(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=ph(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:zx(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||$l(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:{}},T=(V,X,Y,ae)=>{const se=Me(r.errors,V),le=f.isValid&&Na(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?!$l(se,Y):se)||!Bn(ae)||le){const Ee={...ae,...le&&Na(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,fbe(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 FS(se,a,x,t.shouldUseNativeValidation&&!X,Ie);if(b([ae]),rt[le.name]&&(Y.valid=!1,X))break;!X&&(Me(rt,le.name)?Ie?SB(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=>!Bx(Y)):!Bx(X._f.ref))&&pe(V)}s.unMount=new Set},L=(V,X)=>(V&&X&&Lt(a,V,X),!$l(ne(),o)),D=(V,X,Y)=>xB(V,s,{...i.mount?a:Vt(X)?o:Ba(V)?{[V]:X}:X},Y,X),U=V=>mv(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,RB(X,le)),se=yy(le.ref)&&On(X)?"":X,EB(le.ref)?[...le.ref.options].forEach(Ee=>Ee.selected=se.includes(Ee.value)):le.refs?vv(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):$P(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)||!_y(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:ph(o,a),isDirty:L(V,le)})):ae&&!ae._f&&!On(le)?q(V,le,Y):H(V,le,Y),MS(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?zx(se._f):pB(V),Ee=Ie=>{ae=Number.isNaN(Ie)||Ie===Me(a,Y,Ie)};if(se){let Ie,rt;const at=le(),Le=V.type===gy.BLUR||V.type===gy.FOCUS_OUT,De=!pbe(se._f)&&!t.resolver&&!Me(r.errors,Y)&&!se._f.deps||vbe(Le,Me(r.touchedFields,Y),r.isSubmitted,h,m),ft=MS(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=LM(r.errors,n,Y),ke=LM(We,n,et.name||Y);Ie=ke.error,Y=ke.name,rt=Bn(We)}}else b([Y],!0),Ie=(await FS(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),T(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({...!Ba(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:Ba(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(Na(V)&&i.mount||V){const le=V?void 0:Vt(se)?zx(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=Na(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:gf(X.min),max:gf(X.max),minLength:gf(X.minLength),maxLength:gf(X.maxLength),pattern:gf(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=dbe(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(Bx),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)&&!(vB(s.array,V)&&i.action)&&s.unMount.add(V)}}},de=()=>t.shouldFocusError&&wc(n,W,s.mount),he=V=>{Na(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(EP&&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(yy(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&&!$l(V,o)),isSubmitted:X.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:se?{}:X.keepDirtyValues?X.keepDefaultValues&&a?ph(o,a):r.dirtyFields:X.keepDefaultValues&&V?ph(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 TB(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={...gbe(e),formState:n});const a=t.current.control;return a._options=e,t0({subject:a._subjects.state,next:i=>{bB(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&&!$l(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=yB(n,a),t.current}var ybe=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?T(R):R},{updatedAt:C}),o.setQueriesData([g,"getManyReference"],function(R){return R&&R.data?{data:T(R.data),total:R.total}:R},{updatedAt:C})},w=au(function(b){var g=b===void 0?{}:b,_=g.resource,$=_===void 0?e:_,P=g.id,C=P===void 0?m.current.id:P,T=g.data,R=T===void 0?m.current.data:T,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 NM(void 0,void 0,void 0,function(){var g;return DM(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,T=C===void 0?a:C;x({resource:P,id:T,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&&(_={}),NM(void 0,void 0,void 0,function(){var $,P,C,T,R,I,A,F,L,D,U,H,q,G;return DM(this,function(z){switch(z.label){case 0:return $=_.mutationMode,P=_.returnPromise,C=P===void 0?f.returnPromise:P,T=_.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:T,onSettled:R,onError:I})]:[2,w.mutate(Qt({resource:b},g),{onSuccess:T,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}),T&&setTimeout(function(){return T(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})]:(Mp.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[Jl(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 T=P(C.data),R=T.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),T=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]},Dbe=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]},Bbe=function(e,t){var r=AB(),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])},zbe=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,o=e.customRoutesWithoutLayout;return MB(t)?"loading":r.length>0||n.length>0||o.length>0?"ready":"empty"},MB=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]},Af=function(e){var t=[],r=[],n=[];return d.Children.forEach(e,function(o){if(d.isValidElement(o)){if(o.type===d.Fragment){var a=Af(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}},Ube=function(e){Dpe();var t=Gs(),r=Lbe(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=ez();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(R0e,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(w0e,{authParams:Vbe,component:l}):i.length>0?d.createElement($ne,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(zr,{path:"*",element:d.createElement(c,{title:x})}))))}))},Vbe={params:{route:"dashboard"}},Wbe=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},qbe=function(e){var t=e.catchAll,r=t===void 0?KM:t,n=e.children,o=e.dashboard,a=e.disableTelemetry,i=a===void 0?!1:a,s=e.layout,c=s===void 0?Wbe:s,l=e.loading,f=l===void 0?KM: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?l0e: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:GM(m)}):null,x!==!1&&x!==!0?d.createElement(zr,{path:"/auth-callback",element:GM(x)}):null,d.createElement(zr,{path:"/*",element:d.createElement(Ube,{catchAll:r,dashboard:o,layout:c,loading:f,menu:w,requireAuth:P,ready:b,title:_},n)}))},GM=function(e){return d.isValidElement(e)?e:d.createElement(e)},KM=function(){return null},FB=function(e){return null};FB.raName="CustomRoutes";var LB={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 r0=60103,n0=60106,yv=60107,bv=60108,_v=60114,xv=60109,wv=60110,Sv=60112,Ov=60113,kP=60120,Cv=60115,Ev=60116,NB=60121,DB=60122,BB=60117,zB=60129,UB=60131;if(typeof Symbol=="function"&&Symbol.for){var Kr=Symbol.for;r0=Kr("react.element"),n0=Kr("react.portal"),yv=Kr("react.fragment"),bv=Kr("react.strict_mode"),_v=Kr("react.profiler"),xv=Kr("react.provider"),wv=Kr("react.context"),Sv=Kr("react.forward_ref"),Ov=Kr("react.suspense"),kP=Kr("react.suspense_list"),Cv=Kr("react.memo"),Ev=Kr("react.lazy"),NB=Kr("react.block"),DB=Kr("react.server.block"),BB=Kr("react.fundamental"),zB=Kr("react.debug_trace_mode"),UB=Kr("react.legacy_hidden")}function Oa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case r0:switch(e=e.type,e){case yv:case _v:case bv:case Ov:case kP:return e;default:switch(e=e&&e.$$typeof,e){case wv:case Sv:case Ev:case Cv:case xv:return e;default:return t}}case n0:return t}}}var Hbe=xv,Gbe=r0,Kbe=Sv,Qbe=yv,Xbe=Ev,Ybe=Cv,Jbe=n0,Zbe=_v,e0e=bv,t0e=Ov;Bt.ContextConsumer=wv;Bt.ContextProvider=Hbe;Bt.Element=Gbe;Bt.ForwardRef=Kbe;Bt.Fragment=Qbe;Bt.Lazy=Xbe;Bt.Memo=Ybe;Bt.Portal=Jbe;Bt.Profiler=Zbe;Bt.StrictMode=e0e;Bt.Suspense=t0e;Bt.isAsyncMode=function(){return!1};Bt.isConcurrentMode=function(){return!1};Bt.isContextConsumer=function(e){return Oa(e)===wv};Bt.isContextProvider=function(e){return Oa(e)===xv};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===r0};Bt.isForwardRef=function(e){return Oa(e)===Sv};Bt.isFragment=function(e){return Oa(e)===yv};Bt.isLazy=function(e){return Oa(e)===Ev};Bt.isMemo=function(e){return Oa(e)===Cv};Bt.isPortal=function(e){return Oa(e)===n0};Bt.isProfiler=function(e){return Oa(e)===_v};Bt.isStrictMode=function(e){return Oa(e)===bv};Bt.isSuspense=function(e){return Oa(e)===Ov};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===yv||e===_v||e===zB||e===bv||e===Ov||e===kP||e===UB||typeof e=="object"&&e!==null&&(e.$$typeof===Ev||e.$$typeof===Cv||e.$$typeof===xv||e.$$typeof===wv||e.$$typeof===Sv||e.$$typeof===BB||e.$$typeof===NB||e[0]===DB)};Bt.typeOf=Oa;LB.exports=Bt;var VB=LB.exports,WB=d.createContext(void 0),lu=function(e){var t=e.children,r=e.value;return r?d.createElement(WB.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(lu,{value:o},d.createElement(bs,null,t&&d.createElement(zr,{path:"create/*",element:vh(t)}),a&&d.createElement(zr,{path:":id/show/*",element:vh(a)}),r&&d.createElement(zr,{path:":id/*",element:vh(r)}),n&&d.createElement(zr,{path:"/*",element:vh(n)}),e.children))},vh=function(e){return d.isValidElement(e)?e:VB.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 qB={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(WB);return e&&e.resource||t},Ni=function(e){var t=Ct(e),r=o0(),n=e||{},o=n.hasCreate,a=n.hasEdit,i=n.hasList,s=n.hasShow,c=n.recordRepresentation,l=d.useMemo(function(){return su({},{hasCreate:o,hasEdit:a,hasList:i,hasShow:s,recordRepresentation:c},r[t])},[t,r,o,a,i,s,c]);return l},a0=function(e){var t=Ni({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=mP(),t=d.useCallback(function(r,n){return e.translate(r,n)},[e]);return e?t:n0e},n0e=function(e){return e},HB=function(){var e=je(),t=QB(),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,a0e({label:a,prefix:t,resource:i,resourceFromContext:r,source:o}))},[t,r,e])},o0e="en",GB=function(e){var t=e.source,r=e.label,n=e.resource,o=e.isRequired,a=HB();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"}," *"))};GB.displayName="FieldTitle";const Ho=d.memo(GB),a0e=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=i0e(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 i0e=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,i){s0e(a)&&(n=i)});var o=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:o}},s0e=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 i0=function(e,t,r){if(e[t]&&!VB.isValidElementType(e[t]))return new Error("Invalid prop '".concat(t,"' supplied to '").concat(r,"': the prop is not a valid React component"))},l0e=function(){return d.createElement("span",null)},IP=function(e,t){};var u0e=typeof window<"u"?d.useLayoutEffect:d.useEffect,Jl=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return u0e(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=Jl(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]},c0e=function(e){var t=Wb().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])},d0e=function(e){var t=Wb().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])},f0e=function(){var e=Wb().reset;return e},Pd=function(){var e=Ai(),t=Jo(),r=f0e(),n=Za(),o=d.useRef(n),a=Lr(),i=d.useRef(a),s=Hs(),c=Aa("".concat(s,"/").concat(jb.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},DS=function(){return DS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},BS=function(){return BS=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=JB(t).permissions;if(o)return d.createElement(o,ep({permissions:i},a));if(n)return n(ep({permissions:i},a));if(r)return r(ep({permissions:i},a))};const w0e=x0e;var ZB=function(){var e=Ai(),t=Lr(),r=t.state,n=Za(),o=Hs(),a=d5().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,c=Aa("".concat(o,"/").concat(jb.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},S0e="AUTH_LOGIN",O0e="AUTH_CHECK",C0e="AUTH_ERROR",E0e="AUTH_LOGOUT",P0e="AUTH_GET_PERMISSIONS";const $0e=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},zS=function(){return zS=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)},jP=function(){return d.useContext(IB)},B0e=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])},o_e=function(e,t,r){var n=d.useContext(Fi).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])},a_e=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},HS=function(){return HS=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 d_e(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 H4(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}}),uz=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}}),AP=H4(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"),AP(c_e,e)});var h_e=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Xs(function(e,t){return t===void 0&&(t=h_e),function(r,n){return!Ks(r)&&e.indexOf(r)===-1?Qs(t,{list:e},r,n):void 0}});var g_e=function(e){return e&&e.isRequired?!0:Array.isArray(e)?!!e.find(function(t){return t.isRequired}):!1},cz=d.createContext(void 0),l0=function(){var e=d.useContext(oz);return e},y_e=function(e){var t=e.children,r=e.name,n=l0();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(cz.Provider,{value:r},t)},dz=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,o=t.defaultValue,a=t.source,i=ht(t),s=ea(),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 b_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})}})},b_e=/^\d+$/,fz=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}},__e=function(e){var t=Cd(),r=t.dirtyFields,n=t.touchedFields,o=t.errors,a=l0(),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=x_e(v);c(function(h){return Uo(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},x_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})},pz=function(){var e=d.useContext(cz);return e},KS=function(){return KS=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)&&(r[o]=e[o]);return r}function vz(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var B_e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,z_e=vz(function(e){return B_e.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),U_e=!1;function V_e(e){if(e.sheet)return e.sheet;for(var t=0;t0?Jr(Rd,--Qn):0,Qc--,Or===10&&(Qc=1,c0--),Or}function fo(){return Or=Qn2||Bp(Or)>3?"":" "}function r1e(e,t){for(;--t&&fo()&&!(Or<48||Or>102||Or>57&&Or<65||Or>70&&Or<97););return $v(e,rg()+(t<6&&Wa()==32&&fo()==32))}function XS(e){for(;fo();)switch(Or){case e:return Qn;case 34:case 39:e!==34&&e!==39&&XS(Or);break;case 40:e===41&&XS(e);break;case 92:fo();break}return Qn}function n1e(e,t){for(;fo()&&e+Or!==57;)if(e+Or===84&&Wa()===47)break;return"/*"+$v(t,Qn-1)+"*"+u0(e===47?e:fo())}function o1e(e){for(;!Bp(Wa());)fo();return $v(e,Qn)}function a1e(e){return _z(og("",null,null,null,[""],e=bz(e),0,[0],e))}function og(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,T=_;O;)switch(x=g,g=fo()){case 40:if(x!=108&&Jr(T,v-1)==58){QS(T+=Tt(ng(g),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=ng(g);break;case 9:case 10:case 13:case 32:T+=t1e(x);break;case 92:T+=r1e(rg()-1,7);continue;case 47:switch(Wa()){case 42:case 47:mh(i1e(n1e(fo(),rg()),t,r),c);break;default:T+="/"}break;case 123*w:s[l++]=Ma(T)*b;case 125*w:case 59:case 0:switch(g){case 0:case 125:O=0;case 59+f:b==-1&&(T=Tt(T,/\f/g,"")),h>0&&Ma(T)-v&&mh(h>32?ZM(T+";",n,r,v-1):ZM(Tt(T," ","")+";",n,r,v-2),c);break;case 59:T+=";";default:if(mh(C=JM(T,t,r,l,f,o,s,_,$=[],P=[],v),a),g===123)if(f===0)og(T,t,C,C,$,a,v,s,P);else switch(m===99&&Jr(T,3)===110?100:m){case 100:case 108:case 109:case 115:og(e,C,C,n&&mh(JM(e,C,C,0,0,o,s,_,o,$=[],v),P),o,P,v,s,n?$:P);break;default:og(T,C,C,C,[""],P,0,s,P)}}l=f=h=0,w=b=1,_=T="",v=i;break;case 58:v=1+Ma(T),h=x;default:if(w<1){if(g==123)--w;else if(g==125&&w++==0&&e1e()==125)continue}switch(T+=u0(g),g*w){case 38:b=f>0?1:(T+="\f",-1);break;case 44:s[l++]=(Ma(T)-1)*b,b=1;break;case 64:Wa()===45&&(T+=ng(fo())),m=Wa(),f=v=Ma(_=T+=o1e(rg())),g++;break;case 45:x===45&&Ma(T)==2&&(w=0)}}return a}function JM(e,t,r,n,o,a,i,s,c,l,f){for(var v=o-1,m=o===0?a:[""],h=LP(m),x=0,w=0,O=0;x0?m[b]+" "+g:Tt(g,/&\f/g,m[b])))&&(c[O++]=_);return d0(e,t,r,o===0?MP:s,c,l,f)}function i1e(e,t,r){return d0(e,t,r,mz,u0(Z_e()),Dp(e,2,-2),0)}function ZM(e,t,r,n){return d0(e,t,r,FP,Dp(e,0,n),Dp(e,n+1,-1),n)}function Sc(e,t){for(var r="",n=LP(e),o=0;o6)switch(Jr(e,t+1)){case 109:if(Jr(e,t+4)!==45)break;case 102:return Tt(e,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+Ey+(Jr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~QS(e,"stretch")?xz(Tt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Jr(e,t+1)!==115)break;case 6444:switch(Jr(e,Ma(e)-3-(~QS(e,"!important")&&10))){case 107:return Tt(e,":",":"+Rt)+e;case 101:return Tt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(Jr(e,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+ln+"$2box$3")+e}break;case 5936:switch(Jr(e,t+11)){case 114:return Rt+e+ln+Tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rt+e+ln+Tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rt+e+ln+Tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rt+e+ln+e+e}return e}var m1e=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case FP:t.return=xz(t.value,t.length);break;case hz:return Sc([bf(t,{value:Tt(t.value,"@","@"+Rt)})],o);case MP:if(t.length)return J_e(t.props,function(a){switch(Y_e(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sc([bf(t,{props:[Tt(a,/:(read-\w+)/,":"+Ey+"$1")]})],o);case"::placeholder":return Sc([bf(t,{props:[Tt(a,/:(plac\w+)/,":"+Rt+"input-$1")]}),bf(t,{props:[Tt(a,/:(plac\w+)/,":"+Ey+"$1")]}),bf(t,{props:[Tt(a,/:(plac\w+)/,ln+"input-$1")]})],o)}return""})}},h1e=[m1e],wz=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||h1e,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 $1e={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,T1e=/[A-Z]|^ms/g,k1e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rz=function(t){return t.charCodeAt(1)===45},tF=function(t){return t!=null&&typeof t!="boolean"},Wx=vz(function(e){return Rz(e)?e:e.replace(T1e,"-$&").toLowerCase()}),rF=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(k1e,function(n,o,a){return Fa={name:o,styles:a,next:Fa},o})}return $1e[t]!==1&&!Rz(t)&&typeof r=="number"&&r!==0?r+"px":r},I1e="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function zp(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 Fa={name:o.name,styles:o.styles,next:Fa},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Fa={name:i.name,styles:i.styles,next:Fa},i=i.next;var s=a.styles+";";return s}return j1e(e,t,r)}case"function":{if(e!==void 0){var c=Fa,l=r(e);return Fa=c,zp(e,t,l)}break}}var f=r;if(t==null)return f;var v=t[f];return v!==void 0?v:f}function j1e(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?N1e:D1e},iF=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},B1e=!1,z1e=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Pz(r,n,o),M1e(function(){return $z(r,n,o)}),null},U1e=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=iF(t,r,n),c=s||aF(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(X1e(o)?r:o):t;return S.jsx(L1e,{styles:n})}function UP(e,t){return YS(e,t)}const Lz=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Y1e=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Fz,StyledEngineProvider:Q1e,ThemeContext:Rv,css:uu,default:UP,internal_processStyles:Lz,keyframes:Di},Symbol.toStringTag,{value:"Module"}));function _i(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 Nz(e){if(!_i(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Nz(e[r])}),t}function $n(e,t,r={clone:!0}){const n=r.clone?j({},e):e;return _i(e)&&_i(t)&&Object.keys(t).forEach(o=>{_i(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&_i(e[o])?n[o]=$n(e[o],t[o],r):r.clone?n[o]=_i(t[o])?Nz(t[o]):t[o]:n[o]=t[o]}),n}const J1e=Object.freeze(Object.defineProperty({__proto__:null,default:$n,isPlainObject:_i},Symbol.toStringTag,{value:"Module"})),Z1e=["values","unit","step"],exe=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 Dz(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ce(e,Z1e),a=exe(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:${VP[e]}px)`};function _a(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||sF;return t.reduce((i,s,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||sF;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||VP).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 Bz(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function zz(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function nxe(e,...t){const r=Bz(e),n=[r,...t].reduce((o,a)=>$n(o,a),{});return zz(Object.keys(r),n)}function oxe(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 qx({values:e,breakpoints:t,base:r}){const n=r||oxe(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(Ri(7));return e.charAt(0).toUpperCase()+e.slice(1)}const axe=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 Py(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 _a(i,s,v=>{let m=Py(l,o,v);return v===m&&typeof v=="string"&&(m=Py(l,o,`${t}${v==="default"?"":Se(v)}`,v)),r===!1?m:{[r]:m}})};return a.propTypes={},a.filterProps=[t],a}function ixe(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const sxe={m:"margin",p:"padding"},lxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lF={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uxe=ixe(e=>{if(e.length>2)if(lF[e])e=lF[e];else return[e];const[t,r]=e.split(""),n=sxe[t],o=lxe[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),WP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],qP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...WP,...qP];function Tv(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 HP(e){return Tv(e,"spacing",8)}function Zl(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 cxe(e,t){return r=>e.reduce((n,o)=>(n[o]=Zl(t,r),n),{})}function dxe(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=uxe(r),a=cxe(o,n),i=e[r];return _a(e,i,a)}function Uz(e,t){const r=HP(e.theme);return Object.keys(e).map(n=>dxe(e,t,n,r)).reduce(tp,{})}function ur(e){return Uz(e,WP)}ur.propTypes={};ur.filterProps=WP;function cr(e){return Uz(e,qP)}cr.propTypes={};cr.filterProps=qP;function fxe(e=8){if(e.mui)return e;const t=HP({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 w0(...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]?tp(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Fo(e){return typeof e!="number"?e:`${e}px solid`}function ta(e,t){return yr({prop:e,themeKey:"borders",transform:t})}const pxe=ta("border",Fo),vxe=ta("borderTop",Fo),mxe=ta("borderRight",Fo),hxe=ta("borderBottom",Fo),gxe=ta("borderLeft",Fo),yxe=ta("borderColor"),bxe=ta("borderTopColor"),_xe=ta("borderRightColor"),xxe=ta("borderBottomColor"),wxe=ta("borderLeftColor"),Sxe=ta("outline",Fo),Oxe=ta("outlineColor"),S0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Tv(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Zl(t,n)});return _a(e,e.borderRadius,r)}return null};S0.propTypes={};S0.filterProps=["borderRadius"];w0(pxe,vxe,mxe,hxe,gxe,yxe,bxe,_xe,xxe,wxe,S0,Sxe,Oxe);const O0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Tv(e.theme,"spacing",8),r=n=>({gap:Zl(t,n)});return _a(e,e.gap,r)}return null};O0.propTypes={};O0.filterProps=["gap"];const C0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Tv(e.theme,"spacing",8),r=n=>({columnGap:Zl(t,n)});return _a(e,e.columnGap,r)}return null};C0.propTypes={};C0.filterProps=["columnGap"];const E0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Tv(e.theme,"spacing",8),r=n=>({rowGap:Zl(t,n)});return _a(e,e.rowGap,r)}return null};E0.propTypes={};E0.filterProps=["rowGap"];const Cxe=yr({prop:"gridColumn"}),Exe=yr({prop:"gridRow"}),Pxe=yr({prop:"gridAutoFlow"}),$xe=yr({prop:"gridAutoColumns"}),Rxe=yr({prop:"gridAutoRows"}),Txe=yr({prop:"gridTemplateColumns"}),kxe=yr({prop:"gridTemplateRows"}),Ixe=yr({prop:"gridTemplateAreas"}),jxe=yr({prop:"gridArea"});w0(O0,C0,E0,Cxe,Exe,Pxe,$xe,Rxe,Txe,kxe,Ixe,jxe);function Oc(e,t){return t==="grey"?t:e}const Axe=yr({prop:"color",themeKey:"palette",transform:Oc}),Mxe=yr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Oc}),Fxe=yr({prop:"backgroundColor",themeKey:"palette",transform:Oc});w0(Axe,Mxe,Fxe);function io(e){return e<=1&&e!==0?`${e*100}%`:e}const Lxe=yr({prop:"width",transform:io}),GP=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])||VP[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 _a(e,e.maxWidth,t)}return null};GP.filterProps=["maxWidth"];const Nxe=yr({prop:"minWidth",transform:io}),Dxe=yr({prop:"height",transform:io}),Bxe=yr({prop:"maxHeight",transform:io}),zxe=yr({prop:"minHeight",transform:io});yr({prop:"size",cssProperty:"width",transform:io});yr({prop:"size",cssProperty:"height",transform:io});const Uxe=yr({prop:"boxSizing"});w0(Lxe,GP,Nxe,Dxe,Bxe,zxe,Uxe);const Vxe={border:{themeKey:"borders",transform:Fo},borderTop:{themeKey:"borders",transform:Fo},borderRight:{themeKey:"borders",transform:Fo},borderBottom:{themeKey:"borders",transform:Fo},borderLeft:{themeKey:"borders",transform:Fo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:S0},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:O0},rowGap:{style:E0},columnGap:{style:C0},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:GP},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"}},kv=Vxe;function Wxe(...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 qxe(e,t){return typeof e=="function"?e(t):e}function Vz(){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):_a(i,n,x=>{let w=Py(m,f,x);return x===w&&typeof x=="string"&&(w=Py(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:kv;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=Bz(a.breakpoints),v=Object.keys(f);let m=f;return Object.keys(l).forEach(h=>{const x=qxe(l[h],a);if(x!=null)if(typeof x=="object")if(i[h])m=tp(m,e(h,x,a,i));else{const w=_a({theme:a},x,O=>({[h]:O}));Wxe(w,x)?m[h]=t({sx:x,theme:a}):m=tp(m,w)}else m=tp(m,e(h,x,a,i))}),zz(v,m)}return Array.isArray(o)?o.map(s):s(o)}return t}const Wz=Vz();Wz.filterProps=["sx"];const Iv=Wz;function qz(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 Hxe=["breakpoints","palette","spacing","shape"];function Td(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=Ce(e,Hxe),s=Dz(r),c=fxe(o);let l=$n({breakpoints:s,direction:"ltr",components:{},palette:j({mode:"light"},n),spacing:c,shape:j({},rxe,a)},i);return l.applyStyles=qz,l=t.reduce((f,v)=>$n(f,v),l),l.unstable_sxConfig=j({},kv,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(v){return Iv({sx:v,theme:this})},l}const Gxe=Object.freeze(Object.defineProperty({__proto__:null,default:Td,private_createBreakpoints:Dz,unstable_applyStyles:qz},Symbol.toStringTag,{value:"Module"}));function Kxe(e){return Object.keys(e).length===0}function KP(e=null){const t=d.useContext(Rv);return!t||Kxe(t)?e:t}const Qxe=Td();function P0(e=Qxe){return KP(e)}function Xxe({styles:e,themeId:t,defaultTheme:r={}}){const n=P0(r),o=typeof e=="function"?e(t&&n[t]||n):e;return S.jsx(Fz,{styles:o})}const Yxe=["sx"],Jxe=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:kv;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function $0(e){const{sx:t}=e,r=Ce(e,Yxe),{systemProps:n,otherProps:o}=Jxe(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return _i(s)?j({},n,s):n}:a=j({},n,t),j({},o,{sx:a})}const Zxe=Object.freeze(Object.defineProperty({__proto__:null,default:Iv,extendSxProp:$0,unstable_createStyleFunctionSx:Vz,unstable_defaultSxConfig:kv},Symbol.toStringTag,{value:"Module"})),uF=e=>e,ewe=()=>{let e=uF;return{configure(t){e=t},generate(t){return e(t)},reset(){e=uF}}},twe=ewe(),QP=twe;function Hz(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"})(Iv);return d.forwardRef(function(c,l){const f=P0(r),v=$0(c),{className:m,component:h="div"}=v,x=Ce(v,rwe);return S.jsx(a,j({as:h,ref:l,className:$e(m,o?o(n):n),theme:t&&f[t]||f},x))})}const owe={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=owe[t];return n?`${r}-${n}`:`${QP.generate(e)}-${t}`}function qe(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ue(e,o,r)}),n}var Gz={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 XP=Symbol.for("react.element"),YP=Symbol.for("react.portal"),R0=Symbol.for("react.fragment"),T0=Symbol.for("react.strict_mode"),k0=Symbol.for("react.profiler"),I0=Symbol.for("react.provider"),j0=Symbol.for("react.context"),awe=Symbol.for("react.server_context"),A0=Symbol.for("react.forward_ref"),M0=Symbol.for("react.suspense"),F0=Symbol.for("react.suspense_list"),L0=Symbol.for("react.memo"),N0=Symbol.for("react.lazy"),iwe=Symbol.for("react.offscreen"),Kz;Kz=Symbol.for("react.module.reference");function ra(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case XP:switch(e=e.type,e){case R0:case k0:case T0:case M0:case F0:return e;default:switch(e=e&&e.$$typeof,e){case awe:case j0:case A0:case N0:case L0:case I0:return e;default:return t}}case YP:return t}}}Ft.ContextConsumer=j0;Ft.ContextProvider=I0;Ft.Element=XP;Ft.ForwardRef=A0;Ft.Fragment=R0;Ft.Lazy=N0;Ft.Memo=L0;Ft.Portal=YP;Ft.Profiler=k0;Ft.StrictMode=T0;Ft.Suspense=M0;Ft.SuspenseList=F0;Ft.isAsyncMode=function(){return!1};Ft.isConcurrentMode=function(){return!1};Ft.isContextConsumer=function(e){return ra(e)===j0};Ft.isContextProvider=function(e){return ra(e)===I0};Ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===XP};Ft.isForwardRef=function(e){return ra(e)===A0};Ft.isFragment=function(e){return ra(e)===R0};Ft.isLazy=function(e){return ra(e)===N0};Ft.isMemo=function(e){return ra(e)===L0};Ft.isPortal=function(e){return ra(e)===YP};Ft.isProfiler=function(e){return ra(e)===k0};Ft.isStrictMode=function(e){return ra(e)===T0};Ft.isSuspense=function(e){return ra(e)===M0};Ft.isSuspenseList=function(e){return ra(e)===F0};Ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===R0||e===k0||e===T0||e===M0||e===F0||e===iwe||typeof e=="object"&&e!==null&&(e.$$typeof===N0||e.$$typeof===L0||e.$$typeof===I0||e.$$typeof===j0||e.$$typeof===A0||e.$$typeof===Kz||e.getModuleId!==void 0)};Ft.typeOf=ra;Gz.exports=Ft;var Up=Gz.exports;const swe=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Qz(e){const t=`${e}`.match(swe);return t&&t[1]||""}function Xz(e,t=""){return e.displayName||e.name||Qz(e)||t}function cF(e,t,r){const n=Xz(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function lwe(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Xz(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Up.ForwardRef:return cF(e,e.render,"ForwardRef");case Up.Memo:return cF(e,e.type,"memo");default:return}}}const uwe=Object.freeze(Object.defineProperty({__proto__:null,default:lwe,getFunctionName:Qz},Symbol.toStringTag,{value:"Module"})),cwe=["ownerState"],dwe=["variants"],fwe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function pwe(e){return Object.keys(e).length===0}function vwe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Hx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mwe=Td(),hwe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function hh({defaultTheme:e,theme:t,themeId:r}){return pwe(t)?e:t[r]||t}function gwe(e){return e?(t,r)=>r[e]:null}function ag(e,t){let{ownerState:r}=t,n=Ce(t,cwe);const o=typeof e=="function"?e(j({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>ag(a,j({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=Ce(o,dwe);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 ywe(e={}){const{themeId:t,defaultTheme:r=mwe,rootShouldForwardProp:n=Hx,slotShouldForwardProp:o=Hx}=e,a=i=>Iv(j({},i,{theme:hh(j({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Lz(i,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:f,skipSx:v,overridesResolver:m=gwe(hwe(l))}=s,h=Ce(s,fwe),x=f!==void 0?f:l&&l!=="Root"&&l!=="root"||!1,w=v||!1;let O,b=Hx;l==="Root"||l==="root"?b=n:l?b=o:vwe(i)&&(b=void 0);const g=UP(i,j({shouldForwardProp:b,label:O},h)),_=P=>typeof P=="function"&&P.__emotion_real!==P||_i(P)?C=>ag(P,j({},C,{theme:hh({theme:C.theme,defaultTheme:r,themeId:t})})):P,$=(P,...C)=>{let T=_(P);const R=C?C.map(_):[];c&&m&&R.push(F=>{const L=hh(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]=ag(q,j({},F,{theme:L}))}),m(F,U)}),c&&!x&&R.push(F=>{var L;const D=hh(j({},F,{defaultTheme:r,themeId:t})),U=D==null||(L=D.components)==null||(L=L[c])==null?void 0:L.variants;return ag({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("");T=[...P,...F],T.raw=[...P.raw,...F]}const A=g(T,...R);return i.muiName&&(A.muiName=i.muiName),A};return g.withConfig&&($.withConfig=g.withConfig),$}}const Yz=ywe();function Vp(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]=Vp(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Jz(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Vp(t.components[r].defaultProps,n)}function Zz({props:e,name:t,defaultTheme:r,themeId:n}){let o=P0(r);return n&&(o=o[n]||o),Jz({theme:o,name:t,props:e})}const vo=typeof window<"u"?d.useLayoutEffect:d.useEffect;function bwe(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 e6=d.useSyncExternalStore;function _we(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 e6(c,s,i)}function In(e,t={}){const r=KP(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=Jz({name:"MuiUseMediaQuery",props:t,theme:r});let c=typeof e=="function"?e(r):e;return c=c.replace(/^@media( ?)/m,""),(e6!==void 0?_we:bwe)(c,o,a,i,s)}function t6(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const xwe=Object.freeze(Object.defineProperty({__proto__:null,default:t6},Symbol.toStringTag,{value:"Module"}));function r6(e,t=0,r=1){return t6(e,t,r)}function wwe(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 JP(e){if(e.type)return e;if(e.charAt(0)==="#")return JP(wwe(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Ri(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(Ri(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function n6(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=JP(e),t=r6(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,n6(e)}function Swe(e,t){if(e=JP(e),t=r6(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 n6(e)}function ZS(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function kd(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 Owe(e,t){return()=>null}function ig(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 Go(e){return Pr(e).defaultView||window}function Cwe(e,t){return()=>null}function $y(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let dF=0;function Ewe(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(dF+=1,r(`mui-${dF}`))},[t]),n}const fF=fw.useId;function eu(e){if(fF!==void 0){const t=fF();return e??t}return Ewe(e)}function Pwe(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=>{$y(r,t)})},e)}const pF={};function $we(e,t){const r=d.useRef(pF);return r.current===pF&&(r.current=e(t)),r}const Rwe=[];function Twe(e){d.useEffect(e,Rwe)}class jv{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new jv}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Rl(){const e=$we(jv.create).current;return Twe(e.disposeEffect),e}let D0=!0,eO=!1;const kwe=new jv,Iwe={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 jwe(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Iwe[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Awe(e){e.metaKey||e.altKey||e.ctrlKey||(D0=!0)}function Gx(){D0=!1}function Mwe(){this.visibilityState==="hidden"&&eO&&(D0=!0)}function Fwe(e){e.addEventListener("keydown",Awe,!0),e.addEventListener("mousedown",Gx,!0),e.addEventListener("pointerdown",Gx,!0),e.addEventListener("touchstart",Gx,!0),e.addEventListener("visibilitychange",Mwe,!0)}function Lwe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return D0||jwe(t)}function B0(){const e=d.useCallback(o=>{o!=null&&Fwe(o.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(eO=!0,kwe.start(100,()=>{eO=!1}),t.current=!1,!0):!1}function n(o){return Lwe(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function o6(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Bu;function a6(){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 Nwe(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(a6()){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 Wp(e){return typeof e=="string"}function vc(e,t,r){return e===void 0||Wp(e)?t:j({},t,{ownerState:j({},t.ownerState,r)})}function Ry(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 vF(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 i6(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=Ry(j({},o,n)),s=vF(n),c=vF(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 s6(e,t,r){return typeof e=="function"?e(t,r):e}const Dwe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ko(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Ce(e,Dwe),s=a?{}:s6(n,o),{props:c,internalRef:l}=i6(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 Bwe=d.createContext(null),l6=Bwe;function u6(){return d.useContext(l6)}const zwe=typeof Symbol=="function"&&Symbol.for,Uwe=zwe?Symbol.for("mui.nested"):"__THEME_NESTED__";function Vwe(e,t){return typeof t=="function"?t(e):j({},e,t)}function Wwe(e){const{children:t,theme:r}=e,n=u6(),o=d.useMemo(()=>{const a=n===null?r:Vwe(n,r);return a!=null&&(a[Uwe]=n!==null),a},[r,n]);return S.jsx(l6.Provider,{value:o,children:t})}const qwe=["value"],c6=d.createContext();function Hwe(e){let{value:t}=e,r=Ce(e,qwe);return S.jsx(c6.Provider,j({value:t??!0},r))}const Ys=()=>{const e=d.useContext(c6);return e??!1},d6=d.createContext(void 0);function Gwe({value:e,children:t}){return S.jsx(d6.Provider,{value:e,children:t})}function Kwe(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?Vp(o.defaultProps,n):!o.styleOverrides&&!o.variants?Vp(o,n):n}function Qwe({props:e,name:t}){const r=d.useContext(d6);return Kwe({props:e,name:t,theme:{components:r}})}const mF={};function hF(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 Xwe(e){const{children:t,theme:r,themeId:n}=e,o=KP(mF),a=u6()||mF,i=hF(n,o,r),s=hF(n,a,r,!0),c=i.direction==="rtl";return S.jsx(Wwe,{theme:s,children:S.jsx(Rv.Provider,{value:i,children:S.jsx(Hwe,{value:c,children:S.jsx(Gwe,{value:i==null?void 0:i.components,children:t})})})})}const Ywe=["className","component","disableGutters","fixed","maxWidth","classes"],Jwe=Td(),Zwe=Yz("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]}}),eSe=e=>Zz({props:e,name:"MuiContainer",defaultTheme:Jwe}),tSe=(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 rSe(e={}){const{createStyledComponent:t=Zwe,useThemeProps:r=eSe,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,Ywe),O=j({},l,{component:v,disableGutters:m,fixed:h,maxWidth:x}),b=tSe(O,n);return S.jsx(o,j({as:v,ownerState:O,className:$e(b.root,f),ref:c},w))})}const nSe=["component","direction","spacing","divider","children","className","useFlexGap"],oSe=Td(),aSe=Yz("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function iSe(e){return Zz({props:e,name:"MuiStack",defaultTheme:oSe})}function sSe(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],uSe=({ownerState:e,theme:t})=>{let r=j({display:"flex",flexDirection:"column"},_a({theme:t},qx({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=HP(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=qx({values:e.direction,base:o}),i=qx({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,_a({theme:t},i,(c,l)=>e.useFlexGap?{gap:Zl(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${lSe(l?a[l]:e.direction)}`]:Zl(n,c)}}))}return r=nxe(t.breakpoints,r),r};function cSe(e={}){const{createStyledComponent:t=aSe,useThemeProps:r=iSe,componentName:n="MuiStack"}=e,o=()=>Ve({root:["root"]},c=>Ue(n,c),{}),a=t(uSe);return d.forwardRef(function(c,l){const f=r(c),v=$0(f),{component:m="div",direction:h="column",spacing:x=0,divider:w,children:O,className:b,useFlexGap:g=!1}=v,_=Ce(v,nSe),$={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?sSe(O,w):O}))})}function dSe(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var br={},f6={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})(f6);var He=f6.exports;const fSe=Xa(D_e),pSe=Xa(xwe);var p6=He;Object.defineProperty(br,"__esModule",{value:!0});var jt=br.alpha=g6;br.blend=CSe;br.colorChannel=void 0;var z0=br.darken=e$;br.decomposeColor=Qo;var vSe=br.emphasize=y6,mSe=br.getContrastRatio=_Se;br.getLuminance=Ty;br.hexToRgb=v6;br.hslToRgb=h6;var U0=br.lighten=t$;br.private_safeAlpha=xSe;br.private_safeColorChannel=void 0;br.private_safeDarken=wSe;br.private_safeEmphasize=OSe;br.private_safeLighten=SSe;br.recomposeColor=Id;br.rgbToHex=bSe;var gF=p6(fSe),hSe=p6(pSe);function ZP(e,t=0,r=1){return(0,hSe.default)(e,t,r)}function v6(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 gSe(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Qo(e){if(e.type)return e;if(e.charAt(0)==="#")return Qo(v6(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,gF.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,gF.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const m6=e=>{const t=Qo(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};br.colorChannel=m6;const ySe=(e,t)=>{try{return m6(e)}catch{return e}};br.private_safeColorChannel=ySe;function Id(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 bSe(e){if(e.indexOf("#")===0)return e;const{values:t}=Qo(e);return`#${t.map((r,n)=>gSe(n===3?Math.round(255*r):r)).join("")}`}function h6(e){e=Qo(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])),Id({type:s,values:c})}function Ty(e){e=Qo(e);let t=e.type==="hsl"||e.type==="hsla"?Qo(h6(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 _Se(e,t){const r=Ty(e),n=Ty(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function g6(e,t){return e=Qo(e),t=ZP(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Id(e)}function xSe(e,t,r){try{return g6(e,t)}catch{return e}}function e$(e,t){if(e=Qo(e),t=ZP(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 Id(e)}function wSe(e,t,r){try{return e$(e,t)}catch{return e}}function t$(e,t){if(e=Qo(e),t=ZP(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 Id(e)}function SSe(e,t,r){try{return t$(e,t)}catch{return e}}function y6(e,t=.15){return Ty(e)>.5?e$(e,t):t$(e,t)}function OSe(e,t,r){try{return y6(e,t)}catch{return e}}function CSe(e,t,r,n=1){const o=(c,l)=>Math.round((c**(1/n)*(1-r)+l**(1/n)*r)**n),a=Qo(e),i=Qo(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Id({type:"rgb",values:s})}const ESe=["mode","contrastThreshold","tonalOffset"],yF={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:Np.white,default:Np.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}},Kx={text:{primary:Np.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:Np.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 bF(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=U0(e.main,o):t==="dark"&&(e.dark=z0(e.main,a)))}function PSe(e="light"){return e==="dark"?{main:Lu[200],light:Lu[50],dark:Lu[400]}:{main:Lu[700],light:Lu[400],dark:Lu[800]}}function $Se(e="light"){return e==="dark"?{main:Fu[200],light:Fu[50],dark:Fu[400]}:{main:Fu[500],light:Fu[300],dark:Fu[700]}}function RSe(e="light"){return e==="dark"?{main:Mu[500],light:Mu[300],dark:Mu[700]}:{main:Mu[700],light:Mu[400],dark:Mu[800]}}function TSe(e="light"){return e==="dark"?{main:Nu[400],light:Nu[300],dark:Nu[700]}:{main:Nu[700],light:Nu[500],dark:Nu[900]}}function kSe(e="light"){return e==="dark"?{main:Du[400],light:Du[300],dark:Du[700]}:{main:Du[800],light:Du[500],dark:Du[900]}}function ISe(e="light"){return e==="dark"?{main:yf[400],light:yf[300],dark:yf[700]}:{main:"#ed6c02",light:yf[500],dark:yf[900]}}function jSe(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ce(e,ESe),a=e.primary||PSe(t),i=e.secondary||$Se(t),s=e.error||RSe(t),c=e.info||TSe(t),l=e.success||kSe(t),f=e.warning||ISe(t);function v(w){return mSe(w,Kx.text.primary)>=r?Kx.text.primary:yF.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(Ri(11,O?` (${O})`:"",b));if(typeof w.main!="string")throw new Error(Ri(12,O?` (${O})`:"",JSON.stringify(w.main)));return bF(w,"light",g,n),bF(w,"dark",_,n),w.contrastText||(w.contrastText=v(w.main)),w},h={dark:Kx,light:yF};return $n(j({common:j({},Np),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:N_e,contrastThreshold:r,getContrastText:v,augmentColor:m,tonalOffset:n},h[t]),o)}const ASe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function MSe(e){return Math.round(e*1e5)/1e5}const _F={textTransform:"uppercase"},xF='"Roboto", "Helvetica", "Arial", sans-serif';function FSe(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=xF,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,ASe),h=o/14,x=v||(b=>`${b/l*h}rem`),w=(b,g,_,$,P)=>j({fontFamily:n,fontWeight:b,fontSize:x(g),lineHeight:_},n===xF?{letterSpacing:`${MSe($/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,_F),caption:w(i,12,1.66,.4),overline:w(i,12,2.66,1,_F),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 LSe=.2,NSe=.14,DSe=.12;function er(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${LSe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${NSe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${DSe})`].join(",")}const BSe=["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)],zSe=["duration","easing","delay"],USe={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)"},VSe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wF(e){return`${Math.round(e)}ms`}function WSe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function qSe(e){const t=j({},USe,e.easing),r=j({},VSe,e.duration);return j({getAutoHeightDuration:WSe,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:c=0}=a;return Ce(a,zSe),(Array.isArray(o)?o:[o]).map(l=>`${l} ${typeof i=="string"?i:wF(i)} ${s} ${typeof c=="string"?c:wF(c)}`).join(",")}},e,{easing:t,duration:r})}const HSe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},GSe=HSe,KSe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ky(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=Ce(e,KSe);if(e.vars)throw new Error(Ri(18));const s=jSe(n),c=Td(e);let l=$n(c,{mixins:dSe(c.breakpoints,r),palette:s,shadows:BSe.slice(),typography:FSe(s,a),transitions:qSe(o),zIndex:j({},GSe)});return l=$n(l,i),l=t.reduce((f,v)=>$n(f,v),l),l.unstable_sxConfig=j({},kv,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(v){return Iv({sx:v,theme:this})},l}const QSe=ky(),r$=QSe;function na(){const e=P0(r$);return e[Kc]||e}var Av={},Qx={exports:{}},SF;function XSe(){return SF||(SF=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n=0)&&(o[i]=r[i]);return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Xx)),Xx.exports}const b6=Xa(Y1e),JSe=Xa(J1e),ZSe=Xa(axe),eOe=Xa(uwe),tOe=Xa(Gxe),rOe=Xa(Zxe);var jd=He;Object.defineProperty(Av,"__esModule",{value:!0});var nOe=Av.default=hOe;Av.shouldForwardProp=sg;Av.systemDefaultTheme=void 0;var ko=jd(XSe()),tO=jd(YSe()),CF=cOe(b6),oOe=JSe;jd(ZSe);jd(eOe);var aOe=jd(tOe),iOe=jd(rOe);const sOe=["ownerState"],lOe=["variants"],uOe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _6(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(_6=function(n){return n?r:t})(e)}function cOe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=_6(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 dOe(e){return Object.keys(e).length===0}function fOe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function sg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pOe=Av.systemDefaultTheme=(0,aOe.default)(),vOe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function gh({defaultTheme:e,theme:t,themeId:r}){return dOe(t)?e:t[r]||t}function mOe(e){return e?(t,r)=>r[e]:null}function lg(e,t){let{ownerState:r}=t,n=(0,tO.default)(t,sOe);const o=typeof e=="function"?e((0,ko.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>lg(a,(0,ko.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=(0,tO.default)(o,lOe);return a.forEach(c=>{let l=!0;typeof c.props=="function"?l=c.props((0,ko.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,ko.default)({ownerState:r},n,r)):c.style))}),s}return o}function hOe(e={}){const{themeId:t,defaultTheme:r=pOe,rootShouldForwardProp:n=sg,slotShouldForwardProp:o=sg}=e,a=i=>(0,iOe.default)((0,ko.default)({},i,{theme:gh((0,ko.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,CF.internal_processStyles)(i,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:f,skipSx:v,overridesResolver:m=mOe(vOe(l))}=s,h=(0,tO.default)(s,uOe),x=f!==void 0?f:l&&l!=="Root"&&l!=="root"||!1,w=v||!1;let O,b=sg;l==="Root"||l==="root"?b=n:l?b=o:fOe(i)&&(b=void 0);const g=(0,CF.default)(i,(0,ko.default)({shouldForwardProp:b,label:O},h)),_=P=>typeof P=="function"&&P.__emotion_real!==P||(0,oOe.isPlainObject)(P)?C=>lg(P,(0,ko.default)({},C,{theme:gh({theme:C.theme,defaultTheme:r,themeId:t})})):P,$=(P,...C)=>{let T=_(P);const R=C?C.map(_):[];c&&m&&R.push(F=>{const L=gh((0,ko.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]=lg(q,(0,ko.default)({},F,{theme:L}))}),m(F,U)}),c&&!x&&R.push(F=>{var L;const D=gh((0,ko.default)({},F,{defaultTheme:r,themeId:t})),U=D==null||(L=D.components)==null||(L=L[c])==null?void 0:L.variants;return lg({variants:U},(0,ko.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("");T=[...P,...F],T.raw=[...P.raw,...F]}const A=g(T,...R);return i.muiName&&(A.muiName=i.muiName),A};return g.withConfig&&($.withConfig=g.withConfig),$}}function x6(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const gOe=e=>x6(e)&&e!=="classes",rn=gOe,J=nOe({themeId:Kc,defaultTheme:r$,rootShouldForwardProp:rn}),yOe=["theme"];function bOe(e){let{theme:t}=e,r=Ce(e,yOe);const n=t[Kc];return S.jsx(Xwe,j({},r,{themeId:n?Kc:void 0,theme:n||t}))}const EF=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 Qwe(e)}function _Oe(e){return Ue("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const xOe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],wOe=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Se(t)}`,`fontSize${Se(r)}`]};return Ve(o,_Oe,n)},SOe=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]}}),rO=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,xOe),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=wOe(w);return S.jsxs(SOe,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]}))});rO.muiName="SvgIcon";function _o(e,t){function r(n,o){return S.jsx(rO,j({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=rO.muiName,d.memo(d.forwardRef(r))}const OOe={configure:e=>{QP.configure(e)}},COe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Se,createChainedFunction:ZS,createSvgIcon:_o,debounce:kd,deprecatedPropType:Owe,isMuiElement:ig,ownerDocument:Pr,ownerWindow:Go,requirePropFactory:Cwe,setRef:$y,unstable_ClassNameGenerator:OOe,unstable_useEnhancedEffect:vo,unstable_useId:eu,unsupportedProp:Pwe,useControlled:Jc,useEventCallback:En,useForkRef:sr,useIsFocusVisible:B0},Symbol.toStringTag,{value:"Module"})),PF={disabled:!1},Iy=fe.createContext(null);var EOe=function(t){return t.scrollTop},Mf="unmounted",_l="exited",xl="entering",Wu="entered",nO="exiting",Bi=function(e){Mi(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=_l,a.appearStatus=xl):c=Wu:n.unmountOnExit||n.mountOnEnter?c=Mf:c=_l,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Mf?{status:_l}: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!==xl&&i!==Wu&&(a=xl):(i===xl||i===Wu)&&(a=nO)}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===xl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:jf.findDOMNode(this);i&&EOe(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_l&&this.setState({status:Mf})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[jf.findDOMNode(this),s],l=c[0],f=c[1],v=this.getTimeouts(),m=s?v.appear:v.enter;if(!o&&!i||PF.disabled){this.safeSetState({status:Wu},function(){a.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:xl},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:jf.findDOMNode(this);if(!a||PF.disabled){this.safeSetState({status:_l},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:nO},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:_l},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:jf.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===Mf)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(Iy.Provider,{value:null},typeof i=="function"?i(o,s):fe.cloneElement(fe.Children.only(i),s))},t}(fe.Component);Bi.contextType=Iy;Bi.propTypes={};function zu(){}Bi.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};Bi.UNMOUNTED=Mf;Bi.EXITED=_l;Bi.ENTERING=xl;Bi.ENTERED=Wu;Bi.EXITING=nO;const n$=Bi;function o$(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 POe(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 jOe(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 AOe=["className","component","elevation","square","variant"],MOe=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ve(a,jOe,o)},FOe=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",EF(t.elevation))}, ${jt("#fff",EF(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),LOe=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,AOe),f=j({},n,{component:a,elevation:i,square:s,variant:c}),v=MOe(f);return S.jsx(FOe,j({as:a,ownerState:f,className:$e(v.root,o),ref:r},l))}),Js=LOe,NOe=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],DOe=["component","slots","slotProps"],BOe=["component"];function zOe(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s}=t,c=Ce(t,NOe),{component:l,slots:f={[e]:void 0},slotProps:v={[e]:void 0}}=a,m=Ce(a,DOe),h=f[e]||n,x=s6(v[e],o),w=i6(j({className:r},c,{externalForwardedProps:e==="root"?m:void 0,externalSlotProps:x})),{props:{component:O},internalRef:b}=w,g=Ce(w.props,BOe),_=sr(b,x==null?void 0:x.ref,t.ref),$=i?i(g):{},P=j({},o,$),C=e==="root"?O||l:O,T=vc(h,j({},e==="root"&&!l&&!f[e]&&s,e!=="root"&&!f[e]&&s,g,C&&{as:C},{ref:_}),P);return Object.keys($).forEach(R=>{delete T[R]}),[h,T]}function UOe(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 Io=qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),VOe=["center","classes","className"];let V0=e=>e,$F,RF,TF,kF;const oO=550,WOe=80,qOe=Di($F||($F=V0` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),HOe=Di(RF||(RF=V0` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),GOe=Di(TF||(TF=V0` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),KOe=J("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),QOe=J(UOe,{name:"MuiTouchRipple",slot:"Ripple"})(kF||(kF=V0` + 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; + } +`),Io.rippleVisible,qOe,oO,({theme:e})=>e.transitions.easing.easeInOut,Io.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Io.child,Io.childLeaving,HOe,oO,({theme:e})=>e.transitions.easing.easeInOut,Io.childPulsate,GOe,({theme:e})=>e.transitions.easing.easeInOut),XOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,s=Ce(n,VOe),[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=Rl(),x=d.useRef(null),w=d.useRef(null),O=d.useCallback($=>{const{pulsate:P,rippleX:C,rippleY:T,rippleSize:R,cb:I}=$;l(A=>[...A,S.jsx(QOe,{classes:{ripple:$e(a.ripple,Io.ripple),rippleVisible:$e(a.rippleVisible,Io.rippleVisible),ripplePulsate:$e(a.ripplePulsate,Io.ripplePulsate),child:$e(a.child,Io.child),childLeaving:$e(a.childLeaving,Io.childLeaving),childPulsate:$e(a.childPulsate,Io.childPulsate)},timeout:oO,pulsate:P,rippleX:C,rippleY:T,rippleSize:R},f.current)]),f.current+=1,v.current=I},[a]),b=d.useCallback(($={},P={},C=()=>{})=>{const{pulsate:T=!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:T,rippleX:L,rippleY:D,rippleSize:U,cb:C})},h.start(WOe,()=>{x.current&&(x.current(),x.current=null)})):O({pulsate:T,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(KOe,j({className:$e(Io.root,a.root,i),ref:w},s,{children:S.jsx(IOe,{component:null,exit:!0,children:c})}))}),YOe=XOe;function JOe(e){return Ue("MuiButtonBase",e)}const ZOe=qe("MuiButtonBase",["root","disabled","focusVisible"]),eCe=["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"],tCe=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Ve({root:["root",t&&"disabled",r&&"focusVisible"]},JOe,o);return r&&n&&(i.root+=` ${n}`),i},rCe=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"},[`&.${ZOe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),nCe=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:T,onMouseUp:R,onTouchEnd:I,onTouchMove:A,onTouchStart:F,tabIndex:L=0,TouchRippleProps:D,touchRippleRef:U,type:H}=n,q=Ce(n,eCe),G=d.useRef(null),z=d.useRef(null),W=sr(z,U),{isFocusVisibleRef:te,onFocus:ne,onBlur:ee,ref:Oe}=B0(),[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(),T&&T(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=tCe(at);return S.jsxs(rCe,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(YOe,j({ref:W,center:a},D)):null]}))}),zi=nCe;function oCe(e){return Ue("MuiIconButton",e)}const aCe=qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),iCe=["edge","children","className","color","disabled","disableFocusRipple","size"],sCe=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,oCe,t)},lCe=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)},{[`&.${aCe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),uCe=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,iCe),m=j({},n,{edge:o,color:s,disabled:c,disableFocusRipple:l,size:f}),h=sCe(m);return S.jsx(lCe,j({className:$e(h.root,i),centerRipple:!0,focusRipple:!l,disabled:c,ref:r},v,{ownerState:m,children:a}))}),or=uCe;function cCe(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 dCe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],fCe=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,cCe,i)},pCe=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})),IF={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vCe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},mCe=e=>vCe[e]||e,hCe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTypography"}),o=mCe(n.color),a=$0(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=IF}=a,x=Ce(a,dCe),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]||IF[m])||"span",b=fCe(w);return S.jsx(pCe,j({as:O,ref:r,ownerState:w,className:$e(b.root,s)},x))}),it=hCe;function gCe(e){return Ue("MuiAppBar",e)}qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const yCe=["className","color","enableColorOnDark","position"],bCe=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${Se(t)}`,`position${Se(r)}`]};return Ve(o,gCe,n)},yh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,_Ce=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:yh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:yh(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:yh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:yh(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"}))}),xCe=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,yCe),l=j({},n,{color:a,position:s,enableColorOnDark:i}),f=bCe(l);return S.jsx(_Ce,j({square:!0,component:"header",ownerState:l,elevation:4,className:$e(f.root,o,s==="fixed"&&"mui-fixed"),ref:r},c))}),wCe=xCe;var s$={};Object.defineProperty(s$,"__esModule",{value:!0});var w6=s$.default=void 0,SCe=CCe(d),OCe=b6;function S6(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(S6=function(n){return n?r:t})(e)}function CCe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=S6(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 ECe(e){return Object.keys(e).length===0}function PCe(e=null){const t=SCe.useContext(OCe.ThemeContext);return!t||ECe(t)?e:t}w6=s$.default=PCe;var Gn="top",Xo="bottom",Yo="right",Kn="left",l$="auto",Mv=[Gn,Xo,Yo,Kn],ed="start",qp="end",$Ce="clippingParents",O6="viewport",_f="popper",RCe="reference",jF=Mv.reduce(function(e,t){return e.concat([t+"-"+ed,t+"-"+qp])},[]),C6=[].concat(Mv,[l$]).reduce(function(e,t){return e.concat([t,t+"-"+ed,t+"-"+qp])},[]),TCe="beforeRead",kCe="read",ICe="afterRead",jCe="beforeMain",ACe="main",MCe="afterMain",FCe="beforeWrite",LCe="write",NCe="afterWrite",DCe=[TCe,kCe,ICe,jCe,ACe,MCe,FCe,LCe,NCe];function Ka(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 tu(e){var t=mo(e).Element;return e instanceof t||e instanceof Element}function Vo(e){var t=mo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function u$(e){if(typeof ShadowRoot>"u")return!1;var t=mo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function BCe(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];!Vo(a)||!Ka(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 zCe(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},{});!Vo(o)||!Ka(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const UCe={name:"applyStyles",enabled:!0,phase:"write",fn:BCe,effect:zCe,requires:["computeStyles"]};function qa(e){return e.split("-")[0]}var Dl=Math.max,jy=Math.min,td=Math.round;function aO(){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 E6(){return!/^((?!chrome|android).)*safari/i.test(aO())}function rd(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Vo(e)&&(o=e.offsetWidth>0&&td(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&td(n.height)/e.offsetHeight||1);var i=tu(e)?mo(e):window,s=i.visualViewport,c=!E6()&&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 c$(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 P6(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&u$(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 VCe(e){return["table","td","th"].indexOf(Ka(e))>=0}function Zs(e){return((tu(e)?e.ownerDocument:e.document)||window.document).documentElement}function W0(e){return Ka(e)==="html"?e:e.assignedSlot||e.parentNode||(u$(e)?e.host:null)||Zs(e)}function AF(e){return!Vo(e)||Ti(e).position==="fixed"?null:e.offsetParent}function WCe(e){var t=/firefox/i.test(aO()),r=/Trident/i.test(aO());if(r&&Vo(e)){var n=Ti(e);if(n.position==="fixed")return null}var o=W0(e);for(u$(o)&&(o=o.host);Vo(o)&&["html","body"].indexOf(Ka(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 Fv(e){for(var t=mo(e),r=AF(e);r&&VCe(r)&&Ti(r).position==="static";)r=AF(r);return r&&(Ka(r)==="html"||Ka(r)==="body"&&Ti(r).position==="static")?t:r||WCe(e)||t}function d$(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function rp(e,t,r){return Dl(e,jy(t,r))}function qCe(e,t,r){var n=rp(e,t,r);return n>r?r:n}function $6(){return{top:0,right:0,bottom:0,left:0}}function R6(e){return Object.assign({},$6(),e)}function T6(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var HCe=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,R6(typeof t!="number"?t:T6(t,Mv))};function GCe(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=qa(r.placement),c=d$(s),l=[Kn,Yo].indexOf(s)>=0,f=l?"height":"width";if(!(!a||!i)){var v=HCe(o.padding,r),m=c$(a),h=c==="y"?Gn:Kn,x=c==="y"?Xo:Yo,w=r.rects.reference[f]+r.rects.reference[c]-i[c]-r.rects.popper[f],O=i[c]-r.rects.reference[c],b=Fv(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+_,T=rp($,C,P),R=c;r.modifiersData[n]=(t={},t[R]=T,t.centerOffset=T-C,t)}}function KCe(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)||P6(t.elements.popper,o)&&(t.elements.arrow=o))}const QCe={name:"arrow",enabled:!0,phase:"main",fn:GCe,effect:KCe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nd(e){return e.split("-")[1]}var XCe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function YCe(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 MF(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=Fv(r),T="clientHeight",R="clientWidth";if(C===mo(r)&&(C=Zs(r),Ti(C).position!=="static"&&s==="absolute"&&(T="scrollHeight",R="scrollWidth")),C=C,o===Gn||(o===Kn||o===Yo)&&a===qp){$=Xo;var I=v&&C===P&&P.visualViewport?P.visualViewport.height:C[T];w-=I-n.height,w*=c?1:-1}if(o===Kn||(o===Gn||o===Xo)&&a===qp){_=Yo;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&&XCe),L=f===!0?YCe({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 JCe(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:qa(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,MF(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,MF(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 ZCe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:JCe,data:{}};var bh={passive:!0};function eEe(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,bh)}),s&&c.addEventListener("resize",r.update,bh),function(){a&&l.forEach(function(f){f.removeEventListener("scroll",r.update,bh)}),s&&c.removeEventListener("resize",r.update,bh)}}const tEe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eEe,data:{}};var rEe={left:"right",right:"left",bottom:"top",top:"bottom"};function ug(e){return e.replace(/left|right|bottom|top/g,function(t){return rEe[t]})}var nEe={start:"end",end:"start"};function FF(e){return e.replace(/start|end/g,function(t){return nEe[t]})}function f$(e){var t=mo(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function p$(e){return rd(Zs(e)).left+f$(e).scrollLeft}function oEe(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=E6();(l||!l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s+p$(e),y:c}}function aEe(e){var t,r=Zs(e),n=f$(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Dl(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Dl(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+p$(e),c=-n.scrollTop;return Ti(o||r).direction==="rtl"&&(s+=Dl(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:c}}function v$(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(Ka(e))>=0?e.ownerDocument.body:Vo(e)&&v$(e)?e:k6(W0(e))}function np(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||[],v$(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(np(W0(i)))}function iO(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function iEe(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 LF(e,t,r){return t===O6?iO(oEe(e,r)):tu(t)?iEe(t,r):iO(aEe(Zs(e)))}function sEe(e){var t=np(W0(e)),r=["absolute","fixed"].indexOf(Ti(e).position)>=0,n=r&&Vo(e)?Fv(e):e;return tu(n)?t.filter(function(o){return tu(o)&&P6(o,n)&&Ka(o)!=="body"}):[]}function lEe(e,t,r,n){var o=t==="clippingParents"?sEe(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(c,l){var f=LF(e,l,n);return c.top=Dl(f.top,c.top),c.right=jy(f.right,c.right),c.bottom=jy(f.bottom,c.bottom),c.left=Dl(f.left,c.left),c},LF(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 I6(e){var t=e.reference,r=e.element,n=e.placement,o=n?qa(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 Xo:c={x:i,y:t.y+t.height};break;case Yo: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?d$(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 qp:c[l]=c[l]+(t[f]/2-r[f]/2);break}}return c}function Hp(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?$Ce:s,l=r.rootBoundary,f=l===void 0?O6:l,v=r.elementContext,m=v===void 0?_f:v,h=r.altBoundary,x=h===void 0?!1:h,w=r.padding,O=w===void 0?0:w,b=R6(typeof O!="number"?O:T6(O,Mv)),g=m===_f?RCe:_f,_=e.rects.popper,$=e.elements[x?g:m],P=lEe(tu($)?$:$.contextElement||Zs(e.elements.popper),c,f,i),C=rd(e.elements.reference),T=I6({reference:C,element:_,strategy:"absolute",placement:o}),R=iO(Object.assign({},_,T)),I=m===_f?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===_f&&F){var L=F[o];Object.keys(A).forEach(function(D){var U=[Yo,Xo].indexOf(D)>=0?1:-1,H=[Gn,Xo].indexOf(D)>=0?"y":"x";A[D]+=L[H]*U})}return A}function uEe(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?C6:c,f=nd(n),v=f?s?jF:jF.filter(function(x){return nd(x)===f}):Mv,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]=Hp(e,{placement:w,boundary:o,rootBoundary:a,padding:i})[qa(w)],x},{});return Object.keys(h).sort(function(x,w){return h[x]-h[w]})}function cEe(e){if(qa(e)===l$)return[];var t=ug(e);return[FF(e),t,FF(t)]}function dEe(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=qa(O),g=b===O,_=c||(g||!x?[ug(O)]:cEe(O)),$=[O].concat(_).reduce(function(ce,oe){return ce.concat(qa(oe)===l$?uEe(t,{placement:oe,boundary:f,rootBoundary:v,padding:l,flipVariations:x,allowedAutoPlacements:w}):oe)},[]),P=t.rects.reference,C=t.rects.popper,T=new Map,R=!0,I=$[0],A=0;A<$.length;A++){var F=$[A],L=qa(F),D=nd(F)===ed,U=[Gn,Xo].indexOf(L)>=0,H=U?"width":"height",q=Hp(t,{placement:F,boundary:f,rootBoundary:v,altBoundary:m,padding:l}),G=U?D?Yo:Kn:D?Xo:Gn;P[H]>C[H]&&(G=ug(G));var z=ug(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}T.set(F,W)}if(R)for(var te=x?3:1,ne=function(oe){var pe=$.find(function(Re){var ye=T.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 fEe={name:"flip",enabled:!0,phase:"main",fn:dEe,requiresIfExists:["offset"],data:{_skip:!1}};function NF(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 DF(e){return[Gn,Yo,Xo,Kn].some(function(t){return e[t]>=0})}function pEe(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Hp(t,{elementContext:"reference"}),s=Hp(t,{altBoundary:!0}),c=NF(i,n),l=NF(s,o,a),f=DF(c),v=DF(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 vEe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pEe};function mEe(e,t,r){var n=qa(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,Yo].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function hEe(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=C6.reduce(function(f,v){return f[v]=mEe(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 gEe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hEe};function yEe(e){var t=e.state,r=e.name;t.modifiersData[r]=I6({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const bEe={name:"popperOffsets",enabled:!0,phase:"read",fn:yEe,data:{}};function _Ee(e){return e==="x"?"y":"x"}function xEe(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=Hp(t,{boundary:c,rootBoundary:l,padding:v,altBoundary:f}),b=qa(t.placement),g=nd(t.placement),_=!g,$=d$(b),P=_Ee($),C=t.modifiersData.popperOffsets,T=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"?Xo:Yo,q=$==="y"?"height":"width",G=C[$],z=G+O[U],W=G-O[H],te=h?-R[q]/2:0,ne=g===ed?T[q]:R[q],ee=g===ed?-R[q]:-T[q],Oe=t.elements.arrow,ce=h&&Oe?c$(Oe):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$6(),pe=oe[U],Re=oe[H],ye=rp(0,T[q],ce[q]),de=_?T[q]/2-te-ye-pe-A.mainAxis:ne-ye-pe-A.mainAxis,he=_?-T[q]/2+te+ye+Re+A.mainAxis:ee+ye+Re+A.mainAxis,ve=t.elements.arrow&&Fv(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=rp(h?jy(z,be):z,G,h?Dl(W,ge):W);C[$]=Ae,L[$]=Ae-G}if(s){var Be,V=$==="x"?Gn:Kn,X=$==="x"?Xo:Yo,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-T[ae]-R[ae]-Ie+A.altAxis,at=Ee?Y+T[ae]+R[ae]-Ie-A.altAxis:le,Le=h&&Ee?qCe(rt,Y,at):rp(h?rt:se,Y,h?at:le);C[P]=Le,L[P]=Le-Y}t.modifiersData[n]=L}}const wEe={name:"preventOverflow",enabled:!0,phase:"main",fn:xEe,requiresIfExists:["offset"]};function SEe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function OEe(e){return e===mo(e)||!Vo(e)?f$(e):SEe(e)}function CEe(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 EEe(e,t,r){r===void 0&&(r=!1);var n=Vo(t),o=Vo(t)&&CEe(t),a=Zs(t),i=rd(e,o,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Ka(t)!=="body"||v$(a))&&(s=OEe(t)),Vo(t)?(c=rd(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=p$(a))),{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function PEe(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 $Ee(e){var t=PEe(e);return DCe.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function REe(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function TEe(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 BF={placement:"bottom",modifiers:[],strategy:"absolute"};function zF(){for(var e=arguments.length,t=new Array(e),r=0;r{a||s(AEe(o)||document.body)},[o,a]),vo(()=>{if(i&&!a)return $y(r,i),()=>{$y(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&&Tb.createPortal(n,i)})}),j6=MEe;function FEe(e){return Ue("MuiPopper",e)}qe("MuiPopper",["root"]);const LEe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],NEe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function DEe(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 sO(e){return typeof e=="function"?e():e}function BEe(e){return e.nodeType!==void 0}const zEe=e=>{const{classes:t}=e;return Ve({root:["root"]},FEe,t)},UEe={},VEe=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,LEe),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=DEe(f,i),[T,R]=d.useState(C),[I,A]=d.useState(sO(o));d.useEffect(()=>{_.current&&_.current.forceUpdate()}),d.useEffect(()=>{o&&A(sO(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=jEe(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:T};w!==null&&(F.TransitionProps=w);const L=zEe(t),D=(n=x.root)!=null?n:"div",U=Ko({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}))}),WEe=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=UEe,popperRef:h,style:x,transition:w=!1,slotProps:O={},slots:b={}}=t,g=Ce(t,NEe),[_,$]=d.useState(!0),P=()=>{$(!1)},C=()=>{$(!0)};if(!c&&!f&&(!w||_))return null;let T;if(a)T=a;else if(n){const A=sO(n);T=A&&BEe(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(j6,{disablePortal:s,container:T,children:S.jsx(VEe,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}))})}),qEe=WEe,HEe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],GEe=J(qEe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),KEe=d.forwardRef(function(t,r){var n;const o=w6(),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,HEe),C=(n=_==null?void 0:_.root)!=null?n:c==null?void 0:c.Root,T=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(GEe,j({as:s,direction:o==null?void 0:o.direction,slots:{root:C},slotProps:$??l},T,{ref:r}))}),A6=KEe,QEe=["onChange","maxRows","minRows","style","value"];function _h(e){return parseInt(e,10)||0}const XEe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function YEe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const JEe=d.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s}=t,c=Ce(t,QEe),{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,_=Go(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=_h(_.paddingBottom)+_h(_.paddingTop),T=_h(_.borderBottomWidth)+_h(_.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+T:0),L=Math.abs(A-R)<=1;return{outerHeightStyle:F,overflowing:L}},[o,a,t.placeholder]),w=d.useCallback(()=>{const b=x();if(YEe(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 _=kd(b),$=f.current,P=Go($);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({},XEe.shadow,i,{paddingTop:0,paddingBottom:0})})]})}),ZEe=JEe;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 ePe=d.createContext(void 0),q0=ePe;function Ca(){return d.useContext(q0)}function tPe(e){return S.jsx(Xxe,j({},e,{defaultTheme:r$,themeId:Kc}))}function UF(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ay(e,t=!1){return e&&(UF(e.value)&&e.value!==""||t&&UF(e.defaultValue)&&e.defaultValue!=="")}function rPe(e){return e.startAdornment}function nPe(e){return Ue("MuiInputBase",e)}const oPe=qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),od=oPe,aPe=["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"],H0=(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]},G0=(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]},iPe=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,nPe,t)},K0=J("div",{name:"MuiInputBase",slot:"Root",overridesResolver:H0})(({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%"})),Q0=J("input",{name:"MuiInputBase",slot:"Input",overridesResolver:G0})(({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"})}),sPe=S.jsx(tPe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),lPe=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:T,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,aPe),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=Ca(),_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=>{Ay(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(Ri(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=ZEe);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=iPe(le),Ie=W.root||l.Root||K0,rt=z.root||f.root||{},at=W.input||l.Input||Q0;return ae=j({},ae,(n=z.input)!=null?n:f.input),S.jsxs(d.Fragment,{children:[!h&&sPe,S.jsxs(Ie,j({},rt,!Wp(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(q0.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:T,placeholder:U,readOnly:H,required:_e.required,rows:G,value:ce,onKeyDown:L,onKeyUp:D,type:ne},ae,!Wp(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]}))]})}),X0=lPe;function uPe(e){return Ue("MuiInput",e)}const cPe=j({},od,qe("MuiInput",["root","underline","input"])),xf=cPe;function dPe(e){return Ue("MuiOutlinedInput",e)}const fPe=j({},od,qe("MuiOutlinedInput",["root","notchedOutline","input"])),ts=fPe;function pPe(e){return Ue("MuiFilledInput",e)}const vPe=j({},od,qe("MuiFilledInput",["root","underline","input"])),vl=vPe,M6=_o(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),mPe=_o(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 hPe(e){return Ue("MuiAvatar",e)}qe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const gPe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],yPe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return Ve({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},hPe,t)},bPe=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]})))}]})),_Pe=J("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),xPe=J(mPe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function wPe({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 SPe=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,gPe);let O=null;const b=wPe(j({},f,{src:m,srcSet:h})),g=m||h,_=g&&b!=="error",$=j({},n,{colorDefault:!_,component:s,variant:x}),P=yPe($),[C,T]=zOe("img",{className:P.img,elementType:_Pe,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({},T)):a||a===0?O=a:g&&o?O=o[0]:O=S.jsx(xPe,{ownerState:$,className:P.fallback}),S.jsx(bPe,j({as:s,ownerState:$,className:$e(P.root,i),ref:r},w,{children:O}))}),Gp=SPe,OPe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],CPe={entering:{opacity:1},entered:{opacity:1}},EPe=d.forwardRef(function(t,r){const n=na(),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=n$}=t,_=Ce(t,OPe),$=d.useRef(null),P=sr($,s.ref,r),C=U=>H=>{if(U){const q=$.current;H===void 0?U(q):U(q,H)}},T=C(m),R=C((U,H)=>{i$(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:T,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},CPe[U],O,s.props.style),ref:P},H))}))}),F6=EPe;function PPe(e){return Ue("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const $Pe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],RPe=e=>{const{classes:t,invisible:r}=e;return Ve({root:["root",r&&"invisible"]},PPe,t)},TPe=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"})),kPe=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=F6,transitionDuration:b}=i,g=Ce(i,$Pe),_=j({},i,{component:l,invisible:m}),$=RPe(_),P=(n=x.root)!=null?n:v.root;return S.jsx(O,j({in:h,timeout:b},g,{children:S.jsx(TPe,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}))}))}),L6=kPe,IPe=qe("MuiBox",["root"]),jPe=IPe,APe=ky(),MPe=nwe({themeId:Kc,defaultTheme:APe,defaultClassName:jPe.root,generateClassName:QP.generate}),Cn=MPe;function FPe(e){return Ue("MuiButton",e)}const LPe=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"]),xh=LPe,NPe=d.createContext({}),DPe=NPe,BPe=d.createContext(void 0),zPe=BPe,UPe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],VPe=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,FPe,i);return j({},i,c)},N6=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}}),WPe=J(zi,{shouldForwardProp:e=>rn(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]}),[`&.${xh.focusVisible}`]:j({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${xh.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"},[`&.${xh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${xh.disabled}`]:{boxShadow:"none"}}),qPe=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},N6(e))),HPe=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},N6(e))),GPe=d.forwardRef(function(t,r){const n=d.useContext(DPe),o=d.useContext(zPe),a=Vp(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,UPe),C=j({},i,{color:c,component:l,disabled:v,disableElevation:m,disableFocusRipple:h,fullWidth:O,size:b,type:_,variant:$}),T=VPe(C),R=g&&S.jsx(qPe,{className:T.startIcon,ownerState:C,children:g}),I=x&&S.jsx(HPe,{className:T.endIcon,ownerState:C,children:x}),A=o||"";return S.jsxs(WPe,j({ownerState:C,className:$e(n.className,T.root,f,A),component:l,disabled:v,focusRipple:!h,focusVisibleClassName:$e(T.focusVisible,w),ref:r,type:_},P,{classes:T,children:[R,s,I]}))}),$r=GPe;function KPe(e){return Ue("MuiCard",e)}qe("MuiCard",["root"]);const QPe=["className","raised"],XPe=e=>{const{classes:t}=e;return Ve({root:["root"]},KPe,t)},YPe=J(Js,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),JPe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=Ce(n,QPe),s=j({},n,{raised:a}),c=XPe(s);return S.jsx(YPe,j({className:$e(c.root,o),elevation:a?8:void 0,ref:r,ownerState:s},i))}),cu=JPe;function ZPe(e){return Ue("MuiCardActions",e)}qe("MuiCardActions",["root","spacing"]);const e$e=["disableSpacing","className"],t$e=e=>{const{classes:t,disableSpacing:r}=e;return Ve({root:["root",!r&&"spacing"]},ZPe,t)},r$e=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}})),n$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a}=n,i=Ce(n,e$e),s=j({},n,{disableSpacing:o}),c=t$e(s);return S.jsx(r$e,j({className:$e(c.root,a),ownerState:s,ref:r},i))}),D6=n$e;function o$e(e){return Ue("MuiCardContent",e)}qe("MuiCardContent",["root"]);const a$e=["className","component"],i$e=e=>{const{classes:t}=e;return Ve({root:["root"]},o$e,t)},s$e=J("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),l$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=Ce(n,a$e),s=j({},n,{component:a}),c=i$e(s);return S.jsx(s$e,j({as:a,className:$e(c.root,o),ownerState:s,ref:r},i))}),jo=l$e;function u$e(e){return Ue("MuiCardHeader",e)}const c$e=qe("MuiCardHeader",["root","avatar","action","content","title","subheader"]),VF=c$e,d$e=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],f$e=e=>{const{classes:t}=e;return Ve({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},u$e,t)},p$e=J("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>j({[`& .${VF.title}`]:t.title,[`& .${VF.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),v$e=J("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),m$e=J("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),h$e=J("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),g$e=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,d$e),x=j({},n,{component:s,disableTypography:c}),w=f$e(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(p$e,j({className:$e(w.root,i),as:s,ref:r,ownerState:x},h,{children:[a&&S.jsx(v$e,{className:w.avatar,ownerState:x,children:a}),S.jsxs(h$e,{className:w.content,ownerState:x,children:[O,b]}),o&&S.jsx(m$e,{className:w.action,ownerState:x,children:o})]}))}),ml=g$e;function y$e(e){return Ue("PrivateSwitchBase",e)}qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const b$e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],_$e=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,y$e,t)},x$e=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})),w$e=J("input",{shouldForwardProp:rn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),S$e=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:T}=t,R=Ce(t,b$e),[I,A]=Jc({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=Ca(),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=_$e(G);return S.jsxs(x$e,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(w$e,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"&&T===void 0?{}:{value:T},h)),I?a:v]}))}),B6=S$e,O$e=_o(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"),C$e=_o(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"),E$e=_o(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 P$e(e){return Ue("MuiCheckbox",e)}const $$e=qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Yx=$$e,R$e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],T$e=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,P$e,t);return j({},t,i)},k$e=J(B6,{shouldForwardProp:e=>rn(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"&&{[`&.${Yx.checked}, &.${Yx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Yx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),I$e=S.jsx(C$e,{}),j$e=S.jsx(O$e,{}),A$e=S.jsx(E$e,{}),M$e=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiCheckbox"}),{checkedIcon:i=I$e,color:s="primary",icon:c=j$e,indeterminate:l=!1,indeterminateIcon:f=A$e,inputProps:v,size:m="medium",className:h}=a,x=Ce(a,R$e),w=l?f:c,O=l?f:i,b=j({},a,{color:s,indeterminate:l,size:m}),g=T$e(b);return S.jsx(k$e,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}))}),ad=M$e;function F$e(e){return Ue("MuiCircularProgress",e)}qe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const L$e=["className","color","disableShrink","size","style","thickness","value","variant"];let Y0=e=>e,WF,qF,HF,GF;const rs=44,N$e=Di(WF||(WF=Y0` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),D$e=Di(qF||(qF=Y0` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),B$e=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,F$e,t)},z$e=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"&&uu(HF||(HF=Y0` + animation: ${0} 1.4s linear infinite; + `),N$e)),U$e=J("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),V$e=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&&uu(GF||(GF=Y0` + animation: ${0} 1.4s ease-in-out infinite; + `),D$e)),W$e=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,L$e),h=j({},n,{color:a,disableShrink:i,size:s,thickness:l,value:f,variant:v}),x=B$e(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(z$e,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(U$e,{className:x.svg,ownerState:h,viewBox:`${rs/2} ${rs/2} ${rs} ${rs}`,children:S.jsx(V$e,{className:x.circle,style:w,ownerState:h,cx:rs,cy:rs,r:(rs-l)/2,fill:"none",strokeWidth:l})})}))}),Ad=W$e;function KF(e){return e.substring(2).toLowerCase()}function q$e(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&&q$e(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=KF(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=KF(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 G$e=rSe({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"})}),Uu=G$e,K$e=(e,t)=>j({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Q$e=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 X$e(e){const t=Pr(e);return t.body===e?Go(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function op(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function QF(e){return parseInt(Go(e).getComputedStyle(e).paddingRight,10)||0}function Y$e(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 XF(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,c=!Y$e(i);s&&c&&op(i,o)})}function Jx(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function J$e(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(X$e(n)){const i=o6(Pr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${QF(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=`${QF(c)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Pr(n).body;else{const i=n.parentElement,s=Go(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 Z$e(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class e2e{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&&op(t.modalRef,!1);const o=Z$e(r);XF(r,t.mount,t.modalRef,o,!0);const a=Jx(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=Jx(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=J$e(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=Jx(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&&op(t.modalRef,r),XF(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&&op(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const t2e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function r2e(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 n2e(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 o2e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||n2e(e))}function a2e(e){const t=[],r=[];return Array.from(e.querySelectorAll(t2e)).forEach((n,o)=>{const a=r2e(n);a===-1||!o2e(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 i2e(){return!0}function s2e(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=a2e,isEnabled:i=i2e,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),$=T=>{O.current=T,!(n||!i()||T.key!=="Tab")&&_.activeElement===x.current&&T.shiftKey&&(c.current=!0,f.current&&f.current.focus())},P=()=>{const T=x.current;if(T===null)return;if(!_.hasFocus()||!i()||c.current){c.current=!1;return}if(T.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 T.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 l2e(e){return typeof e=="function"?e():e}function u2e(e){return e?e.props.hasOwnProperty("in"):!1}const c2e=new e2e;function d2e(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=c2e,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=u2e(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)},T=En(()=>{const q=l2e(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&&op(x.current,_))}),A=d.useCallback(()=>{o.remove(P(),_)},[_,o]);d.useEffect(()=>()=>{A()},[A]),d.useEffect(()=>{f?T():(!g||!a)&&A()},[f,A,g,a,T]);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=Ry(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:ZS(q,c==null?void 0:c.props.onEnter),onExited:ZS(G,c==null?void 0:c.props.onExited)}},rootRef:w,portalRef:I,isTopModal:R,exited:O,hasTransition:g}}function f2e(e){return Ue("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const p2e=["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"],v2e=e=>{const{open:t,exited:r,classes:n}=e;return Ve({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},f2e,n)},m2e=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"})),h2e=J(L6,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),g2e=d.forwardRef(function(t,r){var n,o,a,i,s,c;const l=Ge({name:"MuiModal",props:t}),{BackdropComponent:f=h2e,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:T=!1,disableScrollLock:R=!1,hideBackdrop:I=!1,keepMounted:A=!1,onBackdropClick:F,open:L,slotProps:D,slots:U}=l,H=Ce(l,p2e),q=j({},l,{closeAfterTransition:h,disableAutoFocus:_,disableEnforceFocus:$,disableEscapeKeyDown:P,disablePortal:C,disableRestoreFocus:T,disableScrollLock:R,hideBackdrop:I,keepMounted:A}),{getRootProps:G,getBackdropProps:z,getTransitionProps:W,portalRef:te,isTopModal:ne,exited:ee,hasTransition:Oe}=d2e(j({},q,{rootRef:r})),ce=j({},q,{exited:ee}),oe=v2e(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:m2e,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=Ko({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=Ko({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(j6,{ref:te,container:w,disablePortal:C,children:S.jsxs(Re,j({},ve,{children:[!I&&f?S.jsx(ye,j({},_e)):null,S.jsx(s2e,{disableEnforceFocus:$,disableAutoFocus:_,disableRestoreFocus:T,isEnabled:ne,open:L,children:d.cloneElement(x,pe)})]}))})}),m$=g2e;function y2e(e){return Ue("MuiDialog",e)}const b2e=qe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Zx=b2e,_2e=d.createContext({}),z6=_2e,x2e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],w2e=J(L6,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),S2e=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,y2e,t)},O2e=J(m$,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),C2e=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"}})),E2e=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)`,[`&.${Zx.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}`,[`&.${Zx.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,[`&.${Zx.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),P2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialog"}),o=na(),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:T=F6,transitionDuration:R=a,TransitionProps:I}=n,A=Ce(n,x2e),F=j({},n,{disableEscapeKeyDown:m,fullScreen:h,fullWidth:x,maxWidth:w,scroll:C}),L=S2e(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=eu(s),G=d.useMemo(()=>({titleId:q}),[q]);return S.jsx(O2e,j({className:$e(L.root,v),closeAfterTransition:!0,components:{Backdrop:w2e},componentsProps:{backdrop:j({transitionDuration:R,as:c},l)},disableEscapeKeyDown:m,onClose:g,open:_,ref:r,onClick:H,ownerState:F},A,{children:S.jsx(T,j({appear:!0,in:_,timeout:R,role:"presentation"},I,{children:S.jsx(C2e,{className:$e(L.container),onMouseDown:U,ownerState:F,children:S.jsx(E2e,j({as:$,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":q},P,{className:$e(L.paper,P.className),ownerState:F,children:S.jsx(z6.Provider,{value:G,children:f})}))})}))}))}),Lv=P2e;function $2e(e){return Ue("MuiDialogActions",e)}qe("MuiDialogActions",["root","spacing"]);const R2e=["className","disableSpacing"],T2e=e=>{const{classes:t,disableSpacing:r}=e;return Ve({root:["root",!r&&"spacing"]},$2e,t)},k2e=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}})),I2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=Ce(n,R2e),s=j({},n,{disableSpacing:a}),c=T2e(s);return S.jsx(k2e,j({className:$e(c.root,o),ownerState:s,ref:r},i))}),h$=I2e;function j2e(e){return Ue("MuiDialogContent",e)}qe("MuiDialogContent",["root","dividers"]);function A2e(e){return Ue("MuiDialogTitle",e)}const M2e=qe("MuiDialogTitle",["root"]),F2e=M2e,L2e=["className","dividers"],N2e=e=>{const{classes:t,dividers:r}=e;return Ve({root:["root",r&&"dividers"]},j2e,t)},D2e=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}`}:{[`.${F2e.root} + &`]:{paddingTop:0}})),B2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=Ce(n,L2e),s=j({},n,{dividers:a}),c=N2e(s);return S.jsx(D2e,j({className:$e(c.root,o),ownerState:s,ref:r},i))}),Nv=B2e;function z2e(e){return Ue("MuiDialogContentText",e)}qe("MuiDialogContentText",["root"]);const U2e=["children","className"],V2e=e=>{const{classes:t}=e,n=Ve({root:["root"]},z2e,t);return j({},t,n)},W2e=J(it,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),q2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=Ce(n,U2e),i=V2e(a);return S.jsx(W2e,j({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:$e(i.root,o)},n,{classes:i}))}),J0=q2e,H2e=["className","id"],G2e=e=>{const{classes:t}=e;return Ve({root:["root"]},A2e,t)},K2e=J(it,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Q2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=Ce(n,H2e),s=n,c=G2e(s),{titleId:l=a}=d.useContext(z6);return S.jsx(K2e,j({component:"h2",className:$e(c.root,o),ownerState:s,ref:r,variant:"h6",id:a??l},i))}),Dv=Q2e;function X2e(e){return Ue("MuiDivider",e)}const Y2e=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),YF=Y2e,J2e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Z2e=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"]},X2e,n)},eRe=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%"}})),tRe=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)`})),U6=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,J2e),w=j({},n,{absolute:o,component:s,flexItem:c,light:l,orientation:f,role:v,textAlign:m,variant:h}),O=Z2e(w);return S.jsx(eRe,j({as:s,className:$e(O.root,i),role:v,ref:r,ownerState:w},x,{children:a?S.jsx(tRe,{className:O.wrapper,ownerState:w,children:a}):null}))});U6.muiSkipListHighlight=!0;const lO=U6,rRe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nRe(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=Go(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 oRe(e){return typeof e=="function"?e():e}function wh(e,t,r){const n=oRe(r),o=nRe(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const aRe=d.forwardRef(function(t,r){const n=na(),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=n$}=t,C=Ce(t,rRe),T=d.useRef(null),R=sr(c.ref,T,r),I=z=>W=>{z&&(W===void 0?z(T.current):z(T.current,W))},A=I((z,W)=>{wh(f,z,l),i$(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),wh(f,z,l),O&&O(z)}),H=I(z=>{z.style.webkitTransition="",z.style.transition="",b&&b(z)}),q=z=>{i&&i(T.current,z)},G=d.useCallback(()=>{T.current&&wh(f,T.current,l)},[f,l]);return d.useEffect(()=>{if(m||f==="down"||f==="right")return;const z=kd(()=>{T.current&&wh(f,T.current,l)}),W=Go(T.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:T,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))}))}),V6=aRe;function iRe(e){return Ue("MuiDrawer",e)}qe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const sRe=["BackdropProps"],lRe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],W6=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},uRe=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,iRe,t)},cRe=J(m$,{name:"MuiDrawer",slot:"Root",overridesResolver:W6})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),JF=J("div",{shouldForwardProp:rn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:W6})({flex:"0 0 auto"}),dRe=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}`})),q6={left:"right",right:"left",top:"down",bottom:"up"};function fRe(e){return["left","right"].indexOf(e)!==-1}function pRe({direction:e},t){return e==="rtl"&&fRe(t)?q6[t]:t}const vRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDrawer"}),o=na(),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=V6,transitionDuration:_=i,variant:$="temporary"}=n,P=Ce(n.ModalProps,sRe),C=Ce(n,lRe),T=d.useRef(!1);d.useEffect(()=>{T.current=!0},[]);const R=pRe({direction:a?"rtl":"ltr"},s),A=j({},n,{anchor:s,elevation:v,open:w,variant:$},C),F=uRe(A),L=S.jsx(dRe,j({elevation:$==="temporary"?v:0,square:!0},O,{className:$e(F.paper,O.className),ownerState:A,children:l}));if($==="permanent")return S.jsx(JF,j({className:$e(F.root,F.docked,f),ownerState:A,ref:r},C,{children:L}));const D=S.jsx(g,j({in:w,direction:q6[R],timeout:_,appear:T.current},b,{children:L}));return $==="persistent"?S.jsx(JF,j({className:$e(F.root,F.docked,f),ownerState:A,ref:r},C,{children:D})):S.jsx(cRe,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}))}),mRe=vRe;function hRe(e){return Ue("MuiFab",e)}const gRe=qe("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),ZF=gRe,yRe=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],bRe=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,hRe,n);return j({},n,i)},_Re=J(zi,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>rn(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"},[`&.${ZF.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})=>({[`&.${ZF.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),xRe=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,yRe),x=j({},n,{color:i,component:s,disabled:c,disableFocusRipple:l,size:v,variant:m}),w=bRe(x);return S.jsx(_Re,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}))}),wRe=xRe,SRe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ORe=e=>{const{classes:t,disableUnderline:r}=e,o=Ve({root:["root",!r&&"underline"],input:["input"]},pPe,t);return j({},t,o)},CRe=J(K0,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...H0(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}))}),ERe=J(Q0,{name:"MuiFilledInput",slot:"Input",overridesResolver:G0})(({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})),H6=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,SRe),b=j({},s,{fullWidth:f,inputComponent:v,multiline:m,type:w}),g=ORe(s),_={root:{ownerState:b},input:{ownerState:b}},$=h??l?$n(_,h??l):_,P=(n=(o=x.root)!=null?o:c.Root)!=null?n:CRe,C=(a=(i=x.input)!=null?i:c.Input)!=null?a:ERe;return S.jsx(X0,j({slots:{root:P,input:C},componentsProps:$,fullWidth:f,inputComponent:v,multiline:m,ref:r,type:w},O,{classes:g}))});H6.muiName="Input";const G6=H6;function PRe(e){return Ue("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const $Re=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],RRe=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${Se(r)}`,n&&"fullWidth"]};return Ve(o,PRe,t)},TRe=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%"})),kRe=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,$Re),g=j({},n,{color:i,component:s,disabled:c,error:l,fullWidth:v,hiddenLabel:m,margin:h,required:x,size:w,variant:O}),_=RRe(g),[$,P]=d.useState(()=>{let D=!1;return o&&d.Children.forEach(o,U=>{if(!ig(U,["Input","Select"]))return;const H=ig(U,["Select"])?U.props.input:U;H&&rPe(H.props)&&(D=!0)}),D}),[C,T]=d.useState(()=>{let D=!1;return o&&d.Children.forEach(o,U=>{ig(U,["Input","Select"])&&(Ay(U.props,!0)||Ay(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:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:x,variant:O}),[$,i,c,l,C,A,v,m,F,x,w,O]);return S.jsx(q0.Provider,{value:L,children:S.jsx(TRe,j({as:s,ownerState:g,className:$e(_.root,a),ref:r},b,{children:o}))})}),K6=kRe,IRe=cSe({createStyledComponent:J("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ge({props:e,name:"MuiStack"})}),Bv=IRe;function jRe(e){return Ue("MuiFormControlLabel",e)}const ARe=qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Ff=ARe,MRe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],FRe=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,jRe,t)},LRe=J("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ff.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,[`&.${Ff.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},{[`& .${Ff.label}`]:{[`&.${Ff.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),NRe=J("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ff.error}`]:{color:(e.vars||e).palette.error.main}})),DRe=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,MRe),O=Ca(),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=FRe(P),T=(o=x.typography)!=null?o:s.typography;let R=v;return R!=null&&R.type!==it&&!f&&(R=S.jsx(it,j({component:"span"},T,{className:$e(C.label,T==null?void 0:T.className),children:R}))),S.jsxs(LRe,j({className:$e(C.root,i),ownerState:P,ref:r},w,{children:[d.cloneElement(c,_),g?S.jsxs(Bv,{display:"block",children:[R,S.jsxs(NRe,{ownerState:P,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):R]}))}),uO=DRe;function BRe(e){return Ue("MuiFormGroup",e)}qe("MuiFormGroup",["root","row","error"]);const zRe=["className","row"],URe=e=>{const{classes:t,row:r,error:n}=e;return Ve({root:["root",r&&"row",n&&"error"]},BRe,t)},VRe=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"})),WRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=n,i=Ce(n,zRe),s=Ca(),c=Ui({props:n,muiFormControl:s,states:["error"]}),l=j({},n,{row:a,error:c.error}),f=URe(l);return S.jsx(VRe,j({className:$e(f.root,o),ownerState:l,ref:r},i))}),qRe=WRe;function HRe(e){return Ue("MuiFormHelperText",e)}const GRe=qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),eL=GRe;var tL;const KRe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],QRe=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,HRe,t)},XRe=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,[`&.${eL.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${eL.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),YRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,s=Ce(n,KRe),c=Ca(),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=QRe(f);return S.jsx(XRe,j({as:i,ownerState:f,className:$e(v.root,a),ref:r},s,{children:o===" "?tL||(tL=S.jsx("span",{className:"notranslate",children:"​"})):o}))}),g$=YRe;function JRe(e){return Ue("MuiFormLabel",e)}const ZRe=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ap=ZRe,eTe=["children","className","color","component","disabled","error","filled","focused","required"],tTe=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,JRe,t)},rTe=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",[`&.${ap.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ap.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ap.error}`]:{color:(e.vars||e).palette.error.main}})),nTe=J("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ap.error}`]:{color:(e.vars||e).palette.error.main}})),oTe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,s=Ce(n,eTe),c=Ca(),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=tTe(f);return S.jsxs(rTe,j({as:i,ownerState:f,className:$e(v.root,a),ref:r},s,{children:[o,l.required&&S.jsxs(nTe,{ownerState:f,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]}))}),aTe=oTe,iTe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function cO(e){return`scale(${e}, ${e**2})`}const sTe={entering:{opacity:1,transform:cO(1)},entered:{opacity:1,transform:"none"}},ew=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Q6=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=n$}=t,b=Ce(t,iTe),g=Rl(),_=d.useRef(),$=na(),P=d.useRef(null),C=sr(P,a.ref,r),T=H=>q=>{if(H){const G=P.current;q===void 0?H(G):H(G,q)}},R=T(f),I=T((H,q)=>{i$(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:ew?te:te*.666,delay:z,easing:W})].join(","),c&&c(H,q)}),A=T(l),F=T(h),L=T(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:ew?W:W*.666,delay:ew?G:G||W*.333,easing:z})].join(","),H.style.opacity=0,H.style.transform=cO(.75),v&&v(H)}),D=T(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:cO(.75),visibility:H==="exited"&&!s?"hidden":void 0},sTe[H],x,a.props.style),ref:C},q))}))});Q6.muiSupportAuto=!0;const My=Q6,lTe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],uTe=e=>{const{classes:t,disableUnderline:r}=e,o=Ve({root:["root",!r&&"underline"],input:["input"]},uPe,t);return j({},t,o)},cTe=J(K0,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...H0(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"},[`&.${xf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xf.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(.${xf.disabled}, .${xf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${xf.disabled}:before`]:{borderBottomStyle:"dotted"}})}),dTe=J(Q0,{name:"MuiInput",slot:"Input",overridesResolver:G0})({}),X6=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,lTe),g=uTe(s),$={root:{ownerState:{disableUnderline:c}}},P=x??f?$n(x??f,$):$,C=(n=(o=w.root)!=null?o:l.Root)!=null?n:cTe,T=(a=(i=w.input)!=null?i:l.Input)!=null?a:dTe;return S.jsx(X0,j({slots:{root:C,input:T},slotProps:P,fullWidth:v,inputComponent:m,multiline:h,ref:r,type:O},b,{classes:g}))});X6.muiName="Input";const y$=X6;function fTe(e){return Ue("MuiInputAdornment",e)}const pTe=qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),rL=pTe;var nL;const vTe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],mTe=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Se(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},hTe=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,fTe,t)},gTe=J("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:mTe})(({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"&&{[`&.${rL.positionStart}&:not(.${rL.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),yTe=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,vTe),m=Ca()||{};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=hTe(x);return S.jsx(q0.Provider,{value:null,children:S.jsx(gTe,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"?nL||(nL=S.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Cc=yTe;function bTe(e){return Ue("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _Te=["disableAnimation","margin","shrink","variant","className"],xTe=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,bTe,t);return j({},t,l)},wTe=J(aTe,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ap.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)"}))),STe=d.forwardRef(function(t,r){const n=Ge({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,s=Ce(n,_Te),c=Ca();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=xTe(v);return S.jsx(wTe,j({"data-shrink":l,ownerState:v,ref:r,className:$e(m.root,i)},s,{classes:m}))}),Y6=STe;function OTe(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 CTe=["className","color","value","valueBuffer","variant"];let Md=e=>e,oL,aL,iL,sL,lL,uL;const dO=4,ETe=Di(oL||(oL=Md` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`)),PTe=Di(aL||(aL=Md` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`)),$Te=Di(iL||(iL=Md` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`)),RTe=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,OTe,t)},b$=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?U0(e.palette[t].main,.62):z0(e.palette[t].main,.5),TTe=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:b$(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)"})),kTe=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=b$(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"})},uu(sL||(sL=Md` + animation: ${0} 3s infinite linear; + `),$Te)),ITe=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 .${dO}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${dO}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&uu(lL||(lL=Md` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `),ETe)),jTe=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:b$(t,e.color),transition:`transform .${dO}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&uu(uL||(uL=Md` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `),PTe)),ATe=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,CTe),f=j({},n,{color:a,variant:c}),v=RTe(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(TTe,j({className:$e(v.root,o),ownerState:f,role:"progressbar"},h,{ref:r},l,{children:[c==="buffer"?S.jsx(kTe,{className:v.dashed,ownerState:f}):null,S.jsx(ITe,{className:v.bar1,ownerState:f,style:x.bar1}),c==="determinate"?null:S.jsx(jTe,{className:v.bar2,ownerState:f,style:x.bar2})]}))}),MTe=ATe;function FTe(e){return Ue("MuiLink",e)}const LTe=qe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),NTe=LTe,J6={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},DTe=e=>J6[e]||e,BTe=({theme:e,ownerState:t})=>{const r=DTe(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)},zTe=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],UTe=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,FTe,t)},VTe=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:BTe({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"},[`&.${NTe.focusVisible}`]:{outline:"auto"}})),WTe=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,zTe),{isFocusVisibleRef:x,onBlur:w,onFocus:O,ref:b}=B0(),[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)},T=j({},n,{color:a,component:i,focusVisible:g,underline:f,variant:v}),R=UTe(T);return S.jsx(VTe,j({color:a,className:$e(R.root,o),classes:l,component:i,onBlur:P,onFocus:C,ref:$,ownerState:T,variant:v,sx:[...Object.keys(J6).includes(a)?[]:[{color:a}],...Array.isArray(m)?m:[m]]},h))}),qTe=WTe,HTe=d.createContext({}),Kp=HTe;function GTe(e){return Ue("MuiList",e)}qe("MuiList",["root","padding","dense","subheader"]);const KTe=["children","className","component","dense","disablePadding","subheader"],QTe=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Ve({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},GTe,t)},XTe=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})),YTe=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,KTe),v=d.useMemo(()=>({dense:s}),[s]),m=j({},n,{component:i,dense:s,disablePadding:c}),h=QTe(m);return S.jsx(Kp.Provider,{value:v,children:S.jsxs(XTe,j({as:i,className:$e(h.root,a),ref:r,ownerState:m},f,{children:[l,o]}))})}),JTe=YTe;function ZTe(e){return Ue("MuiListItemIcon",e)}const eke=qe("MuiListItemIcon",["root","alignItemsFlexStart"]),cL=eke,tke=["className"],rke=e=>{const{alignItems:t,classes:r}=e;return Ve({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},ZTe,r)},nke=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})),oke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=Ce(n,tke),i=d.useContext(Kp),s=j({},n,{alignItems:i.alignItems}),c=rke(s);return S.jsx(nke,j({className:$e(c.root,o),ownerState:s,ref:r},a))}),Z6=oke;function ake(e){return Ue("MuiListItemText",e)}const ike=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Fy=ike,ske=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],lke=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"]},ake,t)},uke=J("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Fy.primary}`]:t.primary},{[`& .${Fy.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})),cke=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,ske),{dense:h}=d.useContext(Kp);let x=c??o,w=f;const O=j({},n,{disableTypography:i,inset:s,primary:!!x,secondary:!!w,dense:h}),b=lke(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(uke,j({className:$e(b.root,a),ownerState:O,ref:r},m,{children:[x,w]}))}),dke=cke,fke=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function tw(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function dL(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function e9(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 wf(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")||!e9(s,a)||c)s=o(e,s,r);else return s.focus(),!0}return!1}const pke=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,fke),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(),wf($,C,l,c,tw);else if(P==="ArrowUp")_.preventDefault(),wf($,C,l,c,dL);else if(P==="Home")_.preventDefault(),wf($,null,l,c,tw);else if(P==="End")_.preventDefault(),wf($,null,l,c,dL);else if(P.length===1){const T=x.current,R=P.toLowerCase(),I=performance.now();T.keys.length>0&&(I-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&R!==T.keys[0]&&(T.repeating=!1)),T.lastTime=I,T.keys.push(R);const A=C&&!T.repeating&&e9(C,T);T.previousKeyMatched&&(A||wf($,C,!1,c,tw,T))?_.preventDefault():T.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(JTe,j({role:"menu",ref:O,className:s,onKeyDown:w,tabIndex:o?0:-1},m,{children:g}))}),t9=pke;function vke(e){return Ue("MuiPopover",e)}qe("MuiPopover",["root","paper"]);const mke=["onEntering"],hke=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],gke=["slotProps"];function fL(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function pL(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function vL(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function rw(e){return typeof e=="function"?e():e}const yke=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"]},vke,t)},bke=J(m$,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),r9=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}),_ke=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=My,transitionDuration:T="auto",TransitionProps:{onEntering:R}={},disableScrollLock:I=!1}=i,A=Ce(i.TransitionProps,mke),F=Ce(i,hke),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:T,TransitionProps:A}),q=yke(H),G=d.useCallback(()=>{if(v==="anchorPosition")return f;const ie=rw(c),ge=(ie&&ie.nodeType===1?ie:Pr(D.current).body).getBoundingClientRect();return{top:ge.top+fL(ge,l.vertical),left:ge.left+pL(ge,l.horizontal)}},[c,l.horizontal,l.vertical,f,v]),z=d.useCallback(ie=>({vertical:fL(ie,P.vertical),horizontal:pL(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:vL(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=Go(rw(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:vL(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=kd(()=>{ee()}),be=Go(c);return be.addEventListener("resize",ie),()=>{ie.clear(),be.removeEventListener("resize",ie)}},[c,b,ee]);let oe=T;T==="auto"&&!C.muiSupportAuto&&(oe=void 0);const pe=x||(c?Pr(rw(c)).body:void 0),Re=(o=_==null?void 0:_.root)!=null?o:bke,ye=(a=_==null?void 0:_.paper)!=null?a:r9,de=Ko({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=Ko({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,gke);return S.jsx(Re,j({},_e,!Wp(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}))}))}))}),_$=_ke;function xke(e){return Ue("MuiMenu",e)}qe("MuiMenu",["root","paper","list"]);const wke=["onEntering"],Ske=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Oke={vertical:"top",horizontal:"right"},Cke={vertical:"top",horizontal:"left"},Eke=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"],list:["list"]},xke,t)},Pke=J(_$,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$ke=J(r9,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Rke=J(t9,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Tke=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,wke),P=Ce(a,Ske),C=Ys(),T=j({},a,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:f,onEntering:O,PaperProps:h,transitionDuration:w,TransitionProps:$,variant:b}),R=Eke(T),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:$ke,H=(o=_.paper)!=null?o:h,q=Ko({elementType:g.root,externalSlotProps:_.root,ownerState:T,className:[R.root,c]}),G=Ko({elementType:U,externalSlotProps:H,ownerState:T,className:R.paper});return S.jsx(Pke,j({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Oke:Cke,slots:{paper:U,root:g.root},slotProps:{root:q,paper:G},open:m,ref:r,transitionDuration:w,TransitionProps:j({onEntering:F},$),ownerState:T},P,{classes:x,children:S.jsx(Rke,j({onKeyDown:L,actions:A,autoFocus:i&&(D===-1||l),autoFocusItem:I,variant:b},f,{className:$e(R.list,f.className),children:s}))}))}),Z0=Tke;function kke(e){return Ue("MuiMenuItem",e)}const Ike=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Sf=Ike,jke=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ake=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Mke=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"]},kke,i);return j({},i,c)},Fke=J(zi,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Ake})(({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"}},[`&.${Sf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:jt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Sf.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)}},[`&.${Sf.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)}},[`&.${Sf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Sf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${YF.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${YF.inset}`]:{marginLeft:52},[`& .${Fy.root}`]:{marginTop:0,marginBottom:0},[`& .${Fy.inset}`]:{paddingLeft:36},[`& .${cL.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&j({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${cL.root} svg`]:{fontSize:"1.25rem"}}))),Lke=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,jke),x=d.useContext(Kp),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=Mke(n),_=sr(O,r);let $;return n.disabled||($=v!==void 0?v:-1),S.jsx(Kp.Provider,{value:w,children:S.jsx(Fke,j({ref:_,role:f,tabIndex:$,component:a,focusVisibleClassName:$e(g.focusVisible,l),className:$e(g.root,m)},h,{ownerState:b,classes:g}))})}),lo=Lke;function n9(e){return Ue("MuiNativeSelect",e)}const Nke=qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),x$=Nke,Dke=["className","disabled","error","IconComponent","inputRef","variant"],Bke=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,n9,t)},o9=({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"},[`&.${x$.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}}),zke=J("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:rn,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${x$.multiple}`]:t.multiple}]}})(o9),a9=({ownerState:e,theme:t})=>j({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${x$.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Uke=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]}})(a9),Vke=d.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:c="standard"}=t,l=Ce(t,Dke),f=j({},t,{disabled:o,variant:c,error:a}),v=Bke(f);return S.jsxs(d.Fragment,{children:[S.jsx(zke,j({ownerState:f,className:$e(v.select,n),disabled:o,ref:s||r},l)),t.multiple?null:S.jsx(Uke,{as:i,ownerState:f,className:v.icon})]})}),i9=Vke,Wke=["className","children","classes","IconComponent","input","inputProps","variant"],qke=["root"],Hke=e=>{const{classes:t}=e;return Ve({root:["root"]},n9,t)},Gke=S.jsx(y$,{}),s9=d.forwardRef(function(t,r){const n=Ge({name:"MuiNativeSelect",props:t}),{className:o,children:a,classes:i={},IconComponent:s=M6,input:c=Gke,inputProps:l}=n,f=Ce(n,Wke),v=Ca(),m=Ui({props:n,muiFormControl:v,states:["variant"]}),h=j({},n,{classes:i}),x=Hke(h),w=Ce(i,qke);return S.jsx(d.Fragment,{children:d.cloneElement(c,j({inputComponent:i9,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)}))})});s9.muiName="Select";const mL=s9;var hL;const Kke=["children","classes","className","label","notched"],Qke=J("fieldset",{shouldForwardProp:rn})({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%"}),Xke=J("legend",{shouldForwardProp:rn})(({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 Yke(e){const{className:t,label:r,notched:n}=e,o=Ce(e,Kke),a=r!=null&&r!=="",i=j({},e,{notched:n,withLabel:a});return S.jsx(Qke,j({"aria-hidden":!0,className:t,ownerState:i},o,{children:S.jsx(Xke,{ownerState:i,children:a?S.jsx("span",{children:r}):hL||(hL=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const Jke=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Zke=e=>{const{classes:t}=e,n=Ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},dPe,t);return j({},t,n)},eIe=J(K0,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:H0})(({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"}))}),tIe=J(Yke,{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}}),rIe=J(Q0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:G0})(({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})),l9=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,Jke),g=Zke(c),_=Ca(),$=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:eIe,T=(a=(i=w.input)!=null?i:l.Input)!=null?a:rIe;return S.jsx(X0,j({slots:{root:C,input:T},renderSuffix:R=>S.jsx(tIe,{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})}))});l9.muiName="Input";const u9=l9;function nIe(e){return Ue("MuiPagination",e)}qe("MuiPagination",["root","ul","outlined","text"]);const oIe=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function aIe(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,oIe),[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"]:[]],T=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,T(I))},type:I,page:T(I),selected:!1,disabled:a||I.indexOf("ellipsis")===-1&&(I==="next"||I==="last"?x>=n:x<=1)});return j({items:R},h)}function iIe(e){return Ue("MuiPaginationItem",e)}const sIe=qe("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),To=sIe,fO=_o(S.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),pO=_o(S.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),gL=_o(S.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),yL=_o(S.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),lIe=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],c9=(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]},uIe=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,iIe,t)},cIe=J("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:c9})(({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)})),dIe=J(zi,{name:"MuiPaginationItem",slot:"Root",overridesResolver:c9})(({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}})})),fIe=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)})),pIe=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,lIe),b=j({},n,{color:a,disabled:c,selected:f,shape:v,size:m,type:x,variant:w}),g=Ys(),_=uIe(b),P=(g?{previous:h.next||s.next||yL,next:h.previous||s.previous||gL,last:h.first||s.first||fO,first:h.last||s.last||pO}:{previous:h.previous||s.previous||gL,next:h.next||s.next||yL,first:h.first||s.first||fO,last:h.last||s.last||pO})[x];return x==="start-ellipsis"||x==="end-ellipsis"?S.jsx(cIe,{ref:r,ownerState:b,className:$e(_.root,o),children:"…"}):S.jsxs(dIe,j({ref:r,ownerState:b,component:i,disabled:c,className:$e(_.root,o)},O,{children:[x==="page"&&l,P?S.jsx(fIe,{as:P,ownerState:b,className:_.icon}):null]}))}),vIe=pIe,mIe=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],hIe=e=>{const{classes:t,variant:r}=e;return Ve({root:["root",r],ul:["ul"]},nIe,t)},gIe=J("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),yIe=J("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function bIe(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const _Ie=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=bIe,hideNextButton:v=!1,hidePrevButton:m=!1,renderItem:h=R=>S.jsx(vIe,j({},R)),shape:x="circular",showFirstButton:w=!1,showLastButton:O=!1,siblingCount:b=1,size:g="medium",variant:_="text"}=n,$=Ce(n,mIe),{items:P}=aIe(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:_}),T=hIe(C);return S.jsx(gIe,j({"aria-label":"pagination navigation",className:$e(T.root,a),ownerState:C,ref:r},$,{children:S.jsx(yIe,{className:T.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))})}))}),xIe=_Ie;function wIe(e){return Ue("MuiScopedCssBaseline",e)}qe("MuiScopedCssBaseline",["root"]);const SIe=["className","component","enableColorScheme"],OIe=e=>{const{classes:t}=e;return Ve({root:["root"]},wIe,t)},CIe=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({},K$e(e,t.enableColorScheme),Q$e(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},r)}),EIe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiScopedCssBaseline"}),{className:o,component:a="div"}=n,i=Ce(n,SIe),s=j({},n,{component:a}),c=OIe(s);return S.jsx(CIe,j({as:a,className:$e(c.root,o),ref:r,ownerState:s},i))}),PIe=EIe;function $Ie(e){return Ue("MuiSelect",e)}const Of=qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var bL;const RIe=["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"],TIe=J("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Of.select}`]:t.select},{[`&.${Of.select}`]:t[r.variant]},{[`&.${Of.error}`]:t.error},{[`&.${Of.multiple}`]:t.multiple}]}})(o9,{[`&.${Of.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),kIe=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]}})(a9),IIe=J("input",{shouldForwardProp:e=>x6(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 _L(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function jIe(e){return e==null||typeof e=="string"&&!e.trim()}const AIe=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,$Ie,t)},MIe=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:T,onFocus:R,onOpen:I,open:A,readOnly:F,renderValue:L,SelectDisplayProps:D={},tabIndex:U,value:H,variant:q="standard"}=t,G=Ce(t,RIe),[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):T&&T(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(ke=>ke.props.value===We.target.value);et!==void 0&&(W(et.props.value),C&&C(We,et))},Be=We=>et=>{let ke;if(et.currentTarget.hasAttribute("tabindex")){if(_){ke=Array.isArray(z)?z.slice():[];const ze=z.indexOf(We.props.value);ze===-1?ke.push(We.props.value):ke.splice(ze,1)}else ke=We.props.value;if(We.props.onClick&&We.props.onClick(et),z!==ke&&(W(ke),C)){const ze=et.nativeEvent||et,ct=new ze.constructor(ze.type,ze);Object.defineProperty(ct,"target",{writable:!0,value:{value:ke,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;(Ay({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(Ri(2));et=z.some(ke=>_L(ke,We.props.value)),et&&Ee&&le.push(We.props.children)}else et=_L(z,We.props.value),et&&Ee&&(se=We.props.children);return d.cloneElement(We,{"aria-selected":et?"true":"false",onClick:Be(We),onKeyUp:ke=>{ke.key===" "&&ke.preventDefault(),We.props.onKeyUp&&We.props.onKeyUp(ke)},role:"option",selected:et,value:void 0,"data-value":We.props.value})});Ee&&(_?le.length===0?ae=null:ae=le.reduce((We,et,ke)=>(We.push(et),ke{const{classes:t}=e;return t},w$={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>rn(e)&&e!=="variant",slot:"Root"},BIe=J(y$,w$)(""),zIe=J(u9,w$)(""),UIe=J(G6,w$)(""),d9=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=M6,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:T,variant:R="outlined"}=n,I=Ce(n,LIe),A=g?i9:FIe,F=Ca(),L=Ui({props:n,muiFormControl:F,states:["variant","error"]}),D=L.variant||R,U=j({},n,{variant:D,classes:i}),H=DIe(U),q=Ce(H,NIe),G=m||{standard:S.jsx(BIe,{ownerState:U}),outlined:S.jsx(zIe,{label:x,ownerState:U}),filled:S.jsx(UIe,{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},T)},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))})});d9.muiName="Select";const S$=d9;function VIe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=Rl();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({},Ry(e),Ry(b));return j({role:"presentation"},b,g,{onBlur:m(g),onFocus:h(g),onMouseEnter:x(g),onMouseLeave:w(g)})},onClickAway:l}}function WIe(e){return Ue("MuiSnackbarContent",e)}qe("MuiSnackbarContent",["root","message","action"]);const qIe=["action","className","message","role"],HIe=e=>{const{classes:t}=e;return Ve({root:["root"],action:["action"],message:["message"]},WIe,t)},GIe=J(Js,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=vSe(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}})}),KIe=J("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),QIe=J("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),XIe=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,qIe),l=n,f=HIe(l);return S.jsxs(GIe,j({role:s,square:!0,elevation:6,className:$e(f.root,a),ownerState:l,ref:r},c,{children:[S.jsx(KIe,{className:f.message,ownerState:l,children:i}),o?S.jsx(QIe,{className:f.action,ownerState:l,children:o}):null]}))}),YIe=XIe;function JIe(e){return Ue("MuiSnackbar",e)}qe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ZIe=["onEnter","onExited"],eje=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],tje=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${Se(r.vertical)}${Se(r.horizontal)}`]};return Ve(n,JIe,t)},xL=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"})})}),rje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSnackbar"}),o=na(),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=My,transitionDuration:g=a,TransitionProps:{onEnter:_,onExited:$}={}}=n,P=Ce(n.TransitionProps,ZIe),C=Ce(n,eje),T=j({},n,{anchorOrigin:{vertical:s,horizontal:c},autoHideDuration:l,disableWindowBlurListener:x,TransitionComponent:b,transitionDuration:g}),R=tje(T),{getRootProps:I,onClickAway:A}=VIe(j({},T)),[F,L]=d.useState(!0),D=Ko({elementType:xL,getSlotProps:I,externalForwardedProps:C,ownerState:T,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(H$e,j({onClickAway:A},m,{children:S.jsx(xL,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(YIe,j({message:w,action:i},h))}))}))}))}),nje=rje;function oje(e){return Ue("MuiTooltip",e)}const aje=qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),xs=aje,ije=["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 sje(e){return Math.round(e*1e5)/1e5}const lje=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,oje,t)},uje=J(A6,{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"}})})),cje=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:`${sje(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"})})),dje=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 Sh=!1;const wL=new jv;let Cf={x:0,y:0};function Oh(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const fje=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:T=!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=My,TransitionProps:ie}=C,be=Ce(C,ije),ge=d.isValidElement(R)?R:S.jsx("span",{children:R}),Ae=na(),Be=Ys(),[V,X]=d.useState(),[Y,ae]=d.useState(null),se=d.useRef(!1),le=U||W,Ee=Rl(),Ie=Rl(),rt=Rl(),at=Rl(),[Le,De]=Jc({controlled:oe,default:!1,name:"Tooltip",state:"open"});let ft=Le;const Pt=eu(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=mt=>{wL.clear(),Sh=!0,De(!0),ce&&!ft&&ce(mt)},ke=En(mt=>{wL.start(800+ne,()=>{Sh=!1}),De(!1),Oe&&ft&&Oe(mt),Ee.start(Ae.transitions.duration.shortest,()=>{se.current=!1})}),ze=mt=>{se.current&&mt.type!=="touchstart"||(V&&V.removeAttribute("title"),Ie.clear(),rt.clear(),q||Sh&&G?Ie.start(Sh?G:q,()=>{et(mt)}):et(mt))},ct=mt=>{Ie.clear(),rt.start(ne,()=>{ke(mt)})},{isFocusVisibleRef:bt,onBlur:Jt,onFocus:Rr,ref:hn}=B0(),[,oa]=d.useState(!1),Xn=mt=>{Jt(mt),bt.current===!1&&(oa(!1),ct(mt))},Vi=mt=>{V||X(mt.currentTarget),Rr(mt),bt.current===!0&&(oa(!0),ze(mt))},Xv=mt=>{se.current=!0;const yn=ge.props;yn.onTouchStart&&yn.onTouchStart(mt)},f_=mt=>{Xv(mt),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(mt)})},Yv=mt=>{ge.props.onTouchEnd&&ge.props.onTouchEnd(mt),We(),rt.start(ee,()=>{ke(mt)})};d.useEffect(()=>{if(!ft)return;function mt(yn){(yn.key==="Escape"||yn.key==="Esc")&&ke(yn)}return document.addEventListener("keydown",mt),()=>{document.removeEventListener("keydown",mt)}},[ke,ft]);const p_=sr(ge.ref,hn,X,r);!ve&&ve!==0&&(ft=!1);const Ud=d.useRef(),v_=mt=>{const yn=ge.props;yn.onMouseMove&&yn.onMouseMove(mt),Cf={x:mt.clientX,y:mt.clientY},Ud.current&&Ud.current.update()},ni={},Vd=typeof ve=="string";F?(ni.title=!ft&&Vd&&!D?ve:null,ni["aria-describedby"]=ft?Pt:null):(ni["aria-label"]=Vd?ve:null,ni["aria-labelledby"]=ft&&!Vd?Pt:null);const gn=j({},ni,be,ge.props,{className:$e(be.className,ge.props.className),onTouchStart:Xv,ref:p_},W?{onMouseMove:v_}:{}),nl={};H||(gn.onTouchStart=f_,gn.onTouchEnd=Yv),D||(gn.onMouseOver=Oh(ze,gn.onMouseOver),gn.onMouseLeave=Oh(ct,gn.onMouseLeave),le||(nl.onMouseOver=ze,nl.onMouseLeave=ct)),L||(gn.onFocus=Oh(Vi,gn.onFocus),gn.onBlur=Oh(Xn,gn.onBlur),le||(nl.onFocus=Vi,nl.onBlur=Xn));const m_=d.useMemo(()=>{var mt;let yn=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return(mt=ye.popperOptions)!=null&&mt.modifiers&&(yn=yn.concat(ye.popperOptions.modifiers)),j({},ye.popperOptions,{modifiers:yn})},[Y,ye]),ol=j({},C,{isRtl:Be,arrow:T,disableInteractive:le,placement:pe,PopperComponentProp:Re,touch:se.current}),Wd=lje(ol),Jv=(n=(o=he.popper)!=null?o:I.Popper)!=null?n:uje,Zv=(a=(i=(s=he.transition)!=null?s:I.Transition)!=null?i:_e)!=null?a:My,em=(c=(l=he.tooltip)!=null?l:I.Tooltip)!=null?c:cje,tm=(f=(v=he.arrow)!=null?v:I.Arrow)!=null?f:dje,rm=vc(Jv,j({},ye,(m=de.popper)!=null?m:A.popper,{className:$e(Wd.popper,ye==null?void 0:ye.className,(h=(x=de.popper)!=null?x:A.popper)==null?void 0:h.className)}),ol),h_=vc(Zv,j({},ie,(w=de.transition)!=null?w:A.transition),ol),g_=vc(em,j({},(O=de.tooltip)!=null?O:A.tooltip,{className:$e(Wd.tooltip,(b=(g=de.tooltip)!=null?g:A.tooltip)==null?void 0:b.className)}),ol),y_=vc(tm,j({},(_=de.arrow)!=null?_:A.arrow,{className:$e(Wd.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(Jv,j({as:Re??A6,placement:pe,anchorEl:W?{getBoundingClientRect:()=>({top:Cf.y,left:Cf.x,right:Cf.x,bottom:Cf.y,width:0,height:0})}:V,popperRef:Ud,open:V?ft:!1,id:Pt,transition:!0},nl,rm,{popperOptions:m_,children:({TransitionProps:mt})=>S.jsx(Zv,j({timeout:Ae.transitions.duration.shorter},mt,h_,{children:S.jsxs(em,j({},g_,{children:[ve,T?S.jsx(tm,j({},y_,{ref:ae})):null]}))}))}))]})}),Wr=fje;function pje(e){return Ue("MuiSwitch",e)}const wn=qe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),vje=["className","color","edge","size","sx"],mje=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,pje,t);return j({},t,c)},hje=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)"}}}}]}),gje=J(B6,{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"?U0(e.palette[t].main,.62):z0(e.palette[t].main,.55)}`}},[`&.${wn.checked} + .${wn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),yje=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}`})),bje=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%"})),_je=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,vje),f=j({},n,{color:a,edge:i,size:s}),v=mje(f),m=S.jsx(bje,{className:v.thumb,ownerState:f});return S.jsxs(hje,{className:$e(v.root,o),sx:c,ownerState:f,children:[S.jsx(gje,j({type:"checkbox",icon:m,checkedIcon:m,ref:r,ownerState:f},l,{classes:j({},v,{root:v.switchBase})})),S.jsx(yje,{className:v.track,ownerState:f})]})}),O$=_je;function xje(e){return Ue("MuiTab",e)}const wje=qe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),ns=wje,Sje=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Oje=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,xje,t)},Cje=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)})),Eje=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,Sje),P=j({},n,{disabled:a,disableFocusRipple:i,selected:w,icon:!!c,iconPosition:l,label:!!v,fullWidth:s,textColor:b,wrapped:_}),C=Oje(P),T=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(Cje,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:[T,v]}):S.jsxs(d.Fragment,{children:[v,T]}),f]}))}),f9=Eje,Pje=d.createContext(),p9=Pje;function $je(e){return Ue("MuiTable",e)}qe("MuiTable",["root","stickyHeader"]);const Rje=["className","component","padding","size","stickyHeader"],Tje=e=>{const{classes:t,stickyHeader:r}=e;return Ve({root:["root",r&&"stickyHeader"]},$je,t)},kje=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"})),SL="table",Ije=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTable"}),{className:o,component:a=SL,padding:i="normal",size:s="medium",stickyHeader:c=!1}=n,l=Ce(n,Rje),f=j({},n,{component:a,padding:i,size:s,stickyHeader:c}),v=Tje(f),m=d.useMemo(()=>({padding:i,size:s,stickyHeader:c}),[i,s,c]);return S.jsx(p9.Provider,{value:m,children:S.jsx(kje,j({as:a,role:a===SL?null:"table",ref:r,className:$e(v.root,o),ownerState:f},l))})}),v9=Ije,jje=d.createContext(),e_=jje;function Aje(e){return Ue("MuiTableBody",e)}qe("MuiTableBody",["root"]);const Mje=["className","component"],Fje=e=>{const{classes:t}=e;return Ve({root:["root"]},Aje,t)},Lje=J("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Nje={variant:"body"},OL="tbody",Dje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableBody"}),{className:o,component:a=OL}=n,i=Ce(n,Mje),s=j({},n,{component:a}),c=Fje(s);return S.jsx(e_.Provider,{value:Nje,children:S.jsx(Lje,j({className:$e(c.root,o),as:a,ref:r,role:a===OL?null:"rowgroup",ownerState:s},i))})}),m9=Dje;function Bje(e){return Ue("MuiTableCell",e)}const zje=qe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Uje=zje,Vje=["align","className","component","padding","scope","size","sortDirection","variant"],Wje=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,Bje,t)},qje=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"?U0(jt(e.palette.divider,1),.88):z0(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",[`&.${Uje.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})),Hje=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,Vje),h=d.useContext(p9),x=d.useContext(e_),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}),$=Wje(_);let P=null;return f&&(P=f==="asc"?"ascending":"descending"),S.jsx(qje,j({as:O,ref:r,className:$e($.root,a),"aria-sort":P,scope:b,ownerState:_},m))}),cn=Hje;function Gje(e){return Ue("MuiTableHead",e)}qe("MuiTableHead",["root"]);const Kje=["className","component"],Qje=e=>{const{classes:t}=e;return Ve({root:["root"]},Gje,t)},Xje=J("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Yje={variant:"head"},CL="thead",Jje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableHead"}),{className:o,component:a=CL}=n,i=Ce(n,Kje),s=j({},n,{component:a}),c=Qje(s);return S.jsx(e_.Provider,{value:Yje,children:S.jsx(Xje,j({as:a,className:$e(c.root,o),ref:r,role:a===CL?null:"rowgroup",ownerState:s},i))})}),h9=Jje;function Zje(e){return Ue("MuiToolbar",e)}qe("MuiToolbar",["root","gutters","regular","dense"]);const eAe=["className","component","disableGutters","variant"],tAe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ve({root:["root",!r&&"gutters",n]},Zje,t)},rAe=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),nAe=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,eAe),l=j({},n,{component:a,disableGutters:i,variant:s}),f=tAe(l);return S.jsx(rAe,j({as:a,className:$e(f.root,o),ref:r,ownerState:l},c))}),Fd=nAe,g9=_o(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),y9=_o(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),oAe=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],aAe=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,T=Ce(t,oAe),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:fO,z=(c=P.lastButtonIcon)!=null?c:pO,W=(l=P.nextButtonIcon)!=null?l:y9,te=(f=P.previousButtonIcon)!=null?f:g9,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},T,{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))}))]}))}),iAe=aAe;function sAe(e){return Ue("MuiTablePagination",e)}const lAe=qe("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),ip=lAe;var EL;const uAe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],cAe=J(cn,{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}})),dAe=J(Fd,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>j({[`& .${ip.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},[`& .${ip.actions}`]:{flexShrink:0,marginLeft:20}})),fAe=J("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),pAe=J("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>j({},e.typography.body2,{flexShrink:0})),vAe=J(S$,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>j({[`& .${ip.selectIcon}`]:t.selectIcon,[`& .${ip.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${ip.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),mAe=J(lo,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),hAe=J("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>j({},e.typography.body2,{flexShrink:0}));function gAe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function yAe(e){return`Go to ${e} page`}const bAe=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"]},sAe,t)},_Ae=d.forwardRef(function(t,r){var n;const o=Ge({props:t,name:"MuiTablePagination"}),{ActionsComponent:a=iAe,backIconButtonProps:i,className:s,colSpan:c,component:l=cn,count:f,disabled:v=!1,getItemAriaLabel:m=yAe,labelDisplayedRows:h=gAe,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:T=!1,slotProps:R={},slots:I={}}=o,A=Ce(o,uAe),F=o,L=bAe(F),D=(n=R==null?void 0:R.select)!=null?n:P,U=D.native?"option":mAe;let H;(l===cn||l==="td")&&(H=c||1e3);const q=eu(D.id),G=eu(D.labelId),z=()=>f===-1?(g+1)*_:_===-1?f:Math.min(f,(g+1)*_);return S.jsx(cAe,j({colSpan:H,ref:r,as:l,ownerState:F,className:$e(L.root,s)},A,{children:S.jsxs(dAe,{className:L.toolbar,children:[S.jsx(fAe,{className:L.spacer}),$.length>1&&S.jsx(pAe,{className:L.selectLabel,id:G,children:x}),$.length>1&&S.jsx(vAe,j({variant:"standard"},!D.variant&&{input:EL||(EL=S.jsx(X0,{}))},{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({},!Wp(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(hAe,{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:T,slotProps:R.actions,slots:I.actions,getItemAriaLabel:m,disabled:v})]})}))}),PL=_Ae;function xAe(e){return Ue("MuiTableRow",e)}const wAe=qe("MuiTableRow",["root","selected","hover","head","footer"]),$L=wAe,SAe=["className","component","hover","selected"],OAe=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"]},xAe,t)},CAe=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,[`&.${$L.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${$L.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)}}})),RL="tr",EAe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableRow"}),{className:o,component:a=RL,hover:i=!1,selected:s=!1}=n,c=Ce(n,SAe),l=d.useContext(e_),f=j({},n,{component:a,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),v=OAe(f);return S.jsx(CAe,j({as:a,ref:r,className:$e(v.root,o),role:a===RL?null:"row",ownerState:f},c))}),Qp=EAe,PAe=_o(S.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function $Ae(e){return Ue("MuiTableSortLabel",e)}const RAe=qe("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),nw=RAe,TAe=["active","children","className","direction","hideSortIcon","IconComponent"],kAe=e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon",`iconDirection${Se(r)}`]};return Ve(o,$Ae,t)},IAe=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,[`& .${nw.icon}`]:{opacity:.5}},[`&.${nw.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${nw.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),jAe=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)"})),AAe=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=PAe}=n,f=Ce(n,TAe),v=j({},n,{active:o,direction:s,hideSortIcon:c,IconComponent:l}),m=kAe(v);return S.jsxs(IAe,j({className:$e(m.root,i),component:"span",disableRipple:!0,ownerState:v,ref:r},f,{children:[a,c&&!o?null:S.jsx(jAe,{as:l,className:$e(m.icon),ownerState:v})]}))}),MAe=AAe;function FAe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function LAe(e,t,r,n={},o=()=>{}){const{ease:a=FAe,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 NAe=["onChange"],DAe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function BAe(e){const{onChange:t}=e,r=Ce(e,NAe),n=d.useRef(),o=d.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return vo(()=>{const i=kd(()=>{const c=n.current;a(),c!==n.current&&t(n.current)}),s=Go(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:DAe,ref:o},r))}function zAe(e){return Ue("MuiTabScrollButton",e)}const UAe=qe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),VAe=UAe,WAe=["className","slots","slotProps","direction","orientation","disabled"],qAe=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ve({root:["root",r,n&&"disabled"]},zAe,t)},HAe=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,[`&.${VAe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),GAe=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,WAe),v=Ys(),m=j({isRtl:v},a),h=qAe(m),x=(n=s.StartScrollButtonIcon)!=null?n:g9,w=(o=s.EndScrollButtonIcon)!=null?o:y9,O=Ko({elementType:x,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),b=Ko({elementType:w,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return S.jsx(HAe,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))}))}),KAe=GAe;function QAe(e){return Ue("MuiTabs",e)}const XAe=qe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ow=XAe,YAe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],TL=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,kL=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ch=(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}}},JAe=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"]},QAe,c)},ZAe=J("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ow.scrollButtons}`]:t.scrollButtons},{[`& .${ow.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&&{[`& .${ow.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),eMe=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"})),tMe=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"})),rMe=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})),nMe=J(BAe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),IL={},oMe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTabs"}),o=na(),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=KAe,scrollButtons:g="auto",selectionFollowsFocus:_,slots:$={},slotProps:P={},TabIndicatorProps:C={},TabScrollButtonProps:T={},textColor:R="primary",value:I,variant:A="standard",visibleScrollbar:F=!1}=n,L=Ce(n,YAe),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=JAe(te),ee=Ko({elementType:$.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:te}),Oe=Ko({elementType:$.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:te}),[ce,oe]=d.useState(!1),[pe,Re]=d.useState(IL),[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 ke=Be.current;let ze;if(ke){const bt=ke.getBoundingClientRect();ze={clientWidth:ke.clientWidth,scrollLeft:ke.scrollLeft,scrollTop:ke.scrollTop,scrollLeftNormalized:Nwe(ke,a?"rtl":"ltr"),scrollWidth:ke.scrollWidth,top:bt.top,bottom:bt.bottom,left:bt.left,right:bt.right}}let ct;if(ke&&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:ke,tabMeta:ze}=X();let ct=0,bt;if(U)bt="top",ze&&ke&&(ct=ze.top-ke.top+ke.scrollTop);else if(bt=a?"right":"left",ze&&ke){const Rr=a?ke.scrollLeftNormalized+ke.clientWidth-ke.scrollWidth:ke.scrollLeft;ct=(a?-1:1)*(ze[bt]-ke[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=(ke,{animation:ze=!0}={})=>{ze?LAe(H,Be.current,ke,{duration:o.transitions.duration.standard}):Be.current[H]=ke},se=ke=>{let ze=Be.current[H];U?ze+=ke:(ze+=ke*(a?-1:1),ze*=a&&a6()==="reverse"?-1:1),ae(ze)},le=()=>{const ke=Be.current[z];let ze=0;const ct=Array.from(V.current.children);for(let bt=0;btke){bt===0&&(ze=ke);break}ze+=Jt[z]}return ze},Ee=()=>{se(-1*le())},Ie=()=>{se(le())},rt=d.useCallback(ke=>{ge({overflow:null,scrollbarWidth:ke})},[]),at=()=>{const ke={};ke.scrollbarSizeListener=D?S.jsx(nMe,{onChange:rt,className:$e(ne.scrollableX,ne.hideScrollbar)}):null;const ct=D&&(g==="auto"&&(ye||he)||g===!0);return ke.scrollButtonStart=ct?S.jsx(b,j({slots:{StartScrollButtonIcon:$.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ee},orientation:O,direction:a?"right":"left",onClick:Ee,disabled:!ye},T,{className:$e(ne.scrollButtons,T.className)})):null,ke.scrollButtonEnd=ct?S.jsx(b,j({slots:{EndScrollButtonIcon:$.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Oe},orientation:O,direction:a?"left":"right",onClick:Ie,disabled:!he},T,{className:$e(ne.scrollButtons,T.className)})):null,ke},Le=En(ke=>{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:ke})}}}),De=En(()=>{D&&g!==!1&&ie(!_e)});d.useEffect(()=>{const ke=kd(()=>{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)})}),ke(),De()},bt=Go(Be.current);bt.addEventListener("resize",ke);let Jt;return typeof ResizeObserver<"u"&&(ze=new ResizeObserver(ke),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;ke.clear(),bt.removeEventListener("resize",ke),(Rr=Jt)==null||Rr.disconnect(),(hn=ze)==null||hn.disconnect()}},[Y,De]),d.useEffect(()=>{const ke=Array.from(V.current.children),ze=ke.length;if(typeof IntersectionObserver<"u"&&ze>0&&D&&g!==!1){const ct=ke[0],bt=ke[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(IL!==pe)},[Le,pe]),d.useImperativeHandle(c,()=>({updateIndicator:Y,updateScrollButtons:De}),[Y,De]);const ft=S.jsx(rMe,j({},C,{className:$e(ne.indicator,C.className),ownerState:te,style:j({},pe,C.style)}));let Pt=0;const Et=d.Children.map(f,ke=>{if(!d.isValidElement(ke))return null;const ze=ke.props.value===void 0?Pt:ke.props.value;Ae.set(ze,Pt);const ct=ze===I;return Pt+=1,d.cloneElement(ke,j({fullWidth:A==="fullWidth",indicator:ct&&!ce&&ft,selected:ct,selectionFollowsFocus:_,onChange:w,textColor:R,value:ze},Pt===1&&I===!1&&!ke.props.tabIndex?{tabIndex:0}:{}))}),We=ke=>{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"),ke.key){case Jt:ke.preventDefault(),Ch(ze,ct,kL);break;case Rr:ke.preventDefault(),Ch(ze,ct,TL);break;case"Home":ke.preventDefault(),Ch(ze,null,TL);break;case"End":ke.preventDefault(),Ch(ze,null,kL);break}},et=at();return S.jsxs(ZAe,j({className:$e(ne.root,v),ownerState:te,ref:r,as:m},L,{children:[et.scrollButtonStart,et.scrollbarSizeListener,S.jsxs(eMe,{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(tMe,{"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]}))}),b9=oMe;function aMe(e){return Ue("MuiTextField",e)}qe("MuiTextField",["root"]);const iMe=["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"],sMe={standard:y$,filled:G6,outlined:u9},lMe=e=>{const{classes:t}=e;return Ve({root:["root"]},aMe,t)},uMe=J(K6,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cMe=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:T=!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,iMe),ne=j({},n,{autoFocus:a,color:c,disabled:f,error:v,fullWidth:h,multiline:T,required:D,select:H,variant:W}),ee=lMe(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=eu(w),oe=x&&ce?`${ce}-helper-text`:void 0,pe=$&&ce?`${ce}-label`:void 0,Re=sMe[W],ye=S.jsx(Re,j({"aria-describedby":oe,autoComplete:o,autoFocus:a,defaultValue:l,fullWidth:h,multiline:T,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(uMe,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(Y6,j({htmlFor:ce,id:pe},O,{children:$})),H?S.jsx(S$,j({"aria-describedby":oe,id:ce,labelId:pe,value:z,input:ye},q,{children:i})):ye,x&&S.jsx(g$,j({id:oe},m,{children:x}))]}))}),zv=cMe,dMe=["getTrigger","target"];function fMe(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 pMe=typeof window<"u"?window:null;function _9(e={}){const{getTrigger:t=fMe,target:r=pMe}=e,n=Ce(e,dMe),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 C$={},aw={};const vMe=Xa(COe);var jL;function Xe(){return jL||(jL=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=vMe}(aw)),aw}var mMe=He;Object.defineProperty(C$,"__esModule",{value:!0});var Uv=C$.default=void 0,hMe=mMe(Xe()),gMe=S;Uv=C$.default=(0,hMe.default)((0,gMe.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 sp=function(){return sp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(ENe,null):null,t&&d.createElement(yFe,null),d.createElement(R9,null))},xFe=d.createElement(_Fe,null);L9.propTypes={alwaysOn:E.bool,children:E.node,className:E.string,color:E.oneOf(["default","inherit","primary","secondary","transparent"]),container:i0,open:E.bool,toolbar:E.element,userMenu:E.oneOfType([E.element,E.bool])};var wFe=d.createElement(j$,null),wl="RaAppBar",Il={appBar:"".concat(wl,"-appBar"),toolbar:"".concat(wl,"-toolbar"),menuButton:"".concat(wl,"-menuButton"),menuButtonIconClosed:"".concat(wl,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(wl,"-menuButtonIconOpen"),title:"".concat(wl,"-title")},SFe=J(wCe,{name:wl,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Il.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Il.menuButton)]={marginRight:"0.2em"},t["& .".concat(Il.title)]={},t}),D$={},OFe=He;Object.defineProperty(D$,"__esModule",{value:!0});var N9=D$.default=void 0,CFe=OFe(Xe()),EFe=S;N9=D$.default=(0,CFe.default)((0,EFe.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 B$={},PFe=He;Object.defineProperty(B$,"__esModule",{value:!0});var D9=B$.default=void 0,$Fe=PFe(Xe()),RFe=S;D9=B$.default=(0,$Fe.default)((0,RFe.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 up=function(){return up=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(tLe,{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(O$,{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(Ho,{label:r,source:a,resource:s}))),o&&d.createElement(W9,{className:"dragIcon",color:"disabled",fontSize:"small"}))},tLe=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(T){return C.includes(T.index)}).map(function(T){return T.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(q9,{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"}))))},Q$={},nLe=He;Object.defineProperty(Q$,"__esModule",{value:!0});var H9=Q$.default=void 0,oLe=nLe(Xe()),aLe=S;H9=Q$.default=(0,oLe.default)((0,aLe.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 X$={},iLe=He;Object.defineProperty(X$,"__esModule",{value:!0});var G9=X$.default=void 0,sLe=iLe(Xe()),lLe=S;G9=X$.default=(0,sLe.default)((0,lLe.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 uLe=function(){var e=je();return nz("ra.configurable.inspector.title",{_:"Inspector"}),d.createElement(it,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},K9=function(){var e=jP(),t=e.isEnabled,r=e.disable,n=e.title,o=e.titleOptions,a=e.editor,i=e.preferenceKey,s=d.useRef(!1),c=d0e(i),l=na(),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(T){var R=document==null?void 0:document.elementFromPoint(T.clientX,T.clientY);R.id==="inspector-dialog-title"&&(s.current=!0,T.dataTransfer.effectAllowed="move",T.dataTransfer.setData("inspector",""),setTimeout(function(){T.target.classList.add("hide")},0),_({x:T.clientX-w.x,y:T.clientY-w.y}))},P=function(T){s.current&&(O({x:T.clientX-g.x,y:T.clientY-g.y}),T.target.classList.remove("hide"),s.current=!1)};d.useEffect(function(){if(t){var T=function(R){R.dataTransfer.types.includes("inspector")&&R.preventDefault()};return document==null||document.addEventListener("dragover",T),function(){document==null||document.removeEventListener("dragover",T)}}},[t]),d.useEffect(function(){if(t){var T=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 T(),window==null||window.addEventListener("resize",T),function(){window==null||window.removeEventListener("resize",T)}}},[t,O,l.breakpoints.values.sm]);var C=function(){c(),h(function(T){return T+1})};return t?d.createElement(cLe,{className:cp.modal,elevation:3,draggable:!0,onDragStart:$,onDragEnd:P,sx:{left:w.x,top:w.y}},d.createElement("div",{className:cp.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(G9,{fontSize:"inherit"})),d.createElement(or,{"aria-label":f("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},d.createElement(H9,{fontSize:"inherit"}))),d.createElement("div",{className:cp.content,key:m},d.createElement(rz,{value:i},a||d.createElement(uLe,null)))):null},fg="RaInspector",cp={modal:"".concat(fg,"-modal"),title:"".concat(fg,"-title"),content:"".concat(fg,"-content")},cLe=J(Js,{name:fg,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(cp.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(cp.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});K9.displayName="Inspector";var Ol=function(){return Ol=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element"),Tb.createPortal(d.createElement(mLe,EO({title:r,defaultTitle:t,preferenceKey:n},o)),i)):null},o_=E.oneOfType([E.string,E.element]);el.propTypes={defaultTitle:E.string,className:E.string,record:E.any,title:o_};var gLe=function(e){var t=Lr().pathname,r=d.useRef(t);d.useEffect(function(){t!==r.current&&e()},[t,e])},PO=function(){return PO=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=HNe(O===!1||O===void 0?void 0:!O,l||!I||T||R);IP(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 DL(void 0,void 0,void 0,function(){var H;return BL(this,function(q){switch(q.label){case 0:return $!=null&&$.save?[4,$.save(U,fp(fp({},c),{transform:m}))]:[3,2];case 1:H=q.sent(),q.label=2;case 2:return H!=null&&sz(H,_.setError),[2]}})})},[_.setError,$,c,m]),L=d.useCallback(function(U){return DL(void 0,void 0,void 0,function(){return BL(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(qNe,fp({variant:x,type:v,color:r,"aria-label":D,disabled:A,onClick:L},b),R?d.createElement(Ad,{sx:UNe,size:14,thickness:3,color:"inherit"}):o,D)},UNe={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},VNe=d.createElement(v8,null);Gv.propTypes={className:E.string,invalid:E.bool,label:E.string,variant:E.oneOf(["text","outlined","contained"]),icon:E.element,alwaysEnable:E.bool};var WNe="RaSaveButton",qNe=J($r,{name:WNe,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}),HNe=function(e,t){return typeof e>"u"?t:e},GNe=function(){return fe.createElement(QNe,{onClick:XNe,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},KNe="RaSkipNavigationButton",QNe=J(Nt,{name:KNe,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})}}}),XNe=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},WO=function(){return WO=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(O8,{fontSize:"small"})))},m2={},EDe=He;Object.defineProperty(m2,"__esModule",{value:!0});var C8=m2.default=void 0,PDe=EDe(Xe()),$De=S;C8=m2.default=(0,PDe.default)((0,$De.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 JO=function(){return JO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){var oe=D[0];oe.id;var pe=TDe(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!==VS}).some(Boolean)?ge="":(ge=ge||{},d.Children.forEach(s,function(Ae){var Be;d.isValidElement(Ae)&&Ae.type!==VS&&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(y8.Provider,{value:ie},d.createElement(kDe,{className:Je(c,C&&"fullwidth",(m||v)&&"disabled"),sx:T},d.createElement("ul",{className:Sr.list},D.map(function(be,ge){return d.createElement(cDe,{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(r_,{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(RDe,{onClick:function(){return A(!0)}}))))):null};Jp.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 kDe=J("div",{name:Ta,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}),IDe=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())})},jDe=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]=p3e&&(a=f3e,i=!1,t=new s3e(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(t3e,{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})))};y2.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};y2.displayName="DatagridHeader";var O3e=function(e){var t=e.children,r=e.value;return fe.createElement(P8.Provider,{value:r},t)};const C3e=O3e;var b2={},E3e=He;Object.defineProperty(b2,"__esModule",{value:!0});var A8=b2.default=void 0,P3e=E3e(Xe()),$3e=S;A8=b2.default=(0,P3e.default)((0,$3e.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 oC=function(){return oC=Object.assign||function(e){for(var t,r=1,n=arguments.length;rR?I=as(as(as(as([],c.slice(0,R),!0),[c[T]],!1),c.slice(R,T),!0),c.slice(T+1),!0):I=as(as(as(as([],c.slice(0,T),!0),c.slice(T+1,R+1),!0),[c[T]],!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,rb({"aria-label":O,color:"primary",onClick:b,size:"large"},HL(e)),d.createElement(aC,null))):d.createElement(U3e,rb({size:"small",onClick:b,startIcon:d.createElement(aC,null)},HL(e)),O),d.createElement(_$,{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(q9,{key:P.index,source:P.source,label:P.label,index:P.index,selected:m.includes(P.index),onToggle:_,onMove:$})}))))},U3e=J($r,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),HL=function(e){e.resource,e.preferenceKey;var t=z3e(e,["resource","preferenceKey"]);return t};function V3e(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]||!q8(x)})},v=d.useCallback(function(m){return l(m.currentTarget.dataset.key)},[l]);return d.createElement(XB,{prefix:"resources.".concat(o,".fields"),concatenate:!1},d.createElement(yBe,Ms({className:t},mBe(n),{onSubmit:vBe}),f().map(function(m){return d.createElement(U8,{key:m.key||m.props.source,filterElement:m,handleHide:v,resource:o,className:ob.filterFormInput})}),d.createElement("div",{className:ob.clearFix})))},vBe=function(e){return e.preventDefault(),!1};V8.propTypes={resource:E.string,filters:E.arrayOf(E.node).isRequired,displayedFilters:E.object,hideFilter:E.func,initialValues:E.object,className:E.string};var mBe=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;var t=w2(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"]);return t},hBe=function(e,t){return Ms(Ms({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return Ub(Ms({},r),n.props.source,n.props.defaultValue)},{})),e)},gBe=function(e){return e.preventDefault(),e.stopPropagation(),!1},sC="RaFilterForm",ob={clearFix:"".concat(sC,"-clearFix"),filterFormInput:"".concat(sC,"-filterFormInput")},yBe=J("form",{name:sC,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(ob.clearFix)]={clear:"right"},t["& .".concat(ob.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),bBe=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=W8(e,o,t),n},(r=z8(t))!==null&&r!==void 0?r:{})},W8=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=W8(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,"")},q8=function(e){return e===""||typeof e>"u"?!0:typeof e=="object"?Object.keys(e).every(function(t){return q8(e[t])}):!1},S2={},_Be=He;Object.defineProperty(S2,"__esModule",{value:!0});var H8=S2.default=void 0,xBe=_Be(Xe()),wBe=S;H8=S2.default=(0,xBe.default)((0,wBe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var G8=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(Ho,{label:r.props.label,source:r.props.source,resource:a}))});G8.propTypes={filter:E.element.isRequired,onShow:E.func.isRequired,resource:E.string,autoFocus:E.bool};var O2=function(e){return pn("".concat(e,".savedQueries"),[])},C2=function(e){return Array.isArray(e)?e.filter(function(t){return SBe(t)}):[]},SBe=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")},OBe=function(e){var t=e.open,r=e.onClose,n=je(),o=tn(),a=o.resource,i=o.filterValues,s=o.displayedFilters,c=o.sort,l=o.perPage,f=O2(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}},$=C2(v);m($.concat(_)),w(""),r()};return d.createElement(Lv,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(Dv,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(Nv,null,d.createElement("form",{onSubmit:b},d.createElement(zv,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:x,onChange:O}))),d.createElement(h$,null,d.createElement($r,{onClick:r},n("ra.action.cancel")),d.createElement($r,{onClick:g,color:"primary"},n("ra.action.save"))))},eN=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($Be,lC({className:r},EBe(i)),d.createElement(Nt,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:L,variant:a,size:o},d.createElement(H8,null)),d.createElement(Z0,{open:R,anchorEl:A.current,onClose:D},F.map(function(oe,pe){return d.createElement(G8,{key:oe.props.source,filter:oe,resource:c,onShow:U,autoFocus:pe===0})}),P.map(function(oe,pe){return Uo(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:Xl.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(OBe,{open:q,onClose:z}),d.createElement(CBe,{open:ne,onClose:Oe})))},EBe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=K8(e,["displayedFilters","filterValues","showFilter"]);return t};Q8.propTypes={resource:E.string,filters:E.arrayOf(E.node),displayedFilters:E.object,filterValues:E.object,showFilter:E.func,className:E.string};var PBe="RaFilterButton",$Be=J("div",{name:PBe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),E2={},RBe=He;Object.defineProperty(E2,"__esModule",{value:!0});var X8=E2.default=void 0,TBe=RBe(Xe()),kBe=S;X8=E2.default=(0,TBe.default)((0,kBe.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 uC=function(){return uC=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(T){x(T.target.value)},[x]),$=d.useCallback(function(T){var R=T.from,I=T.to,A=T.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(T){return w("ra.navigation.".concat(T),{_:"Go to ".concat(T," page")})},[w]);if(c)return d.createElement(Fd,{variant:"dense"});if(m===0||f<1||m!=null&&f>b)return a!=null,null;if(O)return d.createElement(PL,ab({count:m??-1,rowsPerPage:v,page:f-1,onPageChange:g,rowsPerPageOptions:FBe,component:"span",labelDisplayedRows:$},Fp(i)));var C=n||(!c&&m!=null?J8:void 0);return d.createElement(PL,ab({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},Fp(i)))});tl.propTypes={actions:i0,limit:E.element,rowsPerPageOptions:E.arrayOf(E.oneOfType([E.number,E.exact({label:E.string.isRequired,value:E.number.isRequired})]))};var MBe=[5,10,25,50],FBe=[],ib=function(){return ib=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):YBe(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=oN(A,["ref"]);return d.createElement(zv,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||T,readOnly:T,helperText:Re?d.createElement(ru,{touched:U||H,error:L==null?void 0:L.message,helperText:i}):null,label:d.createElement(Ho,{label:s,source:x,resource:h,isRequired:G}),margin:c,inputProps:ds(ds({},W),{readOnly:T})},Dd(R)))};Bl.propTypes={label:E.oneOfType([E.string,E.bool,E.element]),resource:E.string,source:E.string,step:E.oneOfType([E.string,E.number])};var YBe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},JBe=function(e){return e==null||isNaN(e)?"":e.toString()},$2={},ZBe=He;Object.defineProperty($2,"__esModule",{value:!0});var R2=$2.default=void 0,eze=ZBe(Xe()),tze=S;R2=$2.default=(0,eze.default)((0,tze.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 T2={},rze=He;Object.defineProperty(T2,"__esModule",{value:!0});var tU=T2.default=void 0,nze=rze(Xe()),oze=S;tU=T2.default=(0,nze.default)((0,oze.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 lb=function(){return lb=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(uze,dC({hiddenLabel:!0,label:"",resettable:!0,placeholder:n("ra.action.search"),InputProps:{endAdornment:d.createElement(Cc,{position:"end"},d.createElement(X8,{color:"disabled"}))},size:"small"},r))},lze="RaSearchInput",uze=J(Er,{name:lze,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(mze,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(jo,{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(Ad,{className:Rc.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},gg="RaLoginForm",Rc={content:"".concat(gg,"-content"),button:"".concat(gg,"-button"),icon:"".concat(gg,"-icon")},mze=J(s0,{name:gg,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});nU.propTypes={redirectTo:E.string};var fC=function(){return fC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&f?d.createElement(lU,null):r;return o?d.createElement(Oze,hC({className:Je("edit-page",a)},Sze(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(jo,null," ")),n)):null};cU.propTypes={actions:E.oneOfType([E.element,E.bool]),aside:E.element,className:E.string,component:i0,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 Sze=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=uU(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},_g="RaEdit",Ic={main:"".concat(_g,"-main"),noActions:"".concat(_g,"-noActions"),card:"".concat(_g,"-card")},Oze=J("div",{name:_g,overridesResolver:function(e,t){return t.root}})((Ef={},Ef["& .".concat(Ic.main)]={display:"flex",alignItems:"flex-start"},Ef["& .".concat(Ic.noActions)]={marginTop:"1em"},Ef["& .".concat(Ic.card)]={flex:"1 1 auto"},Ef)),gC=function(){return gC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t.toString():""},_C=function(){return _C=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&O?Wze:r;return!o||!w&&l?null:d.createElement(Hze,xC({className:Je("show-page",a)},qze(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))};wU.propTypes={actions:E.oneOfType([E.element,E.bool]),children:E.node,className:E.string,emptyWhileLoading:E.bool,title:E.any};var qze=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=xU(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"]);return t},wg="RaShow",Ac={main:"".concat(wg,"-main"),noActions:"".concat(wg,"-noActions"),card:"".concat(wg,"-card")},Hze=J("div",{name:wg,overridesResolver:function(e,t){return t.root}})((Pf={},Pf["& .".concat(Ac.main)]={display:"flex"},Pf["& .".concat(Ac.noActions)]={marginTop:"1em"},Pf["& .".concat(Ac.card)]={flex:"1 1 auto"},Pf)),wC=function(){return wC=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=ht(e);if(!x)return null;var w=vt(x,l);if(w==null||w==="")return r?d.createElement(it,Ul({component:"span",variant:"body2",className:t},Qa(m)),r&&h(r,{_:r})):null;var O=v(w),b="";if(i&&c)b=uw?O.toLocaleString(n,o):O.toLocaleString();else if(c){var g=o??(typeof w=="string"&&w.length<=10?{timeZone:"UTC"}:void 0);b=uw?O.toLocaleDateString(n,g):O.toLocaleDateString()}else i&&(b=uw?O.toLocaleTimeString(n,o):O.toLocaleTimeString());return d.createElement(it,Ul({component:"span",variant:"body2",className:t},Qa(m)),b)};N2.propTypes=Ul(Ul(Ul({},it.propTypes),xa),{locales:E.oneOfType([E.string,E.arrayOf(E.string)]),options:E.object,showTime:E.bool,showDate:E.bool});N2.displayName="DateFieldImpl";var dn=pu(N2),r6e=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},uw=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}),Si=function(e){var t=e.children,r=e.debounce,n=e.filter,o=n===void 0?v6e: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?m6e:h,w=e.source,O=w===void 0?"id":w,b=e.target,g=ht(e),_=rbe({debounce:r,filter:o,page:i,perPage:f,record:g,reference:v,resource:m,sort:x,source:O,target:b});return fe.createElement(lu,{value:v},fe.createElement(CP,{value:_},t,c))};Si.propTypes={children:E.node.isRequired,className:E.string,filter:E.object,label:xa.label,perPage:E.number,record:E.any,reference:E.string.isRequired,resource:E.string,sortBy:E.string,sortByOrder:xa.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 v6e={},m6e={field:"id",order:"DESC"},Wl=function(){return Wl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")};TU.propTypes={children:E.node};var mp=function(){return mp=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(T(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||!T(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){T(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(T(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){T(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)T(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 ke=0;if(et!==-1){var ze=W.substring(Ie+1,et);ze&&ze.trim()===""&&(ke=ze.length)}return ke}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(T(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},Q6e=e=>/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e),X6e=async e=>{const t=`https://${e}/.well-known/matrix/client`;try{return(await Yl(t,{method:"GET"})).json["m.homeserver"].base_url}catch{return`https://${e}`}},Y6e=async e=>{const t=`${e}/_synapse/admin/v1/server_version`;return(await Yl(t,{method:"GET"})).json.server_version},J6e=async e=>{const t=`${e}/_matrix/client/versions`;return(await Yl(t,{method:"GET"})).json},Z6e=async e=>{const t=`${e}/_matrix/client/r0/login`;return(await Yl(t,{method:"GET"})).json.flows},e9e=e=>`${St.getItem("base_url")}/_matrix/media/v1/download/${e}?allow_redirect=true`;function cN(){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 t9e(e=20){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(r=>t[r%t.length]).join("")}const dw=!0,r9e=["id","displayname"].sort();function kh({value:e,text:t}){const r=je();return S.jsx("option",{value:e,children:r(t)})}const n9e=()=>{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(),T=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{uN.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=r9e.filter(ie=>{var be;return(be=oe.fields)==null?void 0:be.find(ge=>ie===ge)});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(uN.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=cN()),(Re===!1||V.password===void 0)&&(X.password=t9e()),dw&&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(dw&&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:cN()});Y++,Y>512?(console.warn("retry loop got stuck? pathological situation?"),_e.push(se)):await ae(le)}}},async()=>{dw&&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(jo,{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(jo,{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(mL,{onChange:U,value:g,disabled:c!==null,children:[S.jsx(kh,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),S.jsx(kh,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),S.jsxs(Uu,{children:[S.jsx(ml,{title:$("import_users.cards.passwords.header")}),S.jsxs(jo,{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(uO,{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(jo,{children:S.jsx("div",{children:S.jsxs(mL,{onChange:L,value:x,disabled:c!==null,children:[S.jsx(kh,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),S.jsx(kh,{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(jo,{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(jo,{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:T,disabled:c!==null})]})]}),te=f&&S.jsxs(jo,{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(D6,{children:[S.jsx(uO,{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(cu,{children:ee});return[S.jsx(el,{defaultTitle:$("import_users.title")}),Oe]},o9e=n9e,VU={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"}}}},a9e={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"}}}};vP(VU,a9e);const i9e={...VU,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."}}}},s9e={...zU,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",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 l9e={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 u9e={...l9e,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 c9e={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 d9e=gr(c9e),f9e={...d9e,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."}}}},p9e={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:"Третичный текст"}}}},v9e={...p9e,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 WU={};Object.defineProperty(WU,"__esModule",{value:!0});var m9e={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}"}}},h9e=WU.default=m9e;const g9e={...h9e,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:"媒体文件长度"}}}},qU=d.createContext({}),y9e=()=>d.useContext(qU),b9e=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"}})),_9e=()=>{const e=ZB(),t=Ht(),{restrictBaseUrl:r}=y9e(),n=typeof r=="string",o=Array.isArray(r),a=!(n||o),[i,s]=d.useState(!1),[c,l]=d.useState(!0),[f,v]=hP(),m=gP(),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 T=St.getItem("sso_base_url");if(St.removeItem("sso_base_url"),T){const R={base_url:T,username:null,password:null,loginToken:C};console.log("Base URL is:",T),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(T=>{s(!1),t(typeof T=="string"?T:typeof T>"u"||!T.message?"ra.auth.sign_in_error":T.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 T=ea(),[R,I]=d.useState(""),[A,F]=d.useState(""),L=()=>{var U;if(C.base_url||n)return;const D=(U=K6e(C.username))==null?void 0:U.domain;D&&X6e(D).then(H=>{(a||o&&r.includes(H))&&T.setValue("base_url",H)})};return d.useEffect(()=>{C.base_url===""&&o&&T.setValue("base_url",r[0]),Q6e(C.base_url)&&(Y6e(C.base_url).then(D=>I(`${h("synapseadmin.auth.server_version")} ${D}`)).catch(()=>I("")),J6e(C.base_url).then(D=>F(`${h("synapseadmin.auth.supports_specs")} ${D.versions.join(", ")}`)).catch(()=>F("")),Z6e(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,T]),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(k2,{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(s0,{defaultValues:{base_url:x},onSubmit:_,mode:"onTouched",children:[S.jsx(b9e,{children:S.jsxs(cu,{className:"card",children:[S.jsx(Cn,{className:"avatar",children:i?S.jsx(Ad,{size:25,thickness:2}):S.jsx(Gp,{className:"icon",children:S.jsx(Uv,{})})}),S.jsx(Cn,{className:"hint",children:h("synapseadmin.auth.welcome")}),S.jsxs(Cn,{className:"form",children:[S.jsx(S$,{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(VS,{children:C=>S.jsx(P,{...C})}),S.jsxs(D6,{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(e2,{})]})};var V2={},x9e=He;Object.defineProperty(V2,"__esModule",{value:!0});var HU=V2.default=void 0,w9e=x9e(Xe()),S9e=S;HU=V2.default=(0,w9e.default)((0,S9e.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 W2={},O9e=He;Object.defineProperty(W2,"__esModule",{value:!0});var GU=W2.default=void 0,C9e=O9e(Xe()),E9e=S;GU=W2.default=(0,C9e.default)((0,E9e.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 q2={},P9e=He;Object.defineProperty(q2,"__esModule",{value:!0});var vu=q2.default=void 0,$9e=P9e(Xe()),R9e=S;vu=q2.default=(0,$9e.default)((0,R9e.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"},H2=e=>new Date(e).getTime(),T9e=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}`},KU=()=>S.jsx(tl,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),k9e=e=>({backgroundColor:e.retry_last_ts>0?"#ffcccc":"white"}),I9e=[S.jsx(c_,{source:"destination",alwaysOn:!0})],QU=()=>{const e=ht(),t=ti(),r=Ht(),[n,{isLoading:o}]=gv();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(HU,{})})},j9e=()=>S.jsx(xo,{children:S.jsx(QU,{})}),A9e=()=>{const e=ht(),t=je();return S.jsxs("span",{children:[t("resources.destinations.name",1)," ",e==null?void 0:e.destination]})},M9e=e=>S.jsx(rl,{...e,filters:I9e,pagination:S.jsx(KU,{}),sort:{field:"destination",order:"ASC"},children:S.jsxs(Ur,{rowSx:k9e,rowClick:t=>`${t}/show/rooms`,bulkActionButtons:!1,children:[S.jsx(Fe,{source:"destination"}),S.jsx(dn,{source:"failure_ts",showTime:!0,options:fn}),S.jsx(dn,{source:"retry_last_ts",showTime:!0,options:fn}),S.jsx(Fe,{source:"retry_interval"}),S.jsx(Fe,{source:"last_successful_stream_ordering"}),S.jsx(QU,{})]})}),F9e=e=>{const t=je();return S.jsx(d_,{actions:S.jsx(j9e,{}),title:S.jsx(A9e,{}),...e,children:S.jsxs(Qv,{children:[S.jsxs(Lo,{label:"status",icon:S.jsx(du,{}),children:[S.jsx(Fe,{source:"destination"}),S.jsx(dn,{source:"failure_ts",showTime:!0,options:fn}),S.jsx(dn,{source:"retry_last_ts",showTime:!0,options:fn}),S.jsx(Fe,{source:"retry_interval"}),S.jsx(Fe,{source:"last_successful_stream_ordering"})]}),S.jsx(Lo,{label:t("resources.rooms.name",{smart_count:2}),icon:S.jsx(vu,{}),path:"rooms",children:S.jsx(Si,{reference:"destination_rooms",target:"destination",label:!1,pagination:S.jsx(KU,{}),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(Ga,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:S.jsx(Fe,{source:"name",sortable:!1})})]})})})]})})},L9e={name:"destinations",icon:GU,list:M9e,show:F9e};var G2={},N9e=He;Object.defineProperty(G2,"__esModule",{value:!0});var XU=G2.default=void 0,D9e=N9e(Xe()),B9e=S;XU=G2.default=(0,D9e.default)((0,B9e.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 z9e=[AP(/^[A-Za-z0-9._~-]{0,64}$/)],YU=[uz()],U9e=[uz(),m_e(64)],V9e=[S.jsx(za,{source:"valid",alwaysOn:!0})],W9e=e=>S.jsx(rl,{...e,filters:V9e,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:S.jsxs(Ur,{rowClick:"edit",children:[S.jsx(Fe,{source:"token",sortable:!1}),S.jsx(Ha,{source:"uses_allowed",sortable:!1}),S.jsx(Ha,{source:"pending",sortable:!1}),S.jsx(Ha,{source:"completed",sortable:!1}),S.jsx(dn,{source:"expiry_time",showTime:!0,options:fn,sortable:!1})]})}),q9e=e=>S.jsx(I2,{...e,redirect:"list",children:S.jsxs(zd,{toolbar:S.jsx(Bd,{children:S.jsx(Gv,{alwaysEnable:!0})}),children:[S.jsx(Er,{source:"token",autoComplete:"off",validate:z9e,resettable:!0}),S.jsx(Bl,{source:"length",validate:U9e,helperText:"resources.registration_tokens.helper.length",step:1}),S.jsx(Bl,{source:"uses_allowed",validate:YU,step:1}),S.jsx(u_,{source:"expiry_time",parse:H2})]})}),H9e=e=>S.jsx(j2,{...e,children:S.jsxs(zd,{children:[S.jsx(Er,{source:"token",disabled:!0}),S.jsx(Bl,{source:"pending",disabled:!0}),S.jsx(Bl,{source:"completed",disabled:!0}),S.jsx(Bl,{source:"uses_allowed",validate:YU,step:1}),S.jsx(u_,{source:"expiry_time",parse:H2,format:T9e})]})}),G9e={name:"registration_tokens",icon:XU,list:W9e,edit:H9e,create:q9e};var K2={},K9e=He;Object.defineProperty(K2,"__esModule",{value:!0});var Q2=K2.default=void 0,Q9e=K9e(Xe()),X9e=S;Q2=K2.default=(0,Q9e.default)((0,X9e.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 X2={},Y9e=He;Object.defineProperty(X2,"__esModule",{value:!0});var JU=X2.default=void 0,J9e=Y9e(Xe()),Z9e=S;JU=X2.default=(0,J9e.default)((0,Z9e.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");var Y2={},e8e=He;Object.defineProperty(Y2,"__esModule",{value:!0});var jC=Y2.default=void 0,t8e=e8e(Xe()),r8e=S;jC=Y2.default=(0,t8e.default)((0,r8e.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 J2={},n8e=He;Object.defineProperty(J2,"__esModule",{value:!0});var Z2=J2.default=void 0,o8e=n8e(Xe()),a8e=S;Z2=J2.default=(0,o8e.default)((0,a8e.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 eR={},i8e=He;Object.defineProperty(eR,"__esModule",{value:!0});var tR=eR.default=void 0,s8e=i8e(Xe()),l8e=S;tR=eR.default=(0,s8e.default)((0,l8e.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 rR={},u8e=He;Object.defineProperty(rR,"__esModule",{value:!0});var ZU=rR.default=void 0,c8e=u8e(Xe()),d8e=S;ZU=rR.default=(0,c8e.default)((0,d8e.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 nR={},f8e=He;Object.defineProperty(nR,"__esModule",{value:!0});var eV=nR.default=void 0,p8e=f8e(Xe()),v8e=S;eV=nR.default=(0,p8e.default)((0,v8e.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 m8e=({open:e,onClose:t,onSubmit:r})=>{const n=je(),o=a=>S.jsxs(Bd,{...a,children:[S.jsx(Gv,{label:"delete_media.action.send",icon:S.jsx(tR,{})}),S.jsx(Nt,{label:"ra.action.cancel",onClick:t,children:S.jsx(Z2,{})})]});return S.jsxs(Lv,{open:e,onClose:t,children:[S.jsx(Dv,{children:n("delete_media.action.send")}),S.jsxs(Nv,{children:[S.jsx(J0,{children:n("delete_media.helper.send")}),S.jsxs(zd,{toolbar:S.jsx(o,{}),onSubmit:r,children:[S.jsx(u_,{fullWidth:!0,source:"before_ts",label:"delete_media.fields.before_ts",defaultValue:0,parse:H2}),S.jsx(Bl,{fullWidth:!0,source:"size_gt",label:"delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),S.jsx(za,{fullWidth:!0,source:"keep_profiles",label:"delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},h8e=e=>{const t=na(),[r,n]=d.useState(!1),o=Ht(),a=yo(),{mutate:i,isLoading:s}=au(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(tR,{})}),S.jsx(m8e,{open:r,onClose:l,onSubmit:i})]})},g8e=e=>{const t=ht(),r=je(),n=ti(),o=Ht(),[a,{isLoading:i}]=hv(),[s]=gv();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(Uv,{})})})}),!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(eV,{})})})})]})},y8e=e=>{const t=ht(),r=je(),n=ti(),o=Ht(),[a,{isLoading:i}]=hv(),[s]=gv();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(jC,{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(jC,{})})})})]})},tV=({media_id:e,label:t})=>{const r=je(),n=e9e(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:ba,to:n,target:"_blank",rel:"noopener",style:{minWidth:0,paddingLeft:0,paddingRight:0},children:S.jsx(ZU,{})})})}),t]})},b8e=({source:e})=>{var o;const t=St.getItem("home_server"),r=ht();if(!r)return null;const n=(o=kb.get(r,e))==null?void 0:o.toString();return n?S.jsx(tV,{media_id:`${t}/${n}`,label:n}):null},_8e=({source:e})=>{var o;const t=ht();if(!t)return null;const r=(o=kb.get(t,e))==null?void 0:o.toString();if(!r)return null;const n=r.replace("mxc://","");return S.jsx(tV,{media_id:n,label:r})},x8e=()=>S.jsx(tl,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),w8e=e=>{const t=je();return S.jsx(d_,{...e,actions:S.jsx(S8e,{}),children:S.jsxs(Qv,{children:[S.jsxs(Lo,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:S.jsx(du,{}),children:[S.jsx(dn,{source:"received_ts",showTime:!0,options:fn,sortable:!0}),S.jsx(Ga,{source:"user_id",reference:"users",children:S.jsx(Fe,{source:"id"})}),S.jsx(Ha,{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(Ga,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:S.jsx(Fe,{source:"id"})})]}),S.jsxs(Lo,{label:"synapseadmin.reports.tabs.detail",icon:S.jsx(Q2,{}),path:"detail",children:[S.jsx(dn,{source:"event_json.origin_server_ts",showTime:!0,options:fn,sortable:!0}),S.jsx(Ga,{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(_8e,{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"})]})]})})},S8e=()=>{const e=ht();return S.jsx(xo,{children:S.jsx(fu,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},O8e=e=>S.jsx(rl,{...e,pagination:S.jsx(x8e,{}),sort:{field:"received_ts",order:"DESC"},children:S.jsxs(Ur,{rowClick:"show",bulkActionButtons:!1,children:[S.jsx(Fe,{source:"id",sortable:!1}),S.jsx(dn,{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"})]})}),C8e={name:"reports",icon:JU,list:O8e,show:w8e},oR=({source:e,...t})=>{var l;const r=ht(t),n=(l=kb.get(r,e))==null?void 0:l.toString(),{alt:o,classes:a,sizes:i,sx:s,variant:c}=t;return S.jsx(Gp,{alt:o,classes:a,sizes:i,src:n,sx:s,variant:c})},E8e=()=>S.jsx(tl,{rowsPerPageOptions:[100,500,1e3,2e3]}),P8e=e=>{const t=je();return S.jsx(fu,{...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(vu,{})})},rV=e=>S.jsx(Hv,{...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(vu,{})}),$8e=e=>{const{selectedIds:t}=tn(),r=Ht(),n=ti(),o=dB("rooms"),a=yo(),{mutate:i,isLoading:s}=au(()=>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(vu,{})})},R8e=e=>{const t=ht(),r=Ht(),n=ti(),[o,{isLoading:a}]=hv(),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(vu,{})})},T8e=()=>S.jsxs(xo,{children:[S.jsx(L8,{}),S.jsx(Nd,{})]}),k8e=()=>S.jsx(rl,{pagination:S.jsx(E8e,{}),perPage:100,actions:S.jsx(T8e,{}),children:S.jsxs(_2,{rowClick:e=>"/rooms/"+e+"/show",bulkActionButtons:S.jsx(rV,{}),omit:["room_id","canonical_alias","topic"],children:[S.jsx(oR,{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(Ha,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),S.jsx(Do,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),S.jsx(Do,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})}),I8e={name:"room_directory",icon:vu,list:k8e};var aR={},j8e=He;Object.defineProperty(aR,"__esModule",{value:!0});var nV=aR.default=void 0,A8e=j8e(Xe()),M8e=S;nV=aR.default=(0,A8e.default)((0,M8e.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 iR={},F8e=He;Object.defineProperty(iR,"__esModule",{value:!0});var oV=iR.default=void 0,L8e=F8e(Xe()),N8e=S;oV=iR.default=(0,L8e.default)((0,N8e.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward");var sR={},D8e=He;Object.defineProperty(sR,"__esModule",{value:!0});var lR=sR.default=void 0,B8e=D8e(Xe()),z8e=S;lR=sR.default=(0,B8e.default)((0,z8e.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 uR={},U8e=He;Object.defineProperty(uR,"__esModule",{value:!0});var AC=uR.default=void 0,V8e=U8e(Xe()),W8e=S;AC=uR.default=(0,V8e.default)((0,W8e.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 cR={},q8e=He;Object.defineProperty(cR,"__esModule",{value:!0});var aV=cR.default=void 0,H8e=q8e(Xe()),G8e=S;aV=cR.default=(0,H8e.default)((0,G8e.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 K8e=()=>S.jsx(tl,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Q8e=()=>{const e=ht(),t=je();let r="";return e&&(r=e.name!==""?e.name:e.id),S.jsxs("span",{children:[t("resources.rooms.name",1)," ",r]})},X8e=()=>{const e=ht(),t=e!=null&&e.public?S.jsx(P8e,{}):S.jsx(R8e,{});return S.jsxs(xo,{children:[t,S.jsx(fu,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},Y8e=e=>{const t=je();return S.jsx(d_,{...e,actions:S.jsx(X8e,{}),title:S.jsx(Q8e,{}),children:S.jsxs(Qv,{children:[S.jsxs(Lo,{label:"synapseadmin.rooms.tabs.basic",icon:S.jsx(du,{}),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(Ga,{source:"creator",reference:"users",children:S.jsx(Fe,{source:"id"})})]}),S.jsxs(Lo,{label:"synapseadmin.rooms.tabs.detail",icon:S.jsx(Q2,{}),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(Lo,{label:"synapseadmin.rooms.tabs.members",icon:S.jsx(lR,{}),path:"members",children:S.jsx(Si,{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(Ga,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:S.jsx(Fe,{source:"displayname",sortable:!1})})]})})}),S.jsxs(Lo,{label:"synapseadmin.rooms.tabs.permission",icon:S.jsx(R2,{}),path:"permission",children:[S.jsx(Do,{source:"federatable"}),S.jsx(Do,{source:"public"}),S.jsx(cw,{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(cw,{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(cw,{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(Lo,{label:t("resources.room_state.name",{smart_count:2}),icon:S.jsx(nV,{}),path:"state",children:S.jsx(Si,{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(dn,{source:"origin_server_ts",showTime:!0,options:fn,sortable:!1}),S.jsx(Fe,{source:"content",sortable:!1}),S.jsx(Ga,{source:"sender",reference:"users",sortable:!1,children:S.jsx(Fe,{source:"id"})})]})})}),S.jsxs(Lo,{label:"resources.forward_extremities.name",icon:S.jsx(oV,{}),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(Si,{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(dn,{source:"received_ts",showTime:!0,options:fn,sortable:!1}),S.jsx(Ha,{source:"depth",sortable:!1}),S.jsx(Fe,{source:"state_group",sortable:!1})]})})]})]})})},J8e=()=>S.jsxs(S.Fragment,{children:[S.jsx($8e,{}),S.jsx(rV,{}),S.jsx(Hv,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),Z8e=[S.jsx(c_,{source:"search_term",alwaysOn:!0})],eUe=()=>S.jsxs(xo,{children:[S.jsx(L8,{}),S.jsx(Nd,{})]}),tUe=e=>{const t=na();return S.jsx(rl,{...e,pagination:S.jsx(K8e,{}),sort:{field:"name",order:"ASC"},filters:Z8e,actions:S.jsx(eUe,{}),children:S.jsxs(_2,{rowClick:"show",bulkActionButtons:S.jsx(J8e,{}),omit:["joined_local_members","state_events","version","federatable"],children:[S.jsx(Do,{source:"is_encrypted",sortBy:"encryption",TrueIcon:AC,FalseIcon:aV,label:S.jsx(AC,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),S.jsx(OU,{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(Do,{source:"federatable"}),S.jsx(Do,{source:"public"})]})})},rUe={name:"rooms",icon:du,list:tUe,show:Y8e};var dR={},nUe=He;Object.defineProperty(dR,"__esModule",{value:!0});var iV=dR.default=void 0,oUe=nUe(Xe()),aUe=S;iV=dR.default=(0,oUe.default)((0,aUe.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer");const iUe=()=>{const{isLoading:e,total:t}=tn();return S.jsxs(xo,{children:[S.jsx(h8e,{}),S.jsx(Nd,{disabled:e||t===0})]})},sUe=()=>S.jsx(tl,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),lUe=[S.jsx(c_,{source:"search_term",alwaysOn:!0})],uUe=e=>S.jsx(rl,{...e,actions:S.jsx(iUe,{}),filters:lUe,pagination:S.jsx(sUe,{}),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(Ha,{source:"media_count"}),S.jsx(Ha,{source:"media_length"})]})}),cUe={name:"user_media_statistics",icon:iV,list:uUe};var fR={},dUe=He;Object.defineProperty(fR,"__esModule",{value:!0});var sV=fR.default=void 0,fUe=dUe(Xe()),pUe=S;sV=fR.default=(0,fUe.default)((0,pUe.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 pR={},vUe=He;Object.defineProperty(pR,"__esModule",{value:!0});var lV=pR.default=void 0,mUe=vUe(Xe()),hUe=S;lV=pR.default=(0,mUe.default)((0,hUe.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 vR={},gUe=He;Object.defineProperty(vR,"__esModule",{value:!0});var uV=vR.default=void 0,yUe=gUe(Xe()),bUe=S;uV=vR.default=(0,yUe.default)((0,bUe.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 mR={},_Ue=He;Object.defineProperty(mR,"__esModule",{value:!0});var cV=mR.default=void 0,xUe=_Ue(Xe()),wUe=S;cV=mR.default=(0,xUe.default)((0,wUe.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 hR={},SUe=He;Object.defineProperty(hR,"__esModule",{value:!0});var dV=hR.default=void 0,OUe=SUe(Xe()),CUe=S;dV=hR.default=(0,OUe.default)((0,CUe.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 gR={},EUe=He;Object.defineProperty(gR,"__esModule",{value:!0});var fV=gR.default=void 0,PUe=EUe(Xe()),$Ue=S;fV=gR.default=(0,PUe.default)((0,$Ue.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 yR={},RUe=He;Object.defineProperty(yR,"__esModule",{value:!0});var pV=yR.default=void 0,TUe=RUe(Xe()),kUe=S;pV=yR.default=(0,TUe.default)((0,kUe.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 bR={},IUe=He;Object.defineProperty(bR,"__esModule",{value:!0});var _R=bR.default=void 0,jUe=IUe(Xe()),AUe=S;_R=bR.default=(0,jUe.default)((0,AUe.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 vV=({open:e,onClose:t,onSubmit:r})=>{const n=je(),o=a=>S.jsxs(Bd,{...a,children:[S.jsx(Gv,{label:"resources.servernotices.action.send",disabled:a.pristine}),S.jsx(Nt,{label:"ra.action.cancel",onClick:t,children:S.jsx(Z2,{})})]});return S.jsxs(Lv,{open:e,onClose:t,children:[S.jsx(Dv,{children:n("resources.servernotices.action.send")}),S.jsxs(Nv,{children:[S.jsx(J0,{children:n("resources.servernotices.helper.send")}),S.jsx(zd,{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()})})]})]})},MUe=()=>{const e=ht(),[t,r]=d.useState(!1),n=Ht(),[o,{isLoading:a}]=hv(),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(_R,{})}),S.jsx(vV,{open:t,onClose:s,onSubmit:c})]})},FUe=()=>{const{selectedIds:e}=tn(),[t,r]=d.useState(!1),n=()=>r(!0),o=()=>r(!1),a=Ht(),i=dB("users"),s=yo(),{mutate:c,isLoading:l}=au(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(_R,{})}),S.jsx(vV,{open:t,onClose:o,onSubmit:c})]})},LUe=e=>{const t=ht();return t?S.jsx(n2,{...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},mV=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],hV=[{id:"bot",name:"bot"},{id:"support",name:"support"}],gV=()=>{const{isLoading:e,total:t}=tn();return S.jsxs(xo,{children:[S.jsx(P$,{}),S.jsx(Nd,{disabled:e||t===0,maxResults:1e4}),S.jsx(Nt,{component:ba,to:"/import_users",label:"CSV Import",children:S.jsx(r2,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})};gV.defaultProps={selectedIds:[],onUnselectItems:()=>null};const yV=()=>S.jsx(tl,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),NUe=[S.jsx(c_,{source:"name",alwaysOn:!0}),S.jsx(za,{source:"guests",alwaysOn:!0}),S.jsx(za,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0})],DUe=()=>S.jsxs(S.Fragment,{children:[S.jsx(FUe,{}),S.jsx(Hv,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),BUe=e=>S.jsx(rl,{...e,filters:NUe,filterDefaultValues:{guests:!0,deactivated:!1},sort:{field:"name",order:"ASC"},actions:S.jsx(gV,{}),pagination:S.jsx(yV,{}),children:S.jsxs(Ur,{rowClick:"edit",bulkActionButtons:S.jsx(DUe,{}),children:[S.jsx(oR,{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(Do,{source:"is_guest"}),S.jsx(Do,{source:"admin"}),S.jsx(Do,{source:"deactivated"}),S.jsx(Do,{source:"locked"}),S.jsx(Do,{source:"erased",sortable:!1}),S.jsx(dn,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:fn})]})}),zUe=[co(),Cy(253),AP(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],UUe=[co(),Cy(255)],VUe=()=>{const e=ht(),t=je();return S.jsxs(xo,{children:[!(e!=null&&e.deactivated)&&S.jsx(MUe,{}),S.jsx(fu,{label:"resources.users.action.erase",confirmTitle:t("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},WUe=e=>S.jsx(I2,{...e,children:S.jsxs(zd,{children:[S.jsx(Er,{source:"id",autoComplete:"off",validate:zUe}),S.jsx(Er,{source:"displayname",validate:Cy(256)}),S.jsx(k2,{source:"password",autoComplete:"new-password",validate:Cy(512)}),S.jsx(ev,{source:"user_type",choices:hV,translateChoice:!1,resettable:!0}),S.jsx(za,{source:"admin"}),S.jsx(Jy,{source:"threepids",children:S.jsxs(Jp,{disableReordering:!0,children:[S.jsx(ev,{source:"medium",choices:mV,validate:co()}),S.jsx(Er,{source:"address",validate:UUe})]})}),S.jsx(Jy,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:S.jsxs(Jp,{disableReordering:!0,children:[S.jsx(Er,{source:"auth_provider",validate:co()}),S.jsx(Er,{source:"external_id",label:"resources.users.fields.id",validate:co()})]})})]})}),qUe=()=>{const e=ht(),t=je();return S.jsxs("span",{children:[t("resources.users.name",{smart_count:1})," ",e?`"${e.displayname}"`:""]})},HUe=e=>{const t=je();return S.jsx(j2,{...e,title:S.jsx(qUe,{}),actions:S.jsx(VUe,{}),children:S.jsxs(A2,{children:[S.jsxs(da,{label:t("resources.users.name",{smart_count:1}),icon:S.jsx(fV,{}),children:[S.jsx(oR,{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(k2,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),S.jsx(ev,{source:"user_type",choices:hV,translateChoice:!1,resettable:!0}),S.jsx(za,{source:"admin"}),S.jsx(za,{source:"locked"}),S.jsx(za,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),S.jsx(za,{source:"erased",disabled:!0}),S.jsx(dn,{source:"creation_ts_ms",showTime:!0,options:fn}),S.jsx(Fe,{source:"consent_version"})]}),S.jsx(da,{label:"resources.users.threepid",icon:S.jsx(lV,{}),path:"threepid",children:S.jsx(Jy,{source:"threepids",children:S.jsxs(Jp,{disableReordering:!0,children:[S.jsx(ev,{source:"medium",choices:mV}),S.jsx(Er,{source:"address"})]})})}),S.jsx(da,{label:"synapseadmin.users.tabs.sso",icon:S.jsx(sV,{}),path:"sso",children:S.jsx(Jy,{source:"external_ids",label:!1,children:S.jsxs(Jp,{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(uV,{}),path:"devices",children:S.jsx(Si,{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(dn,{source:"last_seen_ts",showTime:!0,options:fn,sortable:!1}),S.jsx(LUe,{})]})})}),S.jsx(da,{label:"resources.connections.name",icon:S.jsx(pV,{}),path:"connections",children:S.jsx(Ga,{reference:"connections",source:"id",label:!1,link:!1,children:S.jsx(Kze,{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(dn,{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(dV,{}),path:"media",children:S.jsx(Si,{reference:"users_media",target:"user_id",label:!1,pagination:S.jsx(yV,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:S.jsxs(Ur,{style:{width:"100%"},children:[S.jsx(b8e,{source:"media_id"}),S.jsx(dn,{source:"created_ts",showTime:!0,options:fn}),S.jsx(dn,{source:"last_access_ts",showTime:!0,options:fn}),S.jsx(Ha,{source:"media_length"}),S.jsx(Fe,{source:"media_type"}),S.jsx(Fe,{source:"upload_name"}),S.jsx(Fe,{source:"quarantined_by"}),S.jsx(y8e,{label:"resources.quarantine_media.action.name"}),S.jsx(g8e,{label:"resources.users_media.fields.safe_from_quarantine"}),S.jsx(fu,{mutationMode:"pessimistic",redirect:!1})]})})}),S.jsx(da,{label:t("resources.rooms.name",{smart_count:2}),icon:S.jsx(du,{}),path:"rooms",children:S.jsx(Si,{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(Ga,{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(cV,{}),path:"pushers",children:S.jsx(Si,{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})]})})})]})})},GUe={name:"users",icon:lR,list:BUe,edit:HUe,create:WUe},KUe={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}))};e=e.replace(/\/+$/g,""),St.setItem("base_url",e);const i=window.decodeURIComponent(e)+"/_matrix/client/r0/login",{json:s}=await Yl(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 Yl(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}`}),Yl(e,t)},dN=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?dN(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?dN(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 $f(e,t){if(!(t===null&&e!=="user_type"))return t}function fN(e){return e==="DESC"?"b":"f"}const QUe={getList:async(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:o,deactivated:a,search_term:i,destination:s,valid:c}=t.filter,{page:l,perPage:f}=t.pagination,{field:v,order:m}=t.sort,h=(l-1)*f,x={from:h,limit:f,user_id:r,search_term:i,name:n,destination:s,guests:o,deactivated:a,valid:c,order_by:v,dir:fN(m)},w=St.getItem("base_url");if(!w||!(e in _r))throw Error("Homeserver not set");const O=_r[e],g=`${w+O.path}?${Xl.stringify(x)}`,{json:_}=await no(g);return{data:_[O.data].map(O.map),total:O.total(_,h,f)}},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:fN(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}?${Xl.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,$f)});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,$f)}))).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,$f)});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,$f)})}))).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,$f)});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}},Ih={de:i9e,en:s9e,fr:u9e,it:f9e,ru:v9e,zh:g9e},XUe=y4(e=>Ih[e]?kb.merge({},Ih.en,Ih[e]):Ih.en,$pe(),[{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:"简体中文"}]),YUe=()=>S.jsxs(G6e,{disableTelemetry:!0,requireAuth:!0,loginPage:_9e,authProvider:KUe,dataProvider:QUe,i18nProvider:XUe,darkTheme:{palette:{mode:"dark"}},children:[S.jsx(FB,{children:S.jsx(zr,{path:"/import_users",element:S.jsx(o9e,{})})}),S.jsx(Ir,{...GUe}),S.jsx(Ir,{...rUe}),S.jsx(Ir,{...cUe}),S.jsx(Ir,{...C8e}),S.jsx(Ir,{...I8e}),S.jsx(Ir,{...L9e}),S.jsx(Ir,{...G9e}),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("config.json").then(e=>e.json()).then(e=>C3(document.getElementById("root")).render(S.jsx(fe.StrictMode,{children:S.jsx(qU.Provider,{value:e,children:S.jsx(YUe,{})})}))); diff --git a/assets/index-IqI7-CAq.js b/assets/index-IqI7-CAq.js deleted file mode 100644 index 948b3193..00000000 --- a/assets/index-IqI7-CAq.js +++ /dev/null @@ -1,305 +0,0 @@ -function PQ(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 oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qa(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 fN={exports:{}},pb={},pN={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 tv=Symbol.for("react.element"),$Q=Symbol.for("react.portal"),RQ=Symbol.for("react.fragment"),TQ=Symbol.for("react.strict_mode"),kQ=Symbol.for("react.profiler"),IQ=Symbol.for("react.provider"),jQ=Symbol.for("react.context"),AQ=Symbol.for("react.forward_ref"),MQ=Symbol.for("react.suspense"),FQ=Symbol.for("react.memo"),LQ=Symbol.for("react.lazy"),qk=Symbol.iterator;function NQ(e){return e===null||typeof e!="object"?null:(e=qk&&e[qk]||e["@@iterator"],typeof e=="function"?e:null)}var vN={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},mN=Object.assign,hN={};function ld(e,t,r){this.props=e,this.context=t,this.refs=hN,this.updater=r||vN}ld.prototype.isReactComponent={};ld.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")};ld.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gN(){}gN.prototype=ld.prototype;function AC(e,t,r){this.props=e,this.context=t,this.refs=hN,this.updater=r||vN}var MC=AC.prototype=new gN;MC.constructor=AC;mN(MC,ld.prototype);MC.isPureReactComponent=!0;var Hk=Array.isArray,yN=Object.prototype.hasOwnProperty,FC={current:null},bN={key:!0,ref:!0,__self:!0,__source:!0};function _N(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)yN.call(t,n)&&!bN.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,T=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}}}})(CN);ON.exports=CN;var QQ=ON.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 XQ=d,fo=QQ;function Te(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"),fw=Object.prototype.hasOwnProperty,YQ=/^[: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]*$/,Kk={},Qk={};function JQ(e){return fw.call(Qk,e)?!0:fw.call(Kk,e)?!1:YQ.test(e)?Qk[e]=!0:(Kk[e]=!0,!1)}function ZQ(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 eX(e,t,r,n){if(t===null||typeof t>"u"||ZQ(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 Rn(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 Zr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Zr[e]=new Rn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Zr[t]=new Rn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Zr[e]=new Rn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Zr[e]=new Rn(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){Zr[e]=new Rn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Zr[e]=new Rn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Zr[e]=new Rn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Zr[e]=new Rn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Zr[e]=new Rn(e,5,!1,e.toLowerCase(),null,!1,!1)});var NC=/[\-:]([a-z])/g;function DC(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(NC,DC);Zr[t]=new Rn(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(NC,DC);Zr[t]=new Rn(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(NC,DC);Zr[t]=new Rn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Zr[e]=new Rn(e,1,!1,e.toLowerCase(),null,!1,!1)});Zr.xlinkHref=new Rn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Zr[e]=new Rn(e,1,!1,e.toLowerCase(),null,!0,!0)});function BC(e,t,r,n){var o=Zr.hasOwnProperty(t)?Zr[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{T1=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?$f(e):""}function tX(e){switch(e.tag){case 5:return $f(e.type);case 16:return $f("Lazy");case 13:return $f("Suspense");case 19:return $f("SuspenseList");case 0:case 2:case 15:return e=k1(e.type,!1),e;case 11:return e=k1(e.type.render,!1),e;case 1:return e=k1(e.type,!0),e;default:return""}}function hw(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 Gu:return"Fragment";case Hu:return"Portal";case pw:return"Profiler";case zC:return"StrictMode";case vw:return"Suspense";case mw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $N:return(e.displayName||"Context")+".Consumer";case PN:return(e._context.displayName||"Context")+".Provider";case UC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case VC:return t=e.displayName||null,t!==null?t:hw(e.type)||"Memo";case as:t=e._payload,e=e._init;try{return hw(e(t))}catch{}}return null}function rX(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 hw(t);case 8:return t===zC?"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 Ms(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function TN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nX(e){var t=TN(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 Hm(e){e._valueTracker||(e._valueTracker=nX(e))}function kN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=TN(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Sg(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 gw(e,t){var r=t.checked;return ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Yk(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ms(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 IN(e,t){t=t.checked,t!=null&&BC(e,"checked",t,!1)}function yw(e,t){IN(e,t);var r=Ms(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")?bw(e,t.type,r):t.hasOwnProperty("defaultValue")&&bw(e,t.type,Ms(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jk(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 bw(e,t,r){(t!=="number"||Sg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Rf=Array.isArray;function vc(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Gm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Lf={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},oX=["Webkit","ms","Moz","O"];Object.keys(Lf).forEach(function(e){oX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lf[t]=Lf[e]})});function FN(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Lf.hasOwnProperty(e)&&Lf[e]?(""+t).trim():t+"px"}function LN(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=FN(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var aX=ar({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 ww(e,t){if(t){if(aX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function Sw(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 Ow=null;function WC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cw=null,mc=null,hc=null;function tI(e){if(e=ov(e)){if(typeof Cw!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=yb(t),Cw(e.stateNode,e.type,t))}}function NN(e){mc?hc?hc.push(e):hc=[e]:mc=e}function DN(){if(mc){var e=mc,t=hc;if(hc=mc=null,tI(e),t)for(e=0;e>>=0,e===0?32:31-(hX(e)/gX|0)|0}var Km=64,Qm=4194304;function Tf(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 Pg(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=Tf(s):(a&=i,a!==0&&(n=Tf(a)))}else i=r&~o,i!==0?n=Tf(i):a!==0&&(n=Tf(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 rv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ma(t),e[t]=r}function xX(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=Df),cI=" ",dI=!1;function aD(e,t){switch(e){case"keyup":return QX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ku=!1;function YX(e,t){switch(e){case"compositionend":return iD(t);case"keypress":return t.which!==32?null:(dI=!0,cI);case"textInput":return e=t.data,e===cI&&dI?null:e;default:return null}}function JX(e,t){if(Ku)return e==="compositionend"||!JC&&aD(e,t)?(e=nD(),Mh=QC=vs=null,Ku=!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=mI(r)}}function cD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dD(){for(var e=window,t=Sg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Sg(e.document)}return t}function ZC(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 sY(e){var t=dD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&cD(r.ownerDocument.documentElement,r)){if(n!==null&&ZC(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=hI(r,a);var i=hI(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,Qu=null,kw=null,zf=null,Iw=!1;function gI(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Iw||Qu==null||Qu!==Sg(n)||(n=Qu,"selectionStart"in n&&ZC(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}),zf&&Sp(zf,n)||(zf=n,n=Tg(kw,"onSelect"),0Ju||(e.current=Nw[Ju],Nw[Ju]=null,Ju--)}function Wt(e,t){Ju++,Nw[Ju]=e.current,e.current=t}var Fs={},pn=Bs(Fs),Vn=Bs(!1),Wl=Fs;function Lc(e,t){var r=e.type.contextTypes;if(!r)return Fs;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 Wn(e){return e=e.childContextTypes,e!=null}function Ig(){Xt(Vn),Xt(pn)}function OI(e,t,r){if(pn.current!==Fs)throw Error(Te(168));Wt(pn,t),Wt(Vn,r)}function _D(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(Te(108,rX(e)||"Unknown",o));return ar({},r,n)}function jg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fs,Wl=pn.current,Wt(pn,e),Wt(Vn,Vn.current),!0}function CI(e,t,r){var n=e.stateNode;if(!n)throw Error(Te(169));r?(e=_D(e,t,Wl),n.__reactInternalMemoizedMergedChildContext=e,Xt(Vn),Xt(pn),Wt(pn,e)):Xt(Vn),Wt(Vn,r)}var gi=null,bb=!1,q1=!1;function xD(e){gi===null?gi=[e]:gi.push(e)}function bY(e){bb=!0,xD(e)}function zs(){if(!q1&&gi!==null){q1=!0;var e=0,t=jt;try{var r=gi;for(jt=1;e>=i,o-=i,_i=1<<32-ma(t)+o|r<R?(I=T,T=null):I=T.sibling;var A=m(b,T,_[R],$);if(A===null){T===null&&(T=I);break}e&&T&&A.alternate===null&&t(b,T),g=a(A,g,R),C===null?P=A:C.sibling=A,C=A,T=I}if(R===_.length)return r(b,T),er&&hl(b,R),P;if(T===null){for(;R<_.length;R++)T=v(b,_[R],$),T!==null&&(g=a(T,g,R),C===null?P=T:C.sibling=T,C=T);return er&&hl(b,R),P}for(T=n(b,T);R<_.length;R++)I=h(T,b,R,_[R],$),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?R:I.key),g=a(I,g,R),C===null?P=I:C.sibling=I,C=I);return e&&T.forEach(function(F){return t(b,F)}),er&&hl(b,R),P}function w(b,g,_,$){var P=af(_);if(typeof P!="function")throw Error(Te(150));if(_=P.call(_),_==null)throw Error(Te(151));for(var C=P=null,T=g,R=g=0,I=null,A=_.next();T!==null&&!A.done;R++,A=_.next()){T.index>R?(I=T,T=null):I=T.sibling;var F=m(b,T,A.value,$);if(F===null){T===null&&(T=I);break}e&&T&&F.alternate===null&&t(b,T),g=a(F,g,R),C===null?P=F:C.sibling=F,C=F,T=I}if(A.done)return r(b,T),er&&hl(b,R),P;if(T===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 er&&hl(b,R),P}for(T=n(b,T);!A.done;R++,A=_.next())A=h(T,b,R,A.value,$),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?R:A.key),g=a(A,g,R),C===null?P=A:C.sibling=A,C=A);return e&&T.forEach(function(L){return t(b,L)}),er&&hl(b,R),P}function O(b,g,_,$){if(typeof _=="object"&&_!==null&&_.type===Gu&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case qm:e:{for(var P=_.key,C=g;C!==null;){if(C.key===P){if(P=_.type,P===Gu){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===as&&$I(P)===C.type){r(b,C.sibling),g=o(C,_.props),g.ref=df(b,C,_),g.return=b,b=g;break e}r(b,C);break}else t(b,C);C=C.sibling}_.type===Gu?(g=jl(_.props.children,b.mode,$,_.key),g.return=b,b=g):($=Vh(_.type,_.key,_.props,null,b.mode,$),$.ref=df(b,g,_),$.return=b,b=$)}return i(b);case Hu: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=Z1(_,b.mode,$),g.return=b,b=g}return i(b);case as:return C=_._init,O(b,g,C(_._payload),$)}if(Rf(_))return x(b,g,_,$);if(af(_))return w(b,g,_,$);rh(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=J1(_,b.mode,$),g.return=b,b=g),i(b)):r(b,g)}return O}var Dc=CD(!0),ED=CD(!1),Fg=Bs(null),Lg=null,tc=null,nE=null;function oE(){nE=tc=Lg=null}function aE(e){var t=Fg.current;Xt(Fg),e._currentValue=t}function zw(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 yc(e,t){Lg=e,nE=tc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(zn=!0),e.firstContext=null)}function Vo(e){var t=e._currentValue;if(nE!==e)if(e={context:e,memoizedValue:t,next:null},tc===null){if(Lg===null)throw Error(Te(308));tc=e,Lg.dependencies={lanes:0,firstContext:e}}else tc=tc.next=e;return t}var Cl=null;function iE(e){Cl===null?Cl=[e]:Cl.push(e)}function PD(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,iE(t)):(r.next=o.next,o.next=r),t.interleaved=r,Ei(e,n)}function Ei(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 is=!1;function sE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $D(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 Si(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Es(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,St&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Ei(e,r)}return o=n.interleaved,o===null?(t.next=t,iE(n)):(t.next=o.next,o.next=t),n.interleaved=t,Ei(e,r)}function Lh(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,HC(e,r)}}function RI(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 Ng(e,t,r,n){var o=e.updateQueue;is=!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=ar({},v,m);break e;case 2:is=!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);Gl|=i,e.lanes=i,e.memoizedState=v}}function TI(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=G1.transition;G1.transition={};try{e(!1),t()}finally{jt=r,G1.transition=n}}function qD(){return Wo().memoizedState}function SY(e,t,r){var n=$s(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},HD(e))GD(t,r);else if(r=PD(e,t,r,n),r!==null){var o=En();ha(r,e,n,o),KD(r,t,n)}}function OY(e,t,r){var n=$s(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(HD(e))GD(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,ga(s,i)){var c=t.interleaved;c===null?(o.next=o,iE(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}r=PD(e,t,o,n),r!==null&&(o=En(),ha(r,e,n,o),KD(r,t,n))}}function HD(e){var t=e.alternate;return e===or||t!==null&&t===or}function GD(e,t){Uf=Bg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function KD(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,HC(e,r)}}var zg={readContext:Vo,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useInsertionEffect:on,useLayoutEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useMutableSource:on,useSyncExternalStore:on,useId:on,unstable_isNewReconciler:!1},CY={readContext:Vo,useCallback:function(e,t){return Ta().memoizedState=[e,t===void 0?null:t],e},useContext:Vo,useEffect:II,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Dh(4194308,4,BD.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Dh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dh(4,2,e,t)},useMemo:function(e,t){var r=Ta();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ta();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=SY.bind(null,or,e),[n.memoizedState,e]},useRef:function(e){var t=Ta();return e={current:e},t.memoizedState=e},useState:kI,useDebugValue:mE,useDeferredValue:function(e){return Ta().memoizedState=e},useTransition:function(){var e=kI(!1),t=e[0];return e=wY.bind(null,e[1]),Ta().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=or,o=Ta();if(er){if(r===void 0)throw Error(Te(407));r=r()}else{if(r=t(),Ur===null)throw Error(Te(349));Hl&30||ID(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,II(AD.bind(null,n,a,e),[e]),n.flags|=2048,kp(9,jD.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Ta(),t=Ur.identifierPrefix;if(er){var r=xi,n=_i;r=(n&~(1<<32-ma(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Rp++,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[Fa]=t,e[Ep]=n,o3(e,t,!1,!1),t.stateNode=e;e:{switch(i=Sw(r,n),r){case"dialog":Gt("cancel",e),Gt("close",e),o=n;break;case"iframe":case"object":case"embed":Gt("load",e),o=n;break;case"video":case"audio":for(o=0;oUc&&(t.flags|=128,n=!0,ff(a,!1),t.lanes=4194304)}else{if(!n)if(e=Dg(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ff(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!er)return an(t),null}else 2*vr()-a.renderingStartTime>Uc&&r!==1073741824&&(t.flags|=128,n=!0,ff(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=vr(),t.sibling=null,r=rr.current,Wt(rr,n?r&1|2:r&1),t):(an(t),null);case 22:case 23:return xE(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?no&1073741824&&(an(t),t.subtreeFlags&6&&(t.flags|=8192)):an(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function jY(e,t){switch(tE(t),t.tag){case 1:return Wn(t.type)&&Ig(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bc(),Xt(Vn),Xt(pn),cE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uE(t),null;case 13:if(Xt(rr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));Nc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xt(rr),null;case 4:return Bc(),null;case 10:return aE(t.type._context),null;case 22:case 23:return xE(),null;case 24:return null;default:return null}}var oh=!1,ln=!1,AY=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function rc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){cr(e,t,n)}else r.current=null}function Xw(e,t,r){try{r()}catch(n){cr(e,t,n)}}var VI=!1;function MY(e,t){if(jw=$g,e=dD(),ZC(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(Aw={focusedElem:e,selectionRange:r},$g=!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:ua(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(Te(163))}}catch($){cr(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,Qe=e;break}Qe=t.return}return x=VI,VI=!1,x}function Vf(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&&Xw(t,r,a)}o=o.next}while(o!==n)}}function wb(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 Yw(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 s3(e){var t=e.alternate;t!==null&&(e.alternate=null,s3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fa],delete t[Ep],delete t[Lw],delete t[gY],delete t[yY])),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 l3(e){return e.tag===5||e.tag===3||e.tag===4}function WI(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||l3(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 Jw(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=kg));else if(n!==4&&(e=e.child,e!==null))for(Jw(e,t,r),e=e.sibling;e!==null;)Jw(e,t,r),e=e.sibling}function Zw(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(Zw(e,t,r),e=e.sibling;e!==null;)Zw(e,t,r),e=e.sibling}var Qr=null,da=!1;function Ji(e,t,r){for(r=r.child;r!==null;)u3(e,t,r),r=r.sibling}function u3(e,t,r){if(za&&typeof za.onCommitFiberUnmount=="function")try{za.onCommitFiberUnmount(vb,r)}catch{}switch(r.tag){case 5:ln||rc(r,t);case 6:var n=Qr,o=da;Qr=null,Ji(e,t,r),Qr=n,da=o,Qr!==null&&(da?(e=Qr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Qr.removeChild(r.stateNode));break;case 18:Qr!==null&&(da?(e=Qr,r=r.stateNode,e.nodeType===8?W1(e.parentNode,r):e.nodeType===1&&W1(e,r),xp(e)):W1(Qr,r.stateNode));break;case 4:n=Qr,o=da,Qr=r.stateNode.containerInfo,da=!0,Ji(e,t,r),Qr=n,da=o;break;case 0:case 11:case 14:case 15:if(!ln&&(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)&&Xw(r,t,i),o=o.next}while(o!==n)}Ji(e,t,r);break;case 1:if(!ln&&(rc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){cr(r,t,s)}Ji(e,t,r);break;case 21:Ji(e,t,r);break;case 22:r.mode&1?(ln=(n=ln)||r.memoizedState!==null,Ji(e,t,r),ln=n):Ji(e,t,r);break;default:Ji(e,t,r)}}function qI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new AY),t.forEach(function(n){var o=WY.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function la(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~a}if(n=o,n=vr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*LY(n/1960))-n,10e?16:e,ms===null)var n=!1;else{if(e=ms,ms=null,Wg=0,St&6)throw Error(Te(331));var o=St;for(St|=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;cvr()-bE?Il(e,0):yE|=r),qn(e,t)}function g3(e,t){t===0&&(e.mode&1?(t=Qm,Qm<<=1,!(Qm&130023424)&&(Qm=4194304)):t=1);var r=En();e=Ei(e,t),e!==null&&(rv(e,t,r),qn(e,r))}function VY(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),g3(e,r)}function WY(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(Te(314))}n!==null&&n.delete(t),g3(e,r)}var y3;y3=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vn.current)zn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return zn=!1,kY(e,t,r);zn=!!(e.flags&131072)}else zn=!1,er&&t.flags&1048576&&wD(t,Mg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bh(e,t),e=t.pendingProps;var o=Lc(t,pn.current);yc(t,r),o=fE(null,t,n,e,o,r);var a=pE();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,Wn(n)?(a=!0,jg(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,sE(t),o.updater=xb,t.stateNode=o,o._reactInternals=t,Vw(t,n,e,r),t=Hw(null,t,n,!0,a,r)):(t.tag=0,er&&a&&eE(t),wn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bh(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=HY(n),e=ua(n,e),o){case 0:t=qw(null,t,n,e,r);break e;case 1:t=BI(null,t,n,e,r);break e;case 11:t=NI(null,t,n,e,r);break e;case 14:t=DI(null,t,n,ua(n.type,e),r);break e}throw Error(Te(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ua(n,o),qw(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ua(n,o),BI(e,t,n,o,r);case 3:e:{if(t3(t),e===null)throw Error(Te(387));n=t.pendingProps,a=t.memoizedState,o=a.element,$D(e,t),Ng(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=zc(Error(Te(423)),t),t=zI(e,t,n,r,o);break e}else if(n!==o){o=zc(Error(Te(424)),t),t=zI(e,t,n,r,o);break e}else for(io=Cs(t.stateNode.containerInfo.firstChild),lo=t,er=!0,fa=null,r=ED(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Nc(),n===o){t=Pi(e,t,r);break e}wn(e,t,n,r)}t=t.child}return t;case 5:return RD(t),e===null&&Bw(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Mw(n,o)?i=null:a!==null&&Mw(n,a)&&(t.flags|=32),e3(e,t),wn(e,t,i,r),t.child;case 6:return e===null&&Bw(t),null;case 13:return r3(e,t,r);case 4:return lE(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Dc(t,null,n,r):wn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ua(n,o),NI(e,t,n,o,r);case 7:return wn(e,t,t.pendingProps,r),t.child;case 8:return wn(e,t,t.pendingProps.children,r),t.child;case 12:return wn(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,Wt(Fg,n._currentValue),n._currentValue=i,a!==null)if(ga(a.value,i)){if(a.children===o.children&&!Vn.current){t=Pi(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=Si(-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),zw(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(Te(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),zw(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}wn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,yc(t,r),o=Vo(o),n=n(o),t.flags|=1,wn(e,t,n,r),t.child;case 14:return n=t.type,o=ua(n,t.pendingProps),o=ua(n.type,o),DI(e,t,n,o,r);case 15:return JD(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ua(n,o),Bh(e,t),t.tag=1,Wn(n)?(e=!0,jg(t)):e=!1,yc(t,r),QD(t,n,o),Vw(t,n,o,r),Hw(null,t,n,!0,e,r);case 19:return n3(e,t,r);case 22:return ZD(e,t,r)}throw Error(Te(156,t.tag))};function b3(e,t){return HN(e,t)}function qY(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 Do(e,t,r,n){return new qY(e,t,r,n)}function SE(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HY(e){if(typeof e=="function")return SE(e)?1:0;if(e!=null){if(e=e.$$typeof,e===UC)return 11;if(e===VC)return 14}return 2}function Rs(e,t){var r=e.alternate;return r===null?(r=Do(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 Vh(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")SE(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Gu:return jl(r.children,o,a,t);case zC:i=8,o|=8;break;case pw:return e=Do(12,r,t,o|2),e.elementType=pw,e.lanes=a,e;case vw:return e=Do(13,r,t,o),e.elementType=vw,e.lanes=a,e;case mw:return e=Do(19,r,t,o),e.elementType=mw,e.lanes=a,e;case RN:return Ob(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case PN:i=10;break e;case $N:i=9;break e;case UC:i=11;break e;case VC:i=14;break e;case as:i=16,n=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=Do(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function jl(e,t,r,n){return e=Do(7,e,n,t),e.lanes=r,e}function Ob(e,t,r,n){return e=Do(22,e,n,t),e.elementType=RN,e.lanes=r,e.stateNode={isHidden:!1},e}function J1(e,t,r){return e=Do(6,e,null,t),e.lanes=r,e}function Z1(e,t,r){return t=Do(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function GY(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=j1(0),this.expirationTimes=j1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=j1(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function OE(e,t,r,n,o,a,i,s,c){return e=new GY(e,t,r,s,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Do(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},sE(a),e}function KY(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(S3)}catch(e){console.error(e)}}S3(),SN.exports=mo;var Rb=SN.exports;const If=hr(Rb);var O3,ZI=Rb;O3=ZI.createRoot,ZI.hydrateRoot;var Gg={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 - */Gg.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,T=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",T],["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]",Et="[object Int8Array]",Ct="[object Int16Array]",We="[object Int32Array]",et="[object Uint8Array]",ke="[object Uint8ClampedArray]",ze="[object Uint16Array]",ct="[object Uint32Array]",bt=/\b__p \+= '';/g,Yt=/\b(__p \+=) '' \+/g,$r=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mn=/&(?:amp|lt|gt|quot|#39);/g,na=/[&<>"']/g,Qn=RegExp(mn.source),Ui=RegExp(na.source),Qv=/<%-([\s\S]+?)%>/g,d_=/<%([\s\S]+?)%>/g,Xv=/<%=([\s\S]+?)%>/g,f_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zd=/^\w*$/,p_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ri=/[\\^$.*+?()[\]{}|]/g,Ud=RegExp(ri.source),hn=/^\s+/,rl=/\s/,v_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nl=/\{\n\/\* \[wrapped with (.+)\] \*/,Vd=/,? & /,Yv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jv=/[()=,{}\[\]\/\s]/,Zv=/\\(\\)?/g,em=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tm=/\w*$/,m_=/^[-+]0x[0-9a-f]+$/i,h_=/^0b[01]+$/i,g_=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,gn=/^(?:0|[1-9]\d*)$/,yV=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rm=/($^)/,bV=/['\n\r\u2028\u2029\\]/g,nm="\\ud800-\\udfff",_V="\\u0300-\\u036f",xV="\\ufe20-\\ufe2f",wV="\\u20d0-\\u20ff",_R=_V+xV+wV,xR="\\u2700-\\u27bf",wR="a-z\\xdf-\\xf6\\xf8-\\xff",SV="\\xac\\xb1\\xd7\\xf7",OV="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",CV="\\u2000-\\u206f",EV=" \\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",SR="A-Z\\xc0-\\xd6\\xd8-\\xde",OR="\\ufe0e\\ufe0f",CR=SV+OV+CV+EV,y_="['’]",PV="["+nm+"]",ER="["+CR+"]",om="["+_R+"]",PR="\\d+",$V="["+xR+"]",$R="["+wR+"]",RR="[^"+nm+CR+PR+xR+wR+SR+"]",b_="\\ud83c[\\udffb-\\udfff]",RV="(?:"+om+"|"+b_+")",TR="[^"+nm+"]",__="(?:\\ud83c[\\udde6-\\uddff]){2}",x_="[\\ud800-\\udbff][\\udc00-\\udfff]",vu="["+SR+"]",kR="\\u200d",IR="(?:"+$R+"|"+RR+")",TV="(?:"+vu+"|"+RR+")",jR="(?:"+y_+"(?:d|ll|m|re|s|t|ve))?",AR="(?:"+y_+"(?:D|LL|M|RE|S|T|VE))?",MR=RV+"?",FR="["+OR+"]?",kV="(?:"+kR+"(?:"+[TR,__,x_].join("|")+")"+FR+MR+")*",IV="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jV="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",LR=FR+MR+kV,AV="(?:"+[$V,__,x_].join("|")+")"+LR,MV="(?:"+[TR+om+"?",om,__,x_,PV].join("|")+")",FV=RegExp(y_,"g"),LV=RegExp(om,"g"),w_=RegExp(b_+"(?="+b_+")|"+MV+LR,"g"),NV=RegExp([vu+"?"+$R+"+"+jR+"(?="+[ER,vu,"$"].join("|")+")",TV+"+"+AR+"(?="+[ER,vu+IR,"$"].join("|")+")",vu+"?"+IR+"+"+jR,vu+"+"+AR,jV,IV,PR,AV].join("|"),"g"),DV=RegExp("["+kR+nm+_R+OR+"]"),BV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zV=["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"],UV=-1,Ht={};Ht[De]=Ht[ft]=Ht[Et]=Ht[Ct]=Ht[We]=Ht[et]=Ht[ke]=Ht[ze]=Ht[ct]=!0,Ht[oe]=Ht[pe]=Ht[at]=Ht[ye]=Ht[Le]=Ht[de]=Ht[ve]=Ht[_e]=Ht[be]=Ht[ge]=Ht[Be]=Ht[Y]=Ht[ae]=Ht[se]=Ht[Ie]=!1;var Bt={};Bt[oe]=Bt[pe]=Bt[at]=Bt[Le]=Bt[ye]=Bt[de]=Bt[De]=Bt[ft]=Bt[Et]=Bt[Ct]=Bt[We]=Bt[be]=Bt[ge]=Bt[Be]=Bt[Y]=Bt[ae]=Bt[se]=Bt[le]=Bt[et]=Bt[ke]=Bt[ze]=Bt[ct]=!0,Bt[ve]=Bt[_e]=Bt[Ie]=!1;var VV={À:"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"},WV={"&":"&","<":"<",">":">",'"':""","'":"'"},qV={"&":"&","<":"<",">":">",""":'"',"'":"'"},HV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},GV=parseFloat,KV=parseInt,NR=typeof oo=="object"&&oo&&oo.Object===Object&&oo,QV=typeof self=="object"&&self&&self.Object===Object&&self,qr=NR||QV||Function("return this")(),S_=t&&!t.nodeType&&t,ol=S_&&!0&&e&&!e.nodeType&&e,DR=ol&&ol.exports===S_,O_=DR&&NR.process,xo=function(){try{var Z=ol&&ol.require&&ol.require("util").types;return Z||O_&&O_.binding&&O_.binding("util")}catch{}}(),BR=xo&&xo.isArrayBuffer,zR=xo&&xo.isDate,UR=xo&&xo.isMap,VR=xo&&xo.isRegExp,WR=xo&&xo.isSet,qR=xo&&xo.isTypedArray;function Xn(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 XV(Z,me,ue,Ke){for(var st=-1,Pt=Z==null?0:Z.length;++st-1}function C_(Z,me,ue){for(var Ke=-1,st=Z==null?0:Z.length;++Ke-1;);return ue}function ZR(Z,me){for(var ue=Z.length;ue--&&mu(me,Z[ue],0)>-1;);return ue}function aW(Z,me){for(var ue=Z.length,Ke=0;ue--;)Z[ue]===me&&++Ke;return Ke}var iW=R_(VV),sW=R_(WV);function lW(Z){return"\\"+HV[Z]}function uW(Z,me){return Z==null?r:Z[me]}function hu(Z){return DV.test(Z)}function cW(Z){return BV.test(Z)}function dW(Z){for(var me,ue=[];!(me=Z.next()).done;)ue.push(me.value);return ue}function j_(Z){var me=-1,ue=Array(Z.size);return Z.forEach(function(Ke,st){ue[++me]=[st,Ke]}),ue}function eT(Z,me){return function(ue){return Z(me(ue))}}function qi(Z,me){for(var ue=-1,Ke=Z.length,st=0,Pt=[];++ue-1}function JW(u,p){var y=this.__data__,k=wm(y,u);return k<0?(++this.size,y.push([u,p])):y[k][1]=p,this}ni.prototype.clear=KW,ni.prototype.delete=QW,ni.prototype.get=XW,ni.prototype.has=YW,ni.prototype.set=JW;function oi(u){var p=-1,y=u==null?0:u.length;for(this.clear();++p=p?u:p)),u}function Co(u,p,y,k,M,B){var K,Q=p&v,re=p&m,xe=p&h;if(y&&(K=M?y(u,k,M,B):y(u)),K!==r)return K;if(!tr(u))return u;var we=lt(u);if(we){if(K=rq(u),!Q)return In(u,K)}else{var Pe=nn(u),Ne=Pe==_e||Pe==ie;if(Yi(u))return FT(u,Q);if(Pe==Be||Pe==oe||Ne&&!M){if(K=re||Ne?{}:tk(u),!Q)return re?q7(u,v7(K,u)):W7(u,fT(K,u))}else{if(!Bt[Pe])return M?u:{};K=nq(u,Pe,Q)}}B||(B=new aa);var Ye=B.get(u);if(Ye)return Ye;B.set(u,K),Tk(u)?u.forEach(function(ot){K.add(Co(ot,p,y,ot,u,B))}):$k(u)&&u.forEach(function(ot,gt){K.set(gt,Co(ot,p,y,gt,u,B))});var nt=xe?re?a1:o1:re?An:Lr,dt=we?r:nt(u);return wo(dt||u,function(ot,gt){dt&&(gt=ot,ot=u[gt]),Xd(K,gt,Co(ot,p,y,gt,u,B))}),K}function m7(u){var p=Lr(u);return function(y){return pT(y,u,p)}}function pT(u,p,y){var k=y.length;if(u==null)return!k;for(u=Nt(u);k--;){var M=y[k],B=p[M],K=u[M];if(K===r&&!(M in u)||!B(K))return!1}return!0}function vT(u,p,y){if(typeof u!="function")throw new So(i);return nf(function(){u.apply(r,y)},p)}function Yd(u,p,y,k){var M=-1,B=am,K=!0,Q=u.length,re=[],xe=p.length;if(!Q)return re;y&&(p=Jt(p,Yn(y))),k?(B=C_,K=!1):p.length>=o&&(B=Wd,K=!1,p=new sl(p));e:for(;++MM?0:M+y),k=k===r||k>M?M:ut(k),k<0&&(k+=M),k=y>k?0:Ik(k);y0&&y(Q)?p>1?Hr(Q,p-1,y,k,M):Wi(M,Q):k||(M[M.length]=Q)}return M}var B_=UT(),gT=UT(!0);function Ca(u,p){return u&&B_(u,p,Lr)}function z_(u,p){return u&&gT(u,p,Lr)}function Om(u,p){return Vi(p,function(y){return ui(u[y])})}function ul(u,p){p=Qi(p,u);for(var y=0,k=p.length;u!=null&&yp}function y7(u,p){return u!=null&&kt.call(u,p)}function b7(u,p){return u!=null&&p in Nt(u)}function _7(u,p,y){return u>=rn(p,y)&&u=120&&we.length>=120)?new sl(K&&we):r}we=u[0];var Pe=-1,Ne=Q[0];e:for(;++Pe-1;)Q!==u&&mm.call(Q,re,1),mm.call(u,re,1);return u}function $T(u,p){for(var y=u?p.length:0,k=y-1;y--;){var M=p[y];if(y==k||M!==B){var B=M;li(M)?mm.call(u,M,1):Y_(u,M)}}return u}function K_(u,p){return u+ym(lT()*(p-u+1))}function j7(u,p,y,k){for(var M=-1,B=Tr(gm((p-u)/(y||1)),0),K=ue(B);B--;)K[k?B:++M]=u,u+=y;return K}function Q_(u,p){var y="";if(!u||p<1||p>z)return y;do p%2&&(y+=u),p=ym(p/2),p&&(u+=u);while(p);return y}function pt(u,p){return f1(ok(u,p,Mn),u+"")}function A7(u){return dT(Pu(u))}function M7(u,p){var y=Pu(u);return Mm(y,ll(p,0,y.length))}function ef(u,p,y,k){if(!tr(u))return u;p=Qi(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);++k>>1,K=u[B];K!==null&&!Zn(K)&&(y?K<=p:K=o){var xe=p?null:Q7(u);if(xe)return sm(xe);K=!1,M=Wd,re=new sl}else re=p?[]:Q;e:for(;++k=k?u:Eo(u,p,y)}var MT=EW||function(u){return qr.clearTimeout(u)};function FT(u,p){if(p)return u.slice();var y=u.length,k=nT?nT(y):new u.constructor(y);return u.copy(k),k}function t1(u){var p=new u.constructor(u.byteLength);return new pm(p).set(new pm(u)),p}function B7(u,p){var y=p?t1(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function z7(u){var p=new u.constructor(u.source,tm.exec(u));return p.lastIndex=u.lastIndex,p}function U7(u){return Qd?Nt(Qd.call(u)):{}}function LT(u,p){var y=p?t1(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function NT(u,p){if(u!==p){var y=u!==r,k=u===null,M=u===u,B=Zn(u),K=p!==r,Q=p===null,re=p===p,xe=Zn(p);if(!Q&&!xe&&!B&&u>p||B&&K&&re&&!Q&&!xe||k&&K&&re||!y&&re||!M)return 1;if(!k&&!B&&!xe&&u=Q)return re;var xe=y[k];return re*(xe=="desc"?-1:1)}}return u.index-p.index}function DT(u,p,y,k){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=!k;++Q1?y[M-1]:r,K=M>2?y[2]:r;for(B=u.length>3&&typeof B=="function"?(M--,B):r,K&&bn(y[0],y[1],K)&&(B=M<3?r:B,M=1),p=Nt(p);++k-1?M[B?p[K]:K]:r}}function qT(u){return si(function(p){var y=p.length,k=y,M=Oo.prototype.thru;for(u&&p.reverse();k--;){var B=p[k];if(typeof B!="function")throw new So(i);if(M&&!K&&jm(B)=="wrapper")var K=new Oo([],!0)}for(k=K?k:y;++k1&&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 sl:r;for(B.set(u,p),B.set(p,u);++Pe1?"& ":"")+p[k],p=p.join(y>2?", ":" "),u.replace(v_,`{ -/* [wrapped with `+p+`] */ -`)}function aq(u){return lt(u)||fl(u)||!!(iT&&u&&u[iT])}function li(u,p){var y=typeof u;return p=p??z,!!p&&(y=="number"||y!="symbol"&&gn.test(u))&&u>-1&&u%1==0&&u0){if(++p>=L)return arguments[0]}else p=0;return u.apply(r,arguments)}}function Mm(u,p){var y=-1,k=u.length,M=k-1;for(p=p===r?k:p;++y1?u[p-1]:r;return y=typeof y=="function"?(u.pop(),y):r,hk(u,y)});function gk(u){var p=N(u);return p.__chain__=!0,p}function hH(u,p){return p(u),u}function Fm(u,p){return p(u)}var gH=si(function(u){var p=u.length,y=p?u[0]:0,k=this.__wrapped__,M=function(B){return D_(B,u)};return p>1||this.__actions__.length||!(k instanceof _t)||!li(y)?this.thru(M):(k=k.slice(y,+y+(p?1:0)),k.__actions__.push({func:Fm,args:[M],thisArg:r}),new Oo(k,this.__chain__).thru(function(B){return p&&!B.length&&B.push(r),B}))});function yH(){return gk(this)}function bH(){return new Oo(this.value(),this.__chain__)}function _H(){this.__values__===r&&(this.__values__=kk(this.value()));var u=this.__index__>=this.__values__.length,p=u?r:this.__values__[this.__index__++];return{done:u,value:p}}function xH(){return this}function wH(u){for(var p,y=this;y instanceof xm;){var k=ck(y);k.__index__=0,k.__values__=r,p?M.__wrapped__=k:p=k;var M=k;y=y.__wrapped__}return M.__wrapped__=u,p}function SH(){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:Fm,args:[p1],thisArg:r}),new Oo(p,this.__chain__)}return this.thru(p1)}function OH(){return jT(this.__wrapped__,this.__actions__)}var CH=$m(function(u,p,y){kt.call(u,y)?++u[y]:ai(u,y,1)});function EH(u,p,y){var k=lt(u)?HR:h7;return y&&bn(u,p,y)&&(p=r),k(u,tt(p,3))}function PH(u,p){var y=lt(u)?Vi:hT;return y(u,tt(p,3))}var $H=WT(dk),RH=WT(fk);function TH(u,p){return Hr(Lm(u,p),1)}function kH(u,p){return Hr(Lm(u,p),G)}function IH(u,p,y){return y=y===r?1:ut(y),Hr(Lm(u,p),y)}function yk(u,p){var y=lt(u)?wo:Gi;return y(u,tt(p,3))}function bk(u,p){var y=lt(u)?YV:mT;return y(u,tt(p,3))}var jH=$m(function(u,p,y){kt.call(u,y)?u[y].push(p):ai(u,y,[p])});function AH(u,p,y,k){u=jn(u)?u:Pu(u),y=y&&!k?ut(y):0;var M=u.length;return y<0&&(y=Tr(M+y,0)),Um(u)?y<=M&&u.indexOf(p,y)>-1:!!M&&mu(u,p,y)>-1}var MH=pt(function(u,p,y){var k=-1,M=typeof p=="function",B=jn(u)?ue(u.length):[];return Gi(u,function(K){B[++k]=M?Xn(p,K,y):Jd(K,p,y)}),B}),FH=$m(function(u,p,y){ai(u,y,p)});function Lm(u,p){var y=lt(u)?Jt:wT;return y(u,tt(p,3))}function LH(u,p,y,k){return u==null?[]:(lt(p)||(p=p==null?[]:[p]),y=k?r:y,lt(y)||(y=y==null?[]:[y]),ET(u,p,y))}var NH=$m(function(u,p,y){u[y?0:1].push(p)},function(){return[[],[]]});function DH(u,p,y){var k=lt(u)?E_:XR,M=arguments.length<3;return k(u,tt(p,4),y,M,Gi)}function BH(u,p,y){var k=lt(u)?JV:XR,M=arguments.length<3;return k(u,tt(p,4),y,M,mT)}function zH(u,p){var y=lt(u)?Vi:hT;return y(u,Bm(tt(p,3)))}function UH(u){var p=lt(u)?dT:A7;return p(u)}function VH(u,p,y){(y?bn(u,p,y):p===r)?p=1:p=ut(p);var k=lt(u)?d7:M7;return k(u,p)}function WH(u){var p=lt(u)?f7:L7;return p(u)}function qH(u){if(u==null)return 0;if(jn(u))return Um(u)?gu(u):u.length;var p=nn(u);return p==be||p==ae?u.size:q_(u).length}function HH(u,p,y){var k=lt(u)?P_:N7;return y&&bn(u,p,y)&&(p=r),k(u,tt(p,3))}var GH=pt(function(u,p){if(u==null)return[];var y=p.length;return y>1&&bn(u,p[0],p[1])?p=[]:y>2&&bn(p[0],p[1],p[2])&&(p=[p[0]]),ET(u,Hr(p,1),[])}),Nm=PW||function(){return qr.Date.now()};function KH(u,p){if(typeof p!="function")throw new So(i);return u=ut(u),function(){if(--u<1)return p.apply(this,arguments)}}function _k(u,p,y){return p=y?r:p,p=u&&p==null?u.length:p,ii(u,T,r,r,r,r,p)}function xk(u,p){var y;if(typeof p!="function")throw new So(i);return u=ut(u),function(){return--u>0&&(y=p.apply(this,arguments)),u<=1&&(p=r),y}}var m1=pt(function(u,p,y){var k=O;if(y.length){var M=qi(y,Cu(m1));k|=P}return ii(u,k,p,y,M)}),wk=pt(function(u,p,y){var k=O|b;if(y.length){var M=qi(y,Cu(wk));k|=P}return ii(p,k,u,y,M)});function Sk(u,p,y){p=y?r:p;var k=ii(u,_,r,r,r,r,r,p);return k.placeholder=Sk.placeholder,k}function Ok(u,p,y){p=y?r:p;var k=ii(u,$,r,r,r,r,r,p);return k.placeholder=Ok.placeholder,k}function Ck(u,p,y){var k,M,B,K,Q,re,xe=0,we=!1,Pe=!1,Ne=!0;if(typeof u!="function")throw new So(i);p=$o(p)||0,tr(y)&&(we=!!y.leading,Pe="maxWait"in y,B=Pe?Tr($o(y.maxWait)||0,p):B,Ne="trailing"in y?!!y.trailing:Ne);function Ye(fr){var sa=k,di=M;return k=M=r,xe=fr,K=u.apply(di,sa),K}function nt(fr){return xe=fr,Q=nf(gt,p),we?Ye(fr):K}function dt(fr){var sa=fr-re,di=fr-xe,Wk=p-sa;return Pe?rn(Wk,B-di):Wk}function ot(fr){var sa=fr-re,di=fr-xe;return re===r||sa>=p||sa<0||Pe&&di>=B}function gt(){var fr=Nm();if(ot(fr))return wt(fr);Q=nf(gt,dt(fr))}function wt(fr){return Q=r,Ne&&k?Ye(fr):(k=M=r,K)}function eo(){Q!==r&&MT(Q),xe=0,k=re=M=Q=r}function _n(){return Q===r?K:wt(Nm())}function to(){var fr=Nm(),sa=ot(fr);if(k=arguments,M=this,re=fr,sa){if(Q===r)return nt(re);if(Pe)return MT(Q),Q=nf(gt,p),Ye(re)}return Q===r&&(Q=nf(gt,p)),K}return to.cancel=eo,to.flush=_n,to}var QH=pt(function(u,p){return vT(u,1,p)}),XH=pt(function(u,p,y){return vT(u,$o(p)||0,y)});function YH(u){return ii(u,I)}function Dm(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new So(i);var y=function(){var k=arguments,M=p?p.apply(this,k):k[0],B=y.cache;if(B.has(M))return B.get(M);var K=u.apply(this,k);return y.cache=B.set(M,K)||B,K};return y.cache=new(Dm.Cache||oi),y}Dm.Cache=oi;function Bm(u){if(typeof u!="function")throw new So(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 JH(u){return xk(2,u)}var ZH=D7(function(u,p){p=p.length==1&<(p[0])?Jt(p[0],Yn(tt())):Jt(Hr(p,1),Yn(tt()));var y=p.length;return pt(function(k){for(var M=-1,B=rn(k.length,y);++M=p}),fl=bT(function(){return arguments}())?bT:function(u){return sr(u)&&kt.call(u,"callee")&&!aT.call(u,"callee")},lt=ue.isArray,vG=BR?Yn(BR):w7;function jn(u){return u!=null&&zm(u.length)&&!ui(u)}function dr(u){return sr(u)&&jn(u)}function mG(u){return u===!0||u===!1||sr(u)&&yn(u)==ye}var Yi=RW||P1,hG=zR?Yn(zR):S7;function gG(u){return sr(u)&&u.nodeType===1&&!of(u)}function yG(u){if(u==null)return!0;if(jn(u)&&(lt(u)||typeof u=="string"||typeof u.splice=="function"||Yi(u)||Eu(u)||fl(u)))return!u.length;var p=nn(u);if(p==be||p==ae)return!u.size;if(rf(u))return!q_(u).length;for(var y in u)if(kt.call(u,y))return!1;return!0}function bG(u,p){return Zd(u,p)}function _G(u,p,y){y=typeof y=="function"?y:r;var k=y?y(u,p):r;return k===r?Zd(u,p,r,y):!!k}function g1(u){if(!sr(u))return!1;var p=yn(u);return p==ve||p==he||typeof u.message=="string"&&typeof u.name=="string"&&!of(u)}function xG(u){return typeof u=="number"&&sT(u)}function ui(u){if(!tr(u))return!1;var p=yn(u);return p==_e||p==ie||p==Re||p==X}function Pk(u){return typeof u=="number"&&u==ut(u)}function zm(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=z}function tr(u){var p=typeof u;return u!=null&&(p=="object"||p=="function")}function sr(u){return u!=null&&typeof u=="object"}var $k=UR?Yn(UR):C7;function wG(u,p){return u===p||W_(u,p,s1(p))}function SG(u,p,y){return y=typeof y=="function"?y:r,W_(u,p,s1(p),y)}function OG(u){return Rk(u)&&u!=+u}function CG(u){if(lq(u))throw new st(a);return _T(u)}function EG(u){return u===null}function PG(u){return u==null}function Rk(u){return typeof u=="number"||sr(u)&&yn(u)==ge}function of(u){if(!sr(u)||yn(u)!=Be)return!1;var p=vm(u);if(p===null)return!0;var y=kt.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&cm.call(y)==SW}var y1=VR?Yn(VR):E7;function $G(u){return Pk(u)&&u>=-z&&u<=z}var Tk=WR?Yn(WR):P7;function Um(u){return typeof u=="string"||!lt(u)&&sr(u)&&yn(u)==se}function Zn(u){return typeof u=="symbol"||sr(u)&&yn(u)==le}var Eu=qR?Yn(qR):$7;function RG(u){return u===r}function TG(u){return sr(u)&&nn(u)==Ie}function kG(u){return sr(u)&&yn(u)==rt}var IG=Im(H_),jG=Im(function(u,p){return u<=p});function kk(u){if(!u)return[];if(jn(u))return Um(u)?oa(u):In(u);if(qd&&u[qd])return dW(u[qd]());var p=nn(u),y=p==be?j_:p==ae?sm:Pu;return y(u)}function ci(u){if(!u)return u===0?u:0;if(u=$o(u),u===G||u===-G){var p=u<0?-1:1;return p*W}return u===u?u:0}function ut(u){var p=ci(u),y=p%1;return p===p?y?p-y:p:0}function Ik(u){return u?ll(ut(u),0,ne):0}function $o(u){if(typeof u=="number")return u;if(Zn(u))return te;if(tr(u)){var p=typeof u.valueOf=="function"?u.valueOf():u;u=tr(p)?p+"":p}if(typeof u!="string")return u===0?u:+u;u=YR(u);var y=h_.test(u);return y||mt.test(u)?KV(u.slice(2),y?2:8):m_.test(u)?te:+u}function jk(u){return Ea(u,An(u))}function AG(u){return u?ll(ut(u),-z,z):u===0?u:0}function Tt(u){return u==null?"":Jn(u)}var MG=Su(function(u,p){if(rf(p)||jn(p)){Ea(p,Lr(p),u);return}for(var y in p)kt.call(p,y)&&Xd(u,y,p[y])}),Ak=Su(function(u,p){Ea(p,An(p),u)}),Vm=Su(function(u,p,y,k){Ea(p,An(p),u,k)}),FG=Su(function(u,p,y,k){Ea(p,Lr(p),u,k)}),LG=si(D_);function NG(u,p){var y=wu(u);return p==null?y:fT(y,p)}var DG=pt(function(u,p){u=Nt(u);var y=-1,k=p.length,M=k>2?p[2]:r;for(M&&bn(p[0],p[1],M)&&(k=1);++y1),B}),Ea(u,a1(u),y),k&&(y=Co(y,v|m|h,X7));for(var M=p.length;M--;)Y_(y,p[M]);return y});function nK(u,p){return Fk(u,Bm(tt(p)))}var oK=si(function(u,p){return u==null?{}:k7(u,p)});function Fk(u,p){if(u==null)return{};var y=Jt(a1(u),function(k){return[k]});return p=tt(p),PT(u,y,function(k,M){return p(k,M[0])})}function aK(u,p,y){p=Qi(p,u);var k=-1,M=p.length;for(M||(M=1,u=r);++kp){var k=u;u=p,p=k}if(y||u%1||p%1){var M=lT();return rn(u+M*(p-u+GV("1e-"+((M+"").length-1))),p)}return K_(u,p)}var hK=Ou(function(u,p,y){return p=p.toLowerCase(),u+(y?Dk(p):p)});function Dk(u){return x1(Tt(u).toLowerCase())}function Bk(u){return u=Tt(u),u&&u.replace(yV,iW).replace(LV,"")}function gK(u,p,y){u=Tt(u),p=Jn(p);var k=u.length;y=y===r?k:ll(ut(y),0,k);var M=y;return y-=p.length,y>=0&&u.slice(y,M)==p}function yK(u){return u=Tt(u),u&&Ui.test(u)?u.replace(na,sW):u}function bK(u){return u=Tt(u),u&&Ud.test(u)?u.replace(ri,"\\$&"):u}var _K=Ou(function(u,p,y){return u+(y?"-":"")+p.toLowerCase()}),xK=Ou(function(u,p,y){return u+(y?" ":"")+p.toLowerCase()}),wK=VT("toLowerCase");function SK(u,p,y){u=Tt(u),p=ut(p);var k=p?gu(u):0;if(!p||k>=p)return u;var M=(p-k)/2;return km(ym(M),y)+u+km(gm(M),y)}function OK(u,p,y){u=Tt(u),p=ut(p);var k=p?gu(u):0;return p&&k>>0,y?(u=Tt(u),u&&(typeof p=="string"||p!=null&&!y1(p))&&(p=Jn(p),!p&&hu(u))?Xi(oa(u),0,y):u.split(p,y)):[]}var kK=Ou(function(u,p,y){return u+(y?" ":"")+x1(p)});function IK(u,p,y){return u=Tt(u),y=y==null?0:ll(ut(y),0,u.length),p=Jn(p),u.slice(y,y+p.length)==p}function jK(u,p,y){var k=N.templateSettings;y&&bn(u,p,y)&&(p=r),u=Tt(u),p=Vm({},p,k,XT);var M=Vm({},p.imports,k.imports,XT),B=Lr(M),K=I_(M,B),Q,re,xe=0,we=p.interpolate||rm,Pe="__p += '",Ne=A_((p.escape||rm).source+"|"+we.source+"|"+(we===Xv?em:rm).source+"|"+(p.evaluate||rm).source+"|$","g"),Ye="//# sourceURL="+(kt.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++UV+"]")+` -`;u.replace(Ne,function(ot,gt,wt,eo,_n,to){return wt||(wt=eo),Pe+=u.slice(xe,to).replace(bV,lW),gt&&(Q=!0,Pe+=`' + -__e(`+gt+`) + -'`),_n&&(re=!0,Pe+=`'; -`+_n+`; -__p += '`),wt&&(Pe+=`' + -((__t = (`+wt+`)) == null ? '' : __t) + -'`),xe=to+ot.length,ot}),Pe+=`'; -`;var nt=kt.call(p,"variable")&&p.variable;if(!nt)Pe=`with (obj) { -`+Pe+` -} -`;else if(Jv.test(nt))throw new st(s);Pe=(re?Pe.replace(bt,""):Pe).replace(Yt,"$1").replace($r,"$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=Uk(function(){return Pt(B,Ye+"return "+Pe).apply(r,K)});if(dt.source=Pe,g1(dt))throw dt;return dt}function AK(u){return Tt(u).toLowerCase()}function MK(u){return Tt(u).toUpperCase()}function FK(u,p,y){if(u=Tt(u),u&&(y||p===r))return YR(u);if(!u||!(p=Jn(p)))return u;var k=oa(u),M=oa(p),B=JR(k,M),K=ZR(k,M)+1;return Xi(k,B,K).join("")}function LK(u,p,y){if(u=Tt(u),u&&(y||p===r))return u.slice(0,tT(u)+1);if(!u||!(p=Jn(p)))return u;var k=oa(u),M=ZR(k,oa(p))+1;return Xi(k,0,M).join("")}function NK(u,p,y){if(u=Tt(u),u&&(y||p===r))return u.replace(hn,"");if(!u||!(p=Jn(p)))return u;var k=oa(u),M=JR(k,oa(p));return Xi(k,M).join("")}function DK(u,p){var y=A,k=F;if(tr(p)){var M="separator"in p?p.separator:M;y="length"in p?ut(p.length):y,k="omission"in p?Jn(p.omission):k}u=Tt(u);var B=u.length;if(hu(u)){var K=oa(u);B=K.length}if(y>=B)return u;var Q=y-gu(k);if(Q<1)return k;var re=K?Xi(K,0,Q).join(""):u.slice(0,Q);if(M===r)return re+k;if(K&&(Q+=re.length-Q),y1(M)){if(u.slice(Q).search(M)){var xe,we=re;for(M.global||(M=A_(M.source,Tt(tm.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(Jn(M),Q)!=Q){var Ne=re.lastIndexOf(M);Ne>-1&&(re=re.slice(0,Ne))}return re+k}function BK(u){return u=Tt(u),u&&Qn.test(u)?u.replace(mn,mW):u}var zK=Ou(function(u,p,y){return u+(y?" ":"")+p.toUpperCase()}),x1=VT("toUpperCase");function zk(u,p,y){return u=Tt(u),p=y?r:p,p===r?cW(u)?yW(u):tW(u):u.match(p)||[]}var Uk=pt(function(u,p){try{return Xn(u,r,p)}catch(y){return g1(y)?y:new st(y)}}),UK=si(function(u,p){return wo(p,function(y){y=Pa(y),ai(u,y,m1(u[y],u))}),u});function VK(u){var p=u==null?0:u.length,y=tt();return u=p?Jt(u,function(k){if(typeof k[1]!="function")throw new So(i);return[y(k[0]),k[1]]}):[],pt(function(k){for(var M=-1;++Mz)return[];var y=ne,k=rn(u,ne);p=tt(p),u-=ne;for(var M=k_(k,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)},Ca(_t.prototype,function(u,p){var y=/^(?:filter|find|map|reject)|While$/.test(p),k=/^(?:head|last)$/.test(p),M=N[k?"take"+(p=="last"?"Right":""):p],B=k||/^find/.test(p);M&&(N.prototype[p]=function(){var K=this.__wrapped__,Q=k?[1]:arguments,re=K instanceof _t,xe=Q[0],we=re||lt(K),Pe=function(gt){var wt=M.apply(N,Wi([gt],Q));return k&&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:Fm,args:[Pe],thisArg:r}),new Oo(ot,Ne)}return nt&&dt?u.apply(this,Q):(ot=this.thru(Pe),nt?k?ot.value()[0]:ot.value():ot)})}),wo(["pop","push","shift","sort","splice","unshift"],function(u){var p=lm[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",k=/^(?:pop|shift)$/.test(u);N.prototype[u]=function(){var M=arguments;if(k&&!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)})}}),Ca(_t.prototype,function(u,p){var y=N[p];if(y){var k=y.name+"";kt.call(xu,k)||(xu[k]=[]),xu[k].push({name:p,func:y})}}),xu[Rm(r,b).name]=[{name:"wrapper",func:r}],_t.prototype.clone=BW,_t.prototype.reverse=zW,_t.prototype.value=UW,N.prototype.at=gH,N.prototype.chain=yH,N.prototype.commit=bH,N.prototype.next=_H,N.prototype.plant=wH,N.prototype.reverse=SH,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=OH,N.prototype.first=N.prototype.head,qd&&(N.prototype[qd]=xH),N},yu=bW();ol?((ol.exports=yu)._=yu,S_._=yu):qr._=yu}).call(oo)})(Gg,Gg.exports);var Tb=Gg.exports,ej=Object.prototype.toString,C3=function(t){var r=ej.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&ej.call(t.callee)==="[object Function]"),n},ex,tj;function ZY(){if(tj)return ex;tj=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=C3,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"||!Nr?xt:Nr(Uint8Array),Ml={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?xt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?xt:ArrayBuffer,"%ArrayIteratorPrototype%":Ru&&Nr?Nr([][Symbol.iterator]()):xt,"%AsyncFromSyncIteratorPrototype%":xt,"%AsyncFunction%":Uu,"%AsyncGenerator%":Uu,"%AsyncGeneratorFunction%":Uu,"%AsyncIteratorPrototype%":Uu,"%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%":SJ,"%eval%":eval,"%EvalError%":OJ,"%Float32Array%":typeof Float32Array>"u"?xt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?xt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?xt:FinalizationRegistry,"%Function%":R3,"%GeneratorFunction%":Uu,"%Int8Array%":typeof Int8Array>"u"?xt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?xt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?xt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ru&&Nr?Nr(Nr([][Symbol.iterator]())):xt,"%JSON%":typeof JSON=="object"?JSON:xt,"%Map%":typeof Map>"u"?xt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ru||!Nr?xt:Nr(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%":CJ,"%ReferenceError%":EJ,"%Reflect%":typeof Reflect>"u"?xt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?xt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ru||!Nr?xt:Nr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?xt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ru&&Nr?Nr(""[Symbol.iterator]()):xt,"%Symbol%":Ru?Symbol:xt,"%SyntaxError%":Vc,"%ThrowTypeError%":$J,"%TypedArray%":TJ,"%TypeError%":_c,"%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%":PJ,"%WeakMap%":typeof WeakMap>"u"?xt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?xt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?xt:WeakSet};if(Nr)try{null.error}catch(e){var kJ=Nr(Nr(e));Ml["%Error.prototype%"]=kJ}var IJ=function e(t){var r;if(t==="%AsyncFunction%")r=rx("async function () {}");else if(t==="%GeneratorFunction%")r=rx("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=rx("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Nr&&(r=Nr(o.prototype))}return Ml[t]=r,r},ij={__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"]},iv=$E,Kg=wJ,jJ=iv.call(Function.call,Array.prototype.concat),AJ=iv.call(Function.apply,Array.prototype.splice),sj=iv.call(Function.call,String.prototype.replace),Qg=iv.call(Function.call,String.prototype.slice),MJ=iv.call(Function.call,RegExp.prototype.exec),FJ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,LJ=/\\(\\)?/g,NJ=function(t){var r=Qg(t,0,1),n=Qg(t,-1);if(r==="%"&&n!=="%")throw new Vc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Vc("invalid intrinsic syntax, expected opening `%`");var o=[];return sj(t,FJ,function(a,i,s,c){o[o.length]=s?sj(c,LJ,"$1"):i||a}),o},DJ=function(t,r){var n=t,o;if(Kg(ij,n)&&(o=ij[n],n="%"+o[0]+"%"),Kg(Ml,n)){var a=Ml[n];if(a===Uu&&(a=IJ(n)),typeof a>"u"&&!r)throw new _c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Vc("intrinsic "+t+" does not exist!")},Xa=function(t,r){if(typeof t!="string"||t.length===0)throw new _c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _c('"allowMissing" argument must be a boolean');if(MJ(/^%?[^%]*%?$/,t)===null)throw new Vc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=NJ(t),o=n.length>0?n[0]:"",a=DJ("%"+o+"%",r),i=a.name,s=a.value,c=!1,l=a.alias;l&&(o=l[0],AJ(n,jJ([0,1],l)));for(var f=1,v=!0;f=n.length){var w=Al(s,m);v=!!w,v&&"get"in w&&!("originalValue"in w.get)?s=w.get:s=s[m]}else v=Kg(s,m),s=s[m];v&&!c&&(Ml[i]=s)}}return s},BJ=Xa,qh=BJ("%Object.defineProperty%",!0)||!1;if(qh)try{qh({},"a",{value:1})}catch{qh=!1}var RE=qh,zJ=Xa,Hh=zJ("%Object.getOwnPropertyDescriptor%",!0);if(Hh)try{Hh([],"length")}catch{Hh=null}var T3=Hh,lj=RE,UJ=E3,Tu=Tn,uj=T3,k3=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Tu("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Tu("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Tu("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Tu("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Tu("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Tu("`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=!!uj&&uj(t,r);if(lj)lj(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 UJ("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},oS=RE,I3=function(){return!!oS};I3.hasArrayLengthDefineBug=function(){if(!oS)return null;try{return oS([],"length",{value:1}).length!==1}catch{return!0}};var j3=I3,VJ=rJ,WJ=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",qJ=Object.prototype.toString,HJ=Array.prototype.concat,cj=k3,GJ=function(e){return typeof e=="function"&&qJ.call(e)==="[object Function]"},A3=j3(),KJ=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!GJ(n)||!n())return}A3?cj(e,t,r,!0):cj(e,t,r)},M3=function(e,t){var r=arguments.length>2?arguments[2]:{},n=VJ(t);WJ&&(n=HJ.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||YJ(r)!==r)throw new pj("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&fj){var i=fj(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(XJ?dj(t,"length",r,!0,!0):dj(t,"length",r)),t};(function(e){var t=$E,r=Xa,n=JJ,o=Tn,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,a),c=RE,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})(F3);var kb=F3.exports,L3=Xa,N3=kb,ZJ=N3(L3("String.prototype.indexOf")),ki=function(t,r){var n=L3(t,!!r);return typeof n=="function"&&ZJ(t,".prototype.")>-1?N3(n):n},eZ=Tn,sv=function(t){if(t==null)throw new eZ(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},tZ=Xa,D3=tZ("%Array%"),rZ=!D3.isArray&&ki("Object.prototype.toString"),nZ=D3.isArray||function(t){return rZ(t)==="[object Array]"},oZ=nZ,aZ=Xa,iZ=ki,sZ=Tn,lZ=oZ,uZ=aZ("%Reflect.apply%",!0)||iZ("Function.prototype.apply"),cZ=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!lZ(n))throw new sZ("Assertion failed: optional `argumentsList`, if provided, must be a List");return uZ(t,r,n)};const dZ={},fZ=Object.freeze(Object.defineProperty({__proto__:null,default:dZ},Symbol.toStringTag,{value:"Module"})),pZ=Qa(fZ);var TE=typeof Map=="function"&&Map.prototype,ox=Object.getOwnPropertyDescriptor&&TE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xg=TE&&ox&&typeof ox.get=="function"?ox.get:null,vj=TE&&Map.prototype.forEach,kE=typeof Set=="function"&&Set.prototype,ax=Object.getOwnPropertyDescriptor&&kE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Yg=kE&&ax&&typeof ax.get=="function"?ax.get:null,mj=kE&&Set.prototype.forEach,vZ=typeof WeakMap=="function"&&WeakMap.prototype,Hf=vZ?WeakMap.prototype.has:null,mZ=typeof WeakSet=="function"&&WeakSet.prototype,Gf=mZ?WeakSet.prototype.has:null,hZ=typeof WeakRef=="function"&&WeakRef.prototype,hj=hZ?WeakRef.prototype.deref:null,gZ=Boolean.prototype.valueOf,yZ=Object.prototype.toString,bZ=Function.prototype.toString,_Z=String.prototype.match,IE=String.prototype.slice,hs=String.prototype.replace,xZ=String.prototype.toUpperCase,gj=String.prototype.toLowerCase,B3=RegExp.prototype.test,yj=Array.prototype.concat,Ia=Array.prototype.join,wZ=Array.prototype.slice,bj=Math.floor,aS=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ix=Object.getOwnPropertySymbols,iS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Wc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",vn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Wc||!0)?Symbol.toStringTag:null,z3=Object.prototype.propertyIsEnumerable,_j=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function xj(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||B3.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-bj(-e):bj(e);if(n!==e){var o=String(n),a=IE.call(t,o.length+1);return hs.call(o,r,"$&_")+"."+hs.call(hs.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return hs.call(t,r,"$&_")}var sS=pZ,wj=sS.custom,Sj=V3(wj)?wj:null,SZ=function e(t,r,n,o){var a=r||{};if(ss(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ss(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=ss(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(ss(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(ss(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?xj(t,c):c}if(typeof t=="bigint"){var l=String(t)+"n";return s?xj(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 lS(t)?"[Array]":"[Object]";var v=zZ(a,n);if(typeof o>"u")o=[];else if(W3(o,t)>=0)return"[Circular]";function m(D,U,H){if(U&&(o=wZ.call(o),o.push(U)),H){var q={depth:a.depth};return ss(a,"quoteStyle")&&(q.quoteStyle=a.quoteStyle),e(D,q,n+1,o)}return e(D,a,n+1,o)}if(typeof t=="function"&&!Oj(t)){var h=IZ(t),x=sh(t,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(x.length>0?" { "+Ia.call(x,", ")+" }":"")}if(V3(t)){var w=Wc?hs.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):iS.call(t);return typeof t=="object"&&!Wc?vf(w):w}if(NZ(t)){for(var O="<"+gj.call(String(t.nodeName)),b=t.attributes||[],g=0;g",O}if(lS(t)){if(t.length===0)return"[]";var _=sh(t,m);return v&&!BZ(_)?"["+uS(_,v)+"]":"[ "+Ia.call(_,", ")+" ]"}if(EZ(t)){var $=sh(t,m);return!("cause"in Error.prototype)&&"cause"in t&&!z3.call(t,"cause")?"{ ["+String(t)+"] "+Ia.call(yj.call("[cause]: "+m(t.cause),$),", ")+" }":$.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ia.call($,", ")+" }"}if(typeof t=="object"&&i){if(Sj&&typeof t[Sj]=="function"&&sS)return sS(t,{depth:f-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(jZ(t)){var P=[];return vj&&vj.call(t,function(D,U){P.push(m(U,t,!0)+" => "+m(D,t))}),Cj("Map",Xg.call(t),P,v)}if(FZ(t)){var C=[];return mj&&mj.call(t,function(D){C.push(m(D,t))}),Cj("Set",Yg.call(t),C,v)}if(AZ(t))return sx("WeakMap");if(LZ(t))return sx("WeakSet");if(MZ(t))return sx("WeakRef");if($Z(t))return vf(m(Number(t)));if(TZ(t))return vf(m(aS.call(t)));if(RZ(t))return vf(gZ.call(t));if(PZ(t))return vf(m(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===oo)return"{ [object globalThis] }";if(!CZ(t)&&!Oj(t)){var T=sh(t,m),R=_j?_j(t)===Object.prototype:t instanceof Object||t.constructor===Object,I=t instanceof Object?"":"null prototype",A=!R&&vn&&Object(t)===t&&vn in t?IE.call(Us(t),8,-1):I?"Object":"",F=R||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",L=F+(A||I?"["+Ia.call(yj.call([],A||[],I||[]),": ")+"] ":"");return T.length===0?L+"{}":v?L+"{"+uS(T,v)+"}":L+"{ "+Ia.call(T,", ")+" }"}return String(t)};function U3(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function OZ(e){return hs.call(String(e),/"/g,""")}function lS(e){return Us(e)==="[object Array]"&&(!vn||!(typeof e=="object"&&vn in e))}function CZ(e){return Us(e)==="[object Date]"&&(!vn||!(typeof e=="object"&&vn in e))}function Oj(e){return Us(e)==="[object RegExp]"&&(!vn||!(typeof e=="object"&&vn in e))}function EZ(e){return Us(e)==="[object Error]"&&(!vn||!(typeof e=="object"&&vn in e))}function PZ(e){return Us(e)==="[object String]"&&(!vn||!(typeof e=="object"&&vn in e))}function $Z(e){return Us(e)==="[object Number]"&&(!vn||!(typeof e=="object"&&vn in e))}function RZ(e){return Us(e)==="[object Boolean]"&&(!vn||!(typeof e=="object"&&vn in e))}function V3(e){if(Wc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!iS)return!1;try{return iS.call(e),!0}catch{}return!1}function TZ(e){if(!e||typeof e!="object"||!aS)return!1;try{return aS.call(e),!0}catch{}return!1}var kZ=Object.prototype.hasOwnProperty||function(e){return e in this};function ss(e,t){return kZ.call(e,t)}function Us(e){return yZ.call(e)}function IZ(e){if(e.name)return e.name;var t=_Z.call(bZ.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function W3(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(IE.call(e,0,t.maxStringLength),t)+n}var o=hs.call(hs.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,DZ);return U3(o,"single",t)}function DZ(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":"")+xZ.call(t.toString(16))}function vf(e){return"Object("+e+")"}function sx(e){return e+" { ? }"}function Cj(e,t,r,n){var o=n?uS(r,n):Ia.call(r,", ");return e+" ("+t+") {"+o+"}"}function BZ(e){for(var t=0;t=0)return!1;return!0}function zZ(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Ia.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Ia.call(Array(t+1),r)}}function uS(e,t){if(e.length===0)return"";var r=` -`+t.prev+t.base;return r+Ia.call(e,","+r)+` -`+t.prev}function sh(e,t){var r=lS(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"},VZ=UZ,jE=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":VZ(t)},Ej=Tn,WZ=SZ,qZ=H3,HZ=jE,G3=function(t,r){if(HZ(t)!=="Object")throw new Ej("Assertion failed: Type(O) is not Object");if(!qZ(r))throw new Ej("Assertion failed: IsPropertyKey(P) is not true, got "+WZ(r));return t[r]},Pj=Tn,GZ=H3,KZ=jE,QZ=function(t,r){if(KZ(t)!=="Object")throw new Pj("Assertion failed: `O` must be an Object");if(!GZ(r))throw new Pj("Assertion failed: `P` must be a Property Key");return r in t},K3=Function.prototype.toString,oc=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,cS,Gh;if(typeof oc=="function"&&typeof Object.defineProperty=="function")try{cS=Object.defineProperty({},"length",{get:function(){throw Gh}}),Gh={},oc(function(){throw 42},null,cS)}catch(e){e!==Gh&&(oc=null)}else oc=null;var XZ=/^\s*class\b/,dS=function(t){try{var r=K3.call(t);return XZ.test(r)}catch{return!1}},lx=function(t){try{return dS(t)?!1:(K3.call(t),!0)}catch{return!1}},Kh=Object.prototype.toString,YZ="[object Object]",JZ="[object Function]",ZZ="[object GeneratorFunction]",eee="[object HTMLAllCollection]",tee="[object HTML document.all class]",ree="[object HTMLCollection]",nee=typeof Symbol=="function"&&!!Symbol.toStringTag,oee=!(0 in[,]),fS=function(){return!1};if(typeof document=="object"){var aee=document.all;Kh.call(aee)===Kh.call(document.all)&&(fS=function(t){if((oee||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Kh.call(t);return(r===eee||r===tee||r===ree||r===YZ)&&t("")==null}catch{}return!1})}var Q3=oc?function(t){if(fS(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{oc(t,null,cS)}catch(r){if(r!==Gh)return!1}return!dS(t)&&lx(t)}:function(t){if(fS(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(nee)return lx(t);if(dS(t))return!1;var r=Kh.call(t);return r!==JZ&&r!==ZZ&&!/^\[object HTML/.test(r)?!1:lx(t)},iee=Q3,see=Number.MAX_SAFE_INTEGER||9007199254740991,ux,$j;function lee(){return $j||($j=1,ux=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),ux}var cx,Rj;function uee(){return Rj||(Rj=1,cx=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),cx}var cee=P3,AE=function(){return cee()&&!!Symbol.toStringTag},dx,Tj;function dee(){if(Tj)return dx;Tj=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=AE();return dx=function(i){return typeof i!="object"||i===null?!1:o?t(i):r.call(i)===n},dx}var lh={exports:{}},kj;function fee(){if(kj)return lh.exports;kj=1;var e=Object.prototype.toString,t=$3();if(t){var r=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,o=function(i){return typeof i.valueOf()!="symbol"?!1:n.test(r.call(i))};lh.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 lh.exports=function(i){return!1};return lh.exports}var fx,Ij;function pee(){if(Ij)return fx;Ij=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=uee(),r=Q3,n=dee(),o=fee(),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)},fx}var px,jj;function vee(){if(jj)return px;jj=1;var e=pee();return px=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},px}var vx,Aj;function mee(){if(Aj)return vx;Aj=1;var e=ki,t=AE(),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 vx=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},vx}var mx,Mj;function hee(){if(Mj)return mx;Mj=1;var e=ki,t=mee(),r=e("RegExp.prototype.exec"),n=Tn;return mx=function(a){if(!t(a))throw new n("`regex` must be a RegExp");return function(s){return r(a,s)!==null}},mx}var gee=Xa,yee=gee("%String%"),bee=Tn,X3=function(t){if(typeof t=="symbol")throw new bee("Cannot convert a Symbol value to a string");return yee(t)},_ee=sv,xee=X3,wee=ki,Fj=wee("String.prototype.replace"),Y3=/^\s$/.test("᠎"),See=Y3?/^[\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]+/,Oee=Y3?/[\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]+$/,J3=function(){var t=xee(_ee(this));return Fj(Fj(t,See,""),Oee,"")},Cee=J3,Lj="​",ku="᠎",Z3=function(){return String.prototype.trim&&Lj.trim()===Lj&&ku.trim()===ku&&("_"+ku).trim()==="_"+ku&&(ku+"_").trim()===ku+"_"?String.prototype.trim:Cee},Eee=dd,Pee=Z3,$ee=function(){var t=Pee();return Eee(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},Ree=kb,Tee=dd,kee=sv,Iee=J3,e4=Z3,jee=$ee,Aee=Ree(e4()),t4=function(t){return kee(t),Aee(t)};Tee(t4,{getPolyfill:e4,implementation:Iee,shim:jee});var r4=t4,hx,Nj;function Mee(){if(Nj)return hx;Nj=1;var e=Xa,t=e("%Number%"),r=e("%RegExp%"),n=Tn,o=e("%parseInt%"),a=ki,i=hee(),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=r4;return hx=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)},hx}var Fee=Xa,Dj=Tn,Bj=Fee("%Number%"),Lee=lee(),Nee=vee(),Dee=Mee(),Bee=function(t){var r=Lee(t)?t:Nee(t,Bj);if(typeof r=="symbol")throw new Dj("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new Dj("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?Dee(r):Bj(r)},zee=Math.floor,Uee=function(t){return typeof t=="bigint"?t:zee(t)},zj=Uee,Vee=Tn,Wee=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new Vee("argument must be a Number or a BigInt");var r=t<0?-zj(-t):zj(t);return r===0?0:r},n4=Number.isNaN||function(t){return t!==t},qee=n4,Hee=function(e){return(typeof e=="number"||typeof e=="bigint")&&!qee(e)&&e!==1/0&&e!==-1/0},Gee=Bee,Kee=Wee,Qee=n4,Xee=Hee,Yee=function(t){var r=Gee(t);return Qee(r)||r===0?0:Xee(r)?Kee(r):r},Uj=see,Jee=Yee,Zee=function(t){var r=Jee(t);return r<=0?0:r>Uj?Uj:r},ete=Tn,tte=G3,rte=Zee,nte=jE,ote=function(t){if(nte(t)!=="Object")throw new ete("Assertion failed: `obj` must be an Object");return rte(tte(t,"length"))},ate=Object,ite=ate,ste=sv,lte=function(t){return ste(t),ite(t)},ute=String.prototype.valueOf,cte=function(t){try{return ute.call(t),!0}catch{return!1}},dte=Object.prototype.toString,fte="[object String]",pte=AE(),vte=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:pte?cte(t):dte.call(t)===fte},mte=ki,hte=Tn,gte=cZ,yte=G3,bte=QZ,_te=iee,xte=ote,wte=lte,Ste=X3,Ote=vte,Cte=mte("String.prototype.split"),Vj=Object("a"),Ete=Vj[0]!=="a"||!(0 in Vj),o4=function(t){var r=wte(this),n=Ete&&Ote(this)?Cte(this,""):r,o=xte(n);if(!_te(t))throw new hte("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},h4={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:bx,chinese:function(){return 0},croatian:bx,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:bx,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 rre(e){var t={};return Jg(ME(e),function(r){var n=r[0],o=r[1];Jg(o,function(a){t[a]=n})}),t}function nre(e,t){var r=rre(e.pluralTypeToLanguages);return r[t]||r[m4.call(t,/-/,1)[0]]||r.en}function ore(e,t,r){return e.pluralTypes[t](r)}function are(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=nre(t,r),n&&(e[r]=n)),n}}function Hj(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ire(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===Qh||r===Qh)throw new RangeError('"'+Qh+'" token is reserved for pluralization');return new RegExp(Hj(t)+"(.*?)"+Hj(r),"g")}var sre=are(),lre=/%\{(.*?)\}/g;function FE(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||lre,c=a||v4,l=typeof t=="number"?{smart_count:t}:t;if(l.smart_count!=null&&e){var f=o||h4,v=m4.call(e,Qh),m=r||"en",h=sre(f,m),x=ore(f,h,l.smart_count);i=ere(v[x]||v[0])}return i=c.call(i,s,function(w,O){return!p4(l,O)||l[O]==null?w:l[O]}),i}function Ii(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?FE:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||tre,this.replaceImplementation=t.replace||v4,this.tokenRegex=ire(t.interpolation),this.pluralRules=t.pluralRules||h4}Ii.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale};Ii.prototype.extend=function(e,t){Jg(ME(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)};Ii.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:Jg(ME(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)};Ii.prototype.clear=function(){this.phrases={}};Ii.prototype.replace=function(e){this.clear(),this.extend(e)};Ii.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=FE(r,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n};Ii.prototype.has=function(e){return p4(this.phrases,e)};Ii.transformPhrase=function(t,r,n){return FE(t,r,n)};var ure=Ii;const Gj=hr(ure);var ac=function(){return ac=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 Xr(){}function fre(e,t){return typeof e=="function"?e(t):e}function vS(e){return typeof e=="number"&&e>=0&&e!==1/0}function ey(e){return Array.isArray(e)?e:[e]}function _4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xh(e,t,r){return lv(e)?typeof t=="function"?j({},r,{queryKey:e,queryFn:t}):j({},t,{queryKey:e}):e}function pre(e,t,r){return lv(e)?typeof t=="function"?j({},r,{mutationKey:e,mutationFn:t}):j({},t,{mutationKey:e}):typeof e=="function"?j({},t,{mutationFn:e}):j({},e)}function ls(e,t,r){return lv(e)?[j({},t,{queryKey:e}),r]:[e||{},t]}function vre(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 Kj(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(lv(s)){if(n){if(t.queryHash!==LE(s,t.options))return!1}else if(!ty(t.queryKey,s))return!1}var l=vre(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 Qj(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(lv(a)){if(!t.options.mutationKey)return!1;if(r){if(gs(t.options.mutationKey)!==gs(a))return!1}else if(!ty(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function LE(e,t){var r=(t==null?void 0:t.queryKeyHashFn)||gs;return r(e)}function gs(e){var t=ey(e);return mre(t)}function mre(e){return JSON.stringify(e,function(t,r){return mS(r)?Object.keys(r).sort().reduce(function(n,o){return n[o]=r[o],n},{}):r})}function ty(e,t){return x4(ey(e),ey(t))}function x4(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!x4(e[r],t[r])}):!1}function ry(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||mS(e)&&mS(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!(!Xj(r)||!r.hasOwnProperty("isPrototypeOf"))}function Xj(e){return Object.prototype.toString.call(e)==="[object Object]"}function lv(e){return typeof e=="string"||Array.isArray(e)}function gre(e){return new Promise(function(t){setTimeout(t,e)})}function Yj(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function w4(){if(typeof AbortController=="function")return new AbortController}var yre=function(e){Ai(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Zg&&((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}(fd),Kf=new yre,bre=function(e){Ai(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Zg&&((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}(fd),Yh=new bre;function _re(e){return Math.min(1e3*Math.pow(2,e),3e4)}function ny(e){return typeof(e==null?void 0:e.cancel)=="function"}var S4=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Jh(e){return e instanceof S4}var O4=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 S4(w)),r.abort==null||r.abort(),ny(h)))try{h.cancel()}catch{}},r.isTransportCancelable=ny(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:_re,_=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 Kj(s,c)})},r.findAll=function(o,a){var i=ls(o,a),s=i[0];return Object.keys(s).length>0?this.queries.filter(function(c){return Kj(s,c)}):this.queries},r.notify=function(o){var a=this;Vt.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){var o=this;Vt.batch(function(){o.queries.forEach(function(a){a.onFocus()})})},r.onOnline=function(){var o=this;Vt.batch(function(){o.queries.forEach(function(a){a.onOnline()})})},t}(fd),Cre=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||E4(),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(Xr).catch(Xr)):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),oy().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 O4({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=Ere(this.state,n),Vt.batch(function(){o.observers.forEach(function(a){a.onMutationUpdate(n)}),o.mutationCache.notify(o)})},e}();function E4(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function Ere(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 Pre=function(e){Ai(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 Cre({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;Vt.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 Qj(o,a)})},r.findAll=function(o){return this.mutations.filter(function(a){return Qj(o,a)})},r.notify=function(o){var a=this;Vt.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 Vt.batch(function(){return o.reduce(function(a,i){return a.then(function(){return i.continue().catch(Xr)})},Promise.resolve())})},t}(fd);function $re(){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=w4(),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(ny(W)){var ne=te;ne.cancel=W.cancel}return te},C;if(!h.length)C=P([]);else if(v){var T=typeof f<"u",R=T?f:Jj(t.options,h);C=P(h,T,R)}else if(m){var I=typeof f<"u",A=I?f:Rre(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]:Jj(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=Vt.batch(function(){return i.queryCache.findAll(c).map(function(m){return m.cancel(f)})});return Promise.all(v).then(Xr).catch(Xr)},t.invalidateQueries=function(n,o,a){var i,s,c,l=this,f=ls(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 Vt.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=ls(n,o,a),c=s[0],l=s[1],f=Vt.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(Xr);return l!=null&&l.throwOnError||(v=v.catch(Xr)),v},t.fetchQuery=function(n,o,a){var i=Xh(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(Xr).catch(Xr)},t.fetchInfiniteQuery=function(n,o,a){var i=Xh(n,o,a);return i.behavior=$re(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(n,o,a){return this.fetchInfiniteQuery(n,o,a).then(Xr).catch(Xr)},t.cancelMutations=function(){var n=this,o=Vt.batch(function(){return n.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(o).then(Xr).catch(Xr)},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 gs(n)===gs(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 ty(n,a.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(n,o){var a=this.mutationDefaults.find(function(i){return gs(n)===gs(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 ty(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=LE(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}(),kre=function(e){Ai(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),Zj(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return hS(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return hS(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&&eA(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(Xr)),a},r.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(Zg||this.currentResult.isStale||!vS(this.options.staleTime))){var a=_4(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,!(Zg||this.options.enabled===!1||!vS(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||Kf.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 T=this.hasListeners(),R=!T&&Zj(o,a),I=T&&eA(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=ry(c==null?void 0:c.data,C)),this.selectResult=C,this.selectError=null}catch(L){oy().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=ry(c==null?void 0:c.data,A)),this.selectError=null}catch(L){oy().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:NE(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,!hre(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"&&!Jh(o.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},r.notify=function(o){var a=this;Vt.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}(fd);function Ire(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Zj(e,t){return Ire(e,t)||e.state.dataUpdatedAt>0&&hS(e,t,t.refetchOnMount)}function hS(e,t,r){if(t.enabled!==!1){var n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&NE(e,t)}return!1}function eA(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&NE(e,r)}function NE(e,t){return e.isStaleByTime(t.staleTime)}var jre=function(e){Ai(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:E4(),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;Vt.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}(fd),Are=If.unstable_batchedUpdates;Vt.setBatchNotifyFunction(Are);var Mre=console;wre(Mre);var tA=fe.createContext(void 0),P4=fe.createContext(!1);function $4(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=tA),window.ReactQueryClientContext):tA}var Yo=function(){var t=fe.useContext($4(fe.useContext(P4)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Fre=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=$4(o);return fe.createElement(P4.Provider,{value:o},fe.createElement(i.Provider,{value:r},a))};function Lre(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var Nre=fe.createContext(Lre()),Dre=function(){return fe.useContext(Nre)};function R4(e,t,r){return typeof t=="function"?t.apply(void 0,r):typeof t=="boolean"?t:!!e}function ou(e,t,r){var n=fe.useRef(!1),o=fe.useState(0),a=o[1],i=pre(e,t,r),s=Yo(),c=fe.useRef();c.current?c.current.setOptions(i):c.current=new jre(s,i);var l=c.current.getCurrentResult();fe.useEffect(function(){n.current=!0;var v=c.current.subscribe(Vt.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(Xr)},[]);if(l.error&&R4(void 0,c.current.options.useErrorBoundary,[l.error]))throw l.error;return j({},l,{mutate:f,mutateAsync:l.mutate})}function Bre(e,t){var r=fe.useRef(!1),n=fe.useState(0),o=n[1],a=Yo(),i=Dre(),s=a.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=Vt.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Vt.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Vt.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(Vt.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&&R4(s.suspense,s.useErrorBoundary,[f.error,l.getCurrentQuery()]))throw f.error;return s.notifyOnChangeProps==="tracked"&&(f=l.trackResult(f,s)),f}function Vs(e,t,r){var n=Xh(e,t,r);return Bre(n,kre)}/** - * @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 gS(){return gS=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function T4(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function rA(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 uv(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 nA;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(nA||(nA={}));function zre(e,t,r){return r===void 0&&(r="/"),Ure(e,t,r,!1)}function Ure(e,t,r,n){let o=typeof t=="string"?uv(t):t,a=DE(o.pathname||"/",r);if(a==null)return null;let i=k4(e);Vre(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("/")&&(mr(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&&(mr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),k4(a.children,t,f,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:Xre(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 I4(a.path))o(a,i,c)}),t}function I4(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=I4(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 Vre(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Yre(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Wre=/^:[\w-]+$/,qre=3,Hre=2,Gre=1,Kre=10,Qre=-2,oA=e=>e==="*";function Xre(e,t){let r=e.split("/"),n=r.length;return r.some(oA)&&(n+=Qre),t&&(n+=Hre),r.filter(o=>!oA(o)).reduce((o,a)=>o+(Wre.test(a)?qre:a===""?Gre:Kre),n)}function Yre(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 Jre(e,t,r){r===void 0&&(r=!1);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 Zre(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),T4(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 j4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return T4(!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 DE(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 ene(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?uv(e):e;return{pathname:r?r.startsWith("/")?r:tne(r,t):t,search:one(n),hash:ane(o)}}function tne(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 _x(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 rne(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function BE(e,t){let r=rne(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function zE(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=uv(e):(o=gS({},e),mr(!o.pathname||!o.pathname.includes("?"),_x("?","pathname","search",o)),mr(!o.pathname||!o.pathname.includes("#"),_x("#","pathname","hash",o)),mr(!o.search||!o.search.includes("#"),_x("#","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=ene(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,"/"),nne=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),one=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ane=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ine(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const A4=["post","put","patch","delete"];new Set(A4);const sne=["get",...A4];new Set(sne);/** - * 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 jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;tqc(e,j4(t)),[t,e])}function F4(e){d.useContext(Mi).static||d.useLayoutEffect(e)}function Ja(){let{isDataRoute:e}=d.useContext(Ya);return e?Cne():dne()}function dne(){Ws()||mr(!1);let e=d.useContext(UE),{basename:t,future:r,navigator:n}=d.useContext(Mi),{matches:o}=d.useContext(Ya),{pathname:a}=Fr(),i=JSON.stringify(BE(o,r.v7_relativeSplatPath)),s=d.useRef(!1);return F4(()=>{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=zE(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 fne=d.createContext(null);function pne(e){let t=d.useContext(Ya).outlet;return t&&d.createElement(fne.Provider,{value:e},t)}function Ab(){let{matches:e}=d.useContext(Ya),t=e[e.length-1];return t?t.params:{}}function VE(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Mi),{matches:o}=d.useContext(Ya),{pathname:a}=Fr(),i=JSON.stringify(BE(o,n.v7_relativeSplatPath));return d.useMemo(()=>zE(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function vne(e,t){return mne(e,t)}function mne(e,t,r,n){Ws()||mr(!1);let{navigator:o}=d.useContext(Mi),{matches:a}=d.useContext(Ya),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let l=Fr(),f;if(t){var v;let O=typeof t=="string"?uv(t):t;c==="/"||(v=O.pathname)!=null&&v.startsWith(c)||mr(!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=zre(e,{pathname:h}),w=_ne(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(jb.Provider,{value:{location:jp({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ay.Pop}},w):w}function hne(){let e=One(),t=ine(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 gne=d.createElement(hne,null);class yne 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(Ya.Provider,{value:this.props.routeContext},d.createElement(M4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function bne(e){let{routeContext:t,match:r,children:n}=e,o=d.useContext(UE);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(Ya.Provider,{value:t},n)}function _ne(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||mr(!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||gne,c&&(l<0&&m===0?(Ene("route-fallback",!1),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(bne,{match:v,routeContext:{outlet:f,matches:b,isDataRoute:r!=null},children:_})};return r&&(v.route.ErrorBoundary||v.route.errorElement||m===0)?d.createElement(yne,{location:r.location,revalidation:r.revalidation,component:w,error:h,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):g()},null)}var L4=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(L4||{}),iy=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}(iy||{});function xne(e){let t=d.useContext(UE);return t||mr(!1),t}function wne(e){let t=d.useContext(lne);return t||mr(!1),t}function Sne(e){let t=d.useContext(Ya);return t||mr(!1),t}function N4(e){let t=Sne(),r=t.matches[t.matches.length-1];return r.route.id||mr(!1),r.route.id}function One(){var e;let t=d.useContext(M4),r=wne(iy.UseRouteError),n=N4(iy.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Cne(){let{router:e}=xne(L4.UseNavigateStable),t=N4(iy.UseNavigateStable),r=d.useRef(!1);return F4(()=>{r.current=!0}),d.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,jp({fromRouteId:t},a)))},[e,t])}const aA={};function Ene(e,t,r){!t&&!aA[e]&&(aA[e]=!0)}function Pne(e){let{to:t,replace:r,state:n,relative:o}=e;Ws()||mr(!1);let{future:a,static:i}=d.useContext(Mi),{matches:s}=d.useContext(Ya),{pathname:c}=Fr(),l=Ja(),f=zE(t,BE(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 $ne(e){return pne(e.context)}function Br(e){mr(!1)}function Rne(e){let{basename:t="/",children:r=null,location:n,navigationType:o=ay.Pop,navigator:a,static:i=!1,future:s}=e;Ws()&&mr(!1);let c=t.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:c,navigator:a,static:i,future:jp({v7_relativeSplatPath:!1},s)}),[c,s,a,i]);typeof n=="string"&&(n=uv(n));let{pathname:f="/",search:v="",hash:m="",state:h=null,key:x="default"}=n,w=d.useMemo(()=>{let O=DE(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(Mi.Provider,{value:l},d.createElement(jb.Provider,{children:r,value:w}))}function ys(e){let{children:t,location:r}=e;return vne(yS(t),r)}new Promise(()=>{});function yS(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,yS(n.props.children,a));return}n.type!==Br&&mr(!1),!n.props.index||!n.props.children||mr(!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=yS(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 bS(){return bS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function kne(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ine(e,t){return e.button===0&&(!t||t==="_self")&&!kne(e)}const jne=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Ane="6";try{window.__reactRouterVersion=Ane}catch{}const Mne=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Fne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ya=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=Tne(t,jne),{basename:h}=d.useContext(Mi),x,w=!1;if(typeof l=="string"&&Fne.test(l)&&(x=l,Mne))try{let _=new URL(window.location.href),$=l.startsWith("//")?new URL(_.protocol+l):new URL(l),P=DE($.pathname,h);$.origin===_.origin&&P!=null?l=P+$.search+$.hash:w=!0}catch{}let O=une(l,{relative:o}),b=Lne(l,{replace:i,state:s,target:c,preventScrollReset:f,relative:o,unstable_viewTransition:v});function g(_){n&&n(_),_.defaultPrevented||b(_)}return d.createElement("a",bS({},m,{href:x||O,onClick:w||a?n:g,ref:r,target:c}))});var iA;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(iA||(iA={}));var sA;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(sA||(sA={}));function Lne(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,c=Ja(),l=Fr(),f=VE(e,{relative:i});return d.useCallback(v=>{if(Ine(v,r)){v.preventDefault();let m=n!==void 0?n:rA(l)===rA(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 Nne="RaStore",Dne=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}},_S=Dne(),Bne=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(Nne).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?lA(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(_S){var s=fi().getItem("".concat(r,".version"));if(s&&s!==e){var c=fi();Object.keys(c).forEach(function(l){l.startsWith(r)&&c.removeItem(l)})}fi().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){_S&&window.removeEventListener("storage",i)},getItem:function(s,c){var l=fi().getItem("".concat(r,".").concat(s));return l==null?c:lA(l)},setItem:function(s,c){c===void 0?fi().removeItem("".concat(r,".").concat(s)):fi().setItem("".concat(r,".").concat(s),JSON.stringify(c)),a(s,c)},removeItem:function(s){fi().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var c=fi();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=fi();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]}}}},lA=function(e){try{return JSON.parse(e)}catch{return e}},zne=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}(),Une=new zne,fi=function(){return _S?window.localStorage:Une},Vne=typeof oo=="object"&&oo&&oo.Object===Object&&oo,D4=Vne,Wne=D4,qne=typeof self=="object"&&self&&self.Object===Object&&self,Hne=Wne||qne||Function("return this")(),xa=Hne,Gne=xa,Kne=Gne.Symbol,pd=Kne,uA=pd,B4=Object.prototype,Qne=B4.hasOwnProperty,Xne=B4.toString,mf=uA?uA.toStringTag:void 0;function Yne(e){var t=Qne.call(e,mf),r=e[mf];try{e[mf]=void 0;var n=!0}catch{}var o=Xne.call(e);return n&&(t?e[mf]=r:delete e[mf]),o}var Jne=Yne,Zne=Object.prototype,eoe=Zne.toString;function toe(e){return eoe.call(e)}var roe=toe,cA=pd,noe=Jne,ooe=roe,aoe="[object Null]",ioe="[object Undefined]",dA=cA?cA.toStringTag:void 0;function soe(e){return e==null?e===void 0?ioe:aoe:dA&&dA in Object(e)?noe(e):ooe(e)}var vd=soe;function loe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Jo=loe,uoe=vd,coe=Jo,doe="[object AsyncFunction]",foe="[object Function]",poe="[object GeneratorFunction]",voe="[object Proxy]";function moe(e){if(!coe(e))return!1;var t=uoe(e);return t==foe||t==poe||t==doe||t==voe}var WE=moe,hoe=xa,goe=hoe["__core-js_shared__"],yoe=goe,xx=yoe,fA=function(){var e=/[^.]+$/.exec(xx&&xx.keys&&xx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function boe(e){return!!fA&&fA in e}var _oe=boe,xoe=Function.prototype,woe=xoe.toString;function Soe(e){if(e!=null){try{return woe.call(e)}catch{}try{return e+""}catch{}}return""}var z4=Soe,Ooe=WE,Coe=_oe,Eoe=Jo,Poe=z4,$oe=/[\\^$.*+?()[\]{}|]/g,Roe=/^\[object .+?Constructor\]$/,Toe=Function.prototype,koe=Object.prototype,Ioe=Toe.toString,joe=koe.hasOwnProperty,Aoe=RegExp("^"+Ioe.call(joe).replace($oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Moe(e){if(!Eoe(e)||Coe(e))return!1;var t=Ooe(e)?Aoe:Roe;return t.test(Poe(e))}var Foe=Moe;function Loe(e,t){return e==null?void 0:e[t]}var Noe=Loe,Doe=Foe,Boe=Noe;function zoe(e,t){var r=Boe(e,t);return Doe(r)?r:void 0}var au=zoe,Uoe=au,Voe=function(){try{var e=Uoe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),U4=Voe,pA=U4;function Woe(e,t,r){t=="__proto__"&&pA?pA(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var qE=Woe;function qoe(e,t){return e===t||e!==e&&t!==t}var md=qoe,Hoe=qE,Goe=md,Koe=Object.prototype,Qoe=Koe.hasOwnProperty;function Xoe(e,t,r){var n=e[t];(!(Qoe.call(e,t)&&Goe(n,r))||r===void 0&&!(t in e))&&Hoe(e,t,r)}var HE=Xoe,Yoe=Array.isArray,wa=Yoe;function Joe(e){return e!=null&&typeof e=="object"}var Fi=Joe,Zoe=vd,eae=Fi,tae="[object Symbol]";function rae(e){return typeof e=="symbol"||eae(e)&&Zoe(e)==tae}var Mb=rae,nae=wa,oae=Mb,aae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iae=/^\w*$/;function sae(e,t){if(nae(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||oae(e)?!0:iae.test(e)||!aae.test(e)||t!=null&&e in Object(t)}var GE=sae,lae=au,uae=lae(Object,"create"),Fb=uae,vA=Fb;function cae(){this.__data__=vA?vA(null):{},this.size=0}var dae=cae;function fae(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var pae=fae,vae=Fb,mae="__lodash_hash_undefined__",hae=Object.prototype,gae=hae.hasOwnProperty;function yae(e){var t=this.__data__;if(vae){var r=t[e];return r===mae?void 0:r}return gae.call(t,e)?t[e]:void 0}var bae=yae,_ae=Fb,xae=Object.prototype,wae=xae.hasOwnProperty;function Sae(e){var t=this.__data__;return _ae?t[e]!==void 0:wae.call(t,e)}var Oae=Sae,Cae=Fb,Eae="__lodash_hash_undefined__";function Pae(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Cae&&t===void 0?Eae:t,this}var $ae=Pae,Rae=dae,Tae=pae,kae=bae,Iae=Oae,jae=$ae;function hd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var Qae=Kae,Xae=Lb;function Yae(e,t){var r=this.__data__,n=Xae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Jae=Yae,Zae=Fae,eie=Vae,tie=Hae,rie=Qae,nie=Jae;function gd(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&wle?new yle:void 0;for(a.set(e,t),a.set(t,e);++v-1&&e%1==0&&e<=bue}var nP=_ue,xue=vd,wue=nP,Sue=Fi,Oue="[object Arguments]",Cue="[object Array]",Eue="[object Boolean]",Pue="[object Date]",$ue="[object Error]",Rue="[object Function]",Tue="[object Map]",kue="[object Number]",Iue="[object Object]",jue="[object RegExp]",Aue="[object Set]",Mue="[object String]",Fue="[object WeakMap]",Lue="[object ArrayBuffer]",Nue="[object DataView]",Due="[object Float32Array]",Bue="[object Float64Array]",zue="[object Int8Array]",Uue="[object Int16Array]",Vue="[object Int32Array]",Wue="[object Uint8Array]",que="[object Uint8ClampedArray]",Hue="[object Uint16Array]",Gue="[object Uint32Array]",Qt={};Qt[Due]=Qt[Bue]=Qt[zue]=Qt[Uue]=Qt[Vue]=Qt[Wue]=Qt[que]=Qt[Hue]=Qt[Gue]=!0;Qt[Oue]=Qt[Cue]=Qt[Lue]=Qt[Eue]=Qt[Nue]=Qt[Pue]=Qt[$ue]=Qt[Rue]=Qt[Tue]=Qt[kue]=Qt[Iue]=Qt[jue]=Qt[Aue]=Qt[Mue]=Qt[Fue]=!1;function Kue(e){return Sue(e)&&wue(e.length)&&!!Qt[xue(e)]}var Que=Kue;function Xue(e){return function(t){return e(t)}}var Gb=Xue,uy={exports:{}};uy.exports;(function(e,t){var r=D4,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})(uy,uy.exports);var oP=uy.exports,Yue=Que,Jue=Gb,EA=oP,PA=EA&&EA.isTypedArray,Zue=PA?Jue(PA):Yue,aP=Zue,ece=sue,tce=qb,rce=wa,nce=Hb,oce=Bb,ace=aP,ice=Object.prototype,sce=ice.hasOwnProperty;function lce(e,t){var r=rce(e),n=!r&&tce(e),o=!r&&!n&&nce(e),a=!r&&!n&&!o&&ace(e),i=r||n||o||a,s=i?ece(e.length,String):[],c=s.length;for(var l in e)(t||sce.call(e,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||oce(l,c)))&&s.push(l);return s}var r5=lce,uce=Object.prototype;function cce(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||uce;return e===r}var iP=cce;function dce(e,t){return function(r){return e(t(r))}}var n5=dce,fce=n5,pce=fce(Object.keys,Object),vce=pce,mce=iP,hce=vce,gce=Object.prototype,yce=gce.hasOwnProperty;function bce(e){if(!mce(e))return hce(e);var t=[];for(var r in Object(e))yce.call(e,r)&&r!="constructor"&&t.push(r);return t}var _ce=bce,xce=WE,wce=nP;function Sce(e){return e!=null&&wce(e.length)&&!xce(e)}var Kb=Sce,Oce=r5,Cce=_ce,Ece=Kb;function Pce(e){return Ece(e)?Oce(e):Cce(e)}var Qb=Pce,$ce=Z4,Rce=rP,Tce=Qb;function kce(e){return $ce(e,Tce,Rce)}var o5=kce,$A=o5,Ice=1,jce=Object.prototype,Ace=jce.hasOwnProperty;function Mce(e,t,r,n,o,a){var i=r&Ice,s=$A(e),c=s.length,l=$A(t),f=l.length;if(c!=f&&!i)return!1;for(var v=c;v--;){var m=s[v];if(!(i?m in t:Ace.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>=rpe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ipe=ape,spe=tpe,lpe=ipe,upe=lpe(spe),_5=upe,cpe=fP,dpe=b5,fpe=_5;function ppe(e,t){return fpe(dpe(e,t,cpe),e+"")}var Yb=ppe,vpe=md,mpe=Kb,hpe=Bb,gpe=Jo;function ype(e,t,r){if(!gpe(r))return!1;var n=typeof t;return(n=="number"?mpe(r)&&hpe(t,r.length):n=="string"&&t in r)?vpe(r[t],e):!1}var x5=ype,bpe=Yb,_pe=x5;function xpe(e){return bpe(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&&_pe(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 jpe(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(Rne,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:n})}var w5=d.createContext(""),Ape=function(e){var t=e.children,r=e.basename;return d.createElement(w5.Provider,{value:r},t)},Mpe=function(e){var t=e.history,r=e.basename,n=r===void 0?"":r,o=e.children,a=Ws(),i=a?Fpe:Lpe;return d.createElement(Ape,{basename:a?n:""},d.createElement(i,{basename:n,history:t},o))},Fpe=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},Lpe=function(e){var t=e.children,r=e.history,n=d.useMemo(function(){return r||kpe()},[r]);return d.createElement(jpe,{history:n},t)},qs=function(){return d.useContext(w5)},Hs=function(){var e=qs();return d.useCallback(function(t){var r=t.resource,n=t.id,o=t.type;switch(o){case"list":return ja("".concat(e,"/").concat(r));case"create":return ja("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?ja("".concat(e,"/").concat(r)):ja("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?ja("".concat(e,"/").concat(r)):ja("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}},[e])},ja=function(e){return e.replace("//","/")},Qf=function(){return Qf=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}",rM=new RegExp("("+C5+")|([^%]+?)","gi"),nM=new RegExp("("+C5+")+","gi");function PS(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([],PS(r),PS(n))}function rve(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(rM)||[],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)]},ive=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 T=typeof P=="string"&&P.includes(g.arrayFormatSeparator),R=typeof P=="string"&&!T&&v(P,g).includes(g.arrayFormatSeparator);P=R?v(P,g):P;const I=T||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 T=/(\[\])$/.test($);if($=$.replace(/\[\]$/,""),!T){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[T,R]=n(_.decode?C.replace(/\+/g," "):C,"=");R=R===void 0?null:["comma","separator","bracket-separator"].includes(_.arrayFormat)?R:v(R,_),$(v(T,_),R,P)}for(const C of Object.keys(P)){const T=P[C];if(typeof T=="object"&&T!==null)for(const R of Object.keys(T))T[R]=O(T[R],_);else P[C]=O(T,_)}return _.sort===!1?P:(_.sort===!0?Object.keys(P).sort():Object.keys(P).sort(_.sort)).reduce((C,T)=>{const R=P[T];return R&&typeof R=="object"&&!Array.isArray(R)?C[T]=m(R):C[T]=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 T=Object.keys(C);return _.sort!==!1&&T.sort(_.sort),T.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}),T=Object.assign(C,g.query);let R=e.stringify(T,_);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:T}=e.parseUrl(g,$);return e.stringifyUrl({url:P,query:o(C,_),fragmentIdentifier:T},$)},e.exclude=(g,_,$)=>{const P=Array.isArray(_)?C=>!_.includes(C):(C,T)=>!_(C,T);return e.pick(g,P,$)}})(Ql);var fy=function(){return fy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new eve(c&&c.message||a,o,c)):Promise.resolve({status:o,headers:i,body:s,json:c})})},uve=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=[]),uve(e)?Object.assign.apply(Object,sve([{}],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},mve=["getList","getMany","getManyReference"],go=function(){var e=d.useContext(O5)||$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(Vt.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),c=e.getMutationCache().subscribe(Vt.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),c()}},[e]),a},ei=function(){var e=Yo();return d.useCallback(function(){e.invalidateQueries()},[e])},T5=function(e,t,r){var n=t.id,o=t.meta,a=go();return Vs([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)},sc=function(){return sc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?k5(s,t-1,r,n,o):Sve(o,s):n||(o[o.length]=s)}return o}var gP=k5;function Cve(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a-1}var I5=Lve;function Nve(e,t,r){for(var n=-1,o=e==null?0:e.length;++n=Jve){var l=t?null:Xve(e);if(l)return Yve(l);i=!1,o=Qve,c=new Hve}else c=t?[]:s;e:for(;++n=t||T<0||v&&R>=a}function b(){var C=Px();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(Px())}function P(){var C=Px(),T=O(C);if(n=arguments,o=this,c=C,T){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 Mme=Ame;const M5=hr(Mme);function cM(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var F5=function(e,t){if(cM(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(", ")))},IS=function(){return IS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0?(v=e.current)[l].apply(v,ch(ch([],m,!1),[f],!1)):a.apply(void 0,m)};return e.current.length>0?(i=e.current)[l].apply(i,ch(ch([],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},vy=function(){return vy=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&&Fhe(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}(),tge=ege,rge=typeof window>"u"?oo:window;function nge(e,t){if(e instanceof rge[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 Rx,yM;function oge(){return yM||(yM=1,Rx=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}}),Rx}var age=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,T=!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),bM(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))),bM(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}(),uge=lge,cge=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},dge=cge,xM=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},wM=uge,SM=dge,fge=eB,pge=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:fge,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":xM(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),c=s[0];if((typeof c>"u"?"undefined":xM(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 SM(new wM(e));var m=Object.assign({},e,r),h=new wM(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 SM};const vge=hr(pge),mge=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 hge=function(e,t,r,n){return vge(e,function(o,a){return mge(a,n)})};const gge=hge;var yge=function(e){return function(t,r,n){return e.getMany(n,{ids:bge(t,r)}).then(function(o){var a=o.data;return a.reduce(function(i,s){return i[s.id]=s,i},{})})}},bge=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)},[])))},Iu=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 Iu([],c,!0);var l=c.indexOf(s);return l>-1?Iu(Iu([],c.slice(0,l),!0),c.slice(l+1),!0):Iu(Iu([],c,!0),[s],!1)})},clearSelection:function(){a()}}},[o,a]);return[n,i]},_ge=[],xge=Wb,wge=sP,Sge=1,Oge=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&&!T&&$(A)},[h.search]);var F=d.useCallback(function(ne){C.current&&(P.current?P.current=fM(P.current,ne):(P.current=fM(A,ne),setTimeout(function(){o?b(P.current):x({search:"?".concat(Ql.stringify(ks(ks({},P.current),{filter:JSON.stringify(P.current.filter),displayedFilters:JSON.stringify(P.current.displayedFilters)})))},{state:{_scrollToTop:ne.type===TS}}),P.current=void 0},0)))},OM(OM([],R,!0),[x],!1)),L=d.useCallback(function(ne){return F({type:N5,payload:ne})},[F]),D=d.useCallback(function(ne){return F({type:TS,payload:ne})},[F]),U=d.useCallback(function(ne){return F({type:D5,payload:ne})},[F]),H=A.filter||PM,q=A.displayedFilters||PM,G=M5(function(ne,ee){F({type:kS,payload:{filter:Ls(ne),displayedFilters:ee}})},r),z=d.useCallback(function(ne,ee,Oe){return Oe===void 0&&(Oe=!0),Oe?G(ne,ee):F({type:kS,payload:{filter:Ls(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[ks({displayedFilters:q,filterValues:H,requestSignature:R},A),{changeParams:F,setPage:D,setPerPage:U,setSort:L,setFilters:z,hideFilter:W,showFilter:te}]},jye=["page","perPage","sort","order","filter","displayedFilters"],CM=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Aye=function(e){var t=e.search,r=Tye(Ql.parse(t),function(n,o){return jye.indexOf(o)!==-1});return CM(r,"filter"),CM(r,"displayedFilters"),r},Mye=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},Fye=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:Mye(r)?ks({},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),ks(ks({},i),{page:EM(i.page,1),perPage:EM(i.perPage,10)})},EM=function(e,t){var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},PM={},Lye={field:"id",order:Fl},$M={},wP=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});wP.displayName="ListContext";var iB=d.createContext({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null}),Nye=function(e){return d.useMemo(function(){return Jb(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}),Dye=function(e){return d.useMemo(function(){return Jb(e,["sort","setSort","resource"])},[e.sort,e.setSort])};sB.displayName="ListSortContext";var SP=d.createContext({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});SP.displayName="ListPaginationContext";var Bye=function(e){return d.useMemo(function(){return Jb(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])},OP=function(e){var t=e.value,r=e.children;return d.createElement(wP.Provider,{value:t},d.createElement(iB.Provider,{value:Nye(t)},d.createElement(sB.Provider,{value:Dye(t)},d.createElement(SP.Provider,{value:Bye(t)},r))))},Ll=function(){return Ll=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(),$=qt(),P=Iye({debounce:r,disableSyncWithLocation:o,filterDefaultValues:c,perPage:f,resource:O,sort:x,storeKey:w}),C=P[0],T=P[1],R=fv(O),I=R[0],A=R[1],F=yve(O,{pagination:{page:C.page,perPage:C.perPage},sort:{field:C.sort,order:C.order},filter:Ll(Ll({},C.filter),s),meta:b},Ll({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)){T.setPage(1);return}if(U!=null){var ee=Math.ceil(U/C.perPage)||1;!G&&C.page>ee&&T.setPage(ee)}},[G,C.page,C.perPage,L,T,U]);var W=d.useMemo(function(){return{field:C.sort,order:C.order}},[C.sort,C.order]),te=Cd(),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:T.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:T.setFilters,setPage:T.setPage,setPerPage:T.setPerPage,setSort:T.setSort,showFilter:T.showFilter,total:U,hasNextPage:D?D.hasNextPage:U!=null?C.page*C.perPage1}},Vye={field:"id",order:Fl},Wye=["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"],Mp=function(e){return Object.keys(e).filter(function(t){return!Wye.includes(t)}).reduce(function(t,r){var n;return Ll(Ll({},t),(n={},n[r]=e[r],n))},{})},qye=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?[]:dh(dh([],c.slice(0,l),!0),c.slice(l+1),!0):r?[t]:dh(dh([],c,!0),[t],!1)})},[a,t,r]);return[i,s]},Kye=function(e,t){var r=fn("".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]},lc=function(){return lc=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:Qye,selectedIds:te,setFilters:ve,setPage:L,setPerPage:U,setSort:z,showFilter:he,total:R==null?void 0:R.total}},Xye={},en=function(e){var t=d.useContext(wP);return d.useMemo(function(){return iu({},e!=null?Yye(e):{},t)},[t,e])},Yye=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,T=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:T,total:R}},Jye=function(e){var t=d.useContext(SP);return d.useMemo(function(){return iu({},e!=null?Zye(e):{},t)},[t,e])},Zye=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=fv(e),r=t[1].unselect;return d.useCallback(function(n){r(n)},[r])},cB=function(e){var t=fv(e),r=t[1].clearSelection;return d.useCallback(function(){r()},[r])},uc=function(){return uc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1,setSort:T,showFilter:W,total:ce}},pv=e=>e.type==="checkbox",cc=e=>e instanceof Date,Sn=e=>e==null;const dB=e=>typeof e=="object";var Mr=e=>!Sn(e)&&!Array.isArray(e)&&dB(e)&&!cc(e),fB=e=>Mr(e)&&e.target?pv(e.target)?e.target.checked:e.target.value:e,rbe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,pB=(e,t)=>e.has(rbe(t)),nbe=e=>{const t=e.constructor&&e.constructor.prototype;return Mr(t)&&t.hasOwnProperty("isPrototypeOf")},CP=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ir(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(!(CP&&(e instanceof Blob||e instanceof FileList))&&(r||Mr(e)))if(t=r?[]:{},!r&&!nbe(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Ir(e[n]));else return e;return t}var vv=e=>Array.isArray(e)?e.filter(Boolean):[],Ut=e=>e===void 0,Me=(e,t,r)=>{if(!t||!Mr(e))return r;const n=vv(t.split(/[,[\].]+?/)).reduce((o,a)=>Sn(o)?o:o[a],e);return Ut(n)||n===e?Ut(e[t])?r:e[t]:n},La=e=>typeof e=="boolean",EP=e=>/^\w*$/.test(e),vB=e=>vv(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ft=(e,t,r)=>{let n=-1;const o=EP(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]!==Lo.all&&(t._proxyFormState[i]=!n||Lo.all),r&&(r[i]=!0),e[i]}});return o},Dn=e=>Mr(e)&&!Object.keys(e).length,yB=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return Dn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===(!n||Lo.all))},Un=e=>Array.isArray(e)?e:[e],bB=(e,t,r)=>!e||!t||e===t||Un(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function e0(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 Od(e){const t=Zo(),{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,e0({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 Da=e=>typeof e=="string",_B=(e,t,r,n,o)=>Da(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=Zo(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i}=e||{},s=fe.useRef(n);s.current=n,e0({disabled:a,subject:r._subjects.values,next:f=>{bB(s.current,f.name,i)&&l(Ir(_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 obe(e){const t=Zo(),{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=Od({control:o,name:r}),l=fe.useRef(o.register(r,{...e.rules,value:s,...La(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=Ir(Me(o._options.defaultValues,r));Ft(o._defaultValues,r,m),Ut(Me(o._formValues,r))&&Ft(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,...La(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:fe.useCallback(f=>l.current.onChange({target:{value:fB(f),name:r},type:hy.CHANGE}),[r]),onBlur:fe.useCallback(()=>l.current.onBlur({target:{value:Me(o._formValues,r),name:r},type:hy.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 abe=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},Zi=()=>{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)})},Tx=(e,t,r={})=>r.shouldFocus||Ut(r.shouldFocus)?r.focusName||`${e}.${Ut(r.focusIndex)?t:r.focusIndex}.`:"",Jf=e=>({isOnSubmit:!e||e===Lo.onSubmit,isOnBlur:e===Lo.onBlur,isOnChange:e===Lo.onChange,isOnAll:e===Lo.all,isOnTouch:e===Lo.onTouched}),AS=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const xc=(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;xc(s,t)}else Mr(s)&&xc(s,t)}}};var wB=(e,t,r)=>{const n=Un(Me(e,r));return Ft(n,"root",t[r]),Ft(e,r,n),e},PP=e=>e.type==="file",bs=e=>typeof e=="function",gy=e=>{if(!CP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},eg=e=>Da(e),$P=e=>e.type==="radio",yy=e=>e instanceof RegExp;const kM={value:!1,isValid:!1},IM={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&&!Ut(e[0].attributes.value)?Ut(e[0].value)||e[0].value===""?IM:{value:e[0].value,isValid:!0}:IM:kM}return kM};const jM={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,jM):jM;function AM(e,t,r="validate"){if(eg(e)||Array.isArray(e)&&e.every(eg)||La(e)&&!e)return{type:r,message:eg(e)?e:"",ref:t}}var ju=e=>Mr(e)&&!yy(e)?e:{value:e,message:""},MS=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(La(L)?"":L||""),_.reportValidity())},P={},C=$P(a),T=pv(a),R=C||T,I=(w||PP(a))&&Ut(a.value)&&Ut(g)||gy(a)&&a.value===""||g===""||Array.isArray(g)&&!g.length,A=abe.bind(null,x,r,P),F=(L,D,U,H=pi.maxLength,q=pi.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||Sn(g))||La(g)&&!g||T&&!SB(i).isValid||C&&!OB(i).isValid)){const{value:L,message:D}=eg(s)?{value:!!s,message:s}:ju(s);if(L&&(P[x]={type:pi.required,message:D,ref:_,...A(pi.required,D)},!r))return $(D),P}if(!I&&(!Sn(f)||!Sn(v))){let L,D;const U=ju(v),H=ju(f);if(!Sn(g)&&!isNaN(g)){const q=a.valueAsNumber||g&&+g;Sn(U.value)||(L=q>U.value),Sn(H.value)||(D=qnew Date(new Date().toDateString()+" "+te),z=a.type=="time",W=a.type=="week";Da(U.value)&&g&&(L=z?G(g)>G(U.value):W?g>U.value:q>new Date(U.value)),Da(H.value)&&g&&(D=z?G(g)+L.value,H=!Sn(D.value)&&g.length<+D.value;if((U||H)&&(F(U,L.message,D.message),!r))return $(P[x].message),P}if(m&&!I&&Da(g)){const{value:L,message:D}=ju(m);if(yy(L)&&!g.match(L)&&(P[x]={type:pi.pattern,message:D,ref:a,...A(pi.pattern,D)},!r))return $(D),P}if(h){if(bs(h)){const L=await h(g,t),D=AM(L,_);if(D&&(P[x]={...D,...A(pi.validate,D.message)},!r))return $(D.message),P}else if(Mr(h)){let L={};for(const D in h){if(!Dn(L)&&!r)break;const U=AM(await h[D](g,t),_,D);U&&(L={...U,...A(D,U.message)},$(U.message),r&&(P[x]=L))}if(!Dn(L)&&(P[x]={ref:_,...L},!r))return P}}return $(!0),P},kx=(e,t)=>[...e,...Un(t)],Ix=e=>Array.isArray(e)?e.map(()=>{}):void 0;function jx(e,t,r){return[...e.slice(0,t),...Un(r),...e.slice(t)]}var Ax=(e,t,r)=>Array.isArray(e)?(Ut(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],Mx=(e,t)=>[...Un(t),...Un(e)];function ibe(e,t){let r=0;const n=[...e];for(const o of t)n.splice(o-r,1),r++;return vv(n).length?n:[]}var Fx=(e,t)=>Ut(t)?[]:ibe(e,Un(t).sort((r,n)=>r-n)),Lx=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function sbe(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function ube(e){const t=Zo(),{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(Zi)),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),e0({next:({values:P,name:C})=>{if(C===f.current||!C){const T=Me(P,f.current);Array.isArray(T)&&(s(T),c.current=T.map(Zi))}},subject:r._subjects.array});const m=fe.useCallback(P=>{v.current=!0,r._updateFieldArray(n,P)},[r,n]),h=(P,C)=>{const T=Un(Ir(P)),R=kx(r._getFieldArray(n),T);r._names.focus=Tx(n,R.length-1,C),c.current=kx(c.current,T.map(Zi)),m(R),s(R),r._updateFieldArray(n,R,kx,{argA:Ix(P)})},x=(P,C)=>{const T=Un(Ir(P)),R=Mx(r._getFieldArray(n),T);r._names.focus=Tx(n,0,C),c.current=Mx(c.current,T.map(Zi)),m(R),s(R),r._updateFieldArray(n,R,Mx,{argA:Ix(P)})},w=P=>{const C=Fx(r._getFieldArray(n),P);c.current=Fx(c.current,P),m(C),s(C),r._updateFieldArray(n,C,Fx,{argA:P})},O=(P,C,T)=>{const R=Un(Ir(C)),I=jx(r._getFieldArray(n),P,R);r._names.focus=Tx(n,P,T),c.current=jx(c.current,P,R.map(Zi)),m(I),s(I),r._updateFieldArray(n,I,jx,{argA:P,argB:Ix(C)})},b=(P,C)=>{const T=r._getFieldArray(n);Lx(T,P,C),Lx(c.current,P,C),m(T),s(T),r._updateFieldArray(n,T,Lx,{argA:P,argB:C},!1)},g=(P,C)=>{const T=r._getFieldArray(n);Ax(T,P,C),Ax(c.current,P,C),m(T),s(T),r._updateFieldArray(n,T,Ax,{argA:P,argB:C},!1)},_=(P,C)=>{const T=Ir(C),R=MM(r._getFieldArray(n),P,T);c.current=[...R].map((I,A)=>!I||A===P?Zi():c.current[A]),m(R),s([...R]),r._updateFieldArray(n,R,MM,{argA:P,argB:T},!0,!1)},$=P=>{const C=Un(Ir(P));c.current=C.map(Zi),m([...C]),s([...C]),r._updateFieldArray(n,[...C],T=>T,{},!0,!1)};return fe.useEffect(()=>{if(r._state.action=!1,AS(n,r._names)&&r._subjects.state.next({...r._formState}),v.current&&(!Jf(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(P=>{const C=Me(P.errors,n),T=Me(r._formState.errors,n);(T?!C&&T.type||C&&(T.type!==C.type||T.message!==C.message):C&&C.type)&&(C?Ft(r._formState.errors,n,C):xr(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const P=Me(r._fields,n);P&&P._f&&!(Jf(r._options.reValidateMode).isOnSubmit&&Jf(r._options.mode).isOnSubmit)&&MS(P,r._formValues,r._options.criteriaMode===Lo.all,r._options.shouldUseNativeValidation,!0).then(C=>!Dn(C)&&r._subjects.state.next({errors:wB(r._formState.errors,C,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&xc(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]||Zi()})),[i,o])}}var Nx=()=>{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=[]}}},by=e=>Sn(e)||!dB(e);function Pl(e,t){if(by(e)||by(t))return e===t;if(cc(e)&&cc(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(cc(a)&&cc(i)||Mr(a)&&Mr(i)||Array.isArray(a)&&Array.isArray(i)?!Pl(a,i):a!==i)return!1}}return!0}var CB=e=>e.type==="select-multiple",cbe=e=>$P(e)||pv(e),Dx=e=>gy(e)&&e.isConnected,EB=e=>{for(const t in e)if(bs(e[t]))return!0;return!1};function _y(e,t={}){const r=Array.isArray(e);if(Mr(e)||r)for(const n in e)Array.isArray(e[n])||Mr(e[n])&&!EB(e[n])?(t[n]=Array.isArray(e[n])?[]:{},_y(e[n],t[n])):Sn(e[n])||(t[n]=!0);return t}function PB(e,t,r){const n=Array.isArray(e);if(Mr(e)||n)for(const o in e)Array.isArray(e[o])||Mr(e[o])&&!EB(e[o])?Ut(t)||by(r[o])?r[o]=Array.isArray(e[o])?_y(e[o],[]):{..._y(e[o])}:PB(e[o],Sn(t)?{}:t[o],r[o]):r[o]=!Pl(e[o],t[o]);return r}var fh=(e,t)=>PB(e,t,_y(t)),$B=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Ut(e)?e:t?e===""?NaN:e&&+e:r&&Da(e)?new Date(e):n?n(e):e;function Bx(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return PP(t)?t.files:$P(t)?OB(e.refs).value:CB(t)?[...t.selectedOptions].map(({value:r})=>r):pv(t)?SB(e.refs).value:$B(Ut(t.value)?e.ref.value:t.value,e)}var dbe=(e,t,r,n)=>{const o={};for(const a of e){const i=Me(t,a);i&&Ft(o,a,i._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},hf=e=>Ut(e)?e:yy(e)?e.source:Mr(e)?yy(e.value)?e.value.source:e.value:e,fbe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function FM(e,t,r){const n=Me(e,r);if(n||EP(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 pbe=(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,vbe=(e,t)=>!vv(Me(e,t)).length&&xr(e,t);const mbe={mode:Lo.onSubmit,reValidateMode:Lo.onChange,shouldFocusError:!0};function hbe(e={}){let t={...mbe,...e},r={submitCount:0,isDirty:!1,isLoading:bs(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=Mr(t.defaultValues)||Mr(t.values)?Ir(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Ir(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:Nx(),array:Nx(),state:Nx()},m=Jf(t.mode),h=Jf(t.reValidateMode),x=t.criteriaMode===Lo.all,w=V=>X=>{clearTimeout(l),l=setTimeout(V,X)},O=async V=>{if(f.isValid||V){const X=t.resolver?Dn((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?Ft(r.validatingFields,Y,X):xr(r.validatingFields,Y))}),v.state.next({validatingFields:r.validatingFields,isValidating:!Dn(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&&Ft(n,V,Ee)}if(le&&Array.isArray(Me(r.errors,V))){const Ee=Y(Me(r.errors,V),ae.argA,ae.argB);se&&Ft(r.errors,V,Ee),vbe(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&&Ft(r.touchedFields,V,Ee)}f.dirtyFields&&(r.dirtyFields=fh(o,a)),v.state.next({name:V,isDirty:L(V,X),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ft(a,V,X)},_=(V,X)=>{Ft(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,Ut(Y)?Me(o,V):Y);Ut(le)||ae&&ae.defaultChecked||X?Ft(a,V,X?le:Bx(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||Pl(Me(o,V),X);Ee=!!(!rt&&Me(r.dirtyFields,V)),at||rt?xr(r.dirtyFields,V):Ft(r.dirtyFields,V,!0),Ie.dirtyFields=r.dirtyFields,le=le||f.dirtyFields&&Ee!==!at}if(Y){const at=Me(r.touchedFields,V);at||(Ft(r.touchedFields,V,Y),Ie.touchedFields=r.touchedFields,le=le||f.touchedFields&&at!==Y)}return le&&se&&v.state.next(Ie),le?Ie:{}},T=(V,X,Y,ae)=>{const se=Me(r.errors,V),le=f.isValid&&La(X)&&r.isValid!==X;if(e.delayError&&Y?(c=w(()=>_(V,Y)),c(e.delayError)):(clearTimeout(l),c=null,Y?Ft(r.errors,V,Y):xr(r.errors,V)),(Y?!Pl(se,Y):se)||!Dn(ae)||le){const Ee={...ae,...le&&La(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,dbe(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?Ft(r.errors,Y,ae):xr(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 MS(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):Ft(r.errors,le.name,rt[le.name]):xr(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=>!Dx(Y)):!Dx(X._f.ref))&&pe(V)}s.unMount=new Set},L=(V,X)=>(V&&X&&Ft(a,V,X),!Pl(ne(),o)),D=(V,X,Y)=>_B(V,s,{...i.mount?a:Ut(X)?o:Da(V)?{[V]:X}:X},Y,X),U=V=>vv(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&&Ft(a,V,$B(X,le)),se=gy(le.ref)&&Sn(X)?"":X,CB(le.ref)?[...le.ref.options].forEach(Ee=>Ee.selected=se.includes(Ee.value)):le.refs?pv(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):PP(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)||!by(se)||Ee&&!Ee._f)&&!cc(se)?q(le,se,Y):H(le,se,Y)}},G=(V,X,Y={})=>{const ae=Me(n,V),se=s.array.has(V),le=Ir(X);Ft(a,V,le),se?(v.array.next({name:V,values:{...a}}),(f.isDirty||f.dirtyFields)&&Y.shouldDirty&&v.state.next({name:V,dirtyFields:fh(o,a),isDirty:L(V,le)})):ae&&!ae._f&&!Sn(le)?q(V,le,Y):H(V,le,Y),AS(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?Bx(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===hy.BLUR||V.type===hy.FOCUS_OUT,De=!fbe(se._f)&&!t.resolver&&!Me(r.errors,Y)&&!se._f.deps||pbe(Le,Me(r.touchedFields,Y),r.isSubmitted,h,m),ft=AS(Y,s,Le);Ft(a,Y,at),Le?(se._f.onBlur&&se._f.onBlur(V),c&&c(0)):se._f.onChange&&se._f.onChange(V);const Et=C(Y,at,Le,!1),Ct=!Dn(Et)||ft;if(!Le&&v.values.next({name:Y,type:V.type,values:{...a}}),De)return f.isValid&&O(),Ct&&v.state.next({name:Y,...ft?{}:Et});if(!Le&&ft&&v.state.next({...r}),t.resolver){const{errors:We}=await R([Y]);if(Ee(at),ae){const et=FM(r.errors,n,Y),ke=FM(We,n,et.name||Y);Ie=ke.error,Y=ke.name,rt=Dn(We)}}else b([Y],!0),Ie=(await MS(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),T(Y,rt,Ie,Et))}},W=(V,X)=>{if(Me(r.errors,X)&&V.focus)return V.focus(),1},te=async(V,X={})=>{let Y,ae;const se=Un(V);if(t.resolver){const le=await I(Ut(V)?V:se);Y=Dn(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({...!Da(V)||f.isValid&&Y!==r.isValid?{}:{name:V},...t.resolver||!V?{isValid:Y}:{},errors:r.errors}),X.shouldFocus&&!ae&&xc(n,W,V?se:s.mount),ae},ne=V=>{const X={...i.mount?a:o};return Ut(V)?X:Da(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&&Un(V).forEach(X=>xr(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;Ft(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)=>bs(V)?v.values.subscribe({next:Y=>V(D(void 0,X),Y)}):D(V,X,!0),pe=(V,X={})=>{for(const Y of V?Un(V):s.mount)s.mount.delete(Y),s.array.delete(Y),X.keepValue||(xr(n,Y),xr(a,Y)),!X.keepError&&xr(r.errors,Y),!X.keepDirty&&xr(r.dirtyFields,Y),!X.keepTouched&&xr(r.touchedFields,Y),!X.keepIsValidating&&xr(r.validatingFields,Y),!t.shouldUnregister&&!X.keepDefaultValue&&xr(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(La(V)&&i.mount||V){const le=V?void 0:Ut(se)?Bx(Y?Y._f:Me(ae,X)._f):se;Ft(a,X,le),C(X,le,!1,!1,!0)}},ye=(V,X={})=>{let Y=Me(n,V);const ae=La(X.disabled);return Ft(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:hf(X.min),max:hf(X.max),minLength:hf(X.minLength),maxLength:hf(X.maxLength),pattern:hf(X.pattern)}:{},name:V,onChange:z,onBlur:z,ref:se=>{if(se){ye(V,X),Y=Me(n,V);const le=Ut(se.value)&&se.querySelectorAll&&se.querySelectorAll("input,select,textarea")[0]||se,Ee=cbe(le),Ie=Y._f.refs||[];if(Ee?Ie.find(rt=>rt===le):le===Y._f.ref)return;Ft(n,V,{_f:{...Y._f,...Ee?{refs:[...Ie.filter(Dx),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&&xc(n,W,s.mount),he=V=>{La(V)&&(v.state.next({disabled:V}),xc(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=Ir(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(xr(r.errors,"root"),Dn(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:Dn(r.errors)&&!ae,submitCount:r.submitCount+1,errors:r.errors}),ae)throw ae},_e=(V,X={})=>{Me(n,V)&&(Ut(X.defaultValue)?G(V,Ir(Me(o,V))):(G(V,X.defaultValue),Ft(o,V,Ir(X.defaultValue))),X.keepTouched||xr(r.touchedFields,V),X.keepDirty||(xr(r.dirtyFields,V),r.isDirty=X.defaultValue?L(V,Ir(Me(o,V))):L()),X.keepError||(xr(r.errors,V),f.isValid&&O()),v.state.next({...r}))},ie=(V,X={})=>{const Y=V?Ir(V):o,ae=Ir(Y),se=Dn(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)?Ft(le,Ee,Me(a,Ee)):G(Ee,Me(le,Ee));else{if(CP&&Ut(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(gy(rt)){const at=rt.closest("form");if(at){at.reset();break}}}}n={}}a=e.shouldUnregister?X.keepDefaultValues?Ir(o):{}:Ir(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&&!Pl(V,o)),isSubmitted:X.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:se?{}:X.keepDirtyValues?X.keepDefaultValues&&a?fh(o,a):r.dirtyFields:X.keepDefaultValues&&V?fh(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(bs(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:()=>bs(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:bs(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:bs(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...hbe(e),formState:n});const a=t.current.control;return a._options=e,e0({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&&!Pl(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 gbe=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?T(R):R},{updatedAt:C}),o.setQueriesData([g,"getManyReference"],function(R){return R&&R.data?{data:T(R.data),total:R.total}:R},{updatedAt:C})},w=ou(function(b){var g=b===void 0?{}:b,_=g.resource,$=_===void 0?e:_,P=g.id,C=P===void 0?m.current.id:P,T=g.data,R=T===void 0?m.current.data:T,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})},Kt(Kt({},f),{onMutate:function(b){return LM(void 0,void 0,void 0,function(){var g;return NM(this,function(_){switch(_.label){case 0:return f.onMutate?[4,f.onMutate(b)]:[3,2];case 1:return g=_.sent()||{},[2,Kt({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,T=C===void 0?a:C;x({resource:P,id:T,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&&(_={}),LM(void 0,void 0,void 0,function(){var $,P,C,T,R,I,A,F,L,D,U,H,q,G;return NM(this,function(z){switch(z.label){case 0:return $=_.mutationMode,P=_.returnPromise,C=P===void 0?f.returnPromise:P,T=_.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(Kt({resource:b},g),{onSuccess:T,onSettled:R,onError:I})]:[2,w.mutate(Kt({resource:b},g),{onSuccess:T,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}),T&&setTimeout(function(){return T(Kt(Kt({},q),D),Kt({resource:b},g),{snapshot:h.current})},0),f.onSuccess&&setTimeout(function(){return f.onSuccess(Kt(Kt({},q),D),Kt({resource:b},g),{snapshot:h.current})},0),v.current==="optimistic"?[2,w.mutate(Kt({resource:b},g),{onSettled:R,onError:I})]:(Ap.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(Kt({resource:b},g),{onSettled:R,onError:I})}),[2])}})})};return[Yl(O),w]},Ln=function(){return Ln=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 T=P(C.data),R=T.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),T=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]},Nbe=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]},Dbe=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])},Bbe=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]},jf=function(e){var t=[],r=[],n=[];return d.Children.forEach(e,function(o){if(d.isValidElement(o)){if(o.type===d.Fragment){var a=jf(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}},zbe=function(e){Npe();var t=Hs(),r=Fbe(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(ys,null,o,d.createElement(Br,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(f,null))})):O?d.createElement(ys,null,o,d.createElement(Br,{path:"*",element:d.createElement($0e,null)})):d.createElement(ys,null,o,d.createElement(Br,{path:"/*",element:d.createElement("div",null,d.createElement(s,{dashboard:l,menu:v,title:x},d.createElement(ys,null,n,d.Children.map(i,function(C){return d.createElement(Br,{key:C.props.name,path:"".concat(C.props.name,"/*"),element:C})}),d.createElement(Br,{path:"/",element:l?d.createElement(x0e,{authParams:Ube,component:l}):i.length>0?d.createElement(Pne,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(Br,{path:"*",element:d.createElement(c,{title:x})}))))}))},Ube={params:{route:"dashboard"}},Vbe=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},Wbe=function(e){var t=e.catchAll,r=t===void 0?GM:t,n=e.children,o=e.dashboard,a=e.disableTelemetry,i=a===void 0?!1:a,s=e.layout,c=s===void 0?Vbe:s,l=e.loading,f=l===void 0?GM: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?s0e: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(ys,null,m!==!1&&m!==!0?d.createElement(Br,{path:"/login",element:HM(m)}):null,x!==!1&&x!==!0?d.createElement(Br,{path:"/auth-callback",element:HM(x)}):null,d.createElement(Br,{path:"/*",element:d.createElement(zbe,{catchAll:r,dashboard:o,layout:c,loading:f,menu:w,requireAuth:P,ready:b,title:_},n)}))},HM=function(e){return d.isValidElement(e)?e:d.createElement(e)},GM=function(){return null},MB=function(e){return null};MB.raName="CustomRoutes";var FB={exports:{}},Dt={};/** @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 t0=60103,r0=60106,gv=60107,yv=60108,bv=60114,_v=60109,xv=60110,wv=60112,Sv=60113,TP=60120,Ov=60115,Cv=60116,LB=60121,NB=60122,DB=60117,BB=60129,zB=60131;if(typeof Symbol=="function"&&Symbol.for){var Gr=Symbol.for;t0=Gr("react.element"),r0=Gr("react.portal"),gv=Gr("react.fragment"),yv=Gr("react.strict_mode"),bv=Gr("react.profiler"),_v=Gr("react.provider"),xv=Gr("react.context"),wv=Gr("react.forward_ref"),Sv=Gr("react.suspense"),TP=Gr("react.suspense_list"),Ov=Gr("react.memo"),Cv=Gr("react.lazy"),LB=Gr("react.block"),NB=Gr("react.server.block"),DB=Gr("react.fundamental"),BB=Gr("react.debug_trace_mode"),zB=Gr("react.legacy_hidden")}function Sa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case t0:switch(e=e.type,e){case gv:case bv:case yv:case Sv:case TP:return e;default:switch(e=e&&e.$$typeof,e){case xv:case wv:case Cv:case Ov:case _v:return e;default:return t}}case r0:return t}}}var qbe=_v,Hbe=t0,Gbe=wv,Kbe=gv,Qbe=Cv,Xbe=Ov,Ybe=r0,Jbe=bv,Zbe=yv,e0e=Sv;Dt.ContextConsumer=xv;Dt.ContextProvider=qbe;Dt.Element=Hbe;Dt.ForwardRef=Gbe;Dt.Fragment=Kbe;Dt.Lazy=Qbe;Dt.Memo=Xbe;Dt.Portal=Ybe;Dt.Profiler=Jbe;Dt.StrictMode=Zbe;Dt.Suspense=e0e;Dt.isAsyncMode=function(){return!1};Dt.isConcurrentMode=function(){return!1};Dt.isContextConsumer=function(e){return Sa(e)===xv};Dt.isContextProvider=function(e){return Sa(e)===_v};Dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===t0};Dt.isForwardRef=function(e){return Sa(e)===wv};Dt.isFragment=function(e){return Sa(e)===gv};Dt.isLazy=function(e){return Sa(e)===Cv};Dt.isMemo=function(e){return Sa(e)===Ov};Dt.isPortal=function(e){return Sa(e)===r0};Dt.isProfiler=function(e){return Sa(e)===bv};Dt.isStrictMode=function(e){return Sa(e)===yv};Dt.isSuspense=function(e){return Sa(e)===Sv};Dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gv||e===bv||e===BB||e===yv||e===Sv||e===TP||e===zB||typeof e=="object"&&e!==null&&(e.$$typeof===Cv||e.$$typeof===Ov||e.$$typeof===_v||e.$$typeof===xv||e.$$typeof===wv||e.$$typeof===DB||e.$$typeof===LB||e[0]===NB)};Dt.typeOf=Sa;FB.exports=Dt;var UB=FB.exports,VB=d.createContext(void 0),su=function(e){var t=e.children,r=e.value;return r?d.createElement(VB.Provider,{value:r},t):t},kr=function(e){var t=e.create,r=e.edit,n=e.list,o=e.name,a=e.show;return d.createElement(su,{value:o},d.createElement(ys,null,t&&d.createElement(Br,{path:"create/*",element:ph(t)}),a&&d.createElement(Br,{path:":id/show/*",element:ph(a)}),r&&d.createElement(Br,{path:":id/*",element:ph(r)}),n&&d.createElement(Br,{path:"/*",element:ph(n)}),e.children))},ph=function(e){return d.isValidElement(e)?e:UB.isValidElementType(e)?d.createElement(e,null):null};kr.raName="Resource";kr.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()})(oo,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?Is.pluralize(r):Is.singularize(r))});return a}},Ot=function(e){var t=d.useContext(VB);return e&&e.resource||t},Li=function(e){var t=Ot(e),r=n0(),n=e||{},o=n.hasCreate,a=n.hasEdit,i=n.hasList,s=n.hasShow,c=n.recordRepresentation,l=d.useMemo(function(){return iu({},{hasCreate:o,hasEdit:a,hasList:i,hasShow:s,recordRepresentation:c},r[t])},[t,r,o,a,i,s,c]);return l},o0=function(e){var t=Li({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=vP(),t=d.useCallback(function(r,n){return e.translate(r,n)},[e]);return e?t:r0e},r0e=function(e){return e},qB=function(){var e=je(),t=KB(),r=Ot();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,o0e({label:a,prefix:t,resource:i,resourceFromContext:r,source:o}))},[t,r,e])},n0e="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 qo=d.memo(HB),o0e=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=a0e(a),s=i.sourceWithoutDigits,c=i.sourceSuffix,l=Is.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 a0e=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,i){i0e(a)&&(n=i)});var o=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:o}},i0e=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 a0=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"))},s0e=function(){return d.createElement("span",null)},kP=function(e,t){};var l0e=typeof window<"u"?d.useLayoutEffect:d.useEffect,Yl=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return l0e(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=Yl(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]},u0e=function(e){var t=Vb().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])},c0e=function(e){var t=Vb().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])},d0e=function(){var e=Vb().reset;return e},Ed=function(){var e=ji(),t=Yo(),r=d0e(),n=Ja(),o=d.useRef(n),a=Fr(),i=d.useRef(a),s=qs(),c=ja("".concat(s,"/").concat(Ib.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},NS=function(){return NS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},DS=function(){return DS=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]"),Pd(t);var i=YB(t).permissions;if(o)return d.createElement(o,Zf({permissions:i},a));if(n)return n(Zf({permissions:i},a));if(r)return r(Zf({permissions:i},a))};const x0e=_0e;var JB=function(){var e=ji(),t=Fr(),r=t.state,n=Ja(),o=qs(),a=c5().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,c=ja("".concat(o,"/").concat(Ib.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},w0e="AUTH_LOGIN",S0e="AUTH_CHECK",O0e="AUTH_ERROR",C0e="AUTH_LOGOUT",E0e="AUTH_GET_PERMISSIONS";const P0e=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},BS=function(){return BS=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 fn(r&&e?"".concat(r,".").concat(e):r??e,t)},IP=function(){return d.useContext(kB)},D0e=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])},n_e=function(e,t,r){var n=d.useContext(Mi).navigator,o=Fr(),a=je(),i=Od(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])},o_e=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,}))$/,Gs=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function c_e(e){return e?e.hasOwnProperty("message"):!1}var Ks=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Qs=function(e){return q4(e,function(){for(var t=[],r=0;re?Ks(t,{max:e},r,n):void 0}});Qs(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Gs(r)&&re?Ks(t,{max:e},r,n):void 0}}),lz=Qs(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Gs(t)&&isNaN(Number(t))?Ks(e,void 0,t,r):void 0}}),jP=q4(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Gs(r)&&typeof r=="string"&&!e.test(r)?Ks(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Qs(function(e){return e===void 0&&(e="ra.validation.email"),jP(u_e,e)});var m_e=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Qs(function(e,t){return t===void 0&&(t=m_e),function(r,n){return!Gs(r)&&e.indexOf(r)===-1?Ks(t,{list:e},r,n):void 0}});var h_e=function(e){return e&&e.isRequired?!0:Array.isArray(e)?!!e.find(function(t){return t.isRequired}):!1},uz=d.createContext(void 0),s0=function(){var e=d.useContext(nz);return e},g_e=function(e){var t=e.children,r=e.name,n=s0();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=ht(t),s=Zo(),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 y_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})}})},y_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(Ns,{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}},b_e=function(e){var t=Od(),r=t.dirtyFields,n=t.touchedFields,o=t.errors,a=s0(),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=__e(v);c(function(h){return zo(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},__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},GS=function(){return GS=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)&&(r[o]=e[o]);return r}function pz(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var D_e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,B_e=pz(function(e){return D_e.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),z_e=!1;function U_e(e){if(e.sheet)return e.sheet;for(var t=0;t0?Yr($d,--Kn):0,Kc--,Sr===10&&(Kc=1,u0--),Sr}function co(){return Sr=Kn2||Dp(Sr)>3?"":" "}function t1e(e,t){for(;--t&&co()&&!(Sr<48||Sr>102||Sr>57&&Sr<65||Sr>70&&Sr<97););return Pv(e,tg()+(t<6&&Va()==32&&co()==32))}function QS(e){for(;co();)switch(Sr){case e:return Kn;case 34:case 39:e!==34&&e!==39&&QS(Sr);break;case 40:e===41&&QS(e);break;case 92:co();break}return Kn}function r1e(e,t){for(;co()&&e+Sr!==57;)if(e+Sr===84&&Va()===47)break;return"/*"+Pv(t,Kn-1)+"*"+l0(e===47?e:co())}function n1e(e){for(;!Dp(Va());)co();return Pv(e,Kn)}function o1e(e){return bz(ng("",null,null,null,[""],e=yz(e),0,[0],e))}function ng(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,T=_;O;)switch(x=g,g=co()){case 40:if(x!=108&&Yr(T,v-1)==58){KS(T+=Rt(rg(g),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=rg(g);break;case 9:case 10:case 13:case 32:T+=e1e(x);break;case 92:T+=t1e(tg()-1,7);continue;case 47:switch(Va()){case 42:case 47:vh(a1e(r1e(co(),tg()),t,r),c);break;default:T+="/"}break;case 123*w:s[l++]=Aa(T)*b;case 125*w:case 59:case 0:switch(g){case 0:case 125:O=0;case 59+f:b==-1&&(T=Rt(T,/\f/g,"")),h>0&&Aa(T)-v&&vh(h>32?JM(T+";",n,r,v-1):JM(Rt(T," ","")+";",n,r,v-2),c);break;case 59:T+=";";default:if(vh(C=YM(T,t,r,l,f,o,s,_,$=[],P=[],v),a),g===123)if(f===0)ng(T,t,C,C,$,a,v,s,P);else switch(m===99&&Yr(T,3)===110?100:m){case 100:case 108:case 109:case 115:ng(e,C,C,n&&vh(YM(e,C,C,0,0,o,s,_,o,$=[],v),P),o,P,v,s,n?$:P);break;default:ng(T,C,C,C,[""],P,0,s,P)}}l=f=h=0,w=b=1,_=T="",v=i;break;case 58:v=1+Aa(T),h=x;default:if(w<1){if(g==123)--w;else if(g==125&&w++==0&&Z_e()==125)continue}switch(T+=l0(g),g*w){case 38:b=f>0?1:(T+="\f",-1);break;case 44:s[l++]=(Aa(T)-1)*b,b=1;break;case 64:Va()===45&&(T+=rg(co())),m=Va(),f=v=Aa(_=T+=n1e(tg())),g++;break;case 45:x===45&&Aa(T)==2&&(w=0)}}return a}function YM(e,t,r,n,o,a,i,s,c,l,f){for(var v=o-1,m=o===0?a:[""],h=FP(m),x=0,w=0,O=0;x0?m[b]+" "+g:Rt(g,/&\f/g,m[b])))&&(c[O++]=_);return c0(e,t,r,o===0?AP:s,c,l,f)}function a1e(e,t,r){return c0(e,t,r,vz,l0(J_e()),Np(e,2,-2),0)}function JM(e,t,r,n){return c0(e,t,r,MP,Np(e,0,n),Np(e,n+1,-1),n)}function wc(e,t){for(var r="",n=FP(e),o=0;o6)switch(Yr(e,t+1)){case 109:if(Yr(e,t+4)!==45)break;case 102:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+$t+"$2-$3$1"+Cy+(Yr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~KS(e,"stretch")?_z(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yr(e,t+1)!==115)break;case 6444:switch(Yr(e,Aa(e)-3-(~KS(e,"!important")&&10))){case 107:return Rt(e,":",":"+$t)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$t+(Yr(e,14)===45?"inline-":"")+"box$3$1"+$t+"$2$3$1"+sn+"$2box$3")+e}break;case 5936:switch(Yr(e,t+11)){case 114:return $t+e+sn+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $t+e+sn+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $t+e+sn+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $t+e+sn+e+e}return e}var v1e=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case MP:t.return=_z(t.value,t.length);break;case mz:return wc([yf(t,{value:Rt(t.value,"@","@"+$t)})],o);case AP:if(t.length)return Y_e(t.props,function(a){switch(X_e(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wc([yf(t,{props:[Rt(a,/:(read-\w+)/,":"+Cy+"$1")]})],o);case"::placeholder":return wc([yf(t,{props:[Rt(a,/:(plac\w+)/,":"+$t+"input-$1")]}),yf(t,{props:[Rt(a,/:(plac\w+)/,":"+Cy+"$1")]}),yf(t,{props:[Rt(a,/:(plac\w+)/,sn+"input-$1")]})],o)}return""})}},m1e=[v1e],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||m1e,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 P1e={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},$1e=!1,R1e=/[A-Z]|^ms/g,T1e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$z=function(t){return t.charCodeAt(1)===45},eF=function(t){return t!=null&&typeof t!="boolean"},Vx=pz(function(e){return $z(e)?e:e.replace(R1e,"-$&").toLowerCase()}),tF=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(T1e,function(n,o,a){return Ma={name:o,styles:a,next:Ma},o})}return P1e[t]!==1&&!$z(t)&&typeof r=="number"&&r!==0?r+"px":r},k1e="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Bp(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 Ma={name:o.name,styles:o.styles,next:Ma},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Ma={name:i.name,styles:i.styles,next:Ma},i=i.next;var s=a.styles+";";return s}return I1e(e,t,r)}case"function":{if(e!==void 0){var c=Ma,l=r(e);return Ma=c,Bp(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?L1e:N1e},aF=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},D1e=!1,B1e=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Ez(r,n,o),A1e(function(){return Pz(r,n,o)}),null},z1e=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=aF(t,r,n),c=s||oF(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(Q1e(o)?r:o):t;return S.jsx(F1e,{styles:n})}function zP(e,t){return XS(e,t)}const Fz=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},X1e=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Mz,StyledEngineProvider:K1e,ThemeContext:$v,css:lu,default:zP,internal_processStyles:Fz,keyframes:Ni},Symbol.toStringTag,{value:"Module"}));function bi(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(!bi(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Lz(e[r])}),t}function Pn(e,t,r={clone:!0}){const n=r.clone?j({},e):e;return bi(e)&&bi(t)&&Object.keys(t).forEach(o=>{bi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&bi(e[o])?n[o]=Pn(e[o],t[o],r):r.clone?n[o]=bi(t[o])?Lz(t[o]):t[o]:n[o]=t[o]}),n}const Y1e=Object.freeze(Object.defineProperty({__proto__:null,default:Pn,isPlainObject:bi},Symbol.toStringTag,{value:"Module"})),J1e=["values","unit","step"],Z1e=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,J1e),a=Z1e(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:${UP[e]}px)`};function ba(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||iF;return t.reduce((i,s,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||iF;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||UP).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 rxe(e,...t){const r=Dz(e),n=[r,...t].reduce((o,a)=>Pn(o,a),{});return Bz(Object.keys(r),n)}function nxe(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 Wx({values:e,breakpoints:t,base:r}){const n=r||nxe(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($i(7));return e.charAt(0).toUpperCase()+e.slice(1)}const oxe=Object.freeze(Object.defineProperty({__proto__:null,default:Se},Symbol.toStringTag,{value:"Module"}));function Qc(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 Ey(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Qc(e,r)||n,t&&(o=t(o,n,e)),o}function gr(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=Qc(c,n)||{};return ba(i,s,v=>{let m=Ey(l,o,v);return v===m&&typeof v=="string"&&(m=Ey(l,o,`${t}${v==="default"?"":Se(v)}`,v)),r===!1?m:{[r]:m}})};return a.propTypes={},a.filterProps=[t],a}function axe(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const ixe={m:"margin",p:"padding"},sxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},sF={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},lxe=axe(e=>{if(e.length>2)if(sF[e])e=sF[e];else return[e];const[t,r]=e.split(""),n=ixe[t],o=sxe[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),VP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],WP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...VP,...WP];function Rv(e,t,r,n){var o;const a=(o=Qc(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 qP(e){return Rv(e,"spacing",8)}function Jl(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 uxe(e,t){return r=>e.reduce((n,o)=>(n[o]=Jl(t,r),n),{})}function cxe(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=lxe(r),a=uxe(o,n),i=e[r];return ba(e,i,a)}function zz(e,t){const r=qP(e.theme);return Object.keys(e).map(n=>cxe(e,t,n,r)).reduce(ep,{})}function lr(e){return zz(e,VP)}lr.propTypes={};lr.filterProps=VP;function ur(e){return zz(e,WP)}ur.propTypes={};ur.filterProps=WP;function dxe(e=8){if(e.mui)return e;const t=qP({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 x0(...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]?ep(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Mo(e){return typeof e!="number"?e:`${e}px solid`}function ea(e,t){return gr({prop:e,themeKey:"borders",transform:t})}const fxe=ea("border",Mo),pxe=ea("borderTop",Mo),vxe=ea("borderRight",Mo),mxe=ea("borderBottom",Mo),hxe=ea("borderLeft",Mo),gxe=ea("borderColor"),yxe=ea("borderTopColor"),bxe=ea("borderRightColor"),_xe=ea("borderBottomColor"),xxe=ea("borderLeftColor"),wxe=ea("outline",Mo),Sxe=ea("outlineColor"),w0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Rv(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Jl(t,n)});return ba(e,e.borderRadius,r)}return null};w0.propTypes={};w0.filterProps=["borderRadius"];x0(fxe,pxe,vxe,mxe,hxe,gxe,yxe,bxe,_xe,xxe,w0,wxe,Sxe);const S0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Rv(e.theme,"spacing",8),r=n=>({gap:Jl(t,n)});return ba(e,e.gap,r)}return null};S0.propTypes={};S0.filterProps=["gap"];const O0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Rv(e.theme,"spacing",8),r=n=>({columnGap:Jl(t,n)});return ba(e,e.columnGap,r)}return null};O0.propTypes={};O0.filterProps=["columnGap"];const C0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Rv(e.theme,"spacing",8),r=n=>({rowGap:Jl(t,n)});return ba(e,e.rowGap,r)}return null};C0.propTypes={};C0.filterProps=["rowGap"];const Oxe=gr({prop:"gridColumn"}),Cxe=gr({prop:"gridRow"}),Exe=gr({prop:"gridAutoFlow"}),Pxe=gr({prop:"gridAutoColumns"}),$xe=gr({prop:"gridAutoRows"}),Rxe=gr({prop:"gridTemplateColumns"}),Txe=gr({prop:"gridTemplateRows"}),kxe=gr({prop:"gridTemplateAreas"}),Ixe=gr({prop:"gridArea"});x0(S0,O0,C0,Oxe,Cxe,Exe,Pxe,$xe,Rxe,Txe,kxe,Ixe);function Sc(e,t){return t==="grey"?t:e}const jxe=gr({prop:"color",themeKey:"palette",transform:Sc}),Axe=gr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Sc}),Mxe=gr({prop:"backgroundColor",themeKey:"palette",transform:Sc});x0(jxe,Axe,Mxe);function ao(e){return e<=1&&e!==0?`${e*100}%`:e}const Fxe=gr({prop:"width",transform:ao}),HP=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])||UP[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:ao(r)}};return ba(e,e.maxWidth,t)}return null};HP.filterProps=["maxWidth"];const Lxe=gr({prop:"minWidth",transform:ao}),Nxe=gr({prop:"height",transform:ao}),Dxe=gr({prop:"maxHeight",transform:ao}),Bxe=gr({prop:"minHeight",transform:ao});gr({prop:"size",cssProperty:"width",transform:ao});gr({prop:"size",cssProperty:"height",transform:ao});const zxe=gr({prop:"boxSizing"});x0(Fxe,HP,Lxe,Nxe,Dxe,Bxe,zxe);const Uxe={border:{themeKey:"borders",transform:Mo},borderTop:{themeKey:"borders",transform:Mo},borderRight:{themeKey:"borders",transform:Mo},borderBottom:{themeKey:"borders",transform:Mo},borderLeft:{themeKey:"borders",transform:Mo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Mo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w0},color:{themeKey:"palette",transform:Sc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Sc},backgroundColor:{themeKey:"palette",transform:Sc},p:{style:ur},pt:{style:ur},pr:{style:ur},pb:{style:ur},pl:{style:ur},px:{style:ur},py:{style:ur},padding:{style:ur},paddingTop:{style:ur},paddingRight:{style:ur},paddingBottom:{style:ur},paddingLeft:{style:ur},paddingX:{style:ur},paddingY:{style:ur},paddingInline:{style:ur},paddingInlineStart:{style:ur},paddingInlineEnd:{style:ur},paddingBlock:{style:ur},paddingBlockStart:{style:ur},paddingBlockEnd:{style:ur},m:{style:lr},mt:{style:lr},mr:{style:lr},mb:{style:lr},ml:{style:lr},mx:{style:lr},my:{style:lr},margin:{style:lr},marginTop:{style:lr},marginRight:{style:lr},marginBottom:{style:lr},marginLeft:{style:lr},marginX:{style:lr},marginY:{style:lr},marginInline:{style:lr},marginInlineStart:{style:lr},marginInlineEnd:{style:lr},marginBlock:{style:lr},marginBlockStart:{style:lr},marginBlockEnd:{style:lr},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:S0},rowGap:{style:C0},columnGap:{style:O0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ao},maxWidth:{style:HP},minWidth:{transform:ao},height:{transform:ao},maxHeight:{transform:ao},minHeight:{transform:ao},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Tv=Uxe;function Vxe(...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 Wxe(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=Qc(o,l)||{};return v?v(i):ba(i,n,x=>{let w=Ey(m,f,x);return x===w&&typeof x=="string"&&(w=Ey(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:Tv;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=Wxe(l[h],a);if(x!=null)if(typeof x=="object")if(i[h])m=ep(m,e(h,x,a,i));else{const w=ba({theme:a},x,O=>({[h]:O}));Vxe(w,x)?m[h]=t({sx:x,theme:a}):m=ep(m,w)}else m=ep(m,e(h,x,a,i))}),Bz(v,m)}return Array.isArray(o)?o.map(s):s(o)}return t}const Vz=Uz();Vz.filterProps=["sx"];const kv=Vz;function Wz(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 qxe=["breakpoints","palette","spacing","shape"];function Rd(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=Ce(e,qxe),s=Nz(r),c=dxe(o);let l=Pn({breakpoints:s,direction:"ltr",components:{},palette:j({mode:"light"},n),spacing:c,shape:j({},txe,a)},i);return l.applyStyles=Wz,l=t.reduce((f,v)=>Pn(f,v),l),l.unstable_sxConfig=j({},Tv,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(v){return kv({sx:v,theme:this})},l}const Hxe=Object.freeze(Object.defineProperty({__proto__:null,default:Rd,private_createBreakpoints:Nz,unstable_applyStyles:Wz},Symbol.toStringTag,{value:"Module"}));function Gxe(e){return Object.keys(e).length===0}function GP(e=null){const t=d.useContext($v);return!t||Gxe(t)?e:t}const Kxe=Rd();function E0(e=Kxe){return GP(e)}function Qxe({styles:e,themeId:t,defaultTheme:r={}}){const n=E0(r),o=typeof e=="function"?e(t&&n[t]||n):e;return S.jsx(Mz,{styles:o})}const Xxe=["sx"],Yxe=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Tv;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function P0(e){const{sx:t}=e,r=Ce(e,Xxe),{systemProps:n,otherProps:o}=Yxe(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return bi(s)?j({},n,s):n}:a=j({},n,t),j({},o,{sx:a})}const Jxe=Object.freeze(Object.defineProperty({__proto__:null,default:kv,extendSxProp:P0,unstable_createStyleFunctionSx:Uz,unstable_defaultSxConfig:Tv},Symbol.toStringTag,{value:"Module"})),lF=e=>e,Zxe=()=>{let e=lF;return{configure(t){e=t},generate(t){return e(t)},reset(){e=lF}}},ewe=Zxe(),KP=ewe;function qz(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"})(kv);return d.forwardRef(function(c,l){const f=E0(r),v=P0(c),{className:m,component:h="div"}=v,x=Ce(v,twe);return S.jsx(a,j({as:h,ref:l,className:$e(m,o?o(n):n),theme:t&&f[t]||f},x))})}const nwe={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=nwe[t];return n?`${r}-${n}`:`${KP.generate(e)}-${t}`}function qe(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ue(e,o,r)}),n}var Hz={exports:{}},Mt={};/** - * @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 QP=Symbol.for("react.element"),XP=Symbol.for("react.portal"),$0=Symbol.for("react.fragment"),R0=Symbol.for("react.strict_mode"),T0=Symbol.for("react.profiler"),k0=Symbol.for("react.provider"),I0=Symbol.for("react.context"),owe=Symbol.for("react.server_context"),j0=Symbol.for("react.forward_ref"),A0=Symbol.for("react.suspense"),M0=Symbol.for("react.suspense_list"),F0=Symbol.for("react.memo"),L0=Symbol.for("react.lazy"),awe=Symbol.for("react.offscreen"),Gz;Gz=Symbol.for("react.module.reference");function ta(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case QP:switch(e=e.type,e){case $0:case T0:case R0:case A0:case M0:return e;default:switch(e=e&&e.$$typeof,e){case owe:case I0:case j0:case L0:case F0:case k0:return e;default:return t}}case XP:return t}}}Mt.ContextConsumer=I0;Mt.ContextProvider=k0;Mt.Element=QP;Mt.ForwardRef=j0;Mt.Fragment=$0;Mt.Lazy=L0;Mt.Memo=F0;Mt.Portal=XP;Mt.Profiler=T0;Mt.StrictMode=R0;Mt.Suspense=A0;Mt.SuspenseList=M0;Mt.isAsyncMode=function(){return!1};Mt.isConcurrentMode=function(){return!1};Mt.isContextConsumer=function(e){return ta(e)===I0};Mt.isContextProvider=function(e){return ta(e)===k0};Mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===QP};Mt.isForwardRef=function(e){return ta(e)===j0};Mt.isFragment=function(e){return ta(e)===$0};Mt.isLazy=function(e){return ta(e)===L0};Mt.isMemo=function(e){return ta(e)===F0};Mt.isPortal=function(e){return ta(e)===XP};Mt.isProfiler=function(e){return ta(e)===T0};Mt.isStrictMode=function(e){return ta(e)===R0};Mt.isSuspense=function(e){return ta(e)===A0};Mt.isSuspenseList=function(e){return ta(e)===M0};Mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$0||e===T0||e===R0||e===A0||e===M0||e===awe||typeof e=="object"&&e!==null&&(e.$$typeof===L0||e.$$typeof===F0||e.$$typeof===k0||e.$$typeof===I0||e.$$typeof===j0||e.$$typeof===Gz||e.getModuleId!==void 0)};Mt.typeOf=ta;Hz.exports=Mt;var zp=Hz.exports;const iwe=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Kz(e){const t=`${e}`.match(iwe);return t&&t[1]||""}function Qz(e,t=""){return e.displayName||e.name||Kz(e)||t}function uF(e,t,r){const n=Qz(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function swe(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Qz(e,"Component");if(typeof e=="object")switch(e.$$typeof){case zp.ForwardRef:return uF(e,e.render,"ForwardRef");case zp.Memo:return uF(e,e.type,"memo");default:return}}}const lwe=Object.freeze(Object.defineProperty({__proto__:null,default:swe,getFunctionName:Kz},Symbol.toStringTag,{value:"Module"})),uwe=["ownerState"],cwe=["variants"],dwe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function fwe(e){return Object.keys(e).length===0}function pwe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vwe=Rd(),mwe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function mh({defaultTheme:e,theme:t,themeId:r}){return fwe(t)?e:t[r]||t}function hwe(e){return e?(t,r)=>r[e]:null}function og(e,t){let{ownerState:r}=t,n=Ce(t,uwe);const o=typeof e=="function"?e(j({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>og(a,j({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=Ce(o,cwe);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 gwe(e={}){const{themeId:t,defaultTheme:r=vwe,rootShouldForwardProp:n=qx,slotShouldForwardProp:o=qx}=e,a=i=>kv(j({},i,{theme:mh(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=hwe(mwe(l))}=s,h=Ce(s,dwe),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:pwe(i)&&(b=void 0);const g=zP(i,j({shouldForwardProp:b,label:O},h)),_=P=>typeof P=="function"&&P.__emotion_real!==P||bi(P)?C=>og(P,j({},C,{theme:mh({theme:C.theme,defaultTheme:r,themeId:t})})):P,$=(P,...C)=>{let T=_(P);const R=C?C.map(_):[];c&&m&&R.push(F=>{const L=mh(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]=og(q,j({},F,{theme:L}))}),m(F,U)}),c&&!x&&R.push(F=>{var L;const D=mh(j({},F,{defaultTheme:r,themeId:t})),U=D==null||(L=D.components)==null||(L=L[c])==null?void 0:L.variants;return og({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("");T=[...P,...F],T.raw=[...P.raw,...F]}const A=g(T,...R);return i.muiName&&(A.muiName=i.muiName),A};return g.withConfig&&($.withConfig=g.withConfig),$}}const Xz=gwe();function Up(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]=Up(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Yz(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Up(t.components[r].defaultProps,n)}function Jz({props:e,name:t,defaultTheme:r,themeId:n}){let o=E0(r);return n&&(o=o[n]||o),Yz({theme:o,name:t,props:e})}const po=typeof window<"u"?d.useLayoutEffect:d.useEffect;function ywe(e,t,r,n,o){const[a,i]=d.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return po(()=>{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 Zz=d.useSyncExternalStore;function bwe(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 Zz(c,s,i)}function kn(e,t={}){const r=GP(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=Yz({name:"MuiUseMediaQuery",props:t,theme:r});let c=typeof e=="function"?e(r):e;return c=c.replace(/^@media( ?)/m,""),(Zz!==void 0?bwe:ywe)(c,o,a,i,s)}function e6(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const _we=Object.freeze(Object.defineProperty({__proto__:null,default:e6},Symbol.toStringTag,{value:"Module"}));function t6(e,t=0,r=1){return e6(e,t,r)}function xwe(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 YP(e){if(e.type)return e;if(e.charAt(0)==="#")return YP(xwe(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error($i(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($i(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function r6(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 Xc(e,t){return e=YP(e),t=t6(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,r6(e)}function wwe(e,t){if(e=YP(e),t=t6(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 r6(e)}function JS(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Td(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 Swe(e,t){return()=>null}function ag(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 Er(e){return e&&e.ownerDocument||document}function Ho(e){return Er(e).defaultView||window}function Owe(e,t){return()=>null}function Py(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let cF=0;function Cwe(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(cF+=1,r(`mui-${cF}`))},[t]),n}const dF=dw.useId;function Zl(e){if(dF!==void 0){const t=dF();return e??t}return Cwe(e)}function Ewe(e,t,r,n,o){return null}function Yc({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 Cn(e){const t=d.useRef(e);return po(()=>{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=>{Py(r,t)})},e)}const fF={};function Pwe(e,t){const r=d.useRef(fF);return r.current===fF&&(r.current=e(t)),r}const $we=[];function Rwe(e){d.useEffect(e,$we)}class Iv{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Iv}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function $l(){const e=Pwe(Iv.create).current;return Rwe(e.disposeEffect),e}let N0=!0,ZS=!1;const Twe=new Iv,kwe={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 Iwe(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&kwe[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function jwe(e){e.metaKey||e.altKey||e.ctrlKey||(N0=!0)}function Hx(){N0=!1}function Awe(){this.visibilityState==="hidden"&&ZS&&(N0=!0)}function Mwe(e){e.addEventListener("keydown",jwe,!0),e.addEventListener("mousedown",Hx,!0),e.addEventListener("pointerdown",Hx,!0),e.addEventListener("touchstart",Hx,!0),e.addEventListener("visibilitychange",Awe,!0)}function Fwe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return N0||Iwe(t)}function D0(){const e=d.useCallback(o=>{o!=null&&Mwe(o.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(ZS=!0,Twe.start(100,()=>{ZS=!1}),t.current=!1,!0):!1}function n(o){return Fwe(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 Du;function o6(){if(Du)return Du;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),Du="reverse",e.scrollLeft>0?Du="default":(e.scrollLeft=1,e.scrollLeft===0&&(Du="negative")),document.body.removeChild(e),Du}function Lwe(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 Vp(e){return typeof e=="string"}function pc(e,t,r){return e===void 0||Vp(e)?t:j({},t,{ownerState:j({},t.ownerState,r)})}function $y(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 pF(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=$y(j({},o,n)),s=pF(n),c=pF(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 Nwe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Go(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Ce(e,Nwe),s=a?{}:i6(n,o),{props:c,internalRef:l}=a6(j({},i,{externalSlotProps:s})),f=ir(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return pc(r,j({},c,{ref:f}),o)}const Dwe=d.createContext(null),s6=Dwe;function l6(){return d.useContext(s6)}const Bwe=typeof Symbol=="function"&&Symbol.for,zwe=Bwe?Symbol.for("mui.nested"):"__THEME_NESTED__";function Uwe(e,t){return typeof t=="function"?t(e):j({},e,t)}function Vwe(e){const{children:t,theme:r}=e,n=l6(),o=d.useMemo(()=>{const a=n===null?r:Uwe(n,r);return a!=null&&(a[zwe]=n!==null),a},[r,n]);return S.jsx(s6.Provider,{value:o,children:t})}const Wwe=["value"],u6=d.createContext();function qwe(e){let{value:t}=e,r=Ce(e,Wwe);return S.jsx(u6.Provider,j({value:t??!0},r))}const Xs=()=>{const e=d.useContext(u6);return e??!1},c6=d.createContext(void 0);function Hwe({value:e,children:t}){return S.jsx(c6.Provider,{value:e,children:t})}function Gwe(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?Up(o.defaultProps,n):!o.styleOverrides&&!o.variants?Up(o,n):n}function Kwe({props:e,name:t}){const r=d.useContext(c6);return Gwe({props:e,name:t,theme:{components:r}})}const vF={};function mF(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 Qwe(e){const{children:t,theme:r,themeId:n}=e,o=GP(vF),a=l6()||vF,i=mF(n,o,r),s=mF(n,a,r,!0),c=i.direction==="rtl";return S.jsx(Vwe,{theme:s,children:S.jsx($v.Provider,{value:i,children:S.jsx(qwe,{value:c,children:S.jsx(Hwe,{value:i==null?void 0:i.components,children:t})})})})}const Xwe=["className","component","disableGutters","fixed","maxWidth","classes"],Ywe=Rd(),Jwe=Xz("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]}}),Zwe=e=>Jz({props:e,name:"MuiContainer",defaultTheme:Ywe}),eSe=(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 tSe(e={}){const{createStyledComponent:t=Jwe,useThemeProps:r=Zwe,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,Xwe),O=j({},l,{component:v,disableGutters:m,fixed:h,maxWidth:x}),b=eSe(O,n);return S.jsx(o,j({as:v,ownerState:O,className:$e(b.root,f),ref:c},w))})}const rSe=["component","direction","spacing","divider","children","className","useFlexGap"],nSe=Rd(),oSe=Xz("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function aSe(e){return Jz({props:e,name:"MuiStack",defaultTheme:nSe})}function iSe(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],lSe=({ownerState:e,theme:t})=>{let r=j({display:"flex",flexDirection:"column"},ba({theme:t},Wx({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=qP(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=Wx({values:e.direction,base:o}),i=Wx({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=Pn(r,ba({theme:t},i,(c,l)=>e.useFlexGap?{gap:Jl(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${sSe(l?a[l]:e.direction)}`]:Jl(n,c)}}))}return r=rxe(t.breakpoints,r),r};function uSe(e={}){const{createStyledComponent:t=oSe,useThemeProps:r=aSe,componentName:n="MuiStack"}=e,o=()=>Ve({root:["root"]},c=>Ue(n,c),{}),a=t(lSe);return d.forwardRef(function(c,l){const f=r(c),v=P0(f),{component:m="div",direction:h="column",spacing:x=0,divider:w,children:O,className:b,useFlexGap:g=!1}=v,_=Ce(v,rSe),$={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?iSe(O,w):O}))})}function cSe(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var yr={},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 dSe=Qa(N_e),fSe=Qa(_we);var f6=He;Object.defineProperty(yr,"__esModule",{value:!0});var It=yr.alpha=h6;yr.blend=OSe;yr.colorChannel=void 0;var B0=yr.darken=ZP;yr.decomposeColor=Ko;var pSe=yr.emphasize=g6,vSe=yr.getContrastRatio=bSe;yr.getLuminance=Ry;yr.hexToRgb=p6;yr.hslToRgb=m6;var z0=yr.lighten=e$;yr.private_safeAlpha=_Se;yr.private_safeColorChannel=void 0;yr.private_safeDarken=xSe;yr.private_safeEmphasize=SSe;yr.private_safeLighten=wSe;yr.recomposeColor=kd;yr.rgbToHex=ySe;var hF=f6(dSe),mSe=f6(fSe);function JP(e,t=0,r=1){return(0,mSe.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 hSe(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Ko(e){if(e.type)return e;if(e.charAt(0)==="#")return Ko(p6(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,hF.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,hF.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=Ko(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};yr.colorChannel=v6;const gSe=(e,t)=>{try{return v6(e)}catch{return e}};yr.private_safeColorChannel=gSe;function kd(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 ySe(e){if(e.indexOf("#")===0)return e;const{values:t}=Ko(e);return`#${t.map((r,n)=>hSe(n===3?Math.round(255*r):r)).join("")}`}function m6(e){e=Ko(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])),kd({type:s,values:c})}function Ry(e){e=Ko(e);let t=e.type==="hsl"||e.type==="hsla"?Ko(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 bSe(e,t){const r=Ry(e),n=Ry(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function h6(e,t){return e=Ko(e),t=JP(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,kd(e)}function _Se(e,t,r){try{return h6(e,t)}catch{return e}}function ZP(e,t){if(e=Ko(e),t=JP(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 kd(e)}function xSe(e,t,r){try{return ZP(e,t)}catch{return e}}function e$(e,t){if(e=Ko(e),t=JP(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 kd(e)}function wSe(e,t,r){try{return e$(e,t)}catch{return e}}function g6(e,t=.15){return Ry(e)>.5?ZP(e,t):e$(e,t)}function SSe(e,t,r){try{return g6(e,t)}catch{return e}}function OSe(e,t,r,n=1){const o=(c,l)=>Math.round((c**(1/n)*(1-r)+l**(1/n)*r)**n),a=Ko(e),i=Ko(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return kd({type:"rgb",values:s})}const CSe=["mode","contrastThreshold","tonalOffset"],gF={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:Lp.white,default:Lp.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}},Gx={text:{primary:Lp.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:Lp.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 yF(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=z0(e.main,o):t==="dark"&&(e.dark=B0(e.main,a)))}function ESe(e="light"){return e==="dark"?{main:Fu[200],light:Fu[50],dark:Fu[400]}:{main:Fu[700],light:Fu[400],dark:Fu[800]}}function PSe(e="light"){return e==="dark"?{main:Mu[200],light:Mu[50],dark:Mu[400]}:{main:Mu[500],light:Mu[300],dark:Mu[700]}}function $Se(e="light"){return e==="dark"?{main:Au[500],light:Au[300],dark:Au[700]}:{main:Au[700],light:Au[400],dark:Au[800]}}function RSe(e="light"){return e==="dark"?{main:Lu[400],light:Lu[300],dark:Lu[700]}:{main:Lu[700],light:Lu[500],dark:Lu[900]}}function TSe(e="light"){return e==="dark"?{main:Nu[400],light:Nu[300],dark:Nu[700]}:{main:Nu[800],light:Nu[500],dark:Nu[900]}}function kSe(e="light"){return e==="dark"?{main:gf[400],light:gf[300],dark:gf[700]}:{main:"#ed6c02",light:gf[500],dark:gf[900]}}function ISe(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ce(e,CSe),a=e.primary||ESe(t),i=e.secondary||PSe(t),s=e.error||$Se(t),c=e.info||RSe(t),l=e.success||TSe(t),f=e.warning||kSe(t);function v(w){return vSe(w,Gx.text.primary)>=r?Gx.text.primary:gF.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($i(11,O?` (${O})`:"",b));if(typeof w.main!="string")throw new Error($i(12,O?` (${O})`:"",JSON.stringify(w.main)));return yF(w,"light",g,n),yF(w,"dark",_,n),w.contrastText||(w.contrastText=v(w.main)),w},h={dark:Gx,light:gF};return Pn(j({common:j({},Lp),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:L_e,contrastThreshold:r,getContrastText:v,augmentColor:m,tonalOffset:n},h[t]),o)}const jSe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function ASe(e){return Math.round(e*1e5)/1e5}const bF={textTransform:"uppercase"},_F='"Roboto", "Helvetica", "Arial", sans-serif';function MSe(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=_F,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,jSe),h=o/14,x=v||(b=>`${b/l*h}rem`),w=(b,g,_,$,P)=>j({fontFamily:n,fontWeight:b,fontSize:x(g),lineHeight:_},n===_F?{letterSpacing:`${ASe($/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,bF),caption:w(i,12,1.66,.4),overline:w(i,12,2.66,1,bF),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pn(j({htmlFontSize:l,pxToRem:x,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:c},O),m,{clone:!1})}const FSe=.2,LSe=.14,NSe=.12;function Zt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${FSe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${LSe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${NSe})`].join(",")}const DSe=["none",Zt(0,2,1,-1,0,1,1,0,0,1,3,0),Zt(0,3,1,-2,0,2,2,0,0,1,5,0),Zt(0,3,3,-2,0,3,4,0,0,1,8,0),Zt(0,2,4,-1,0,4,5,0,0,1,10,0),Zt(0,3,5,-1,0,5,8,0,0,1,14,0),Zt(0,3,5,-1,0,6,10,0,0,1,18,0),Zt(0,4,5,-2,0,7,10,1,0,2,16,1),Zt(0,5,5,-3,0,8,10,1,0,3,14,2),Zt(0,5,6,-3,0,9,12,1,0,3,16,2),Zt(0,6,6,-3,0,10,14,1,0,4,18,3),Zt(0,6,7,-4,0,11,15,1,0,4,20,3),Zt(0,7,8,-4,0,12,17,2,0,5,22,4),Zt(0,7,8,-4,0,13,19,2,0,5,24,4),Zt(0,7,9,-4,0,14,21,2,0,5,26,4),Zt(0,8,9,-5,0,15,22,2,0,6,28,5),Zt(0,8,10,-5,0,16,24,2,0,6,30,5),Zt(0,8,11,-5,0,17,26,2,0,6,32,5),Zt(0,9,11,-5,0,18,28,2,0,7,34,6),Zt(0,9,12,-6,0,19,29,2,0,7,36,6),Zt(0,10,13,-6,0,20,31,3,0,8,38,7),Zt(0,10,13,-6,0,21,33,3,0,8,40,7),Zt(0,10,14,-6,0,22,35,3,0,8,42,7),Zt(0,11,14,-7,0,23,36,3,0,9,44,8),Zt(0,11,15,-7,0,24,38,3,0,9,46,8)],BSe=["duration","easing","delay"],zSe={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)"},USe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xF(e){return`${Math.round(e)}ms`}function VSe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function WSe(e){const t=j({},zSe,e.easing),r=j({},USe,e.duration);return j({getAutoHeightDuration:VSe,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:c=0}=a;return Ce(a,BSe),(Array.isArray(o)?o:[o]).map(l=>`${l} ${typeof i=="string"?i:xF(i)} ${s} ${typeof c=="string"?c:xF(c)}`).join(",")}},e,{easing:t,duration:r})}const qSe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},HSe=qSe,GSe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ty(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=Ce(e,GSe);if(e.vars)throw new Error($i(18));const s=ISe(n),c=Rd(e);let l=Pn(c,{mixins:cSe(c.breakpoints,r),palette:s,shadows:DSe.slice(),typography:MSe(s,a),transitions:WSe(o),zIndex:j({},HSe)});return l=Pn(l,i),l=t.reduce((f,v)=>Pn(f,v),l),l.unstable_sxConfig=j({},Tv,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(v){return kv({sx:v,theme:this})},l}const KSe=Ty(),t$=KSe;function ra(){const e=E0(t$);return e[Gc]||e}var jv={},Kx={exports:{}},wF;function QSe(){return wF||(wF=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n=0)&&(o[i]=r[i]);return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Qx)),Qx.exports}const y6=Qa(X1e),YSe=Qa(Y1e),JSe=Qa(oxe),ZSe=Qa(lwe),eOe=Qa(Hxe),tOe=Qa(Jxe);var Id=He;Object.defineProperty(jv,"__esModule",{value:!0});var rOe=jv.default=mOe;jv.shouldForwardProp=ig;jv.systemDefaultTheme=void 0;var To=Id(QSe()),eO=Id(XSe()),OF=uOe(y6),nOe=YSe;Id(JSe);Id(ZSe);var oOe=Id(eOe),aOe=Id(tOe);const iOe=["ownerState"],sOe=["variants"],lOe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function b6(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(b6=function(n){return n?r:t})(e)}function uOe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=b6(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 cOe(e){return Object.keys(e).length===0}function dOe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ig(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const fOe=jv.systemDefaultTheme=(0,oOe.default)(),pOe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function hh({defaultTheme:e,theme:t,themeId:r}){return cOe(t)?e:t[r]||t}function vOe(e){return e?(t,r)=>r[e]:null}function sg(e,t){let{ownerState:r}=t,n=(0,eO.default)(t,iOe);const o=typeof e=="function"?e((0,To.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>sg(a,(0,To.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=(0,eO.default)(o,sOe);return a.forEach(c=>{let l=!0;typeof c.props=="function"?l=c.props((0,To.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,To.default)({ownerState:r},n,r)):c.style))}),s}return o}function mOe(e={}){const{themeId:t,defaultTheme:r=fOe,rootShouldForwardProp:n=ig,slotShouldForwardProp:o=ig}=e,a=i=>(0,aOe.default)((0,To.default)({},i,{theme:hh((0,To.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,OF.internal_processStyles)(i,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:f,skipSx:v,overridesResolver:m=vOe(pOe(l))}=s,h=(0,eO.default)(s,lOe),x=f!==void 0?f:l&&l!=="Root"&&l!=="root"||!1,w=v||!1;let O,b=ig;l==="Root"||l==="root"?b=n:l?b=o:dOe(i)&&(b=void 0);const g=(0,OF.default)(i,(0,To.default)({shouldForwardProp:b,label:O},h)),_=P=>typeof P=="function"&&P.__emotion_real!==P||(0,nOe.isPlainObject)(P)?C=>sg(P,(0,To.default)({},C,{theme:hh({theme:C.theme,defaultTheme:r,themeId:t})})):P,$=(P,...C)=>{let T=_(P);const R=C?C.map(_):[];c&&m&&R.push(F=>{const L=hh((0,To.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]=sg(q,(0,To.default)({},F,{theme:L}))}),m(F,U)}),c&&!x&&R.push(F=>{var L;const D=hh((0,To.default)({},F,{defaultTheme:r,themeId:t})),U=D==null||(L=D.components)==null||(L=L[c])==null?void 0:L.variants;return sg({variants:U},(0,To.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("");T=[...P,...F],T.raw=[...P.raw,...F]}const A=g(T,...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 hOe=e=>_6(e)&&e!=="classes",tn=hOe,J=rOe({themeId:Gc,defaultTheme:t$,rootShouldForwardProp:tn}),gOe=["theme"];function yOe(e){let{theme:t}=e,r=Ce(e,gOe);const n=t[Gc];return S.jsx(Qwe,j({},r,{themeId:n?Gc:void 0,theme:n||t}))}const CF=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 Kwe(e)}function bOe(e){return Ue("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _Oe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],xOe=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Se(t)}`,`fontSize${Se(r)}`]};return Ve(o,bOe,n)},wOe=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]}}),tO=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,_Oe),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=xOe(w);return S.jsxs(wOe,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]}))});tO.muiName="SvgIcon";function bo(e,t){function r(n,o){return S.jsx(tO,j({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=tO.muiName,d.memo(d.forwardRef(r))}const SOe={configure:e=>{KP.configure(e)}},OOe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Se,createChainedFunction:JS,createSvgIcon:bo,debounce:Td,deprecatedPropType:Swe,isMuiElement:ag,ownerDocument:Er,ownerWindow:Ho,requirePropFactory:Owe,setRef:Py,unstable_ClassNameGenerator:SOe,unstable_useEnhancedEffect:po,unstable_useId:Zl,unsupportedProp:Ewe,useControlled:Yc,useEventCallback:Cn,useForkRef:ir,useIsFocusVisible:D0},Symbol.toStringTag,{value:"Module"})),EF={disabled:!1},ky=fe.createContext(null);var COe=function(t){return t.scrollTop},Af="unmounted",bl="exited",_l="entering",Vu="entered",rO="exiting",Di=function(e){Ai(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=bl,a.appearStatus=_l):c=Vu:n.unmountOnExit||n.mountOnEnter?c=Af:c=bl,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Af?{status:bl}: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!==_l&&i!==Vu&&(a=_l):(i===_l||i===Vu)&&(a=rO)}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===_l){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:If.findDOMNode(this);i&&COe(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bl&&this.setState({status:Af})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[If.findDOMNode(this),s],l=c[0],f=c[1],v=this.getTimeouts(),m=s?v.appear:v.enter;if(!o&&!i||EF.disabled){this.safeSetState({status:Vu},function(){a.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:_l},function(){a.props.onEntering(l,f),a.onTransitionEnd(m,function(){a.safeSetState({status:Vu},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:If.findDOMNode(this);if(!a||EF.disabled){this.safeSetState({status:bl},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:rO},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:bl},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:If.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===Af)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(ky.Provider,{value:null},typeof i=="function"?i(o,s):fe.cloneElement(fe.Children.only(i),s))},t}(fe.Component);Di.contextType=ky;Di.propTypes={};function Bu(){}Di.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Bu,onEntering:Bu,onEntered:Bu,onExit:Bu,onExiting:Bu,onExited:Bu};Di.UNMOUNTED=Af;Di.EXITED=bl;Di.ENTERING=_l;Di.ENTERED=Vu;Di.EXITING=rO;const r$=Di;function n$(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 EOe(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 Jc(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 IOe(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 jOe=["className","component","elevation","square","variant"],AOe=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ve(a,IOe,o)},MOe=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(${It("#fff",CF(t.elevation))}, ${It("#fff",CF(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),FOe=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,jOe),f=j({},n,{component:a,elevation:i,square:s,variant:c}),v=AOe(f);return S.jsx(MOe,j({as:a,ownerState:f,className:$e(v.root,o),ref:r},l))}),Ys=FOe,LOe=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],NOe=["component","slots","slotProps"],DOe=["component"];function BOe(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s}=t,c=Ce(t,LOe),{component:l,slots:f={[e]:void 0},slotProps:v={[e]:void 0}}=a,m=Ce(a,NOe),h=f[e]||n,x=i6(v[e],o),w=a6(j({className:r},c,{externalForwardedProps:e==="root"?m:void 0,externalSlotProps:x})),{props:{component:O},internalRef:b}=w,g=Ce(w.props,DOe),_=ir(b,x==null?void 0:x.ref,t.ref),$=i?i(g):{},P=j({},o,$),C=e==="root"?O||l:O,T=pc(h,j({},e==="root"&&!l&&!f[e]&&s,e!=="root"&&!f[e]&&s,g,C&&{as:C},{ref:_}),P);return Object.keys($).forEach(R=>{delete T[R]}),[h,T]}function zOe(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 ko=qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),UOe=["center","classes","className"];let U0=e=>e,PF,$F,RF,TF;const nO=550,VOe=80,WOe=Ni(PF||(PF=U0` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),qOe=Ni($F||($F=U0` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),HOe=Ni(RF||(RF=U0` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),GOe=J("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),KOe=J(zOe,{name:"MuiTouchRipple",slot:"Ripple"})(TF||(TF=U0` - 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; - } -`),ko.rippleVisible,WOe,nO,({theme:e})=>e.transitions.easing.easeInOut,ko.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ko.child,ko.childLeaving,qOe,nO,({theme:e})=>e.transitions.easing.easeInOut,ko.childPulsate,HOe,({theme:e})=>e.transitions.easing.easeInOut),QOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,s=Ce(n,UOe),[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=$l(),x=d.useRef(null),w=d.useRef(null),O=d.useCallback($=>{const{pulsate:P,rippleX:C,rippleY:T,rippleSize:R,cb:I}=$;l(A=>[...A,S.jsx(KOe,{classes:{ripple:$e(a.ripple,ko.ripple),rippleVisible:$e(a.rippleVisible,ko.rippleVisible),ripplePulsate:$e(a.ripplePulsate,ko.ripplePulsate),child:$e(a.child,ko.child),childLeaving:$e(a.childLeaving,ko.childLeaving),childPulsate:$e(a.childPulsate,ko.childPulsate)},timeout:nO,pulsate:P,rippleX:C,rippleY:T,rippleSize:R},f.current)]),f.current+=1,v.current=I},[a]),b=d.useCallback(($={},P={},C=()=>{})=>{const{pulsate:T=!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:T,rippleX:L,rippleY:D,rippleSize:U,cb:C})},h.start(VOe,()=>{x.current&&(x.current(),x.current=null)})):O({pulsate:T,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(GOe,j({className:$e(ko.root,a.root,i),ref:w},s,{children:S.jsx(kOe,{component:null,exit:!0,children:c})}))}),XOe=QOe;function YOe(e){return Ue("MuiButtonBase",e)}const JOe=qe("MuiButtonBase",["root","disabled","focusVisible"]),ZOe=["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"],eCe=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Ve({root:["root",t&&"disabled",r&&"focusVisible"]},YOe,o);return r&&n&&(i.root+=` ${n}`),i},tCe=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"},[`&.${JOe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),rCe=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:T,onMouseUp:R,onTouchEnd:I,onTouchMove:A,onTouchStart:F,tabIndex:L=0,TouchRippleProps:D,touchRippleRef:U,type:H}=n,q=Ce(n,ZOe),G=d.useRef(null),z=d.useRef(null),W=ir(z,U),{isFocusVisibleRef:te,onFocus:ne,onBlur:ee,ref:Oe}=D0(),[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,Et=v){return Cn(Ct=>(ft&&ft(Ct),!Et&&z.current&&z.current[De](Ct),!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(),T&&T(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=Cn(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=Cn(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=Cn(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=ir(r,Oe,G),at=j({},n,{centerRipple:a,component:c,disabled:l,disableRipple:f,disableTouchRipple:v,focusRipple:m,tabIndex:L,focusVisible:ce}),Le=eCe(at);return S.jsxs(tCe,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(XOe,j({ref:W,center:a},D)):null]}))}),Bi=rCe;function nCe(e){return Ue("MuiIconButton",e)}const oCe=qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),aCe=["edge","children","className","color","disabled","disableFocusRipple","size"],iCe=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,nCe,t)},sCe=J(Bi,{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})`:It(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})`:It(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)},{[`&.${oCe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),lCe=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,aCe),m=j({},n,{edge:o,color:s,disabled:c,disableFocusRipple:l,size:f}),h=iCe(m);return S.jsx(sCe,j({className:$e(h.root,i),centerRipple:!0,focusRipple:!l,disabled:c,ref:r},v,{ownerState:m,children:a}))}),nr=lCe;function uCe(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 cCe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],dCe=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,uCe,i)},fCe=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})),kF={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},pCe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},vCe=e=>pCe[e]||e,mCe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTypography"}),o=vCe(n.color),a=P0(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=kF}=a,x=Ce(a,cCe),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]||kF[m])||"span",b=dCe(w);return S.jsx(fCe,j({as:O,ref:r,ownerState:w,className:$e(b.root,s)},x))}),it=mCe;function hCe(e){return Ue("MuiAppBar",e)}qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const gCe=["className","color","enableColorOnDark","position"],yCe=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${Se(t)}`,`position${Se(r)}`]};return Ve(o,hCe,n)},gh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,bCe=J(Ys,{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:gh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:gh(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:gh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:gh(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"}))}),_Ce=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,gCe),l=j({},n,{color:a,position:s,enableColorOnDark:i}),f=yCe(l);return S.jsx(bCe,j({square:!0,component:"header",ownerState:l,elevation:4,className:$e(f.root,o,s==="fixed"&&"mui-fixed"),ref:r},c))}),xCe=_Ce;var i$={};Object.defineProperty(i$,"__esModule",{value:!0});var x6=i$.default=void 0,wCe=OCe(d),SCe=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 OCe(e,t){if(!t&&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 CCe(e){return Object.keys(e).length===0}function ECe(e=null){const t=wCe.useContext(SCe.ThemeContext);return!t||CCe(t)?e:t}x6=i$.default=ECe;var Hn="top",Qo="bottom",Xo="right",Gn="left",s$="auto",Av=[Hn,Qo,Xo,Gn],Zc="start",Wp="end",PCe="clippingParents",S6="viewport",bf="popper",$Ce="reference",IF=Av.reduce(function(e,t){return e.concat([t+"-"+Zc,t+"-"+Wp])},[]),O6=[].concat(Av,[s$]).reduce(function(e,t){return e.concat([t,t+"-"+Zc,t+"-"+Wp])},[]),RCe="beforeRead",TCe="read",kCe="afterRead",ICe="beforeMain",jCe="main",ACe="afterMain",MCe="beforeWrite",FCe="write",LCe="afterWrite",NCe=[RCe,TCe,kCe,ICe,jCe,ACe,MCe,FCe,LCe];function Ga(e){return e?(e.nodeName||"").toLowerCase():null}function vo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function eu(e){var t=vo(e).Element;return e instanceof t||e instanceof Element}function Uo(e){var t=vo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function l$(e){if(typeof ShadowRoot>"u")return!1;var t=vo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function DCe(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];!Uo(a)||!Ga(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 BCe(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},{});!Uo(o)||!Ga(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const zCe={name:"applyStyles",enabled:!0,phase:"write",fn:DCe,effect:BCe,requires:["computeStyles"]};function Wa(e){return e.split("-")[0]}var Nl=Math.max,Iy=Math.min,ed=Math.round;function oO(){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(oO())}function td(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Uo(e)&&(o=e.offsetWidth>0&&ed(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ed(n.height)/e.offsetHeight||1);var i=eu(e)?vo(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 u$(e){var t=td(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&&l$(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ri(e){return vo(e).getComputedStyle(e)}function UCe(e){return["table","td","th"].indexOf(Ga(e))>=0}function Js(e){return((eu(e)?e.ownerDocument:e.document)||window.document).documentElement}function V0(e){return Ga(e)==="html"?e:e.assignedSlot||e.parentNode||(l$(e)?e.host:null)||Js(e)}function jF(e){return!Uo(e)||Ri(e).position==="fixed"?null:e.offsetParent}function VCe(e){var t=/firefox/i.test(oO()),r=/Trident/i.test(oO());if(r&&Uo(e)){var n=Ri(e);if(n.position==="fixed")return null}var o=V0(e);for(l$(o)&&(o=o.host);Uo(o)&&["html","body"].indexOf(Ga(o))<0;){var a=Ri(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 Mv(e){for(var t=vo(e),r=jF(e);r&&UCe(r)&&Ri(r).position==="static";)r=jF(r);return r&&(Ga(r)==="html"||Ga(r)==="body"&&Ri(r).position==="static")?t:r||VCe(e)||t}function c$(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function tp(e,t,r){return Nl(e,Iy(t,r))}function WCe(e,t,r){var n=tp(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 qCe=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,$6(typeof t!="number"?t:R6(t,Av))};function HCe(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Wa(r.placement),c=c$(s),l=[Gn,Xo].indexOf(s)>=0,f=l?"height":"width";if(!(!a||!i)){var v=qCe(o.padding,r),m=u$(a),h=c==="y"?Hn:Gn,x=c==="y"?Qo:Xo,w=r.rects.reference[f]+r.rects.reference[c]-i[c]-r.rects.popper[f],O=i[c]-r.rects.reference[c],b=Mv(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+_,T=tp($,C,P),R=c;r.modifiersData[n]=(t={},t[R]=T,t.centerOffset=T-C,t)}}function GCe(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 KCe={name:"arrow",enabled:!0,phase:"main",fn:HCe,effect:GCe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rd(e){return e.split("-")[1]}var QCe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function XCe(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:ed(r*o)/o||0,y:ed(n*o)/o||0}}function AF(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"),_=Gn,$=Hn,P=window;if(l){var C=Mv(r),T="clientHeight",R="clientWidth";if(C===vo(r)&&(C=Js(r),Ri(C).position!=="static"&&s==="absolute"&&(T="scrollHeight",R="scrollWidth")),C=C,o===Hn||(o===Gn||o===Xo)&&a===Wp){$=Qo;var I=v&&C===P&&P.visualViewport?P.visualViewport.height:C[T];w-=I-n.height,w*=c?1:-1}if(o===Gn||(o===Hn||o===Qo)&&a===Wp){_=Xo;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&&QCe),L=f===!0?XCe({x:h,y:w},vo(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 YCe(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:Wa(t.placement),variation:rd(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,AF(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,AF(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 JCe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:YCe,data:{}};var yh={passive:!0};function ZCe(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=vo(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(f){f.addEventListener("scroll",r.update,yh)}),s&&c.addEventListener("resize",r.update,yh),function(){a&&l.forEach(function(f){f.removeEventListener("scroll",r.update,yh)}),s&&c.removeEventListener("resize",r.update,yh)}}const eEe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ZCe,data:{}};var tEe={left:"right",right:"left",bottom:"top",top:"bottom"};function lg(e){return e.replace(/left|right|bottom|top/g,function(t){return tEe[t]})}var rEe={start:"end",end:"start"};function MF(e){return e.replace(/start|end/g,function(t){return rEe[t]})}function d$(e){var t=vo(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function f$(e){return td(Js(e)).left+d$(e).scrollLeft}function nEe(e,t){var r=vo(e),n=Js(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+f$(e),y:c}}function oEe(e){var t,r=Js(e),n=d$(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Nl(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Nl(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+f$(e),c=-n.scrollTop;return Ri(o||r).direction==="rtl"&&(s+=Nl(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:c}}function p$(e){var t=Ri(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function T6(e){return["html","body","#document"].indexOf(Ga(e))>=0?e.ownerDocument.body:Uo(e)&&p$(e)?e:T6(V0(e))}function rp(e,t){var r;t===void 0&&(t=[]);var n=T6(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=vo(n),i=o?[a].concat(a.visualViewport||[],p$(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(rp(V0(i)))}function aO(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aEe(e,t){var r=td(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 FF(e,t,r){return t===S6?aO(nEe(e,r)):eu(t)?aEe(t,r):aO(oEe(Js(e)))}function iEe(e){var t=rp(V0(e)),r=["absolute","fixed"].indexOf(Ri(e).position)>=0,n=r&&Uo(e)?Mv(e):e;return eu(n)?t.filter(function(o){return eu(o)&&E6(o,n)&&Ga(o)!=="body"}):[]}function sEe(e,t,r,n){var o=t==="clippingParents"?iEe(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(c,l){var f=FF(e,l,n);return c.top=Nl(f.top,c.top),c.right=Iy(f.right,c.right),c.bottom=Iy(f.bottom,c.bottom),c.left=Nl(f.left,c.left),c},FF(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 k6(e){var t=e.reference,r=e.element,n=e.placement,o=n?Wa(n):null,a=n?rd(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(o){case Hn:c={x:i,y:t.y-r.height};break;case Qo:c={x:i,y:t.y+t.height};break;case Xo:c={x:t.x+t.width,y:s};break;case Gn:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var l=o?c$(o):null;if(l!=null){var f=l==="y"?"height":"width";switch(a){case Zc:c[l]=c[l]-(t[f]/2-r[f]/2);break;case Wp:c[l]=c[l]+(t[f]/2-r[f]/2);break}}return c}function qp(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?PCe:s,l=r.rootBoundary,f=l===void 0?S6:l,v=r.elementContext,m=v===void 0?bf: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,Av)),g=m===bf?$Ce:bf,_=e.rects.popper,$=e.elements[x?g:m],P=sEe(eu($)?$:$.contextElement||Js(e.elements.popper),c,f,i),C=td(e.elements.reference),T=k6({reference:C,element:_,strategy:"absolute",placement:o}),R=aO(Object.assign({},_,T)),I=m===bf?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===bf&&F){var L=F[o];Object.keys(A).forEach(function(D){var U=[Xo,Qo].indexOf(D)>=0?1:-1,H=[Hn,Qo].indexOf(D)>=0?"y":"x";A[D]+=L[H]*U})}return A}function lEe(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=rd(n),v=f?s?IF:IF.filter(function(x){return rd(x)===f}):Av,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]=qp(e,{placement:w,boundary:o,rootBoundary:a,padding:i})[Wa(w)],x},{});return Object.keys(h).sort(function(x,w){return h[x]-h[w]})}function uEe(e){if(Wa(e)===s$)return[];var t=lg(e);return[MF(e),t,MF(t)]}function cEe(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=Wa(O),g=b===O,_=c||(g||!x?[lg(O)]:uEe(O)),$=[O].concat(_).reduce(function(ce,oe){return ce.concat(Wa(oe)===s$?lEe(t,{placement:oe,boundary:f,rootBoundary:v,padding:l,flipVariations:x,allowedAutoPlacements:w}):oe)},[]),P=t.rects.reference,C=t.rects.popper,T=new Map,R=!0,I=$[0],A=0;A<$.length;A++){var F=$[A],L=Wa(F),D=rd(F)===Zc,U=[Hn,Qo].indexOf(L)>=0,H=U?"width":"height",q=qp(t,{placement:F,boundary:f,rootBoundary:v,altBoundary:m,padding:l}),G=U?D?Xo:Gn:D?Qo:Hn;P[H]>C[H]&&(G=lg(G));var z=lg(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}T.set(F,W)}if(R)for(var te=x?3:1,ne=function(oe){var pe=$.find(function(Re){var ye=T.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 dEe={name:"flip",enabled:!0,phase:"main",fn:cEe,requiresIfExists:["offset"],data:{_skip:!1}};function LF(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 NF(e){return[Hn,Xo,Qo,Gn].some(function(t){return e[t]>=0})}function fEe(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=qp(t,{elementContext:"reference"}),s=qp(t,{altBoundary:!0}),c=LF(i,n),l=LF(s,o,a),f=NF(c),v=NF(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 pEe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fEe};function vEe(e,t,r){var n=Wa(e),o=[Gn,Hn].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,[Gn,Xo].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function mEe(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]=vEe(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 hEe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mEe};function gEe(e){var t=e.state,r=e.name;t.modifiersData[r]=k6({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const yEe={name:"popperOffsets",enabled:!0,phase:"read",fn:gEe,data:{}};function bEe(e){return e==="x"?"y":"x"}function _Ee(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=qp(t,{boundary:c,rootBoundary:l,padding:v,altBoundary:f}),b=Wa(t.placement),g=rd(t.placement),_=!g,$=c$(b),P=bEe($),C=t.modifiersData.popperOffsets,T=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"?Hn:Gn,H=$==="y"?Qo:Xo,q=$==="y"?"height":"width",G=C[$],z=G+O[U],W=G-O[H],te=h?-R[q]/2:0,ne=g===Zc?T[q]:R[q],ee=g===Zc?-R[q]:-T[q],Oe=t.elements.arrow,ce=h&&Oe?u$(Oe):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:P6(),pe=oe[U],Re=oe[H],ye=tp(0,T[q],ce[q]),de=_?T[q]/2-te-ye-pe-A.mainAxis:ne-ye-pe-A.mainAxis,he=_?-T[q]/2+te+ye+Re+A.mainAxis:ee+ye+Re+A.mainAxis,ve=t.elements.arrow&&Mv(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=tp(h?Iy(z,be):z,G,h?Nl(W,ge):W);C[$]=Ae,L[$]=Ae-G}if(s){var Be,V=$==="x"?Hn:Gn,X=$==="x"?Qo:Xo,Y=C[P],ae=P==="y"?"height":"width",se=Y+O[V],le=Y-O[X],Ee=[Hn,Gn].indexOf(b)!==-1,Ie=(Be=F==null?void 0:F[P])!=null?Be:0,rt=Ee?se:Y-T[ae]-R[ae]-Ie+A.altAxis,at=Ee?Y+T[ae]+R[ae]-Ie-A.altAxis:le,Le=h&&Ee?WCe(rt,Y,at):tp(h?rt:se,Y,h?at:le);C[P]=Le,L[P]=Le-Y}t.modifiersData[n]=L}}const xEe={name:"preventOverflow",enabled:!0,phase:"main",fn:_Ee,requiresIfExists:["offset"]};function wEe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function SEe(e){return e===vo(e)||!Uo(e)?d$(e):wEe(e)}function OEe(e){var t=e.getBoundingClientRect(),r=ed(t.width)/e.offsetWidth||1,n=ed(t.height)/e.offsetHeight||1;return r!==1||n!==1}function CEe(e,t,r){r===void 0&&(r=!1);var n=Uo(t),o=Uo(t)&&OEe(t),a=Js(t),i=td(e,o,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Ga(t)!=="body"||p$(a))&&(s=SEe(t)),Uo(t)?(c=td(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=f$(a))),{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function EEe(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 PEe(e){var t=EEe(e);return NCe.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function $Ee(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function REe(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 DF={placement:"bottom",modifiers:[],strategy:"absolute"};function BF(){for(var e=arguments.length,t=new Array(e),r=0;r{a||s(jEe(o)||document.body)},[o,a]),po(()=>{if(i&&!a)return Py(r,i),()=>{Py(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&&Rb.createPortal(n,i)})}),I6=AEe;function MEe(e){return Ue("MuiPopper",e)}qe("MuiPopper",["root"]);const FEe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],LEe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function NEe(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 iO(e){return typeof e=="function"?e():e}function DEe(e){return e.nodeType!==void 0}const BEe=e=>{const{classes:t}=e;return Ve({root:["root"]},MEe,t)},zEe={},UEe=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,FEe),b=d.useRef(null),g=ir(b,r),_=d.useRef(null),$=ir(_,m),P=d.useRef($);po(()=>{P.current=$},[$]),d.useImperativeHandle(m,()=>_.current,[]);const C=NEe(f,i),[T,R]=d.useState(C),[I,A]=d.useState(iO(o));d.useEffect(()=>{_.current&&_.current.forceUpdate()}),d.useEffect(()=>{o&&A(iO(o))},[o]),po(()=>{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=IEe(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:T};w!==null&&(F.TransitionProps=w);const L=BEe(t),D=(n=x.root)!=null?n:"div",U=Go({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}))}),VEe=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=zEe,popperRef:h,style:x,transition:w=!1,slotProps:O={},slots:b={}}=t,g=Ce(t,LEe),[_,$]=d.useState(!0),P=()=>{$(!1)},C=()=>{$(!0)};if(!c&&!f&&(!w||_))return null;let T;if(a)T=a;else if(n){const A=iO(n);T=A&&DEe(A)?Er(A).body:Er(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:T,children:S.jsx(UEe,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}))})}),WEe=VEe,qEe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],HEe=J(WEe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),GEe=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,qEe),C=(n=_==null?void 0:_.root)!=null?n:c==null?void 0:c.Root,T=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(HEe,j({as:s,direction:o==null?void 0:o.direction,slots:{root:C},slotProps:$??l},T,{ref:r}))}),j6=GEe,KEe=["onChange","maxRows","minRows","style","value"];function bh(e){return parseInt(e,10)||0}const QEe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function XEe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const YEe=d.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s}=t,c=Ce(t,KEe),{current:l}=d.useRef(s!=null),f=d.useRef(null),v=ir(r,f),m=d.useRef(null),h=d.useRef(null),x=d.useCallback(()=>{const b=f.current,_=Ho(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=bh(_.paddingBottom)+bh(_.paddingTop),T=bh(_.borderBottomWidth)+bh(_.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+T:0),L=Math.abs(A-R)<=1;return{outerHeightStyle:F,overflowing:L}},[o,a,t.placeholder]),w=d.useCallback(()=>{const b=x();if(XEe(b))return;const g=b.outerHeightStyle,_=f.current;m.current!==g&&(m.current=g,_.style.height=`${g}px`),_.style.overflow=b.overflowing?"hidden":""},[x]);po(()=>{const b=()=>{w()};let g;const _=Td(b),$=f.current,P=Ho($);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]),po(()=>{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({},QEe.shadow,i,{paddingTop:0,paddingBottom:0})})]})}),JEe=YEe;function zi({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 ZEe=d.createContext(void 0),W0=ZEe;function Oa(){return d.useContext(W0)}function ePe(e){return S.jsx(Qxe,j({},e,{defaultTheme:t$,themeId:Gc}))}function zF(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function jy(e,t=!1){return e&&(zF(e.value)&&e.value!==""||t&&zF(e.defaultValue)&&e.defaultValue!=="")}function tPe(e){return e.startAdornment}function rPe(e){return Ue("MuiInputBase",e)}const nPe=qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),nd=nPe,oPe=["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"],q0=(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]},H0=(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]},aPe=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,rPe,t)},G0=J("div",{name:"MuiInputBase",slot:"Root",overridesResolver:q0})(({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",[`&.${nd.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%"})),K0=J("input",{name:"MuiInputBase",slot:"Input",overridesResolver:H0})(({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] + .${nd.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},[`&.${nd.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"})}),iPe=S.jsx(ePe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),sPe=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:T,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,oPe),ce=g.value!=null?g.value:ee,{current:oe}=d.useRef(ce!=null),pe=d.useRef(),Re=d.useCallback(Le=>{},[]),ye=ir(pe,_,g.ref,Re),[de,he]=d.useState(!1),ve=Oa(),_e=zi({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=>{jy(Le)?ie&&ie():be&&be()},[ie,be]);po(()=>{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($i(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=JEe);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=aPe(le),Ie=W.root||l.Root||G0,rt=z.root||f.root||{},at=W.input||l.Input||K0;return ae=j({},ae,(n=z.input)!=null?n:f.input),S.jsxs(d.Fragment,{children:[!h&&iPe,S.jsxs(Ie,j({},rt,!Vp(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(W0.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:T,placeholder:U,readOnly:H,required:_e.required,rows:G,value:ce,onKeyDown:L,onKeyUp:D,type:ne},ae,!Vp(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]}))]})}),Q0=sPe;function lPe(e){return Ue("MuiInput",e)}const uPe=j({},nd,qe("MuiInput",["root","underline","input"])),_f=uPe;function cPe(e){return Ue("MuiOutlinedInput",e)}const dPe=j({},nd,qe("MuiOutlinedInput",["root","notchedOutline","input"])),es=dPe;function fPe(e){return Ue("MuiFilledInput",e)}const pPe=j({},nd,qe("MuiFilledInput",["root","underline","input"])),pl=pPe,A6=bo(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),vPe=bo(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 mPe(e){return Ue("MuiAvatar",e)}qe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const hPe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],gPe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return Ve({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},mPe,t)},yPe=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]})))}]})),bPe=J("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),_Pe=J(vPe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function xPe({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 wPe=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,hPe);let O=null;const b=xPe(j({},f,{src:m,srcSet:h})),g=m||h,_=g&&b!=="error",$=j({},n,{colorDefault:!_,component:s,variant:x}),P=gPe($),[C,T]=BOe("img",{className:P.img,elementType:bPe,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({},T)):a||a===0?O=a:g&&o?O=o[0]:O=S.jsx(_Pe,{ownerState:$,className:P.fallback}),S.jsx(yPe,j({as:s,ownerState:$,className:$e(P.root,i),ref:r},w,{children:O}))}),Hp=wPe,SPe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],OPe={entering:{opacity:1},entered:{opacity:1}},CPe=d.forwardRef(function(t,r){const n=ra(),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=r$}=t,_=Ce(t,SPe),$=d.useRef(null),P=ir($,s.ref,r),C=U=>H=>{if(U){const q=$.current;H===void 0?U(q):U(q,H)}},T=C(m),R=C((U,H)=>{a$(U);const q=Jc({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=Jc({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:T,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},OPe[U],O,s.props.style),ref:P},H))}))}),M6=CPe;function EPe(e){return Ue("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const PPe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],$Pe=e=>{const{classes:t,invisible:r}=e;return Ve({root:["root",r&&"invisible"]},EPe,t)},RPe=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"})),TPe=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,PPe),_=j({},i,{component:l,invisible:m}),$=$Pe(_),P=(n=x.root)!=null?n:v.root;return S.jsx(O,j({in:h,timeout:b},g,{children:S.jsx(RPe,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}))}))}),F6=TPe,kPe=qe("MuiBox",["root"]),IPe=kPe,jPe=Ty(),APe=rwe({themeId:Gc,defaultTheme:jPe,defaultClassName:IPe.root,generateClassName:KP.generate}),On=APe;function MPe(e){return Ue("MuiButton",e)}const FPe=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"]),_h=FPe,LPe=d.createContext({}),NPe=LPe,DPe=d.createContext(void 0),BPe=DPe,zPe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],UPe=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,MPe,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}}),VPe=J(Bi,{shouldForwardProp:e=>tn(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})`:It(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})`:It(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})`:It(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]}),[`&.${_h.focusVisible}`]:j({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${_h.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 ${It(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"},[`&.${_h.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${_h.disabled}`]:{boxShadow:"none"}}),WPe=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))),qPe=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))),HPe=d.forwardRef(function(t,r){const n=d.useContext(NPe),o=d.useContext(BPe),a=Up(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,zPe),C=j({},i,{color:c,component:l,disabled:v,disableElevation:m,disableFocusRipple:h,fullWidth:O,size:b,type:_,variant:$}),T=UPe(C),R=g&&S.jsx(WPe,{className:T.startIcon,ownerState:C,children:g}),I=x&&S.jsx(qPe,{className:T.endIcon,ownerState:C,children:x}),A=o||"";return S.jsxs(VPe,j({ownerState:C,className:$e(n.className,T.root,f,A),component:l,disabled:v,focusRipple:!h,focusVisibleClassName:$e(T.focusVisible,w),ref:r,type:_},P,{classes:T,children:[R,s,I]}))}),Pr=HPe;function GPe(e){return Ue("MuiCard",e)}qe("MuiCard",["root"]);const KPe=["className","raised"],QPe=e=>{const{classes:t}=e;return Ve({root:["root"]},GPe,t)},XPe=J(Ys,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),YPe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=Ce(n,KPe),s=j({},n,{raised:a}),c=QPe(s);return S.jsx(XPe,j({className:$e(c.root,o),elevation:a?8:void 0,ref:r,ownerState:s},i))}),uu=YPe;function JPe(e){return Ue("MuiCardActions",e)}qe("MuiCardActions",["root","spacing"]);const ZPe=["disableSpacing","className"],e$e=e=>{const{classes:t,disableSpacing:r}=e;return Ve({root:["root",!r&&"spacing"]},JPe,t)},t$e=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}})),r$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a}=n,i=Ce(n,ZPe),s=j({},n,{disableSpacing:o}),c=e$e(s);return S.jsx(t$e,j({className:$e(c.root,a),ownerState:s,ref:r},i))}),N6=r$e;function n$e(e){return Ue("MuiCardContent",e)}qe("MuiCardContent",["root"]);const o$e=["className","component"],a$e=e=>{const{classes:t}=e;return Ve({root:["root"]},n$e,t)},i$e=J("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),s$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=Ce(n,o$e),s=j({},n,{component:a}),c=a$e(s);return S.jsx(i$e,j({as:a,className:$e(c.root,o),ownerState:s,ref:r},i))}),Io=s$e;function l$e(e){return Ue("MuiCardHeader",e)}const u$e=qe("MuiCardHeader",["root","avatar","action","content","title","subheader"]),UF=u$e,c$e=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],d$e=e=>{const{classes:t}=e;return Ve({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},l$e,t)},f$e=J("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>j({[`& .${UF.title}`]:t.title,[`& .${UF.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),p$e=J("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),v$e=J("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),m$e=J("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),h$e=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,c$e),x=j({},n,{component:s,disableTypography:c}),w=d$e(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(f$e,j({className:$e(w.root,i),as:s,ref:r,ownerState:x},h,{children:[a&&S.jsx(p$e,{className:w.avatar,ownerState:x,children:a}),S.jsxs(m$e,{className:w.content,ownerState:x,children:[O,b]}),o&&S.jsx(v$e,{className:w.action,ownerState:x,children:o})]}))}),vl=h$e;function g$e(e){return Ue("PrivateSwitchBase",e)}qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const y$e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],b$e=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,g$e,t)},_$e=J(Bi)(({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})),x$e=J("input",{shouldForwardProp:tn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),w$e=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:T}=t,R=Ce(t,y$e),[I,A]=Yc({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=Oa(),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=b$e(G);return S.jsxs(_$e,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(x$e,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"&&T===void 0?{}:{value:T},h)),I?a:v]}))}),D6=w$e,S$e=bo(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"),O$e=bo(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"),C$e=bo(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 E$e(e){return Ue("MuiCheckbox",e)}const P$e=qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Xx=P$e,$$e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],R$e=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,E$e,t);return j({},t,i)},T$e=J(D6,{shouldForwardProp:e=>tn(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})`:It(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Xx.checked}, &.${Xx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Xx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),k$e=S.jsx(O$e,{}),I$e=S.jsx(S$e,{}),j$e=S.jsx(C$e,{}),A$e=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiCheckbox"}),{checkedIcon:i=k$e,color:s="primary",icon:c=I$e,indeterminate:l=!1,indeterminateIcon:f=j$e,inputProps:v,size:m="medium",className:h}=a,x=Ce(a,$$e),w=l?f:c,O=l?f:i,b=j({},a,{color:s,indeterminate:l,size:m}),g=R$e(b);return S.jsx(T$e,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}))}),od=A$e;function M$e(e){return Ue("MuiCircularProgress",e)}qe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const F$e=["className","color","disableShrink","size","style","thickness","value","variant"];let X0=e=>e,VF,WF,qF,HF;const ts=44,L$e=Ni(VF||(VF=X0` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),N$e=Ni(WF||(WF=X0` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),D$e=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,M$e,t)},B$e=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"&&lu(qF||(qF=X0` - animation: ${0} 1.4s linear infinite; - `),L$e)),z$e=J("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),U$e=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&&lu(HF||(HF=X0` - animation: ${0} 1.4s ease-in-out infinite; - `),N$e)),V$e=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,F$e),h=j({},n,{color:a,disableShrink:i,size:s,thickness:l,value:f,variant:v}),x=D$e(h),w={},O={},b={};if(v==="determinate"){const g=2*Math.PI*((ts-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(B$e,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(z$e,{className:x.svg,ownerState:h,viewBox:`${ts/2} ${ts/2} ${ts} ${ts}`,children:S.jsx(U$e,{className:x.circle,style:w,ownerState:h,cx:ts,cy:ts,r:(ts-l)/2,fill:"none",strokeWidth:l})})}))}),jd=V$e;function GF(e){return e.substring(2).toLowerCase()}function W$e(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=ir(t.ref,s),v=Cn(x=>{const w=l.current;l.current=!1;const O=Er(s.current);if(!c.current||!s.current||"clientX"in x&&W$e(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=GF(a),w=Er(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=GF(n),w=Er(s.current);return w.addEventListener(x,v),()=>{w.removeEventListener(x,v)}}},[v,n]),S.jsx(d.Fragment,{children:d.cloneElement(t,h)})}const H$e=tSe({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"})}),zu=H$e,G$e=(e,t)=>j({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),K$e=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 Q$e(e){const t=Er(e);return t.body===e?Ho(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function np(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function KF(e){return parseInt(Ho(e).getComputedStyle(e).paddingRight,10)||0}function X$e(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 QF(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,c=!X$e(i);s&&c&&np(i,o)})}function Yx(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function Y$e(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Q$e(n)){const i=n6(Er(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${KF(n)+i}px`;const s=Er(n).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${KF(c)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Er(n).body;else{const i=n.parentElement,s=Ho(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 J$e(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Z$e{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&&np(t.modalRef,!1);const o=J$e(r);QF(r,t.mount,t.modalRef,o,!0);const a=Yx(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=Yx(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=Y$e(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=Yx(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&&np(t.modalRef,r),QF(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&&np(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const e2e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function t2e(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 r2e(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 n2e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||r2e(e))}function o2e(e){const t=[],r=[];return Array.from(e.querySelectorAll(e2e)).forEach((n,o)=>{const a=t2e(n);a===-1||!n2e(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 a2e(){return!0}function i2e(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=o2e,isEnabled:i=a2e,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=ir(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 _=Er(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 _=Er(x.current),$=T=>{O.current=T,!(n||!i()||T.key!=="Tab")&&_.activeElement===x.current&&T.shiftKey&&(c.current=!0,f.current&&f.current.focus())},P=()=>{const T=x.current;if(T===null)return;if(!_.hasFocus()||!i()||c.current){c.current=!1;return}if(T.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 T.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 s2e(e){return typeof e=="function"?e():e}function l2e(e){return e?e.props.hasOwnProperty("in"):!1}const u2e=new Z$e;function c2e(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=u2e,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=ir(x,v),[O,b]=d.useState(!f),g=l2e(c);let _=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(_=!1);const $=()=>Er(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)},T=Cn(()=>{const q=s2e(t)||$().body;o.add(P(),q),x.current&&C()}),R=d.useCallback(()=>o.isTopModal(P()),[o]),I=Cn(q=>{h.current=q,q&&(f&&R()?C():x.current&&np(x.current,_))}),A=d.useCallback(()=>{o.remove(P(),_)},[_,o]);d.useEffect(()=>()=>{A()},[A]),d.useEffect(()=>{f?T():(!g||!a)&&A()},[f,A,g,a,T]);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=$y(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:JS(q,c==null?void 0:c.props.onEnter),onExited:JS(G,c==null?void 0:c.props.onExited)}},rootRef:w,portalRef:I,isTopModal:R,exited:O,hasTransition:g}}function d2e(e){return Ue("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const f2e=["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"],p2e=e=>{const{open:t,exited:r,classes:n}=e;return Ve({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},d2e,n)},v2e=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"})),m2e=J(F6,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),h2e=d.forwardRef(function(t,r){var n,o,a,i,s,c;const l=Ge({name:"MuiModal",props:t}),{BackdropComponent:f=m2e,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:T=!1,disableScrollLock:R=!1,hideBackdrop:I=!1,keepMounted:A=!1,onBackdropClick:F,open:L,slotProps:D,slots:U}=l,H=Ce(l,f2e),q=j({},l,{closeAfterTransition:h,disableAutoFocus:_,disableEnforceFocus:$,disableEscapeKeyDown:P,disablePortal:C,disableRestoreFocus:T,disableScrollLock:R,hideBackdrop:I,keepMounted:A}),{getRootProps:G,getBackdropProps:z,getTransitionProps:W,portalRef:te,isTopModal:ne,exited:ee,hasTransition:Oe}=c2e(j({},q,{rootRef:r})),ce=j({},q,{exited:ee}),oe=p2e(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:v2e,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=Go({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=Go({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(i2e,{disableEnforceFocus:$,disableAutoFocus:_,disableRestoreFocus:T,isEnabled:ne,open:L,children:d.cloneElement(x,pe)})]}))})}),v$=h2e;function g2e(e){return Ue("MuiDialog",e)}const y2e=qe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Jx=y2e,b2e=d.createContext({}),B6=b2e,_2e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],x2e=J(F6,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),w2e=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,g2e,t)},S2e=J(v$,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),O2e=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"}})),C2e=J(Ys,{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)`,[`&.${Jx.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}`,[`&.${Jx.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,[`&.${Jx.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),E2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialog"}),o=ra(),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:$=Ys,PaperProps:P={},scroll:C="paper",TransitionComponent:T=M6,transitionDuration:R=a,TransitionProps:I}=n,A=Ce(n,_2e),F=j({},n,{disableEscapeKeyDown:m,fullScreen:h,fullWidth:x,maxWidth:w,scroll:C}),L=w2e(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=Zl(s),G=d.useMemo(()=>({titleId:q}),[q]);return S.jsx(S2e,j({className:$e(L.root,v),closeAfterTransition:!0,components:{Backdrop:x2e},componentsProps:{backdrop:j({transitionDuration:R,as:c},l)},disableEscapeKeyDown:m,onClose:g,open:_,ref:r,onClick:H,ownerState:F},A,{children:S.jsx(T,j({appear:!0,in:_,timeout:R,role:"presentation"},I,{children:S.jsx(O2e,{className:$e(L.container),onMouseDown:U,ownerState:F,children:S.jsx(C2e,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})}))})}))}))}),Fv=E2e;function P2e(e){return Ue("MuiDialogActions",e)}qe("MuiDialogActions",["root","spacing"]);const $2e=["className","disableSpacing"],R2e=e=>{const{classes:t,disableSpacing:r}=e;return Ve({root:["root",!r&&"spacing"]},P2e,t)},T2e=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}})),k2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=Ce(n,$2e),s=j({},n,{disableSpacing:a}),c=R2e(s);return S.jsx(T2e,j({className:$e(c.root,o),ownerState:s,ref:r},i))}),m$=k2e;function I2e(e){return Ue("MuiDialogContent",e)}qe("MuiDialogContent",["root","dividers"]);function j2e(e){return Ue("MuiDialogTitle",e)}const A2e=qe("MuiDialogTitle",["root"]),M2e=A2e,F2e=["className","dividers"],L2e=e=>{const{classes:t,dividers:r}=e;return Ve({root:["root",r&&"dividers"]},I2e,t)},N2e=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}`}:{[`.${M2e.root} + &`]:{paddingTop:0}})),D2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=Ce(n,F2e),s=j({},n,{dividers:a}),c=L2e(s);return S.jsx(N2e,j({className:$e(c.root,o),ownerState:s,ref:r},i))}),Lv=D2e;function B2e(e){return Ue("MuiDialogContentText",e)}qe("MuiDialogContentText",["root"]);const z2e=["children","className"],U2e=e=>{const{classes:t}=e,n=Ve({root:["root"]},B2e,t);return j({},t,n)},V2e=J(it,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),W2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=Ce(n,z2e),i=U2e(a);return S.jsx(V2e,j({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:$e(i.root,o)},n,{classes:i}))}),Y0=W2e,q2e=["className","id"],H2e=e=>{const{classes:t}=e;return Ve({root:["root"]},j2e,t)},G2e=J(it,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),K2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=Ce(n,q2e),s=n,c=H2e(s),{titleId:l=a}=d.useContext(B6);return S.jsx(G2e,j({component:"h2",className:$e(c.root,o),ownerState:s,ref:r,variant:"h6",id:a??l},i))}),Nv=K2e;function Q2e(e){return Ue("MuiDivider",e)}const X2e=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),XF=X2e,Y2e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],J2e=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"]},Q2e,n)},Z2e=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)`:It(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%"}})),eRe=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)`})),z6=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,Y2e),w=j({},n,{absolute:o,component:s,flexItem:c,light:l,orientation:f,role:v,textAlign:m,variant:h}),O=J2e(w);return S.jsx(Z2e,j({as:s,className:$e(O.root,i),role:v,ref:r,ownerState:w},x,{children:a?S.jsx(eRe,{className:O.wrapper,ownerState:w,children:a}):null}))});z6.muiSkipListHighlight=!0;const sO=z6,tRe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function rRe(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=Ho(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 nRe(e){return typeof e=="function"?e():e}function xh(e,t,r){const n=nRe(r),o=rRe(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const oRe=d.forwardRef(function(t,r){const n=ra(),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=r$}=t,C=Ce(t,tRe),T=d.useRef(null),R=ir(c.ref,T,r),I=z=>W=>{z&&(W===void 0?z(T.current):z(T.current,W))},A=I((z,W)=>{xh(f,z,l),a$(z),h&&h(z,W)}),F=I((z,W)=>{const te=Jc({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=Jc({timeout:$,style:_,easing:v},{mode:"exit"});z.style.webkitTransition=n.transitions.create("-webkit-transform",W),z.style.transition=n.transitions.create("transform",W),xh(f,z,l),O&&O(z)}),H=I(z=>{z.style.webkitTransition="",z.style.transition="",b&&b(z)}),q=z=>{i&&i(T.current,z)},G=d.useCallback(()=>{T.current&&xh(f,T.current,l)},[f,l]);return d.useEffect(()=>{if(m||f==="down"||f==="right")return;const z=Td(()=>{T.current&&xh(f,T.current,l)}),W=Ho(T.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:T,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))}))}),U6=oRe;function aRe(e){return Ue("MuiDrawer",e)}qe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const iRe=["BackdropProps"],sRe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],V6=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},lRe=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,aRe,t)},uRe=J(v$,{name:"MuiDrawer",slot:"Root",overridesResolver:V6})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),YF=J("div",{shouldForwardProp:tn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:V6})({flex:"0 0 auto"}),cRe=J(Ys,{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}`})),W6={left:"right",right:"left",top:"down",bottom:"up"};function dRe(e){return["left","right"].indexOf(e)!==-1}function fRe({direction:e},t){return e==="rtl"&&dRe(t)?W6[t]:t}const pRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDrawer"}),o=ra(),a=Xs(),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=U6,transitionDuration:_=i,variant:$="temporary"}=n,P=Ce(n.ModalProps,iRe),C=Ce(n,sRe),T=d.useRef(!1);d.useEffect(()=>{T.current=!0},[]);const R=fRe({direction:a?"rtl":"ltr"},s),A=j({},n,{anchor:s,elevation:v,open:w,variant:$},C),F=lRe(A),L=S.jsx(cRe,j({elevation:$==="temporary"?v:0,square:!0},O,{className:$e(F.paper,O.className),ownerState:A,children:l}));if($==="permanent")return S.jsx(YF,j({className:$e(F.root,F.docked,f),ownerState:A,ref:r},C,{children:L}));const D=S.jsx(g,j({in:w,direction:W6[R],timeout:_,appear:T.current},b,{children:L}));return $==="persistent"?S.jsx(YF,j({className:$e(F.root,F.docked,f),ownerState:A,ref:r},C,{children:D})):S.jsx(uRe,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}))}),vRe=pRe;function mRe(e){return Ue("MuiFab",e)}const hRe=qe("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),JF=hRe,gRe=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],yRe=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,mRe,n);return j({},n,i)},bRe=J(Bi,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>tn(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"},[`&.${JF.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})=>({[`&.${JF.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),_Re=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,gRe),x=j({},n,{color:i,component:s,disabled:c,disableFocusRipple:l,size:v,variant:m}),w=yRe(x);return S.jsx(bRe,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}))}),xRe=_Re,wRe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],SRe=e=>{const{classes:t,disableUnderline:r}=e,o=Ve({root:["root",!r&&"underline"],input:["input"]},fPe,t);return j({},t,o)},ORe=J(G0,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...q0(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}},[`&.${pl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${pl.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"},[`&.${pl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pl.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(.${pl.disabled}, .${pl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${pl.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}))}),CRe=J(K0,{name:"MuiFilledInput",slot:"Input",overridesResolver:H0})(({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})),q6=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,wRe),b=j({},s,{fullWidth:f,inputComponent:v,multiline:m,type:w}),g=SRe(s),_={root:{ownerState:b},input:{ownerState:b}},$=h??l?Pn(_,h??l):_,P=(n=(o=x.root)!=null?o:c.Root)!=null?n:ORe,C=(a=(i=x.input)!=null?i:c.Input)!=null?a:CRe;return S.jsx(Q0,j({slots:{root:P,input:C},componentsProps:$,fullWidth:f,inputComponent:v,multiline:m,ref:r,type:w},O,{classes:g}))});q6.muiName="Input";const H6=q6;function ERe(e){return Ue("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const PRe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],$Re=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${Se(r)}`,n&&"fullWidth"]};return Ve(o,ERe,t)},RRe=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%"})),TRe=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,PRe),g=j({},n,{color:i,component:s,disabled:c,error:l,fullWidth:v,hiddenLabel:m,margin:h,required:x,size:w,variant:O}),_=$Re(g),[$,P]=d.useState(()=>{let D=!1;return o&&d.Children.forEach(o,U=>{if(!ag(U,["Input","Select"]))return;const H=ag(U,["Select"])?U.props.input:U;H&&tPe(H.props)&&(D=!0)}),D}),[C,T]=d.useState(()=>{let D=!1;return o&&d.Children.forEach(o,U=>{ag(U,["Input","Select"])&&(jy(U.props,!0)||jy(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:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:x,variant:O}),[$,i,c,l,C,A,v,m,F,x,w,O]);return S.jsx(W0.Provider,{value:L,children:S.jsx(RRe,j({as:s,ownerState:g,className:$e(_.root,a),ref:r},b,{children:o}))})}),G6=TRe,kRe=uSe({createStyledComponent:J("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ge({props:e,name:"MuiStack"})}),Dv=kRe;function IRe(e){return Ue("MuiFormControlLabel",e)}const jRe=qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Mf=jRe,ARe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],MRe=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,IRe,t)},FRe=J("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Mf.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,[`&.${Mf.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},{[`& .${Mf.label}`]:{[`&.${Mf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),LRe=J("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Mf.error}`]:{color:(e.vars||e).palette.error.main}})),NRe=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,ARe),O=Oa(),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 $=zi({props:a,muiFormControl:O,states:["error"]}),P=j({},a,{disabled:b,labelPlacement:m,required:g,error:$.error}),C=MRe(P),T=(o=x.typography)!=null?o:s.typography;let R=v;return R!=null&&R.type!==it&&!f&&(R=S.jsx(it,j({component:"span"},T,{className:$e(C.label,T==null?void 0:T.className),children:R}))),S.jsxs(FRe,j({className:$e(C.root,i),ownerState:P,ref:r},w,{children:[d.cloneElement(c,_),g?S.jsxs(Dv,{display:"block",children:[R,S.jsxs(LRe,{ownerState:P,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):R]}))}),lO=NRe;function DRe(e){return Ue("MuiFormGroup",e)}qe("MuiFormGroup",["root","row","error"]);const BRe=["className","row"],zRe=e=>{const{classes:t,row:r,error:n}=e;return Ve({root:["root",r&&"row",n&&"error"]},DRe,t)},URe=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"})),VRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=n,i=Ce(n,BRe),s=Oa(),c=zi({props:n,muiFormControl:s,states:["error"]}),l=j({},n,{row:a,error:c.error}),f=zRe(l);return S.jsx(URe,j({className:$e(f.root,o),ownerState:l,ref:r},i))}),WRe=VRe;function qRe(e){return Ue("MuiFormHelperText",e)}const HRe=qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),ZF=HRe;var eL;const GRe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],KRe=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,qRe,t)},QRe=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,[`&.${ZF.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ZF.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),XRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,s=Ce(n,GRe),c=Oa(),l=zi({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=KRe(f);return S.jsx(QRe,j({as:i,ownerState:f,className:$e(v.root,a),ref:r},s,{children:o===" "?eL||(eL=S.jsx("span",{className:"notranslate",children:"​"})):o}))}),h$=XRe;function YRe(e){return Ue("MuiFormLabel",e)}const JRe=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),op=JRe,ZRe=["children","className","color","component","disabled","error","filled","focused","required"],eTe=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,YRe,t)},tTe=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",[`&.${op.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${op.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${op.error}`]:{color:(e.vars||e).palette.error.main}})),rTe=J("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${op.error}`]:{color:(e.vars||e).palette.error.main}})),nTe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,s=Ce(n,ZRe),c=Oa(),l=zi({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=eTe(f);return S.jsxs(tTe,j({as:i,ownerState:f,className:$e(v.root,a),ref:r},s,{children:[o,l.required&&S.jsxs(rTe,{ownerState:f,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]}))}),oTe=nTe,aTe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function uO(e){return`scale(${e}, ${e**2})`}const iTe={entering:{opacity:1,transform:uO(1)},entered:{opacity:1,transform:"none"}},Zx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),K6=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=r$}=t,b=Ce(t,aTe),g=$l(),_=d.useRef(),$=ra(),P=d.useRef(null),C=ir(P,a.ref,r),T=H=>q=>{if(H){const G=P.current;q===void 0?H(G):H(G,q)}},R=T(f),I=T((H,q)=>{a$(H);const{duration:G,delay:z,easing:W}=Jc({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:Zx?te:te*.666,delay:z,easing:W})].join(","),c&&c(H,q)}),A=T(l),F=T(h),L=T(H=>{const{duration:q,delay:G,easing:z}=Jc({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:Zx?W:W*.666,delay:Zx?G:G||W*.333,easing:z})].join(","),H.style.opacity=0,H.style.transform=uO(.75),v&&v(H)}),D=T(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:uO(.75),visibility:H==="exited"&&!s?"hidden":void 0},iTe[H],x,a.props.style),ref:C},q))}))});K6.muiSupportAuto=!0;const Ay=K6,sTe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],lTe=e=>{const{classes:t,disableUnderline:r}=e,o=Ve({root:["root",!r&&"underline"],input:["input"]},lPe,t);return j({},t,o)},uTe=J(G0,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...q0(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"},[`&.${_f.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_f.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(.${_f.disabled}, .${_f.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${_f.disabled}:before`]:{borderBottomStyle:"dotted"}})}),cTe=J(K0,{name:"MuiInput",slot:"Input",overridesResolver:H0})({}),Q6=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,sTe),g=lTe(s),$={root:{ownerState:{disableUnderline:c}}},P=x??f?Pn(x??f,$):$,C=(n=(o=w.root)!=null?o:l.Root)!=null?n:uTe,T=(a=(i=w.input)!=null?i:l.Input)!=null?a:cTe;return S.jsx(Q0,j({slots:{root:C,input:T},slotProps:P,fullWidth:v,inputComponent:m,multiline:h,ref:r,type:O},b,{classes:g}))});Q6.muiName="Input";const g$=Q6;function dTe(e){return Ue("MuiInputAdornment",e)}const fTe=qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),tL=fTe;var rL;const pTe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],vTe=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Se(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},mTe=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,dTe,t)},hTe=J("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:vTe})(({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"&&{[`&.${tL.positionStart}&:not(.${tL.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),gTe=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,pTe),m=Oa()||{};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=mTe(x);return S.jsx(W0.Provider,{value:null,children:S.jsx(hTe,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"?rL||(rL=S.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Oc=gTe;function yTe(e){return Ue("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const bTe=["disableAnimation","margin","shrink","variant","className"],_Te=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,yTe,t);return j({},t,l)},xTe=J(oTe,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${op.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)"}))),wTe=d.forwardRef(function(t,r){const n=Ge({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,s=Ce(n,bTe),c=Oa();let l=a;typeof l>"u"&&c&&(l=c.filled||c.focused||c.adornedStart);const f=zi({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=_Te(v);return S.jsx(xTe,j({"data-shrink":l,ownerState:v,ref:r,className:$e(m.root,i)},s,{classes:m}))}),X6=wTe;function STe(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 OTe=["className","color","value","valueBuffer","variant"];let Ad=e=>e,nL,oL,aL,iL,sL,lL;const cO=4,CTe=Ni(nL||(nL=Ad` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`)),ETe=Ni(oL||(oL=Ad` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`)),PTe=Ni(aL||(aL=Ad` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`)),$Te=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,STe,t)},y$=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?z0(e.palette[t].main,.62):B0(e.palette[t].main,.5),RTe=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:y$(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)"})),TTe=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=y$(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"})},lu(iL||(iL=Ad` - animation: ${0} 3s infinite linear; - `),PTe)),kTe=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 .${cO}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${cO}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&lu(sL||(sL=Ad` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),CTe)),ITe=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:y$(t,e.color),transition:`transform .${cO}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&lu(lL||(lL=Ad` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),ETe)),jTe=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,OTe),f=j({},n,{color:a,variant:c}),v=$Te(f),m=Xs(),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(RTe,j({className:$e(v.root,o),ownerState:f,role:"progressbar"},h,{ref:r},l,{children:[c==="buffer"?S.jsx(TTe,{className:v.dashed,ownerState:f}):null,S.jsx(kTe,{className:v.bar1,ownerState:f,style:x.bar1}),c==="determinate"?null:S.jsx(ITe,{className:v.bar2,ownerState:f,style:x.bar2})]}))}),ATe=jTe;function MTe(e){return Ue("MuiLink",e)}const FTe=qe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),LTe=FTe,Y6={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},NTe=e=>Y6[e]||e,DTe=({theme:e,ownerState:t})=>{const r=NTe(t.color),n=Qc(e,`palette.${r}`,!1)||t.color,o=Qc(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:It(n,.4)},BTe=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],zTe=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,MTe,t)},UTe=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:DTe({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"},[`&.${LTe.focusVisible}`]:{outline:"auto"}})),VTe=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,BTe),{isFocusVisibleRef:x,onBlur:w,onFocus:O,ref:b}=D0(),[g,_]=d.useState(!1),$=ir(r,b),P=I=>{w(I),x.current===!1&&_(!1),s&&s(I)},C=I=>{O(I),x.current===!0&&_(!0),c&&c(I)},T=j({},n,{color:a,component:i,focusVisible:g,underline:f,variant:v}),R=zTe(T);return S.jsx(UTe,j({color:a,className:$e(R.root,o),classes:l,component:i,onBlur:P,onFocus:C,ref:$,ownerState:T,variant:v,sx:[...Object.keys(Y6).includes(a)?[]:[{color:a}],...Array.isArray(m)?m:[m]]},h))}),WTe=VTe,qTe=d.createContext({}),Gp=qTe;function HTe(e){return Ue("MuiList",e)}qe("MuiList",["root","padding","dense","subheader"]);const GTe=["children","className","component","dense","disablePadding","subheader"],KTe=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Ve({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},HTe,t)},QTe=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})),XTe=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,GTe),v=d.useMemo(()=>({dense:s}),[s]),m=j({},n,{component:i,dense:s,disablePadding:c}),h=KTe(m);return S.jsx(Gp.Provider,{value:v,children:S.jsxs(QTe,j({as:i,className:$e(h.root,a),ref:r,ownerState:m},f,{children:[l,o]}))})}),YTe=XTe;function JTe(e){return Ue("MuiListItemIcon",e)}const ZTe=qe("MuiListItemIcon",["root","alignItemsFlexStart"]),uL=ZTe,eke=["className"],tke=e=>{const{alignItems:t,classes:r}=e;return Ve({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},JTe,r)},rke=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})),nke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=Ce(n,eke),i=d.useContext(Gp),s=j({},n,{alignItems:i.alignItems}),c=tke(s);return S.jsx(rke,j({className:$e(c.root,o),ownerState:s,ref:r},a))}),J6=nke;function oke(e){return Ue("MuiListItemText",e)}const ake=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),My=ake,ike=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],ske=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"]},oke,t)},lke=J("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${My.primary}`]:t.primary},{[`& .${My.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})),uke=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,ike),{dense:h}=d.useContext(Gp);let x=c??o,w=f;const O=j({},n,{disableTypography:i,inset:s,primary:!!x,secondary:!!w,dense:h}),b=ske(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(lke,j({className:$e(b.root,a),ownerState:O,ref:r},m,{children:[x,w]}))}),cke=uke,dke=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ew(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function cL(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Z6(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 xf(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")||!Z6(s,a)||c)s=o(e,s,r);else return s.focus(),!0}return!1}const fke=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,dke),h=d.useRef(null),x=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});po(()=>{o&&h.current.focus()},[o]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:$})=>{const P=!h.current.style.width;if(_.clientHeight{const $=h.current,P=_.key,C=Er($).activeElement;if(P==="ArrowDown")_.preventDefault(),xf($,C,l,c,ew);else if(P==="ArrowUp")_.preventDefault(),xf($,C,l,c,cL);else if(P==="Home")_.preventDefault(),xf($,null,l,c,ew);else if(P==="End")_.preventDefault(),xf($,null,l,c,cL);else if(P.length===1){const T=x.current,R=P.toLowerCase(),I=performance.now();T.keys.length>0&&(I-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&R!==T.keys[0]&&(T.repeating=!1)),T.lastTime=I,T.keys.push(R);const A=C&&!T.repeating&&Z6(C,T);T.previousKeyMatched&&(A||xf($,C,!1,c,ew,T))?_.preventDefault():T.previousKeyMatched=!1}f&&f(_)},O=ir(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(YTe,j({role:"menu",ref:O,className:s,onKeyDown:w,tabIndex:o?0:-1},m,{children:g}))}),e9=fke;function pke(e){return Ue("MuiPopover",e)}qe("MuiPopover",["root","paper"]);const vke=["onEntering"],mke=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],hke=["slotProps"];function dL(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function fL(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function pL(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function tw(e){return typeof e=="function"?e():e}const gke=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"]},pke,t)},yke=J(v$,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),t9=J(Ys,{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}),bke=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=Ay,transitionDuration:T="auto",TransitionProps:{onEntering:R}={},disableScrollLock:I=!1}=i,A=Ce(i.TransitionProps,vke),F=Ce(i,mke),L=(n=$==null?void 0:$.paper)!=null?n:g,D=d.useRef(),U=ir(D,L.ref),H=j({},i,{anchorOrigin:l,anchorReference:v,elevation:w,marginThreshold:O,externalPaperSlotProps:L,transformOrigin:P,TransitionComponent:C,transitionDuration:T,TransitionProps:A}),q=gke(H),G=d.useCallback(()=>{if(v==="anchorPosition")return f;const ie=tw(c),ge=(ie&&ie.nodeType===1?ie:Er(D.current).body).getBoundingClientRect();return{top:ge.top+dL(ge,l.vertical),left:ge.left+fL(ge,l.horizontal)}},[c,l.horizontal,l.vertical,f,v]),z=d.useCallback(ie=>({vertical:dL(ie,P.vertical),horizontal:fL(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:pL(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=Ho(tw(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:pL(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=Td(()=>{ee()}),be=Ho(c);return be.addEventListener("resize",ie),()=>{ie.clear(),be.removeEventListener("resize",ie)}},[c,b,ee]);let oe=T;T==="auto"&&!C.muiSupportAuto&&(oe=void 0);const pe=x||(c?Er(tw(c)).body:void 0),Re=(o=_==null?void 0:_.root)!=null?o:yke,ye=(a=_==null?void 0:_.paper)!=null?a:t9,de=Go({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=Go({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,hke);return S.jsx(Re,j({},_e,!Vp(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}))}))}))}),b$=bke;function _ke(e){return Ue("MuiMenu",e)}qe("MuiMenu",["root","paper","list"]);const xke=["onEntering"],wke=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ske={vertical:"top",horizontal:"right"},Oke={vertical:"top",horizontal:"left"},Cke=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"],list:["list"]},_ke,t)},Eke=J(b$,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Pke=J(t9,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$ke=J(e9,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Rke=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,xke),P=Ce(a,wke),C=Xs(),T=j({},a,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:f,onEntering:O,PaperProps:h,transitionDuration:w,TransitionProps:$,variant:b}),R=Cke(T),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:Pke,H=(o=_.paper)!=null?o:h,q=Go({elementType:g.root,externalSlotProps:_.root,ownerState:T,className:[R.root,c]}),G=Go({elementType:U,externalSlotProps:H,ownerState:T,className:R.paper});return S.jsx(Eke,j({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Ske:Oke,slots:{paper:U,root:g.root},slotProps:{root:q,paper:G},open:m,ref:r,transitionDuration:w,TransitionProps:j({onEntering:F},$),ownerState:T},P,{classes:x,children:S.jsx($ke,j({onKeyDown:L,actions:A,autoFocus:i&&(D===-1||l),autoFocusItem:I,variant:b},f,{className:$e(R.list,f.className),children:s}))}))}),J0=Rke;function Tke(e){return Ue("MuiMenuItem",e)}const kke=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wf=kke,Ike=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],jke=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Ake=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"]},Tke,i);return j({},i,c)},Mke=J(Bi,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:jke})(({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"}},[`&.${wf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:It(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:It(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})`:It(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${XF.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${XF.inset}`]:{marginLeft:52},[`& .${My.root}`]:{marginTop:0,marginBottom:0},[`& .${My.inset}`]:{paddingLeft:36},[`& .${uL.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&j({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${uL.root} svg`]:{fontSize:"1.25rem"}}))),Fke=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,Ike),x=d.useContext(Gp),w=d.useMemo(()=>({dense:i||x.dense||!1,disableGutters:c}),[x.dense,i,c]),O=d.useRef(null);po(()=>{o&&O.current&&O.current.focus()},[o]);const b=j({},n,{dense:w.dense,divider:s,disableGutters:c}),g=Ake(n),_=ir(O,r);let $;return n.disabled||($=v!==void 0?v:-1),S.jsx(Gp.Provider,{value:w,children:S.jsx(Mke,j({ref:_,role:f,tabIndex:$,component:a,focusVisibleClassName:$e(g.focusVisible,l),className:$e(g.root,m)},h,{ownerState:b,classes:g}))})}),so=Fke;function r9(e){return Ue("MuiNativeSelect",e)}const Lke=qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),_$=Lke,Nke=["className","disabled","error","IconComponent","inputRef","variant"],Dke=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,r9,t)},n9=({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"},[`&.${_$.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}}),Bke=J("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:tn,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${_$.multiple}`]:t.multiple}]}})(n9),o9=({ownerState:e,theme:t})=>j({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${_$.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),zke=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]}})(o9),Uke=d.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:c="standard"}=t,l=Ce(t,Nke),f=j({},t,{disabled:o,variant:c,error:a}),v=Dke(f);return S.jsxs(d.Fragment,{children:[S.jsx(Bke,j({ownerState:f,className:$e(v.select,n),disabled:o,ref:s||r},l)),t.multiple?null:S.jsx(zke,{as:i,ownerState:f,className:v.icon})]})}),a9=Uke,Vke=["className","children","classes","IconComponent","input","inputProps","variant"],Wke=["root"],qke=e=>{const{classes:t}=e;return Ve({root:["root"]},r9,t)},Hke=S.jsx(g$,{}),i9=d.forwardRef(function(t,r){const n=Ge({name:"MuiNativeSelect",props:t}),{className:o,children:a,classes:i={},IconComponent:s=A6,input:c=Hke,inputProps:l}=n,f=Ce(n,Vke),v=Oa(),m=zi({props:n,muiFormControl:v,states:["variant"]}),h=j({},n,{classes:i}),x=qke(h),w=Ce(i,Wke);return S.jsx(d.Fragment,{children:d.cloneElement(c,j({inputComponent:a9,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)}))})});i9.muiName="Select";const vL=i9;var mL;const Gke=["children","classes","className","label","notched"],Kke=J("fieldset",{shouldForwardProp:tn})({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%"}),Qke=J("legend",{shouldForwardProp:tn})(({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 Xke(e){const{className:t,label:r,notched:n}=e,o=Ce(e,Gke),a=r!=null&&r!=="",i=j({},e,{notched:n,withLabel:a});return S.jsx(Kke,j({"aria-hidden":!0,className:t,ownerState:i},o,{children:S.jsx(Qke,{ownerState:i,children:a?S.jsx("span",{children:r}):mL||(mL=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const Yke=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Jke=e=>{const{classes:t}=e,n=Ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},cPe,t);return j({},t,n)},Zke=J(G0,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:q0})(({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 .${es.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${es.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${es.focused} .${es.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${es.error} .${es.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${es.disabled} .${es.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"}))}),eIe=J(Xke,{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}}),tIe=J(K0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:H0})(({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})),s9=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,Yke),g=Jke(c),_=Oa(),$=zi({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:Zke,T=(a=(i=w.input)!=null?i:l.Input)!=null?a:tIe;return S.jsx(Q0,j({slots:{root:C,input:T},renderSuffix:R=>S.jsx(eIe,{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})}))});s9.muiName="Input";const l9=s9;function rIe(e){return Ue("MuiPagination",e)}qe("MuiPagination",["root","ul","outlined","text"]);const nIe=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function oIe(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,nIe),[x,w]=Yc({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"]:[]],T=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,T(I))},type:I,page:T(I),selected:!1,disabled:a||I.indexOf("ellipsis")===-1&&(I==="next"||I==="last"?x>=n:x<=1)});return j({items:R},h)}function aIe(e){return Ue("MuiPaginationItem",e)}const iIe=qe("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Ro=iIe,dO=bo(S.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),fO=bo(S.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),hL=bo(S.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),gL=bo(S.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),sIe=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],u9=(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]},lIe=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,aIe,t)},uIe=J("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:u9})(({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",[`&.${Ro.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)})),cIe=J(Bi,{name:"MuiPaginationItem",slot:"Root",overridesResolver:u9})(({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,[`&.${Ro.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ro.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"}},[`&.${Ro.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}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ro.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Ro.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"&&{[`&.${Ro.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}},[`&.${Ro.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Ro.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)"}`,[`&.${Ro.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)`:It(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:It(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}))`:It(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ro.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Ro.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),dIe=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)})),fIe=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,sIe),b=j({},n,{color:a,disabled:c,selected:f,shape:v,size:m,type:x,variant:w}),g=Xs(),_=lIe(b),P=(g?{previous:h.next||s.next||gL,next:h.previous||s.previous||hL,last:h.first||s.first||dO,first:h.last||s.last||fO}:{previous:h.previous||s.previous||hL,next:h.next||s.next||gL,first:h.first||s.first||dO,last:h.last||s.last||fO})[x];return x==="start-ellipsis"||x==="end-ellipsis"?S.jsx(uIe,{ref:r,ownerState:b,className:$e(_.root,o),children:"…"}):S.jsxs(cIe,j({ref:r,ownerState:b,component:i,disabled:c,className:$e(_.root,o)},O,{children:[x==="page"&&l,P?S.jsx(dIe,{as:P,ownerState:b,className:_.icon}):null]}))}),pIe=fIe,vIe=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],mIe=e=>{const{classes:t,variant:r}=e;return Ve({root:["root",r],ul:["ul"]},rIe,t)},hIe=J("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),gIe=J("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function yIe(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const bIe=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=yIe,hideNextButton:v=!1,hidePrevButton:m=!1,renderItem:h=R=>S.jsx(pIe,j({},R)),shape:x="circular",showFirstButton:w=!1,showLastButton:O=!1,siblingCount:b=1,size:g="medium",variant:_="text"}=n,$=Ce(n,vIe),{items:P}=oIe(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:_}),T=mIe(C);return S.jsx(hIe,j({"aria-label":"pagination navigation",className:$e(T.root,a),ownerState:C,ref:r},$,{children:S.jsx(gIe,{className:T.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))})}))}),_Ie=bIe;function xIe(e){return Ue("MuiScopedCssBaseline",e)}qe("MuiScopedCssBaseline",["root"]);const wIe=["className","component","enableColorScheme"],SIe=e=>{const{classes:t}=e;return Ve({root:["root"]},xIe,t)},OIe=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({},G$e(e,t.enableColorScheme),K$e(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},r)}),CIe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiScopedCssBaseline"}),{className:o,component:a="div"}=n,i=Ce(n,wIe),s=j({},n,{component:a}),c=SIe(s);return S.jsx(OIe,j({as:a,className:$e(c.root,o),ref:r,ownerState:s},i))}),EIe=CIe;function PIe(e){return Ue("MuiSelect",e)}const Sf=qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var yL;const $Ie=["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"],RIe=J("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Sf.select}`]:t.select},{[`&.${Sf.select}`]:t[r.variant]},{[`&.${Sf.error}`]:t.error},{[`&.${Sf.multiple}`]:t.multiple}]}})(n9,{[`&.${Sf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),TIe=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]}})(o9),kIe=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 bL(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function IIe(e){return e==null||typeof e=="string"&&!e.trim()}const jIe=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,PIe,t)},AIe=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:T,onFocus:R,onOpen:I,open:A,readOnly:F,renderValue:L,SelectDisplayProps:D={},tabIndex:U,value:H,variant:q="standard"}=t,G=Ce(t,$Ie),[z,W]=Yc({controlled:H,default:v,name:"Select"}),[te,ne]=Yc({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=ir(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=Er(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):T&&T(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(ke=>ke.props.value===We.target.value);et!==void 0&&(W(et.props.value),C&&C(We,et))},Be=We=>et=>{let ke;if(et.currentTarget.hasAttribute("tabindex")){if(_){ke=Array.isArray(z)?z.slice():[];const ze=z.indexOf(We.props.value);ze===-1?ke.push(We.props.value):ke.splice(ze,1)}else ke=We.props.value;if(We.props.onClick&&We.props.onClick(et),z!==ke&&(W(ke),C)){const ze=et.nativeEvent||et,ct=new ze.constructor(ze.type,ze);Object.defineProperty(ct,"target",{writable:!0,value:{value:ke,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;(jy({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($i(2));et=z.some(ke=>bL(ke,We.props.value)),et&&Ee&&le.push(We.props.children)}else et=bL(z,We.props.value),et&&Ee&&(se=We.props.children);return d.cloneElement(We,{"aria-selected":et?"true":"false",onClick:Be(We),onKeyUp:ke=>{ke.key===" "&&ke.preventDefault(),We.props.onKeyUp&&We.props.onKeyUp(ke)},role:"option",selected:et,value:void 0,"data-value":We.props.value})});Ee&&(_?le.length===0?ae=null:ae=le.reduce((We,et,ke)=>(We.push(et),ke{const{classes:t}=e;return t},x$={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>tn(e)&&e!=="variant",slot:"Root"},DIe=J(g$,x$)(""),BIe=J(l9,x$)(""),zIe=J(H6,x$)(""),c9=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:T,variant:R="outlined"}=n,I=Ce(n,FIe),A=g?a9:MIe,F=Oa(),L=zi({props:n,muiFormControl:F,states:["variant","error"]}),D=L.variant||R,U=j({},n,{variant:D,classes:i}),H=NIe(U),q=Ce(H,LIe),G=m||{standard:S.jsx(DIe,{ownerState:U}),outlined:S.jsx(BIe,{label:x,ownerState:U}),filled:S.jsx(zIe,{ownerState:U})}[D],z=ir(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},T)},h,{classes:h?Pn(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))})});c9.muiName="Select";const w$=c9;function UIe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=$l();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=Cn((b,g)=>{n==null||n(b,g)}),c=Cn(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({},$y(e),$y(b));return j({role:"presentation"},b,g,{onBlur:m(g),onFocus:h(g),onMouseEnter:x(g),onMouseLeave:w(g)})},onClickAway:l}}function VIe(e){return Ue("MuiSnackbarContent",e)}qe("MuiSnackbarContent",["root","message","action"]);const WIe=["action","className","message","role"],qIe=e=>{const{classes:t}=e;return Ve({root:["root"],action:["action"],message:["message"]},VIe,t)},HIe=J(Ys,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=pSe(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}})}),GIe=J("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),KIe=J("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),QIe=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,WIe),l=n,f=qIe(l);return S.jsxs(HIe,j({role:s,square:!0,elevation:6,className:$e(f.root,a),ownerState:l,ref:r},c,{children:[S.jsx(GIe,{className:f.message,ownerState:l,children:i}),o?S.jsx(KIe,{className:f.action,ownerState:l,children:o}):null]}))}),XIe=QIe;function YIe(e){return Ue("MuiSnackbar",e)}qe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const JIe=["onEnter","onExited"],ZIe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],eje=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${Se(r.vertical)}${Se(r.horizontal)}`]};return Ve(n,YIe,t)},_L=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"})})}),tje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSnackbar"}),o=ra(),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=Ay,transitionDuration:g=a,TransitionProps:{onEnter:_,onExited:$}={}}=n,P=Ce(n.TransitionProps,JIe),C=Ce(n,ZIe),T=j({},n,{anchorOrigin:{vertical:s,horizontal:c},autoHideDuration:l,disableWindowBlurListener:x,TransitionComponent:b,transitionDuration:g}),R=eje(T),{getRootProps:I,onClickAway:A}=UIe(j({},T)),[F,L]=d.useState(!0),D=Go({elementType:_L,getSlotProps:I,externalForwardedProps:C,ownerState:T,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(q$e,j({onClickAway:A},m,{children:S.jsx(_L,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(XIe,j({message:w,action:i},h))}))}))}))}),rje=tje;function nje(e){return Ue("MuiTooltip",e)}const oje=qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_s=oje,aje=["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 ije(e){return Math.round(e*1e5)/1e5}const sje=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,nje,t)},lje=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"] .${_s.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_s.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_s.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"] .${_s.arrow}`]:j({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),uje=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:It(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:`${ije(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_s.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"})),[`.${_s.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"})),[`.${_s.popper}[data-popper-placement*="top"] &`]:j({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_s.popper}[data-popper-placement*="bottom"] &`]:j({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),cje=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:It(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let wh=!1;const xL=new Iv;let Of={x:0,y:0};function Sh(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const dje=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:T=!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=Ay,TransitionProps:ie}=C,be=Ce(C,aje),ge=d.isValidElement(R)?R:S.jsx("span",{children:R}),Ae=ra(),Be=Xs(),[V,X]=d.useState(),[Y,ae]=d.useState(null),se=d.useRef(!1),le=U||W,Ee=$l(),Ie=$l(),rt=$l(),at=$l(),[Le,De]=Yc({controlled:oe,default:!1,name:"Tooltip",state:"open"});let ft=Le;const Et=Zl(te),Ct=d.useRef(),We=Cn(()=>{Ct.current!==void 0&&(document.body.style.WebkitUserSelect=Ct.current,Ct.current=void 0),at.clear()});d.useEffect(()=>We,[We]);const et=mt=>{xL.clear(),wh=!0,De(!0),ce&&!ft&&ce(mt)},ke=Cn(mt=>{xL.start(800+ne,()=>{wh=!1}),De(!1),Oe&&ft&&Oe(mt),Ee.start(Ae.transitions.duration.shortest,()=>{se.current=!1})}),ze=mt=>{se.current&&mt.type!=="touchstart"||(V&&V.removeAttribute("title"),Ie.clear(),rt.clear(),q||wh&&G?Ie.start(wh?G:q,()=>{et(mt)}):et(mt))},ct=mt=>{Ie.clear(),rt.start(ne,()=>{ke(mt)})},{isFocusVisibleRef:bt,onBlur:Yt,onFocus:$r,ref:mn}=D0(),[,na]=d.useState(!1),Qn=mt=>{Yt(mt),bt.current===!1&&(na(!1),ct(mt))},Ui=mt=>{V||X(mt.currentTarget),$r(mt),bt.current===!0&&(na(!0),ze(mt))},Qv=mt=>{se.current=!0;const gn=ge.props;gn.onTouchStart&&gn.onTouchStart(mt)},d_=mt=>{Qv(mt),rt.clear(),Ee.clear(),We(),Ct.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",at.start(z,()=>{document.body.style.WebkitUserSelect=Ct.current,ze(mt)})},Xv=mt=>{ge.props.onTouchEnd&&ge.props.onTouchEnd(mt),We(),rt.start(ee,()=>{ke(mt)})};d.useEffect(()=>{if(!ft)return;function mt(gn){(gn.key==="Escape"||gn.key==="Esc")&&ke(gn)}return document.addEventListener("keydown",mt),()=>{document.removeEventListener("keydown",mt)}},[ke,ft]);const f_=ir(ge.ref,mn,X,r);!ve&&ve!==0&&(ft=!1);const zd=d.useRef(),p_=mt=>{const gn=ge.props;gn.onMouseMove&&gn.onMouseMove(mt),Of={x:mt.clientX,y:mt.clientY},zd.current&&zd.current.update()},ri={},Ud=typeof ve=="string";F?(ri.title=!ft&&Ud&&!D?ve:null,ri["aria-describedby"]=ft?Et:null):(ri["aria-label"]=Ud?ve:null,ri["aria-labelledby"]=ft&&!Ud?Et:null);const hn=j({},ri,be,ge.props,{className:$e(be.className,ge.props.className),onTouchStart:Qv,ref:f_},W?{onMouseMove:p_}:{}),rl={};H||(hn.onTouchStart=d_,hn.onTouchEnd=Xv),D||(hn.onMouseOver=Sh(ze,hn.onMouseOver),hn.onMouseLeave=Sh(ct,hn.onMouseLeave),le||(rl.onMouseOver=ze,rl.onMouseLeave=ct)),L||(hn.onFocus=Sh(Ui,hn.onFocus),hn.onBlur=Sh(Qn,hn.onBlur),le||(rl.onFocus=Ui,rl.onBlur=Qn));const v_=d.useMemo(()=>{var mt;let gn=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return(mt=ye.popperOptions)!=null&&mt.modifiers&&(gn=gn.concat(ye.popperOptions.modifiers)),j({},ye.popperOptions,{modifiers:gn})},[Y,ye]),nl=j({},C,{isRtl:Be,arrow:T,disableInteractive:le,placement:pe,PopperComponentProp:Re,touch:se.current}),Vd=sje(nl),Yv=(n=(o=he.popper)!=null?o:I.Popper)!=null?n:lje,Jv=(a=(i=(s=he.transition)!=null?s:I.Transition)!=null?i:_e)!=null?a:Ay,Zv=(c=(l=he.tooltip)!=null?l:I.Tooltip)!=null?c:uje,em=(f=(v=he.arrow)!=null?v:I.Arrow)!=null?f:cje,tm=pc(Yv,j({},ye,(m=de.popper)!=null?m:A.popper,{className:$e(Vd.popper,ye==null?void 0:ye.className,(h=(x=de.popper)!=null?x:A.popper)==null?void 0:h.className)}),nl),m_=pc(Jv,j({},ie,(w=de.transition)!=null?w:A.transition),nl),h_=pc(Zv,j({},(O=de.tooltip)!=null?O:A.tooltip,{className:$e(Vd.tooltip,(b=(g=de.tooltip)!=null?g:A.tooltip)==null?void 0:b.className)}),nl),g_=pc(em,j({},(_=de.arrow)!=null?_:A.arrow,{className:$e(Vd.arrow,($=(P=de.arrow)!=null?P:A.arrow)==null?void 0:$.className)}),nl);return S.jsxs(d.Fragment,{children:[d.cloneElement(ge,hn),S.jsx(Yv,j({as:Re??j6,placement:pe,anchorEl:W?{getBoundingClientRect:()=>({top:Of.y,left:Of.x,right:Of.x,bottom:Of.y,width:0,height:0})}:V,popperRef:zd,open:V?ft:!1,id:Et,transition:!0},rl,tm,{popperOptions:v_,children:({TransitionProps:mt})=>S.jsx(Jv,j({timeout:Ae.transitions.duration.shorter},mt,m_,{children:S.jsxs(Zv,j({},h_,{children:[ve,T?S.jsx(em,j({},g_,{ref:ae})):null]}))}))}))]})}),Vr=dje;function fje(e){return Ue("MuiSwitch",e)}const xn=qe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),pje=["className","color","edge","size","sx"],vje=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,fje,t);return j({},t,c)},mje=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,[`& .${xn.thumb}`]:{width:16,height:16},[`& .${xn.switchBase}`]:{padding:4,[`&.${xn.checked}`]:{transform:"translateX(16px)"}}}}]}),hje=J(D6,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${xn.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}),[`&.${xn.checked}`]:{transform:"translateX(20px)"},[`&.${xn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${xn.checked} + .${xn.track}`]:{opacity:.5},[`&.${xn.disabled} + .${xn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${xn.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:It(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:{[`&.${xn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?z0(e.palette[t].main,.62):B0(e.palette[t].main,.55)}`}},[`&.${xn.checked} + .${xn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),gje=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}`})),yje=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%"})),bje=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,pje),f=j({},n,{color:a,edge:i,size:s}),v=vje(f),m=S.jsx(yje,{className:v.thumb,ownerState:f});return S.jsxs(mje,{className:$e(v.root,o),sx:c,ownerState:f,children:[S.jsx(hje,j({type:"checkbox",icon:m,checkedIcon:m,ref:r,ownerState:f},l,{classes:j({},v,{root:v.switchBase})})),S.jsx(gje,{className:v.track,ownerState:f})]})}),S$=bje;function _je(e){return Ue("MuiTab",e)}const xje=qe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),rs=xje,wje=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Sje=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,_je,t)},Oje=J(Bi,{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,{[`& .${rs.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,[`& > .${rs.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,[`&.${rs.selected}`]:{opacity:1},[`&.${rs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${rs.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${rs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${rs.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${rs.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)})),Cje=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,wje),P=j({},n,{disabled:a,disableFocusRipple:i,selected:w,icon:!!c,iconPosition:l,label:!!v,fullWidth:s,textColor:b,wrapped:_}),C=Sje(P),T=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(Oje,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:[T,v]}):S.jsxs(d.Fragment,{children:[v,T]}),f]}))}),d9=Cje,Eje=d.createContext(),f9=Eje;function Pje(e){return Ue("MuiTable",e)}qe("MuiTable",["root","stickyHeader"]);const $je=["className","component","padding","size","stickyHeader"],Rje=e=>{const{classes:t,stickyHeader:r}=e;return Ve({root:["root",r&&"stickyHeader"]},Pje,t)},Tje=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"})),wL="table",kje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTable"}),{className:o,component:a=wL,padding:i="normal",size:s="medium",stickyHeader:c=!1}=n,l=Ce(n,$je),f=j({},n,{component:a,padding:i,size:s,stickyHeader:c}),v=Rje(f),m=d.useMemo(()=>({padding:i,size:s,stickyHeader:c}),[i,s,c]);return S.jsx(f9.Provider,{value:m,children:S.jsx(Tje,j({as:a,role:a===wL?null:"table",ref:r,className:$e(v.root,o),ownerState:f},l))})}),p9=kje,Ije=d.createContext(),Z0=Ije;function jje(e){return Ue("MuiTableBody",e)}qe("MuiTableBody",["root"]);const Aje=["className","component"],Mje=e=>{const{classes:t}=e;return Ve({root:["root"]},jje,t)},Fje=J("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Lje={variant:"body"},SL="tbody",Nje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableBody"}),{className:o,component:a=SL}=n,i=Ce(n,Aje),s=j({},n,{component:a}),c=Mje(s);return S.jsx(Z0.Provider,{value:Lje,children:S.jsx(Fje,j({className:$e(c.root,o),as:a,ref:r,role:a===SL?null:"rowgroup",ownerState:s},i))})}),v9=Nje;function Dje(e){return Ue("MuiTableCell",e)}const Bje=qe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),zje=Bje,Uje=["align","className","component","padding","scope","size","sortDirection","variant"],Vje=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,Dje,t)},Wje=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"?z0(It(e.palette.divider,1),.88):B0(It(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",[`&.${zje.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})),qje=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,Uje),h=d.useContext(f9),x=d.useContext(Z0),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}),$=Vje(_);let P=null;return f&&(P=f==="asc"?"ascending":"descending"),S.jsx(Wje,j({as:O,ref:r,className:$e($.root,a),"aria-sort":P,scope:b,ownerState:_},m))}),un=qje;function Hje(e){return Ue("MuiTableHead",e)}qe("MuiTableHead",["root"]);const Gje=["className","component"],Kje=e=>{const{classes:t}=e;return Ve({root:["root"]},Hje,t)},Qje=J("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Xje={variant:"head"},OL="thead",Yje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableHead"}),{className:o,component:a=OL}=n,i=Ce(n,Gje),s=j({},n,{component:a}),c=Kje(s);return S.jsx(Z0.Provider,{value:Xje,children:S.jsx(Qje,j({as:a,className:$e(c.root,o),ref:r,role:a===OL?null:"rowgroup",ownerState:s},i))})}),m9=Yje;function Jje(e){return Ue("MuiToolbar",e)}qe("MuiToolbar",["root","gutters","regular","dense"]);const Zje=["className","component","disableGutters","variant"],eAe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ve({root:["root",!r&&"gutters",n]},Jje,t)},tAe=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),rAe=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,Zje),l=j({},n,{component:a,disableGutters:i,variant:s}),f=eAe(l);return S.jsx(tAe,j({as:a,className:$e(f.root,o),ref:r,ownerState:l},c))}),Md=rAe,h9=bo(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),g9=bo(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),nAe=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],oAe=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,T=Ce(t,nAe),R=Xs(),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:nr,U=(o=P.lastButton)!=null?o:nr,H=(a=P.nextButton)!=null?a:nr,q=(i=P.previousButton)!=null?i:nr,G=(s=P.firstButtonIcon)!=null?s:dO,z=(c=P.lastButtonIcon)!=null?c:fO,W=(l=P.nextButtonIcon)!=null?l:g9,te=(f=P.previousButtonIcon)!=null?f:h9,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},T,{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))}))]}))}),aAe=oAe;function iAe(e){return Ue("MuiTablePagination",e)}const sAe=qe("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),ap=sAe;var CL;const lAe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],uAe=J(un,{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}})),cAe=J(Md,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>j({[`& .${ap.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},[`& .${ap.actions}`]:{flexShrink:0,marginLeft:20}})),dAe=J("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),fAe=J("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>j({},e.typography.body2,{flexShrink:0})),pAe=J(w$,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>j({[`& .${ap.selectIcon}`]:t.selectIcon,[`& .${ap.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${ap.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),vAe=J(so,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),mAe=J("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>j({},e.typography.body2,{flexShrink:0}));function hAe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function gAe(e){return`Go to ${e} page`}const yAe=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"]},iAe,t)},bAe=d.forwardRef(function(t,r){var n;const o=Ge({props:t,name:"MuiTablePagination"}),{ActionsComponent:a=aAe,backIconButtonProps:i,className:s,colSpan:c,component:l=un,count:f,disabled:v=!1,getItemAriaLabel:m=gAe,labelDisplayedRows:h=hAe,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:T=!1,slotProps:R={},slots:I={}}=o,A=Ce(o,lAe),F=o,L=yAe(F),D=(n=R==null?void 0:R.select)!=null?n:P,U=D.native?"option":vAe;let H;(l===un||l==="td")&&(H=c||1e3);const q=Zl(D.id),G=Zl(D.labelId),z=()=>f===-1?(g+1)*_:_===-1?f:Math.min(f,(g+1)*_);return S.jsx(uAe,j({colSpan:H,ref:r,as:l,ownerState:F,className:$e(L.root,s)},A,{children:S.jsxs(cAe,{className:L.toolbar,children:[S.jsx(dAe,{className:L.spacer}),$.length>1&&S.jsx(fAe,{className:L.selectLabel,id:G,children:x}),$.length>1&&S.jsx(pAe,j({variant:"standard"},!D.variant&&{input:CL||(CL=S.jsx(Q0,{}))},{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({},!Vp(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(mAe,{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:T,slotProps:R.actions,slots:I.actions,getItemAriaLabel:m,disabled:v})]})}))}),EL=bAe;function _Ae(e){return Ue("MuiTableRow",e)}const xAe=qe("MuiTableRow",["root","selected","hover","head","footer"]),PL=xAe,wAe=["className","component","hover","selected"],SAe=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"]},_Ae,t)},OAe=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,[`&.${PL.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${PL.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:It(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}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),$L="tr",CAe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableRow"}),{className:o,component:a=$L,hover:i=!1,selected:s=!1}=n,c=Ce(n,wAe),l=d.useContext(Z0),f=j({},n,{component:a,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),v=SAe(f);return S.jsx(OAe,j({as:a,ref:r,className:$e(v.root,o),role:a===$L?null:"row",ownerState:f},c))}),Kp=CAe,EAe=bo(S.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function PAe(e){return Ue("MuiTableSortLabel",e)}const $Ae=qe("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),rw=$Ae,RAe=["active","children","className","direction","hideSortIcon","IconComponent"],TAe=e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon",`iconDirection${Se(r)}`]};return Ve(o,PAe,t)},kAe=J(Bi,{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,[`& .${rw.icon}`]:{opacity:.5}},[`&.${rw.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${rw.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),IAe=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)"})),jAe=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=EAe}=n,f=Ce(n,RAe),v=j({},n,{active:o,direction:s,hideSortIcon:c,IconComponent:l}),m=TAe(v);return S.jsxs(kAe,j({className:$e(m.root,i),component:"span",disableRipple:!0,ownerState:v,ref:r},f,{children:[a,c&&!o?null:S.jsx(IAe,{as:l,className:$e(m.icon),ownerState:v})]}))}),AAe=jAe;function MAe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function FAe(e,t,r,n={},o=()=>{}){const{ease:a=MAe,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 LAe=["onChange"],NAe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function DAe(e){const{onChange:t}=e,r=Ce(e,LAe),n=d.useRef(),o=d.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return po(()=>{const i=Td(()=>{const c=n.current;a(),c!==n.current&&t(n.current)}),s=Ho(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:NAe,ref:o},r))}function BAe(e){return Ue("MuiTabScrollButton",e)}const zAe=qe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),UAe=zAe,VAe=["className","slots","slotProps","direction","orientation","disabled"],WAe=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ve({root:["root",r,n&&"disabled"]},BAe,t)},qAe=J(Bi,{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,[`&.${UAe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),HAe=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,VAe),v=Xs(),m=j({isRtl:v},a),h=WAe(m),x=(n=s.StartScrollButtonIcon)!=null?n:h9,w=(o=s.EndScrollButtonIcon)!=null?o:g9,O=Go({elementType:x,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),b=Go({elementType:w,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return S.jsx(qAe,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))}))}),GAe=HAe;function KAe(e){return Ue("MuiTabs",e)}const QAe=qe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),nw=QAe,XAe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],RL=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,TL=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Oh=(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}}},YAe=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"]},KAe,c)},JAe=J("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${nw.scrollButtons}`]:t.scrollButtons},{[`& .${nw.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&&{[`& .${nw.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),ZAe=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"})),eMe=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"})),tMe=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})),rMe=J(DAe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),kL={},nMe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTabs"}),o=ra(),a=Xs(),{"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=GAe,scrollButtons:g="auto",selectionFollowsFocus:_,slots:$={},slotProps:P={},TabIndicatorProps:C={},TabScrollButtonProps:T={},textColor:R="primary",value:I,variant:A="standard",visibleScrollbar:F=!1}=n,L=Ce(n,XAe),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=YAe(te),ee=Go({elementType:$.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:te}),Oe=Go({elementType:$.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:te}),[ce,oe]=d.useState(!1),[pe,Re]=d.useState(kL),[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 ke=Be.current;let ze;if(ke){const bt=ke.getBoundingClientRect();ze={clientWidth:ke.clientWidth,scrollLeft:ke.scrollLeft,scrollTop:ke.scrollTop,scrollLeftNormalized:Lwe(ke,a?"rtl":"ltr"),scrollWidth:ke.scrollWidth,top:bt.top,bottom:bt.bottom,left:bt.left,right:bt.right}}let ct;if(ke&&I!==!1){const bt=V.current.children;if(bt.length>0){const Yt=bt[Ae.get(I)];ct=Yt?Yt.getBoundingClientRect():null}}return{tabsMeta:ze,tabMeta:ct}},Y=Cn(()=>{const{tabsMeta:ke,tabMeta:ze}=X();let ct=0,bt;if(U)bt="top",ze&&ke&&(ct=ze.top-ke.top+ke.scrollTop);else if(bt=a?"right":"left",ze&&ke){const $r=a?ke.scrollLeftNormalized+ke.clientWidth-ke.scrollWidth:ke.scrollLeft;ct=(a?-1:1)*(ze[bt]-ke[bt]+$r)}const Yt={[bt]:ct,[W]:ze?ze[W]:0};if(isNaN(pe[bt])||isNaN(pe[W]))Re(Yt);else{const $r=Math.abs(pe[bt]-Yt[bt]),mn=Math.abs(pe[W]-Yt[W]);($r>=1||mn>=1)&&Re(Yt)}}),ae=(ke,{animation:ze=!0}={})=>{ze?FAe(H,Be.current,ke,{duration:o.transitions.duration.standard}):Be.current[H]=ke},se=ke=>{let ze=Be.current[H];U?ze+=ke:(ze+=ke*(a?-1:1),ze*=a&&o6()==="reverse"?-1:1),ae(ze)},le=()=>{const ke=Be.current[z];let ze=0;const ct=Array.from(V.current.children);for(let bt=0;btke){bt===0&&(ze=ke);break}ze+=Yt[z]}return ze},Ee=()=>{se(-1*le())},Ie=()=>{se(le())},rt=d.useCallback(ke=>{ge({overflow:null,scrollbarWidth:ke})},[]),at=()=>{const ke={};ke.scrollbarSizeListener=D?S.jsx(rMe,{onChange:rt,className:$e(ne.scrollableX,ne.hideScrollbar)}):null;const ct=D&&(g==="auto"&&(ye||he)||g===!0);return ke.scrollButtonStart=ct?S.jsx(b,j({slots:{StartScrollButtonIcon:$.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ee},orientation:O,direction:a?"right":"left",onClick:Ee,disabled:!ye},T,{className:$e(ne.scrollButtons,T.className)})):null,ke.scrollButtonEnd=ct?S.jsx(b,j({slots:{EndScrollButtonIcon:$.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Oe},orientation:O,direction:a?"left":"right",onClick:Ie,disabled:!he},T,{className:$e(ne.scrollButtons,T.className)})):null,ke},Le=Cn(ke=>{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:ke})}}}),De=Cn(()=>{D&&g!==!1&&ie(!_e)});d.useEffect(()=>{const ke=Td(()=>{Be.current&&Y()});let ze;const ct=$r=>{$r.forEach(mn=>{mn.removedNodes.forEach(na=>{var Qn;(Qn=ze)==null||Qn.unobserve(na)}),mn.addedNodes.forEach(na=>{var Qn;(Qn=ze)==null||Qn.observe(na)})}),ke(),De()},bt=Ho(Be.current);bt.addEventListener("resize",ke);let Yt;return typeof ResizeObserver<"u"&&(ze=new ResizeObserver(ke),Array.from(V.current.children).forEach($r=>{ze.observe($r)})),typeof MutationObserver<"u"&&(Yt=new MutationObserver(ct),Yt.observe(V.current,{childList:!0})),()=>{var $r,mn;ke.clear(),bt.removeEventListener("resize",ke),($r=Yt)==null||$r.disconnect(),(mn=ze)==null||mn.disconnect()}},[Y,De]),d.useEffect(()=>{const ke=Array.from(V.current.children),ze=ke.length;if(typeof IntersectionObserver<"u"&&ze>0&&D&&g!==!1){const ct=ke[0],bt=ke[ze-1],Yt={root:Be.current,threshold:.99},$r=Ui=>{de(!Ui[0].isIntersecting)},mn=new IntersectionObserver($r,Yt);mn.observe(ct);const na=Ui=>{ve(!Ui[0].isIntersecting)},Qn=new IntersectionObserver(na,Yt);return Qn.observe(bt),()=>{mn.disconnect(),Qn.disconnect()}}},[D,g,_e,f==null?void 0:f.length]),d.useEffect(()=>{oe(!0)},[]),d.useEffect(()=>{Y()}),d.useEffect(()=>{Le(kL!==pe)},[Le,pe]),d.useImperativeHandle(c,()=>({updateIndicator:Y,updateScrollButtons:De}),[Y,De]);const ft=S.jsx(tMe,j({},C,{className:$e(ne.indicator,C.className),ownerState:te,style:j({},pe,C.style)}));let Et=0;const Ct=d.Children.map(f,ke=>{if(!d.isValidElement(ke))return null;const ze=ke.props.value===void 0?Et:ke.props.value;Ae.set(ze,Et);const ct=ze===I;return Et+=1,d.cloneElement(ke,j({fullWidth:A==="fullWidth",indicator:ct&&!ce&&ft,selected:ct,selectionFollowsFocus:_,onChange:w,textColor:R,value:ze},Et===1&&I===!1&&!ke.props.tabIndex?{tabIndex:0}:{}))}),We=ke=>{const ze=V.current,ct=Er(ze).activeElement;if(ct.getAttribute("role")!=="tab")return;let Yt=O==="horizontal"?"ArrowLeft":"ArrowUp",$r=O==="horizontal"?"ArrowRight":"ArrowDown";switch(O==="horizontal"&&a&&(Yt="ArrowRight",$r="ArrowLeft"),ke.key){case Yt:ke.preventDefault(),Oh(ze,ct,TL);break;case $r:ke.preventDefault(),Oh(ze,ct,RL);break;case"Home":ke.preventDefault(),Oh(ze,null,RL);break;case"End":ke.preventDefault(),Oh(ze,null,TL);break}},et=at();return S.jsxs(JAe,j({className:$e(ne.root,v),ownerState:te,ref:r,as:m},L,{children:[et.scrollButtonStart,et.scrollbarSizeListener,S.jsxs(ZAe,{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(eMe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":O==="vertical"?"vertical":null,className:ne.flexContainer,ownerState:te,onKeyDown:We,ref:V,role:"tablist",children:Ct}),ce&&ft]}),et.scrollButtonEnd]}))}),y9=nMe;function oMe(e){return Ue("MuiTextField",e)}qe("MuiTextField",["root"]);const aMe=["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"],iMe={standard:g$,filled:H6,outlined:l9},sMe=e=>{const{classes:t}=e;return Ve({root:["root"]},oMe,t)},lMe=J(G6,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uMe=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:T=!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,aMe),ne=j({},n,{autoFocus:a,color:c,disabled:f,error:v,fullWidth:h,multiline:T,required:D,select:H,variant:W}),ee=sMe(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=Zl(w),oe=x&&ce?`${ce}-helper-text`:void 0,pe=$&&ce?`${ce}-label`:void 0,Re=iMe[W],ye=S.jsx(Re,j({"aria-describedby":oe,autoComplete:o,autoFocus:a,defaultValue:l,fullWidth:h,multiline:T,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(lMe,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(X6,j({htmlFor:ce,id:pe},O,{children:$})),H?S.jsx(w$,j({"aria-describedby":oe,id:ce,labelId:pe,value:z,input:ye},q,{children:i})):ye,x&&S.jsx(h$,j({id:oe},m,{children:x}))]}))}),Bv=uMe,cMe=["getTrigger","target"];function dMe(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 fMe=typeof window<"u"?window:null;function b9(e={}){const{getTrigger:t=dMe,target:r=fMe}=e,n=Ce(e,cMe),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 O$={},ow={};const pMe=Qa(OOe);var IL;function Xe(){return IL||(IL=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=pMe}(ow)),ow}var vMe=He;Object.defineProperty(O$,"__esModule",{value:!0});var zv=O$.default=void 0,mMe=vMe(Xe()),hMe=S;zv=O$.default=(0,mMe.default)((0,hMe.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 ip=function(){return ip=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(CNe,null):null,t&&d.createElement(gFe,null),d.createElement($9,null))},_Fe=d.createElement(bFe,null);F9.propTypes={alwaysOn:E.bool,children:E.node,className:E.string,color:E.oneOf(["default","inherit","primary","secondary","transparent"]),container:a0,open:E.bool,toolbar:E.element,userMenu:E.oneOfType([E.element,E.bool])};var xFe=d.createElement(I$,null),xl="RaAppBar",kl={appBar:"".concat(xl,"-appBar"),toolbar:"".concat(xl,"-toolbar"),menuButton:"".concat(xl,"-menuButton"),menuButtonIconClosed:"".concat(xl,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(xl,"-menuButtonIconOpen"),title:"".concat(xl,"-title")},wFe=J(xCe,{name:xl,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(kl.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(kl.menuButton)]={marginRight:"0.2em"},t["& .".concat(kl.title)]={},t}),N$={},SFe=He;Object.defineProperty(N$,"__esModule",{value:!0});var L9=N$.default=void 0,OFe=SFe(Xe()),CFe=S;L9=N$.default=(0,OFe.default)((0,CFe.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 D$={},EFe=He;Object.defineProperty(D$,"__esModule",{value:!0});var N9=D$.default=void 0,PFe=EFe(Xe()),$Fe=S;N9=D$.default=(0,PFe.default)((0,$Fe.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 lp=function(){return lp=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(eLe,{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(S$,{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(qo,{label:r,source:a,resource:s}))),o&&d.createElement(V9,{className:"dragIcon",color:"disabled",fontSize:"small"}))},eLe=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"}}}}),ns=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n$?P=ns(ns(ns(ns([],s.slice(0,$),!0),[s[_]],!1),s.slice($,_),!0),s.slice(_+1),!0):P=ns(ns(ns(ns([],s.slice(0,_),!0),s.slice(_+1,$+1),!0),[s[_]],!1),s.slice($+1),!0),c(P),m(function(C){return P.filter(function(T){return C.includes(T.index)}).map(function(T){return T.index})})}},w=function(){m([])},O=function(){m(s.map(function(b){return b.index}))};return d.createElement(On,{pt:.5},d.createElement(On,{component:"ul",sx:{paddingInlineStart:0,m:0}},s.map(function(b){return d.createElement(W9,{key:b.index,source:b.source,label:b.label,index:b.index,selected:v.includes(b.index),onToggle:h,onMove:x})})),d.createElement(On,{onDrop:function(b){return b.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},d.createElement(Pr,{size:"small",onClick:w},a("ra.inspector.hideAll",{_:"Hide All"})),d.createElement(Pr,{size:"small",onClick:O},a("ra.inspector.showAll",{_:"Show All"}))))},K$={},rLe=He;Object.defineProperty(K$,"__esModule",{value:!0});var q9=K$.default=void 0,nLe=rLe(Xe()),oLe=S;q9=K$.default=(0,nLe.default)((0,oLe.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 Q$={},aLe=He;Object.defineProperty(Q$,"__esModule",{value:!0});var H9=Q$.default=void 0,iLe=aLe(Xe()),sLe=S;H9=Q$.default=(0,iLe.default)((0,sLe.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 lLe=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"}))},G9=function(){var e=IP(),t=e.isEnabled,r=e.disable,n=e.title,o=e.titleOptions,a=e.editor,i=e.preferenceKey,s=d.useRef(!1),c=c0e(i),l=ra(),f=je(),v=d.useState(0),m=v[0],h=v[1],x=fn("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(T){var R=document==null?void 0:document.elementFromPoint(T.clientX,T.clientY);R.id==="inspector-dialog-title"&&(s.current=!0,T.dataTransfer.effectAllowed="move",T.dataTransfer.setData("inspector",""),setTimeout(function(){T.target.classList.add("hide")},0),_({x:T.clientX-w.x,y:T.clientY-w.y}))},P=function(T){s.current&&(O({x:T.clientX-g.x,y:T.clientY-g.y}),T.target.classList.remove("hide"),s.current=!1)};d.useEffect(function(){if(t){var T=function(R){R.dataTransfer.types.includes("inspector")&&R.preventDefault()};return document==null||document.addEventListener("dragover",T),function(){document==null||document.removeEventListener("dragover",T)}}},[t]),d.useEffect(function(){if(t){var T=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 T(),window==null||window.addEventListener("resize",T),function(){window==null||window.removeEventListener("resize",T)}}},[t,O,l.breakpoints.values.sm]);var C=function(){c(),h(function(T){return T+1})};return t?d.createElement(uLe,{className:up.modal,elevation:3,draggable:!0,onDragStart:$,onDragEnd:P,sx:{left:w.x,top:w.y}},d.createElement("div",{className:up.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(nr,{"aria-label":f("ra.action.remove"),onClick:C,size:"small"},d.createElement(H9,{fontSize:"inherit"})),d.createElement(nr,{"aria-label":f("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},d.createElement(q9,{fontSize:"inherit"}))),d.createElement("div",{className:up.content,key:m},d.createElement(tz,{value:i},a||d.createElement(lLe,null)))):null},dg="RaInspector",up={modal:"".concat(dg,"-modal"),title:"".concat(dg,"-title"),content:"".concat(dg,"-content")},uLe=J(Ys,{name:dg,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(up.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(up.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});G9.displayName="Inspector";var Sl=function(){return Sl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element"),Rb.createPortal(d.createElement(vLe,CO({title:r,defaultTitle:t,preferenceKey:n},o)),i)):null},n_=E.oneOfType([E.string,E.element]);Zs.propTypes={defaultTitle:E.string,className:E.string,record:E.any,title:n_};var hLe=function(e){var t=Fr().pathname,r=d.useRef(t);d.useEffect(function(){t!==r.current&&e()},[t,e])},EO=function(){return EO=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=qNe(O===!1||O===void 0?void 0:!O,l||!I||T||R);kP(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 NL(void 0,void 0,void 0,function(){var H;return DL(this,function(q){switch(q.label){case 0:return $!=null&&$.save?[4,$.save(U,dp(dp({},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 NL(void 0,void 0,void 0,function(){return DL(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(WNe,dp({variant:x,type:v,color:r,"aria-label":D,disabled:A,onClick:L},b),R?d.createElement(jd,{sx:zNe,size:14,thickness:3,color:"inherit"}):o,D)},zNe={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},UNe=d.createElement(p8,null);Hv.propTypes={className:E.string,invalid:E.bool,label:E.string,variant:E.oneOf(["text","outlined","contained"]),icon:E.element,alwaysEnable:E.bool};var VNe="RaSaveButton",WNe=J(Pr,{name:VNe,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}),qNe=function(e,t){return typeof e>"u"?t:e},HNe=function(){return fe.createElement(KNe,{onClick:QNe,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},GNe="RaSkipNavigationButton",KNe=J(Lt,{name:GNe,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})}}}),QNe=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},VO=function(){return VO=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(S8,{fontSize:"small"})))},v2={},CDe=He;Object.defineProperty(v2,"__esModule",{value:!0});var O8=v2.default=void 0,EDe=CDe(Xe()),PDe=S;O8=v2.default=(0,EDe.default)((0,PDe.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 YO=function(){return YO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){var oe=D[0];oe.id;var pe=RDe(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!==US}).some(Boolean)?ge="":(ge=ge||{},d.Children.forEach(s,function(Ae){var Be;d.isValidElement(Ae)&&Ae.type!==US&&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(g8.Provider,{value:ie},d.createElement(TDe,{className:Je(c,C&&"fullwidth",(m||v)&&"disabled"),sx:T},d.createElement("ul",{className:wr.list},D.map(function(be,ge){return d.createElement(uDe,{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:wr.buttons},!x&&d.createElement("div",{className:wr.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:wr.clear},d.createElement(t_,{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($De,{onClick:function(){return A(!0)}}))))):null};Yp.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 TDe=J("div",{name:Ra,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(wr.line)]=(r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(o.palette.divider)},r[o.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(wr.index)]=(n={display:"flex",alignItems:"top",marginRight:o.spacing(1),marginTop:o.spacing(1)},n[o.breakpoints.down("md")]={display:"none"},n),t["& .".concat(wr.form)]={alignItems:"flex-start",display:"flex",flexDirection:"column"},t["&.fullwidth > ul > li > .".concat(wr.form)]={flex:2},t["& .".concat(wr.inline)]={flexDirection:"row",columnGap:"1em",flexWrap:"wrap"},t["& .".concat(wr.action)]={marginTop:o.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(wr.buttons)]={display:"flex"},t["& .".concat(wr.add)]={borderBottom:"none"},t["& .".concat(wr.clear)]={borderBottom:"none"},t["& .".concat(wr.line,":hover > .").concat(wr.action)]={visibility:"visible"},t}),kDe=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())})},IDe=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]=f3e&&(a=d3e,i=!1,t=new i3e(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(e3e,{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})))};g2.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};g2.displayName="DatagridHeader";var S3e=function(e){var t=e.children,r=e.value;return fe.createElement(E8.Provider,{value:r},t)};const O3e=S3e;var y2={},C3e=He;Object.defineProperty(y2,"__esModule",{value:!0});var j8=y2.default=void 0,E3e=C3e(Xe()),P3e=S;j8=y2.default=(0,E3e.default)((0,P3e.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 nC=function(){return nC=Object.assign||function(e){for(var t,r=1,n=arguments.length;rR?I=os(os(os(os([],c.slice(0,R),!0),[c[T]],!1),c.slice(R,T),!0),c.slice(T+1),!0):I=os(os(os(os([],c.slice(0,T),!0),c.slice(T+1,R+1),!0),[c[T]],!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(Vr,{title:O},d.createElement(nr,tb({"aria-label":O,color:"primary",onClick:b,size:"large"},qL(e)),d.createElement(oC,null))):d.createElement(z3e,tb({size:"small",onClick:b,startIcon:d.createElement(oC,null)},qL(e)),O),d.createElement(b$,{open:!!a,anchorEl:a,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},d.createElement(On,{component:"ul",p:1,my:0},c.map(function(P){return d.createElement(W9,{key:P.index,source:P.source,label:P.label,index:P.index,selected:m.includes(P.index),onToggle:_,onMove:$})}))))},z3e=J(Pr,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),qL=function(e){e.resource,e.preferenceKey;var t=B3e(e,["resource","preferenceKey"]);return t};function U3e(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]||!W8(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(gBe,As({className:t},vBe(n),{onSubmit:pBe}),f().map(function(m){return d.createElement(z8,{key:m.key||m.props.source,filterElement:m,handleHide:v,resource:o,className:nb.filterFormInput})}),d.createElement("div",{className:nb.clearFix})))},pBe=function(e){return e.preventDefault(),!1};U8.propTypes={resource:E.string,filters:E.arrayOf(E.node).isRequired,displayedFilters:E.object,hideFilter:E.func,initialValues:E.object,className:E.string};var vBe=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;var t=x2(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"]);return t},mBe=function(e,t){return As(As({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return zb(As({},r),n.props.source,n.props.defaultValue)},{})),e)},hBe=function(e){return e.preventDefault(),e.stopPropagation(),!1},iC="RaFilterForm",nb={clearFix:"".concat(iC,"-clearFix"),filterFormInput:"".concat(iC,"-filterFormInput")},gBe=J("form",{name:iC,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(nb.clearFix)]={clear:"right"},t["& .".concat(nb.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),yBe=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=V8(e,o,t),n},(r=B8(t))!==null&&r!==void 0?r:{})},V8=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=V8(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,"")},W8=function(e){return e===""||typeof e>"u"?!0:typeof e=="object"?Object.keys(e).every(function(t){return W8(e[t])}):!1},w2={},bBe=He;Object.defineProperty(w2,"__esModule",{value:!0});var q8=w2.default=void 0,_Be=bBe(Xe()),xBe=S;q8=w2.default=(0,_Be.default)((0,xBe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var H8=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,o=e.autoFocus,a=Ot(e),i=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return d.createElement(so,{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(qo,{label:r.props.label,source:r.props.source,resource:a}))});H8.propTypes={filter:E.element.isRequired,onShow:E.func.isRequired,resource:E.string,autoFocus:E.bool};var S2=function(e){return fn("".concat(e,".savedQueries"),[])},O2=function(e){return Array.isArray(e)?e.filter(function(t){return wBe(t)}):[]},wBe=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")},SBe=function(e){var t=e.open,r=e.onClose,n=je(),o=en(),a=o.resource,i=o.filterValues,s=o.displayedFilters,c=o.sort,l=o.perPage,f=S2(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}},$=O2(v);m($.concat(_)),w(""),r()};return d.createElement(Fv,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(Nv,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(Lv,null,d.createElement("form",{onSubmit:b},d.createElement(Bv,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:x,onChange:O}))),d.createElement(m$,null,d.createElement(Pr,{onClick:r},n("ra.action.cancel")),d.createElement(Pr,{onClick:g,color:"primary"},n("ra.action.save"))))},ZL=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(PBe,sC({className:r},CBe(i)),d.createElement(Lt,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:L,variant:a,size:o},d.createElement(q8,null)),d.createElement(J0,{open:R,anchorEl:A.current,onClose:D},F.map(function(oe,pe){return d.createElement(H8,{key:oe.props.source,filter:oe,resource:c,onShow:U,autoFocus:pe===0})}),P.map(function(oe,pe){return zo(oe.value,{filter:w,sort:_,perPage:O,displayedFilters:x})?d.createElement(so,{onClick:ce,key:pe},l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:oe.label})):d.createElement(so,{onClick:function(){v({search:Ql.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(so,{onClick:W},l("ra.saved_queries.new_label",{_:"Save current query..."})),$&&d.createElement(so,{onClick:function(){b({},{},!1),I(!1)}},l("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&d.createElement(d.Fragment,null,d.createElement(SBe,{open:q,onClose:z}),d.createElement(OBe,{open:ne,onClose:Oe})))},CBe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=G8(e,["displayedFilters","filterValues","showFilter"]);return t};K8.propTypes={resource:E.string,filters:E.arrayOf(E.node),displayedFilters:E.object,filterValues:E.object,showFilter:E.func,className:E.string};var EBe="RaFilterButton",PBe=J("div",{name:EBe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),C2={},$Be=He;Object.defineProperty(C2,"__esModule",{value:!0});var Q8=C2.default=void 0,RBe=$Be(Xe()),TBe=S;Q8=C2.default=(0,RBe.default)((0,TBe.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 lC=function(){return lC=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(T){x(T.target.value)},[x]),$=d.useCallback(function(T){var R=T.from,I=T.to,A=T.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(T){return w("ra.navigation.".concat(T),{_:"Go to ".concat(T," page")})},[w]);if(c)return d.createElement(Md,{variant:"dense"});if(m===0||f<1||m!=null&&f>b)return a!=null,null;if(O)return d.createElement(EL,ob({count:m??-1,rowsPerPage:v,page:f-1,onPageChange:g,rowsPerPageOptions:MBe,component:"span",labelDisplayedRows:$},Mp(i)));var C=n||(!c&&m!=null?Y8:void 0);return d.createElement(EL,ob({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},Mp(i)))});el.propTypes={actions:a0,limit:E.element,rowsPerPageOptions:E.arrayOf(E.oneOfType([E.number,E.exact({label:E.string.isRequired,value:E.number.isRequired})]))};var ABe=[5,10,25,50],MBe=[],ab=function(){return ab=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):XBe(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=nN(A,["ref"]);return d.createElement(Bv,cs({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||T,readOnly:T,helperText:Re?d.createElement(tu,{touched:U||H,error:L==null?void 0:L.message,helperText:i}):null,label:d.createElement(qo,{label:s,source:x,resource:h,isRequired:G}),margin:c,inputProps:cs(cs({},W),{readOnly:T})},Nd(R)))};Dl.propTypes={label:E.oneOfType([E.string,E.bool,E.element]),resource:E.string,source:E.string,step:E.oneOfType([E.string,E.number])};var XBe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},YBe=function(e){return e==null||isNaN(e)?"":e.toString()},P2={},JBe=He;Object.defineProperty(P2,"__esModule",{value:!0});var $2=P2.default=void 0,ZBe=JBe(Xe()),eze=S;$2=P2.default=(0,ZBe.default)((0,eze.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 R2={},tze=He;Object.defineProperty(R2,"__esModule",{value:!0});var eU=R2.default=void 0,rze=tze(Xe()),nze=S;eU=R2.default=(0,rze.default)((0,nze.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 sb=function(){return sb=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(lze,cC({hiddenLabel:!0,label:"",resettable:!0,placeholder:n("ra.action.search"),InputProps:{endAdornment:d.createElement(Oc,{position:"end"},d.createElement(Q8,{color:"disabled"}))},size:"small"},r))},sze="RaSearchInput",lze=J(Cr,{name:sze,overridesResolver:function(e,t){return t.root}})({marginTop:0}),sd=function(){return sd=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(vze,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(Io,{className:$c.content},d.createElement(Cr,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:uo(),fullWidth:!0}),d.createElement(Cr,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:uo(),fullWidth:!0}),d.createElement(Pr,{variant:"contained",type:"submit",color:"primary",disabled:o,fullWidth:!0,className:$c.button},o?d.createElement(jd,{className:$c.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},hg="RaLoginForm",$c={content:"".concat(hg,"-content"),button:"".concat(hg,"-button"),icon:"".concat(hg,"-icon")},vze=J(i0,{name:hg,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat($c.content)]={width:300},t["& .".concat($c.button)]={marginTop:r.spacing(2)},t["& .".concat($c.icon)]={margin:r.spacing(.3)},t});rU.propTypes={redirectTo:E.string};var dC=function(){return dC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&f?d.createElement(sU,null):r;return o?d.createElement(Sze,mC({className:Je("edit-page",a)},wze(l)),d.createElement(Zs,{title:c,defaultTitle:h,preferenceKey:"".concat(m,".edit.title")}),w,d.createElement("div",{className:Je(kc.main,(t={},t[kc.noActions]=!w,t))},d.createElement(s,{className:kc.card},x?o:d.createElement(Io,null," ")),n)):null};uU.propTypes={actions:E.oneOfType([E.element,E.bool]),aside:E.element,className:E.string,component:a0,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 wze=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=lU(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},bg="RaEdit",kc={main:"".concat(bg,"-main"),noActions:"".concat(bg,"-noActions"),card:"".concat(bg,"-card")},Sze=J("div",{name:bg,overridesResolver:function(e,t){return t.root}})((Cf={},Cf["& .".concat(kc.main)]={display:"flex",alignItems:"flex-start"},Cf["& .".concat(kc.noActions)]={marginTop:"1em"},Cf["& .".concat(kc.card)]={flex:"1 1 auto"},Cf)),hC=function(){return hC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t.toString():""},bC=function(){return bC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&O?Vze:r;return!o||!w&&l?null:d.createElement(qze,_C({className:Je("show-page",a)},Wze(v)),d.createElement(Zs,{title:f,defaultTitle:x,preferenceKey:"".concat(h,".show.title")}),b!==!1&&b,d.createElement("div",{className:Je(jc.main,(t={},t[jc.noActions]=!b,t))},d.createElement(s,{className:jc.card},o),n))};xU.propTypes={actions:E.oneOfType([E.element,E.bool]),children:E.node,className:E.string,emptyWhileLoading:E.bool,title:E.any};var Wze=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=_U(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"]);return t},xg="RaShow",jc={main:"".concat(xg,"-main"),noActions:"".concat(xg,"-noActions"),card:"".concat(xg,"-card")},qze=J("div",{name:xg,overridesResolver:function(e,t){return t.root}})((Ef={},Ef["& .".concat(jc.main)]={display:"flex"},Ef["& .".concat(jc.noActions)]={marginTop:"1em"},Ef["& .".concat(jc.card)]={flex:"1 1 auto"},Ef)),xC=function(){return xC=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=ht(e);if(!x)return null;var w=vt(x,l);if(w==null||w==="")return r?d.createElement(it,zl({component:"span",variant:"body2",className:t},Ka(m)),r&&h(r,{_:r})):null;var O=v(w),b="";if(i&&c)b=lw?O.toLocaleString(n,o):O.toLocaleString();else if(c){var g=o??(typeof w=="string"&&w.length<=10?{timeZone:"UTC"}:void 0);b=lw?O.toLocaleDateString(n,g):O.toLocaleDateString()}else i&&(b=lw?O.toLocaleTimeString(n,o):O.toLocaleTimeString());return d.createElement(it,zl({component:"span",variant:"body2",className:t},Ka(m)),b)};L2.propTypes=zl(zl(zl({},it.propTypes),_a),{locales:E.oneOfType([E.string,E.arrayOf(E.string)]),options:E.object,showTime:E.bool,showDate:E.bool});L2.displayName="DateFieldImpl";var cn=fu(L2),t6e=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},lw=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),Ac=function(){return Ac=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),wi=function(e){var t=e.children,r=e.debounce,n=e.filter,o=n===void 0?p6e: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?v6e:h,w=e.source,O=w===void 0?"id":w,b=e.target,g=ht(e),_=tbe({debounce:r,filter:o,page:i,perPage:f,record:g,reference:v,resource:m,sort:x,source:O,target:b});return fe.createElement(su,{value:v},fe.createElement(OP,{value:_},t,c))};wi.propTypes={children:E.node.isRequired,className:E.string,filter:E.object,label:_a.label,perPage:E.number,record:E.any,reference:E.string.isRequired,resource:E.string,sortBy:E.string,sortByOrder:_a.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 p6e={},v6e={field:"id",order:"DESC"},Vl=function(){return Vl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")};RU.propTypes={children:E.node};var vp=function(){return vp=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(T(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||!T(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){T(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(T(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){T(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)T(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 Ct(!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 Ct(!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 ke=0;if(et!==-1){var ze=W.substring(Ie+1,et);ze&&ze.trim()===""&&(ke=ze.length)}return ke}function ft(et){return ne||(et===void 0&&(et=W.substring(G)),de.push(et),G=ee,Le(de),pe&&We()),Ct()}function Et(et){G=et,Le(de),de=[],le=W.indexOf(F,G)}function Ct(et){return{data:Re,errors:ye,meta:{delimiter:A,linebreak:F,aborted:z,truncated:!!et,cursor:he+(te||0)}}}function We(){D(Ct()),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(T(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},K6e=e=>/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e),Q6e=async e=>{const t=`https://${e}/.well-known/matrix/client`;try{return(await Xl(t,{method:"GET"})).json["m.homeserver"].base_url}catch{return`https://${e}`}},X6e=async e=>{const t=`${e}/_synapse/admin/v1/server_version`;return(await Xl(t,{method:"GET"})).json.server_version},Y6e=async e=>{const t=`${e}/_matrix/client/versions`;return(await Xl(t,{method:"GET"})).json},J6e=async e=>{const t=`${e}/_matrix/client/r0/login`;return(await Xl(t,{method:"GET"})).json.flows},Z6e=e=>`${localStorage.getItem("base_url")}/_matrix/media/v1/download/${e}?allow_redirect=true`;function uN(){const e=localStorage.getItem("home_server"),t="0123456789abcdefghijklmnopqrstuvwxyz";return`@${Array.from(crypto.getRandomValues(new Uint32Array(8))).map(n=>t[n%t.length]).join("")}:${e}`}function e9e(e=20){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(r=>t[r%t.length]).join("")}const cw=!0,t9e=["id","displayname"].sort();function Th({value:e,text:t}){const r=je();return S.jsx("option",{value:e,children:r(t)})}const r9e=()=>{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=qt(),C=go(),T=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{lN.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=t9e.filter(ie=>{var be;return(be=oe.fields)==null?void 0:be.find(ge=>ie===ge)});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(lN.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=uN()),(Re===!1||V.password===void 0)&&(X.password=e9e()),cw&&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(cw&&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:uN()});Y++,Y>512?(console.warn("retry loop got stuck? pathological situation?"),_e.push(se)):await ae(le)}}},async()=>{cw&&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(zu,{children:[S.jsx(vl,{title:$("import_users.cards.importstats.header")}),S.jsxs(Io,{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(zu,{children:[S.jsx(vl,{title:$("import_users.cards.ids.header")}),S.jsxs(Io,{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(vL,{onChange:U,value:g,disabled:c!==null,children:[S.jsx(Th,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),S.jsx(Th,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),S.jsxs(zu,{children:[S.jsx(vl,{title:$("import_users.cards.passwords.header")}),S.jsxs(Io,{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(lO,{control:S.jsx(od,{checked:O,disabled:c!==null,onChange:D}),label:$("import_users.cards.passwords.use_passwords")})}):""]})]})],G=o&&!f&&S.jsxs(zu,{children:[S.jsx(vl,{title:$("import_users.cards.conflicts.header")}),S.jsx(Io,{children:S.jsx("div",{children:S.jsxs(vL,{onChange:L,value:x,disabled:c!==null,children:[S.jsx(Th,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),S.jsx(Th,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),z=r&&S.jsxs(zu,{children:[S.jsx(vl,{title:$("import_users.error.error")}),S.jsx(Io,{children:(Array.isArray(r)?r:[r]).map(ce=>S.jsx("div",{children:ce}))})]}),W=!f&&S.jsxs(zu,{children:[S.jsx(vl,{title:$("import_users.cards.upload.header")}),S.jsxs(Io,{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:T,disabled:c!==null})]})]}),te=f&&S.jsxs(Io,{children:[S.jsx(vl,{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(lO,{control:S.jsx(od,{checked:i,onChange:H,disabled:c!==null}),label:$("import_users.cards.startImport.simulate_only")}),S.jsx(Pr,{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(uu,{children:ee});return[S.jsx(Zs,{defaultTitle:$("import_users.title")}),Oe]},n9e=r9e,UU={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"}}}},o9e={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"}}}};pP(UU,o9e);const a9e={...UU,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."}}}},i9e={...BU,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",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 s9e={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 l9e={...s9e,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 u9e={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 c9e=hr(u9e),d9e={...c9e,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."}}}},f9e={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:"Третичный текст"}}}},p9e={...f9e,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 VU={};Object.defineProperty(VU,"__esModule",{value:!0});var v9e={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}"}}},m9e=VU.default=v9e;const h9e={...m9e,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:"媒体文件长度"}}}},WU=d.createContext({}),g9e=()=>d.useContext(WU),y9e=J(On)(({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"}})),b9e=()=>{const e=JB(),t=qt(),{restrictBaseUrl:r}=g9e(),n=typeof r=="string",o=Array.isArray(r),a=!(n||o),[i,s]=d.useState(!1),[c,l]=d.useState(!0),[f,v]=mP(),m=hP(),h=je(),x=n?r:localStorage.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 T=localStorage.getItem("sso_base_url");if(localStorage.removeItem("sso_base_url"),T){const R={base_url:T,username:null,password:null,loginToken:C};console.log("Base URL is:",T),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(T=>{s(!1),t(typeof T=="string"?T:typeof T>"u"||!T.message?"ra.auth.sign_in_error":T.message,{type:"warning"})})},$=()=>{localStorage.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 T=Zo(),[R,I]=d.useState(""),[A,F]=d.useState(""),L=()=>{var U;if(C.base_url||n)return;const D=(U=G6e(C.username))==null?void 0:U.domain;D&&Q6e(D).then(H=>{(a||o&&r.includes(H))&&T.setValue("base_url",H)})};return d.useEffect(()=>{C.base_url===""&&o&&T.setValue("base_url",r[0]),K6e(C.base_url)&&(X6e(C.base_url).then(D=>I(`${h("synapseadmin.auth.server_version")} ${D}`)).catch(()=>I("")),Y6e(C.base_url).then(D=>F(`${h("synapseadmin.auth.supports_specs")} ${D.versions.join(", ")}`)).catch(()=>F("")),J6e(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,T]),S.jsxs(S.Fragment,{children:[S.jsx(On,{children:S.jsx(Cr,{autoFocus:!0,source:"username",label:"ra.auth.username",autoComplete:"username",disabled:i||!c,onBlur:L,resettable:!0,fullWidth:!0,validate:uo()})}),S.jsx(On,{children:S.jsx(T2,{source:"password",label:"ra.auth.password",type:"password",autoComplete:"current-password",disabled:i||!c,resettable:!0,fullWidth:!0,validate:uo()})}),S.jsx(On,{children:S.jsx(Cr,{source:"base_url",label:"synapseadmin.auth.base_url",select:o,autoComplete:"url",disabled:i,readOnly:n,resettable:a,fullWidth:!0,validate:[uo(),g],children:o&&r.map(D=>S.jsx(so,{value:D,children:D},D))})}),S.jsx(it,{className:"serverVersion",children:R}),S.jsx(it,{className:"matrixVersions",children:A})]})};return S.jsxs(i0,{defaultValues:{base_url:x},onSubmit:_,mode:"onTouched",children:[S.jsx(y9e,{children:S.jsxs(uu,{className:"card",children:[S.jsx(On,{className:"avatar",children:i?S.jsx(jd,{size:25,thickness:2}):S.jsx(Hp,{className:"icon",children:S.jsx(zv,{})})}),S.jsx(On,{className:"hint",children:h("synapseadmin.auth.welcome")}),S.jsxs(On,{className:"form",children:[S.jsx(w$,{value:f,onChange:C=>v(C.target.value),fullWidth:!0,disabled:i,className:"select",children:m.map(C=>S.jsx(so,{value:C.locale,children:C.name},C.locale))}),S.jsx(US,{children:C=>S.jsx(P,{...C})}),S.jsxs(N6,{className:"actions",children:[S.jsx(Pr,{variant:"contained",type:"submit",color:"primary",disabled:i||!c,fullWidth:!0,children:h("ra.auth.sign_in")}),S.jsx(Pr,{variant:"contained",color:"secondary",onClick:$,disabled:i||w==="",fullWidth:!0,children:h("synapseadmin.auth.sso_sign_in")})]})]})]})}),S.jsx(Z$,{})]})};var U2={},_9e=He;Object.defineProperty(U2,"__esModule",{value:!0});var qU=U2.default=void 0,x9e=_9e(Xe()),w9e=S;qU=U2.default=(0,x9e.default)((0,w9e.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 V2={},S9e=He;Object.defineProperty(V2,"__esModule",{value:!0});var HU=V2.default=void 0,O9e=S9e(Xe()),C9e=S;HU=V2.default=(0,O9e.default)((0,C9e.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 W2={},E9e=He;Object.defineProperty(W2,"__esModule",{value:!0});var pu=W2.default=void 0,P9e=E9e(Xe()),$9e=S;pu=W2.default=(0,P9e.default)((0,$9e.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 dn={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},q2=e=>new Date(e).getTime(),R9e=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}`},GU=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),T9e=e=>({backgroundColor:e.retry_last_ts>0?"#ffcccc":"white"}),k9e=[S.jsx(u_,{source:"destination",alwaysOn:!0})],KU=()=>{const e=ht(),t=ei(),r=qt(),[n,{isLoading:o}]=hv();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(Lt,{label:"resources.destinations.action.reconnect",onClick:a,disabled:o,children:S.jsx(qU,{})})},I9e=()=>S.jsx(_o,{children:S.jsx(KU,{})}),j9e=()=>{const e=ht(),t=je();return S.jsxs("span",{children:[t("resources.destinations.name",1)," ",e==null?void 0:e.destination]})},A9e=e=>S.jsx(tl,{...e,filters:k9e,pagination:S.jsx(GU,{}),sort:{field:"destination",order:"ASC"},children:S.jsxs(zr,{rowSx:T9e,rowClick:t=>`${t}/show/rooms`,bulkActionButtons:!1,children:[S.jsx(Fe,{source:"destination"}),S.jsx(cn,{source:"failure_ts",showTime:!0,options:dn}),S.jsx(cn,{source:"retry_last_ts",showTime:!0,options:dn}),S.jsx(Fe,{source:"retry_interval"}),S.jsx(Fe,{source:"last_successful_stream_ordering"}),S.jsx(KU,{})]})}),M9e=e=>{const t=je();return S.jsx(c_,{actions:S.jsx(I9e,{}),title:S.jsx(j9e,{}),...e,children:S.jsxs(Kv,{children:[S.jsxs(Fo,{label:"status",icon:S.jsx(cu,{}),children:[S.jsx(Fe,{source:"destination"}),S.jsx(cn,{source:"failure_ts",showTime:!0,options:dn}),S.jsx(cn,{source:"retry_last_ts",showTime:!0,options:dn}),S.jsx(Fe,{source:"retry_interval"}),S.jsx(Fe,{source:"last_successful_stream_ordering"})]}),S.jsx(Fo,{label:t("resources.rooms.name",{smart_count:2}),icon:S.jsx(pu,{}),path:"rooms",children:S.jsx(wi,{reference:"destination_rooms",target:"destination",label:!1,pagination:S.jsx(GU,{}),perPage:50,children:S.jsxs(zr,{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(Ha,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:S.jsx(Fe,{source:"name",sortable:!1})})]})})})]})})},F9e={name:"destinations",icon:HU,list:A9e,show:M9e};var H2={},L9e=He;Object.defineProperty(H2,"__esModule",{value:!0});var QU=H2.default=void 0,N9e=L9e(Xe()),D9e=S;QU=H2.default=(0,N9e.default)((0,D9e.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 B9e=[jP(/^[A-Za-z0-9._~-]{0,64}$/)],XU=[lz()],z9e=[lz(),v_e(64)],U9e=[S.jsx(Ba,{source:"valid",alwaysOn:!0})],V9e=e=>S.jsx(tl,{...e,filters:U9e,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:S.jsxs(zr,{rowClick:"edit",children:[S.jsx(Fe,{source:"token",sortable:!1}),S.jsx(qa,{source:"uses_allowed",sortable:!1}),S.jsx(qa,{source:"pending",sortable:!1}),S.jsx(qa,{source:"completed",sortable:!1}),S.jsx(cn,{source:"expiry_time",showTime:!0,options:dn,sortable:!1})]})}),W9e=e=>S.jsx(k2,{...e,redirect:"list",children:S.jsxs(Bd,{toolbar:S.jsx(Dd,{children:S.jsx(Hv,{alwaysEnable:!0})}),children:[S.jsx(Cr,{source:"token",autoComplete:"off",validate:B9e,resettable:!0}),S.jsx(Dl,{source:"length",validate:z9e,helperText:"resources.registration_tokens.helper.length",step:1}),S.jsx(Dl,{source:"uses_allowed",validate:XU,step:1}),S.jsx(l_,{source:"expiry_time",parse:q2})]})}),q9e=e=>S.jsx(I2,{...e,children:S.jsxs(Bd,{children:[S.jsx(Cr,{source:"token",disabled:!0}),S.jsx(Dl,{source:"pending",disabled:!0}),S.jsx(Dl,{source:"completed",disabled:!0}),S.jsx(Dl,{source:"uses_allowed",validate:XU,step:1}),S.jsx(l_,{source:"expiry_time",parse:q2,format:R9e})]})}),H9e={name:"registration_tokens",icon:QU,list:V9e,edit:q9e,create:W9e};var G2={},G9e=He;Object.defineProperty(G2,"__esModule",{value:!0});var K2=G2.default=void 0,K9e=G9e(Xe()),Q9e=S;K2=G2.default=(0,K9e.default)((0,Q9e.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 Q2={},X9e=He;Object.defineProperty(Q2,"__esModule",{value:!0});var YU=Q2.default=void 0,Y9e=X9e(Xe()),J9e=S;YU=Q2.default=(0,Y9e.default)((0,J9e.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");var X2={},Z9e=He;Object.defineProperty(X2,"__esModule",{value:!0});var IC=X2.default=void 0,e8e=Z9e(Xe()),t8e=S;IC=X2.default=(0,e8e.default)((0,t8e.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 Y2={},r8e=He;Object.defineProperty(Y2,"__esModule",{value:!0});var J2=Y2.default=void 0,n8e=r8e(Xe()),o8e=S;J2=Y2.default=(0,n8e.default)((0,o8e.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 Z2={},a8e=He;Object.defineProperty(Z2,"__esModule",{value:!0});var eR=Z2.default=void 0,i8e=a8e(Xe()),s8e=S;eR=Z2.default=(0,i8e.default)((0,s8e.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 tR={},l8e=He;Object.defineProperty(tR,"__esModule",{value:!0});var JU=tR.default=void 0,u8e=l8e(Xe()),c8e=S;JU=tR.default=(0,u8e.default)((0,c8e.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 rR={},d8e=He;Object.defineProperty(rR,"__esModule",{value:!0});var ZU=rR.default=void 0,f8e=d8e(Xe()),p8e=S;ZU=rR.default=(0,f8e.default)((0,p8e.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 v8e=({open:e,onClose:t,onSubmit:r})=>{const n=je(),o=a=>S.jsxs(Dd,{...a,children:[S.jsx(Hv,{label:"delete_media.action.send",icon:S.jsx(eR,{})}),S.jsx(Lt,{label:"ra.action.cancel",onClick:t,children:S.jsx(J2,{})})]});return S.jsxs(Fv,{open:e,onClose:t,children:[S.jsx(Nv,{children:n("delete_media.action.send")}),S.jsxs(Lv,{children:[S.jsx(Y0,{children:n("delete_media.helper.send")}),S.jsxs(Bd,{toolbar:S.jsx(o,{}),onSubmit:r,children:[S.jsx(l_,{fullWidth:!0,source:"before_ts",label:"delete_media.fields.before_ts",defaultValue:0,parse:q2}),S.jsx(Dl,{fullWidth:!0,source:"size_gt",label:"delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),S.jsx(Ba,{fullWidth:!0,source:"keep_profiles",label:"delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},m8e=e=>{const t=ra(),[r,n]=d.useState(!1),o=qt(),a=go(),{mutate:i,isLoading:s}=ou(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(Lt,{...e,label:"delete_media.action.send",onClick:c,disabled:s,sx:{color:t.palette.error.main,"&:hover":{backgroundColor:Xc(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:S.jsx(eR,{})}),S.jsx(v8e,{open:r,onClose:l,onSubmit:i})]})},h8e=e=>{const t=ht(),r=je(),n=ei(),o=qt(),[a,{isLoading:i}]=mv(),[s]=hv();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(Vr,{title:r("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:S.jsx("div",{children:S.jsx(Lt,{...e,disabled:!0,children:S.jsx(id,{})})})}),t.safe_from_quarantine&&S.jsx(Vr,{title:r("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:S.jsx("div",{children:S.jsx(Lt,{...e,onClick:l,disabled:i,children:S.jsx(zv,{})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&S.jsx(Vr,{title:r("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:S.jsx("div",{children:S.jsx(Lt,{...e,onClick:c,disabled:i,children:S.jsx(ZU,{})})})})]})},g8e=e=>{const t=ht(),r=je(),n=ei(),o=qt(),[a,{isLoading:i}]=mv(),[s]=hv();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(Vr,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:S.jsx("div",{children:S.jsx(Lt,{...e,disabled:!0,children:S.jsx(id,{})})})}),t.quarantined_by&&S.jsx(Vr,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:S.jsx("div",{children:S.jsx(Lt,{...e,onClick:l,disabled:i,children:S.jsx(IC,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&S.jsx(Vr,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:S.jsx("div",{children:S.jsx(Lt,{...e,onClick:c,disabled:i,children:S.jsx(IC,{})})})})]})},eV=({media_id:e,label:t})=>{const r=je(),n=Z6e(e);return S.jsxs(On,{style:{whiteSpace:"pre"},children:[S.jsx(Vr,{title:r("resources.users_media.action.open"),children:S.jsx("span",{children:S.jsx(Lt,{component:ya,to:n,target:"_blank",rel:"noopener",style:{minWidth:0,paddingLeft:0,paddingRight:0},children:S.jsx(JU,{})})})}),t]})},y8e=({source:e})=>{var o;const t=localStorage.getItem("home_server"),r=ht();if(!r)return null;const n=(o=Tb.get(r,e))==null?void 0:o.toString();return n?S.jsx(eV,{media_id:`${t}/${n}`,label:n}):null},b8e=({source:e})=>{var o;const t=ht();if(!t)return null;const r=(o=Tb.get(t,e))==null?void 0:o.toString();if(!r)return null;const n=r.replace("mxc://","");return S.jsx(eV,{media_id:n,label:r})},_8e=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),x8e=e=>{const t=je();return S.jsx(c_,{...e,actions:S.jsx(w8e,{}),children:S.jsxs(Kv,{children:[S.jsxs(Fo,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:S.jsx(cu,{}),children:[S.jsx(cn,{source:"received_ts",showTime:!0,options:dn,sortable:!0}),S.jsx(Ha,{source:"user_id",reference:"users",children:S.jsx(Fe,{source:"id"})}),S.jsx(qa,{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(Ha,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:S.jsx(Fe,{source:"id"})})]}),S.jsxs(Fo,{label:"synapseadmin.reports.tabs.detail",icon:S.jsx(K2,{}),path:"detail",children:[S.jsx(cn,{source:"event_json.origin_server_ts",showTime:!0,options:dn,sortable:!0}),S.jsx(Ha,{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(b8e,{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"})]})]})})},w8e=()=>{const e=ht();return S.jsx(_o,{children:S.jsx(du,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},S8e=e=>S.jsx(tl,{...e,pagination:S.jsx(_8e,{}),sort:{field:"received_ts",order:"DESC"},children:S.jsxs(zr,{rowClick:"show",bulkActionButtons:!1,children:[S.jsx(Fe,{source:"id",sortable:!1}),S.jsx(cn,{source:"received_ts",showTime:!0,options:dn,sortable:!0}),S.jsx(Fe,{sortable:!1,source:"user_id"}),S.jsx(Fe,{sortable:!1,source:"name"}),S.jsx(Fe,{sortable:!1,source:"score"})]})}),O8e={name:"reports",icon:YU,list:S8e,show:x8e},nR=({source:e,...t})=>{var l;const r=ht(t),n=(l=Tb.get(r,e))==null?void 0:l.toString(),{alt:o,classes:a,sizes:i,sx:s,variant:c}=t;return S.jsx(Hp,{alt:o,classes:a,sizes:i,src:n,sx:s,variant:c})},C8e=()=>S.jsx(el,{rowsPerPageOptions:[100,500,1e3,2e3]}),E8e=e=>{const t=je();return S.jsx(du,{...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(pu,{})})},tV=e=>S.jsx(qv,{...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(pu,{})}),P8e=e=>{const{selectedIds:t}=en(),r=qt(),n=ei(),o=cB("rooms"),a=go(),{mutate:i,isLoading:s}=ou(()=>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(Lt,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:s,children:S.jsx(pu,{})})},$8e=e=>{const t=ht(),r=qt(),n=ei(),[o,{isLoading:a}]=mv(),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(Lt,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:a,children:S.jsx(pu,{})})},R8e=()=>S.jsxs(_o,{children:[S.jsx(F8,{}),S.jsx(Ld,{})]}),T8e=()=>S.jsx(tl,{pagination:S.jsx(C8e,{}),perPage:100,actions:S.jsx(R8e,{}),children:S.jsxs(b2,{rowClick:e=>"/rooms/"+e+"/show",bulkActionButtons:S.jsx(tV,{}),omit:["room_id","canonical_alias","topic"],children:[S.jsx(nR,{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(qa,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),S.jsx(No,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),S.jsx(No,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})}),k8e={name:"room_directory",icon:pu,list:T8e};var oR={},I8e=He;Object.defineProperty(oR,"__esModule",{value:!0});var rV=oR.default=void 0,j8e=I8e(Xe()),A8e=S;rV=oR.default=(0,j8e.default)((0,A8e.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 aR={},M8e=He;Object.defineProperty(aR,"__esModule",{value:!0});var nV=aR.default=void 0,F8e=M8e(Xe()),L8e=S;nV=aR.default=(0,F8e.default)((0,L8e.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward");var iR={},N8e=He;Object.defineProperty(iR,"__esModule",{value:!0});var sR=iR.default=void 0,D8e=N8e(Xe()),B8e=S;sR=iR.default=(0,D8e.default)((0,B8e.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 lR={},z8e=He;Object.defineProperty(lR,"__esModule",{value:!0});var jC=lR.default=void 0,U8e=z8e(Xe()),V8e=S;jC=lR.default=(0,U8e.default)((0,V8e.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 uR={},W8e=He;Object.defineProperty(uR,"__esModule",{value:!0});var oV=uR.default=void 0,q8e=W8e(Xe()),H8e=S;oV=uR.default=(0,q8e.default)((0,H8e.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 G8e=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),K8e=()=>{const e=ht(),t=je();let r="";return e&&(r=e.name!==""?e.name:e.id),S.jsxs("span",{children:[t("resources.rooms.name",1)," ",r]})},Q8e=()=>{const e=ht(),t=e!=null&&e.public?S.jsx(E8e,{}):S.jsx($8e,{});return S.jsxs(_o,{children:[t,S.jsx(du,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},X8e=e=>{const t=je();return S.jsx(c_,{...e,actions:S.jsx(Q8e,{}),title:S.jsx(K8e,{}),children:S.jsxs(Kv,{children:[S.jsxs(Fo,{label:"synapseadmin.rooms.tabs.basic",icon:S.jsx(cu,{}),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(Ha,{source:"creator",reference:"users",children:S.jsx(Fe,{source:"id"})})]}),S.jsxs(Fo,{label:"synapseadmin.rooms.tabs.detail",icon:S.jsx(K2,{}),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(Fo,{label:"synapseadmin.rooms.tabs.members",icon:S.jsx(sR,{}),path:"members",children:S.jsx(wi,{reference:"room_members",target:"room_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},rowClick:r=>"/users/"+r,bulkActionButtons:!1,children:[S.jsx(Fe,{source:"id",sortable:!1,label:"resources.users.fields.id"}),S.jsx(Ha,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:S.jsx(Fe,{source:"displayname",sortable:!1})})]})})}),S.jsxs(Fo,{label:"synapseadmin.rooms.tabs.permission",icon:S.jsx($2,{}),path:"permission",children:[S.jsx(No,{source:"federatable"}),S.jsx(No,{source:"public"}),S.jsx(uw,{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(uw,{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(uw,{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(Fo,{label:t("resources.room_state.name",{smart_count:2}),icon:S.jsx(rV,{}),path:"state",children:S.jsx(wi,{reference:"room_state",target:"room_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Fe,{source:"type",sortable:!1}),S.jsx(cn,{source:"origin_server_ts",showTime:!0,options:dn,sortable:!1}),S.jsx(Fe,{source:"content",sortable:!1}),S.jsx(Ha,{source:"sender",reference:"users",sortable:!1,children:S.jsx(Fe,{source:"id"})})]})})}),S.jsxs(Fo,{label:"resources.forward_extremities.name",icon:S.jsx(nV,{}),path:"forward_extremities",children:[S.jsx(On,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),S.jsx(wi,{reference:"forward_extremities",target:"room_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Fe,{source:"id",sortable:!1}),S.jsx(cn,{source:"received_ts",showTime:!0,options:dn,sortable:!1}),S.jsx(qa,{source:"depth",sortable:!1}),S.jsx(Fe,{source:"state_group",sortable:!1})]})})]})]})})},Y8e=()=>S.jsxs(S.Fragment,{children:[S.jsx(P8e,{}),S.jsx(tV,{}),S.jsx(qv,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),J8e=[S.jsx(u_,{source:"search_term",alwaysOn:!0})],Z8e=()=>S.jsxs(_o,{children:[S.jsx(F8,{}),S.jsx(Ld,{})]}),eUe=e=>{const t=ra();return S.jsx(tl,{...e,pagination:S.jsx(G8e,{}),sort:{field:"name",order:"ASC"},filters:J8e,actions:S.jsx(Z8e,{}),children:S.jsxs(b2,{rowClick:"show",bulkActionButtons:S.jsx(Y8e,{}),omit:["joined_local_members","state_events","version","federatable"],children:[S.jsx(No,{source:"is_encrypted",sortBy:"encryption",TrueIcon:jC,FalseIcon:oV,label:S.jsx(jC,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),S.jsx(SU,{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(No,{source:"federatable"}),S.jsx(No,{source:"public"})]})})},tUe={name:"rooms",icon:cu,list:eUe,show:X8e};var cR={},rUe=He;Object.defineProperty(cR,"__esModule",{value:!0});var aV=cR.default=void 0,nUe=rUe(Xe()),oUe=S;aV=cR.default=(0,nUe.default)((0,oUe.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer");const aUe=()=>{const{isLoading:e,total:t}=en();return S.jsxs(_o,{children:[S.jsx(m8e,{}),S.jsx(Ld,{disabled:e||t===0})]})},iUe=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),sUe=[S.jsx(u_,{source:"search_term",alwaysOn:!0})],lUe=e=>S.jsx(tl,{...e,actions:S.jsx(aUe,{}),filters:sUe,pagination:S.jsx(iUe,{}),sort:{field:"media_length",order:"DESC"},children:S.jsxs(zr,{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(qa,{source:"media_count"}),S.jsx(qa,{source:"media_length"})]})}),uUe={name:"user_media_statistics",icon:aV,list:lUe};var dR={},cUe=He;Object.defineProperty(dR,"__esModule",{value:!0});var iV=dR.default=void 0,dUe=cUe(Xe()),fUe=S;iV=dR.default=(0,dUe.default)((0,fUe.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 fR={},pUe=He;Object.defineProperty(fR,"__esModule",{value:!0});var sV=fR.default=void 0,vUe=pUe(Xe()),mUe=S;sV=fR.default=(0,vUe.default)((0,mUe.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 pR={},hUe=He;Object.defineProperty(pR,"__esModule",{value:!0});var lV=pR.default=void 0,gUe=hUe(Xe()),yUe=S;lV=pR.default=(0,gUe.default)((0,yUe.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 vR={},bUe=He;Object.defineProperty(vR,"__esModule",{value:!0});var uV=vR.default=void 0,_Ue=bUe(Xe()),xUe=S;uV=vR.default=(0,_Ue.default)((0,xUe.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 mR={},wUe=He;Object.defineProperty(mR,"__esModule",{value:!0});var cV=mR.default=void 0,SUe=wUe(Xe()),OUe=S;cV=mR.default=(0,SUe.default)((0,OUe.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 hR={},CUe=He;Object.defineProperty(hR,"__esModule",{value:!0});var dV=hR.default=void 0,EUe=CUe(Xe()),PUe=S;dV=hR.default=(0,EUe.default)((0,PUe.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 gR={},$Ue=He;Object.defineProperty(gR,"__esModule",{value:!0});var fV=gR.default=void 0,RUe=$Ue(Xe()),TUe=S;fV=gR.default=(0,RUe.default)((0,TUe.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 yR={},kUe=He;Object.defineProperty(yR,"__esModule",{value:!0});var bR=yR.default=void 0,IUe=kUe(Xe()),jUe=S;bR=yR.default=(0,IUe.default)((0,jUe.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 pV=({open:e,onClose:t,onSubmit:r})=>{const n=je(),o=a=>S.jsxs(Dd,{...a,children:[S.jsx(Hv,{label:"resources.servernotices.action.send",disabled:a.pristine}),S.jsx(Lt,{label:"ra.action.cancel",onClick:t,children:S.jsx(J2,{})})]});return S.jsxs(Fv,{open:e,onClose:t,children:[S.jsx(Nv,{children:n("resources.servernotices.action.send")}),S.jsxs(Lv,{children:[S.jsx(Y0,{children:n("resources.servernotices.helper.send")}),S.jsx(Bd,{toolbar:S.jsx(o,{}),onSubmit:r,children:S.jsx(Cr,{source:"body",label:"resources.servernotices.fields.body",fullWidth:!0,multiline:!0,rows:"4",resettable:!0,validate:uo()})})]})]})},AUe=()=>{const e=ht(),[t,r]=d.useState(!1),n=qt(),[o,{isLoading:a}]=mv(),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(Lt,{label:"resources.servernotices.send",onClick:i,disabled:a,children:S.jsx(bR,{})}),S.jsx(pV,{open:t,onClose:s,onSubmit:c})]})},MUe=()=>{const{selectedIds:e}=en(),[t,r]=d.useState(!1),n=()=>r(!0),o=()=>r(!1),a=qt(),i=cB("users"),s=go(),{mutate:c,isLoading:l}=ou(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(Lt,{label:"resources.servernotices.send",onClick:n,disabled:l,children:S.jsx(bR,{})}),S.jsx(pV,{open:t,onClose:o,onSubmit:c})]})},FUe=e=>{const t=ht();return t?S.jsx(r2,{...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},vV=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],mV=[{id:"bot",name:"bot"},{id:"support",name:"support"}],hV=()=>{const{isLoading:e,total:t}=en();return S.jsxs(_o,{children:[S.jsx(E$,{}),S.jsx(Ld,{disabled:e||t===0,maxResults:1e4}),S.jsx(Lt,{component:ya,to:"/import_users",label:"CSV Import",children:S.jsx(t2,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})};hV.defaultProps={selectedIds:[],onUnselectItems:()=>null};const gV=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),LUe=[S.jsx(u_,{source:"name",alwaysOn:!0}),S.jsx(Ba,{source:"guests",alwaysOn:!0}),S.jsx(Ba,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0})],NUe=()=>S.jsxs(S.Fragment,{children:[S.jsx(MUe,{}),S.jsx(qv,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),DUe=e=>S.jsx(tl,{...e,filters:LUe,filterDefaultValues:{guests:!0,deactivated:!1},sort:{field:"name",order:"ASC"},actions:S.jsx(hV,{}),pagination:S.jsx(gV,{}),children:S.jsxs(zr,{rowClick:"edit",bulkActionButtons:S.jsx(NUe,{}),children:[S.jsx(nR,{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(No,{source:"is_guest"}),S.jsx(No,{source:"admin"}),S.jsx(No,{source:"deactivated"}),S.jsx(No,{source:"locked"}),S.jsx(No,{source:"erased",sortable:!1}),S.jsx(cn,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:dn})]})}),BUe=[uo(),Oy(253),jP(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],zUe=[uo(),Oy(255)],UUe=()=>{const e=ht(),t=je();return S.jsxs(_o,{children:[!(e!=null&&e.deactivated)&&S.jsx(AUe,{}),S.jsx(du,{label:"resources.users.action.erase",confirmTitle:t("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},VUe=e=>S.jsx(k2,{...e,children:S.jsxs(Bd,{children:[S.jsx(Cr,{source:"id",autoComplete:"off",validate:BUe}),S.jsx(Cr,{source:"displayname",validate:Oy(256)}),S.jsx(T2,{source:"password",autoComplete:"new-password",validate:Oy(512)}),S.jsx(Zp,{source:"user_type",choices:mV,translateChoice:!1,resettable:!0}),S.jsx(Ba,{source:"admin"}),S.jsx(Yy,{source:"threepids",children:S.jsxs(Yp,{disableReordering:!0,children:[S.jsx(Zp,{source:"medium",choices:vV,validate:uo()}),S.jsx(Cr,{source:"address",validate:zUe})]})}),S.jsx(Yy,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:S.jsxs(Yp,{disableReordering:!0,children:[S.jsx(Cr,{source:"auth_provider",validate:uo()}),S.jsx(Cr,{source:"external_id",label:"resources.users.fields.id",validate:uo()})]})})]})}),WUe=()=>{const e=ht(),t=je();return S.jsxs("span",{children:[t("resources.users.name",{smart_count:1})," ",e?`"${e.displayname}"`:""]})},qUe=e=>{const t=je();return S.jsx(I2,{...e,title:S.jsx(WUe,{}),actions:S.jsx(UUe,{}),children:S.jsxs(j2,{children:[S.jsxs(ca,{label:t("resources.users.name",{smart_count:1}),icon:S.jsx(dV,{}),children:[S.jsx(nR,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),S.jsx(Cr,{source:"id",disabled:!0}),S.jsx(Cr,{source:"displayname"}),S.jsx(T2,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),S.jsx(Zp,{source:"user_type",choices:mV,translateChoice:!1,resettable:!0}),S.jsx(Ba,{source:"admin"}),S.jsx(Ba,{source:"locked"}),S.jsx(Ba,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),S.jsx(Ba,{source:"erased",disabled:!0}),S.jsx(cn,{source:"creation_ts_ms",showTime:!0,options:dn}),S.jsx(Fe,{source:"consent_version"})]}),S.jsx(ca,{label:"resources.users.threepid",icon:S.jsx(sV,{}),path:"threepid",children:S.jsx(Yy,{source:"threepids",children:S.jsxs(Yp,{disableReordering:!0,children:[S.jsx(Zp,{source:"medium",choices:vV}),S.jsx(Cr,{source:"address"})]})})}),S.jsx(ca,{label:"synapseadmin.users.tabs.sso",icon:S.jsx(iV,{}),path:"sso",children:S.jsx(Yy,{source:"external_ids",label:!1,children:S.jsxs(Yp,{disableReordering:!0,children:[S.jsx(Cr,{source:"auth_provider",validate:uo()}),S.jsx(Cr,{source:"external_id",label:"resources.users.fields.id",validate:uo()})]})})}),S.jsx(ca,{label:t("resources.devices.name",{smart_count:2}),icon:S.jsx(lV,{}),path:"devices",children:S.jsx(wi,{reference:"devices",target:"user_id",label:!1,children:S.jsxs(zr,{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(cn,{source:"last_seen_ts",showTime:!0,options:dn,sortable:!1}),S.jsx(FUe,{})]})})}),S.jsx(ca,{label:"resources.connections.name",icon:S.jsx(fV,{}),path:"connections",children:S.jsx(Ha,{reference:"connections",source:"id",label:!1,link:!1,children:S.jsx(Gze,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:S.jsxs(zr,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Fe,{source:"ip",sortable:!1}),S.jsx(cn,{source:"last_seen",showTime:!0,options:dn,sortable:!1}),S.jsx(Fe,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),S.jsx(ca,{label:t("resources.users_media.name",{smart_count:2}),icon:S.jsx(cV,{}),path:"media",children:S.jsx(wi,{reference:"users_media",target:"user_id",label:!1,pagination:S.jsx(gV,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:S.jsxs(zr,{style:{width:"100%"},children:[S.jsx(y8e,{source:"media_id"}),S.jsx(cn,{source:"created_ts",showTime:!0,options:dn}),S.jsx(cn,{source:"last_access_ts",showTime:!0,options:dn}),S.jsx(qa,{source:"media_length"}),S.jsx(Fe,{source:"media_type"}),S.jsx(Fe,{source:"upload_name"}),S.jsx(Fe,{source:"quarantined_by"}),S.jsx(g8e,{label:"resources.quarantine_media.action.name"}),S.jsx(h8e,{label:"resources.users_media.fields.safe_from_quarantine"}),S.jsx(du,{mutationMode:"pessimistic",redirect:!1})]})})}),S.jsx(ca,{label:t("resources.rooms.name",{smart_count:2}),icon:S.jsx(cu,{}),path:"rooms",children:S.jsx(wi,{reference:"joined_rooms",target:"user_id",label:!1,children:S.jsxs(zr,{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(Ha,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:S.jsx(Fe,{source:"name",sortable:!1})})]})})}),S.jsx(ca,{label:t("resources.pushers.name",{smart_count:2}),icon:S.jsx(uV,{}),path:"pushers",children:S.jsx(wi,{reference:"pushers",target:"user_id",label:!1,children:S.jsxs(zr,{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})]})})})]})})},HUe={name:"users",icon:sR,list:DUe,edit:qUe,create:VUe},GUe={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:localStorage.getItem("device_id"),initial_device_display_name:"Synapse Admin"},n?{type:"m.login.token",token:n}:{type:"m.login.password",user:t,password:r}))};e=e.replace(/\/+$/g,""),localStorage.setItem("base_url",e);const i=window.decodeURIComponent(e)+"/_matrix/client/r0/login",{json:s}=await Xl(i,o);localStorage.setItem("home_server",s.home_server),localStorage.setItem("user_id",s.user_id),localStorage.setItem("access_token",s.access_token),localStorage.setItem("device_id",s.device_id)},logout:async()=>{console.log("logout");const e=localStorage.getItem("base_url")+"/_matrix/client/r0/logout",t=localStorage.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:`Bearer ${t}`}};typeof t=="string"&&(await Xl(e,r),localStorage.removeItem("access_token"))},checkError:({status:e})=>(console.log("checkError "+e),e===401||e===403?Promise.reject():Promise.resolve()),checkAuth:()=>{const e=localStorage.getItem("access_token");return console.log("checkAuth "+e),typeof e=="string"?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},ro=(e,t={})=>{const r=localStorage.getItem("access_token");return console.log("httpClient "+e),r!=null&&(t.user={authenticated:!0,token:`Bearer ${r}`}),Xl(e,t)},cN=e=>{const t=localStorage.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`},br={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:e.avatar_url?cN(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)}:${localStorage.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/${localStorage.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/${localStorage.getItem("home_server")}/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unquarantine/${localStorage.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?cN(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 Pf(e,t){if(!(t===null&&e!=="user_type"))return t}function dN(e){return e==="DESC"?"b":"f"}const KUe={getList:async(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:o,deactivated:a,search_term:i,destination:s,valid:c}=t.filter,{page:l,perPage:f}=t.pagination,{field:v,order:m}=t.sort,h=(l-1)*f,x={from:h,limit:f,user_id:r,search_term:i,name:n,destination:s,guests:o,deactivated:a,valid:c,order_by:v,dir:dN(m)},w=localStorage.getItem("base_url");if(!w||!(e in br))throw Error("Homeserver not set");const O=br[e],g=`${w+O.path}?${Ql.stringify(x)}`,{json:_}=await ro(g);return{data:_[O.data].map(O.map),total:O.total(_,h,f)}},getOne:async(e,t)=>{console.log("getOne "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homeserver not set");const n=br[e],o=r+n.path,{json:a}=await ro(`${o}/${encodeURIComponent(t.id)}`);return{data:n.map(a)}},getMany:async(e,t)=>{console.log("getMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homerserver not set");const n=br[e],o=r+n.path,a=await Promise.all(t.ids.map(i=>ro(`${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:dN(a)},c=localStorage.getItem("base_url");if(!c||!(e in br))throw Error("Homeserver not set");const l=br[e],f=l.reference(t.id),v=`${c}${f.endpoint}?${Ql.stringify(s)}`,{json:m}=await ro(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=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homeserver not set");const n=br[e],o=r+n.path,{json:a}=await ro(`${o}/${encodeURIComponent(t.id)}`,{method:"PUT",body:JSON.stringify(t.data,Pf)});return{data:n.map(a)}},updateMany:async(e,t)=>{console.log("updateMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homeserver not set");const n=br[e],o=r+n.path;return{data:(await Promise.all(t.ids.map(i=>ro(`${o}/${encodeURIComponent(i)}`),{method:"PUT",body:JSON.stringify(t.data,Pf)}))).map(({json:i})=>i)}},create:async(e,t)=>{console.log("create "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homeserver not set");const n=br[e];if(!("create"in n))return Promise.reject();const o=n.create(t.data),a=r+o.endpoint,{json:i}=await ro(a,{method:o.method,body:JSON.stringify(o.body,Pf)});return{data:n.map(i)}},createMany:async(e,t)=>{console.log("createMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homeserver not set");const n=br[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 ro(s,{method:i.method,body:JSON.stringify(i.body,Pf)})}))).map(({json:a})=>a)}},delete:async(e,t)=>{console.log("delete "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homeserver not set");const n=br[e];if("delete"in n){const o=n.delete(t),a=r+o.endpoint,{json:i}=await ro(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 ro(`${o}/${t.id}`,{method:"DELETE",body:JSON.stringify(t.previousData,Pf)});return{data:a}}},deleteMany:async(e,t)=>{console.log("deleteMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homeserver not set");const n=br[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 ro(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=>ro(`${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/${localStorage.getItem("home_server")}/delete?before_ts=${e}&size_gt=${t}&keep_profiles=${r}`,i=localStorage.getItem("base_url")+o,{json:s}=await ro(i,{method:"POST"});return s}},kh={de:a9e,en:i9e,fr:l9e,it:d9e,ru:p9e,zh:h9e},QUe=g4(e=>kh[e]?Tb.merge({},kh.en,kh[e]):kh.en,Ppe(),[{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:"简体中文"}]),XUe=()=>S.jsxs(H6e,{disableTelemetry:!0,requireAuth:!0,loginPage:b9e,authProvider:GUe,dataProvider:KUe,i18nProvider:QUe,darkTheme:{palette:{mode:"dark"}},children:[S.jsx(MB,{children:S.jsx(Br,{path:"/import_users",element:S.jsx(n9e,{})})}),S.jsx(kr,{...HUe}),S.jsx(kr,{...tUe}),S.jsx(kr,{...uUe}),S.jsx(kr,{...O8e}),S.jsx(kr,{...k8e}),S.jsx(kr,{...F9e}),S.jsx(kr,{...H9e}),S.jsx(kr,{name:"connections"}),S.jsx(kr,{name:"devices"}),S.jsx(kr,{name:"room_members"}),S.jsx(kr,{name:"users_media"}),S.jsx(kr,{name:"joined_rooms"}),S.jsx(kr,{name:"pushers"}),S.jsx(kr,{name:"servernotices"}),S.jsx(kr,{name:"forward_extremities"}),S.jsx(kr,{name:"room_state"}),S.jsx(kr,{name:"destination_rooms"})]});fetch("config.json").then(e=>e.json()).then(e=>O3(document.getElementById("root")).render(S.jsx(fe.StrictMode,{children:S.jsx(WU.Provider,{value:e,children:S.jsx(XUe,{})})}))); diff --git a/index.html b/index.html index f20976fa..c4fc591d 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 - - + +