diff --git a/assets/index-DCHiR-dH.js b/assets/index-DCHiR-dH.js deleted file mode 100644 index 784efe3..0000000 --- a/assets/index-DCHiR-dH.js +++ /dev/null @@ -1,297 +0,0 @@ -var iA=e=>{throw TypeError(e)};var eE=(e,t,r)=>t.has(e)||iA("Cannot "+r);var ue=(e,t,r)=>(eE(e,t,"read from private field"),r?r.call(e):t.get(e)),Bt=(e,t,r)=>t.has(e)?iA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),xt=(e,t,r,n)=>(eE(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),or=(e,t,r)=>(eE(e,t,"access private method"),r);var I_=(e,t,r,n)=>({set _(a){xt(e,t,a,r)},get _(){return ue(e,t,n)}});function ZB(e,t){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Yl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ou(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var tE={exports:{}},Jm={},rE={exports:{}},lr={};/** - * @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 sA;function $W(){if(sA)return lr;sA=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.iterator;function y(K){return K===null||typeof K!="object"?null:(K=g&&K[g]||K["@@iterator"],typeof K=="function"?K:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,E={};function x(K,ee,Ce){this.props=K,this.context=ee,this.refs=E,this.updater=Ce||_}x.prototype.isReactComponent={},x.prototype.setState=function(K,ee){if(typeof K!="object"&&typeof K!="function"&&K!=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,K,ee,"setState")},x.prototype.forceUpdate=function(K){this.updater.enqueueForceUpdate(this,K,"forceUpdate")};function T(){}T.prototype=x.prototype;function I(K,ee,Ce){this.props=K,this.context=ee,this.refs=E,this.updater=Ce||_}var R=I.prototype=new T;R.constructor=I,S(R,x.prototype),R.isPureReactComponent=!0;var P=Array.isArray,C=Object.prototype.hasOwnProperty,O={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function k(K,ee,Ce){var se,Se={},me=null,we=null;if(ee!=null)for(se in ee.ref!==void 0&&(we=ee.ref),ee.key!==void 0&&(me=""+ee.key),ee)C.call(ee,se)&&!j.hasOwnProperty(se)&&(Se[se]=ee[se]);var Oe=arguments.length-2;if(Oe===1)Se.children=Ce;else if(1>>1,ee=H[K];if(0>>1;Ka(Se,ne))mea(we,Se)?(H[K]=we,H[me]=ne,K=me):(H[K]=Se,H[se]=ne,K=se);else if(mea(we,ne))H[K]=we,H[me]=ne,K=me;else break e}}return te}function a(H,te){var ne=H.sortIndex-te.sortIndex;return ne!==0?ne:H.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,d=s.now();e.unstable_now=function(){return s.now()-d}}var f=[],u=[],h=1,g=null,y=3,_=!1,S=!1,E=!1,x=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(H){for(var te=r(u);te!==null;){if(te.callback===null)n(u);else if(te.startTime<=H)n(u),te.sortIndex=te.expirationTime,t(f,te);else break;te=r(u)}}function P(H){if(E=!1,R(H),!S)if(r(f)!==null)S=!0,Y(C);else{var te=r(u);te!==null&&X(P,te.startTime-H)}}function C(H,te){S=!1,E&&(E=!1,T(k),k=-1),_=!0;var ne=y;try{for(R(te),g=r(f);g!==null&&(!(g.expirationTime>te)||H&&!N());){var K=g.callback;if(typeof K=="function"){g.callback=null,y=g.priorityLevel;var ee=K(g.expirationTime<=te);te=e.unstable_now(),typeof ee=="function"?g.callback=ee:g===r(f)&&n(f),R(te)}else n(f);g=r(f)}if(g!==null)var Ce=!0;else{var se=r(u);se!==null&&X(P,se.startTime-te),Ce=!1}return Ce}finally{g=null,y=ne,_=!1}}var O=!1,j=null,k=-1,M=5,$=-1;function N(){return!(e.unstable_now()-$H||125K?(H.sortIndex=ne,t(u,H),r(f)===null&&H===r(u)&&(E?(T(k),k=-1):E=!0,X(P,ne-K))):(H.sortIndex=ee,t(f,H),S||_||(S=!0,Y(C))),H},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(H){var te=y;return function(){var ne=y;y=te;try{return H.apply(this,arguments)}finally{y=ne}}}}(oE)),oE}var fA;function NW(){return fA||(fA=1,aE.exports=DW()),aE.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 pA;function BW(){if(pA)return xo;pA=1;var e=Nx(),t=NW();function r(i){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+i,m=1;m"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,u=/^[: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]*$/,h={},g={};function y(i){return f.call(g,i)?!0:f.call(h,i)?!1:u.test(i)?g[i]=!0:(h[i]=!0,!1)}function _(i,l,m,b){if(m!==null&&m.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return b?!1:m!==null?!m.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function S(i,l,m,b){if(l===null||typeof l>"u"||_(i,l,m,b))return!0;if(b)return!1;if(m!==null)switch(m.type){case 3:return!l;case 4:return l===!1;case 5:return isNaN(l);case 6:return isNaN(l)||1>l}return!1}function E(i,l,m,b,F,L,W){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=b,this.attributeNamespace=F,this.mustUseProperty=m,this.propertyName=i,this.type=l,this.sanitizeURL=L,this.removeEmptyString=W}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){x[i]=new E(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var l=i[0];x[l]=new E(l,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){x[i]=new E(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){x[i]=new E(i,2,!1,i,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(i){x[i]=new E(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){x[i]=new E(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){x[i]=new E(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){x[i]=new E(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){x[i]=new E(i,5,!1,i.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function I(i){return i[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(i){var l=i.replace(T,I);x[l]=new E(l,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var l=i.replace(T,I);x[l]=new E(l,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var l=i.replace(T,I);x[l]=new E(l,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){x[i]=new E(i,1,!1,i.toLowerCase(),null,!1,!1)}),x.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){x[i]=new E(i,1,!1,i.toLowerCase(),null,!0,!0)});function R(i,l,m,b){var F=x.hasOwnProperty(l)?x[l]:null;(F!==null?F.type!==0:b||!(2re||F[W]!==L[re]){var ce=` -`+F[W].replace(" at new "," at ");return i.displayName&&ce.includes("")&&(ce=ce.replace("",i.displayName)),ce}while(1<=W&&0<=re);break}}}finally{Ce=!1,Error.prepareStackTrace=m}return(i=i?i.displayName||i.name:"")?ee(i):""}function Se(i){switch(i.tag){case 5:return ee(i.type);case 16:return ee("Lazy");case 13:return ee("Suspense");case 19:return ee("SuspenseList");case 0:case 2:case 15:return i=se(i.type,!1),i;case 11:return i=se(i.type.render,!1),i;case 1:return i=se(i.type,!0),i;default:return""}}function me(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case j:return"Fragment";case O:return"Portal";case M:return"Profiler";case k:return"StrictMode";case q:return"Suspense";case V:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case N:return(i.displayName||"Context")+".Consumer";case $:return(i._context.displayName||"Context")+".Provider";case B:var l=i.render;return i=i.displayName,i||(i=l.displayName||l.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case G:return l=i.displayName||null,l!==null?l:me(i.type)||"Memo";case Y:l=i._payload,i=i._init;try{return me(i(l))}catch{}}return null}function we(i){var l=i.type;switch(i.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=l.render,i=i.displayName||i.name||"",l.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return me(l);case 8:return l===k?"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 l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function Oe(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ie(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Fe(i){var l=ie(i)?"checked":"value",m=Object.getOwnPropertyDescriptor(i.constructor.prototype,l),b=""+i[l];if(!i.hasOwnProperty(l)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var F=m.get,L=m.set;return Object.defineProperty(i,l,{configurable:!0,get:function(){return F.call(this)},set:function(W){b=""+W,L.call(this,W)}}),Object.defineProperty(i,l,{enumerable:m.enumerable}),{getValue:function(){return b},setValue:function(W){b=""+W},stopTracking:function(){i._valueTracker=null,delete i[l]}}}}function ke(i){i._valueTracker||(i._valueTracker=Fe(i))}function $e(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var m=l.getValue(),b="";return i&&(b=ie(i)?i.checked?"true":"false":i.value),i=b,i!==m?(l.setValue(i),!0):!1}function Te(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Be(i,l){var m=l.checked;return ne({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:m??i._wrapperState.initialChecked})}function Le(i,l){var m=l.defaultValue==null?"":l.defaultValue,b=l.checked!=null?l.checked:l.defaultChecked;m=Oe(l.value!=null?l.value:m),i._wrapperState={initialChecked:b,initialValue:m,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function dt(i,l){l=l.checked,l!=null&&R(i,"checked",l,!1)}function He(i,l){dt(i,l);var m=Oe(l.value),b=l.type;if(m!=null)b==="number"?(m===0&&i.value===""||i.value!=m)&&(i.value=""+m):i.value!==""+m&&(i.value=""+m);else if(b==="submit"||b==="reset"){i.removeAttribute("value");return}l.hasOwnProperty("value")?ae(i,l.type,m):l.hasOwnProperty("defaultValue")&&ae(i,l.type,Oe(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(i.defaultChecked=!!l.defaultChecked)}function Z(i,l,m){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var b=l.type;if(!(b!=="submit"&&b!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+i._wrapperState.initialValue,m||l===i.value||(i.value=l),i.defaultValue=l}m=i.name,m!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,m!==""&&(i.name=m)}function ae(i,l,m){(l!=="number"||Te(i.ownerDocument)!==i)&&(m==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+m&&(i.defaultValue=""+m))}var fe=Array.isArray;function ve(i,l,m,b){if(i=i.options,l){l={};for(var F=0;F"+l.valueOf().toString()+"",l=ot.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}});function Dt(i,l){if(l){var m=i.firstChild;if(m&&m===i.lastChild&&m.nodeType===3){m.nodeValue=l;return}}i.textContent=l}var Zt={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},Kt=["Webkit","ms","Moz","O"];Object.keys(Zt).forEach(function(i){Kt.forEach(function(l){l=l+i.charAt(0).toUpperCase()+i.substring(1),Zt[l]=Zt[i]})});function nt(i,l,m){return l==null||typeof l=="boolean"||l===""?"":m||typeof l!="number"||l===0||Zt.hasOwnProperty(i)&&Zt[i]?(""+l).trim():l+"px"}function Pt(i,l){i=i.style;for(var m in l)if(l.hasOwnProperty(m)){var b=m.indexOf("--")===0,F=nt(m,l[m],b);m==="float"&&(m="cssFloat"),b?i.setProperty(m,F):i[m]=F}}var Je=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ut(i,l){if(l){if(Je[i]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(r(137,i));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(r(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(r(61))}if(l.style!=null&&typeof l.style!="object")throw Error(r(62))}}function Ht(i,l){if(i.indexOf("-")===-1)return typeof l.is=="string";switch(i){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 Qt=null;function Or(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ur=null,Gr=null,kn=null;function zn(i){if(i=ta(i)){if(typeof Ur!="function")throw Error(r(280));var l=i.stateNode;l&&(l=ip(l),Ur(i.stateNode,i.type,l))}}function Io(i){Gr?kn?kn.push(i):kn=[i]:Gr=i}function ms(){if(Gr){var i=Gr,l=kn;if(kn=Gr=null,zn(i),l)for(i=0;i>>=0,i===0?32:31-(Uc(i)/Af|0)|0}var fu=64,Mf=4194304;function pu(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function vl(i,l){var m=i.pendingLanes;if(m===0)return 0;var b=0,F=i.suspendedLanes,L=i.pingedLanes,W=m&268435455;if(W!==0){var re=W&~F;re!==0?b=pu(re):(L&=W,L!==0&&(b=pu(L)))}else W=m&~F,W!==0?b=pu(W):L!==0&&(b=pu(L));if(b===0)return 0;if(l!==0&&l!==b&&(l&F)===0&&(F=b&-b,L=l&-l,F>=L||F===16&&(L&4194240)!==0))return l;if((b&4)!==0&&(b|=m&16),l=i.entangledLanes,l!==0)for(i=i.entanglements,l&=b;0m;m++)l.push(i);return l}function Wc(i,l,m){i.pendingLanes|=l,l!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,l=31-In(l),i[l]=m}function p0(i,l){var m=i.pendingLanes&~l;i.pendingLanes=l,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=l,i.mutableReadLanes&=l,i.entangledLanes&=l,l=i.entanglements;var b=i.eventTimes;for(i=i.expirationTimes;0=zi),P0=" ",R0=!1;function k0(i,l){switch(i){case"keyup":return Da.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function I0(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var bu=!1;function _u(i,l){switch(i){case"compositionend":return I0(l);case"keypress":return l.which!==32?null:(R0=!0,P0);case"textInput":return i=l.data,i===P0&&R0?null:i;default:return null}}function hS(i,l){if(bu)return i==="compositionend"||!Xc&&k0(i,l)?(i=Nv(),ai=Qc=Kr=null,bu=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1=l)return{node:m,offset:l-i};i=b}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=Gt(m)}}function pn(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?pn(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function jr(){for(var i=window,l=Te();l instanceof i.HTMLIFrameElement;){try{var m=typeof l.contentWindow.location.href=="string"}catch{m=!1}if(m)i=l.contentWindow;else break;l=Te(i.document)}return l}function Yc(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}function _S(i){var l=jr(),m=i.focusedElem,b=i.selectionRange;if(l!==m&&m&&m.ownerDocument&&pn(m.ownerDocument.documentElement,m)){if(b!==null&&Yc(m)){if(l=b.start,i=b.end,i===void 0&&(i=l),"selectionStart"in m)m.selectionStart=l,m.selectionEnd=Math.min(i,m.value.length);else if(i=(l=m.ownerDocument||document)&&l.defaultView||window,i.getSelection){i=i.getSelection();var F=m.textContent.length,L=Math.min(b.start,F);b=b.end===void 0?L:Math.min(b.end,F),!i.extend&&L>b&&(F=b,b=L,L=F),F=mr(m,L);var W=mr(m,b);F&&W&&(i.rangeCount!==1||i.anchorNode!==F.node||i.anchorOffset!==F.offset||i.focusNode!==W.node||i.focusOffset!==W.offset)&&(l=l.createRange(),l.setStart(F.node,F.offset),i.removeAllRanges(),L>b?(i.addRange(l),i.extend(W.node,W.offset)):(l.setEnd(W.node,W.offset),i.addRange(l)))}}for(l=[],i=m;i=i.parentNode;)i.nodeType===1&&l.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m=document.documentMode,qi=null,Jv=null,oi=null,wu=!1;function Jc(i,l,m){var b=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;wu||qi==null||qi!==Te(b)||(b=qi,"selectionStart"in b&&Yc(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),oi&&pt(oi,b)||(oi=b,b=rp(Jv,"onSelect"),0Iu||(i.current=nm[Iu],nm[Iu]=null,Iu--)}function Dr(i,l){Iu++,nm[Iu]=i.current,i.current=l}var Is={},ra=Ca(Is),Oa=Ca(!1),da=Is;function ju(i,l){var m=i.type.contextTypes;if(!m)return Is;var b=i.stateNode;if(b&&b.__reactInternalMemoizedUnmaskedChildContext===l)return b.__reactInternalMemoizedMaskedChildContext;var F={},L;for(L in m)F[L]=l[L];return b&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=l,i.__reactInternalMemoizedMaskedChildContext=F),F}function Pa(i){return i=i.childContextTypes,i!=null}function sp(){Wr(Oa),Wr(ra)}function B0(i,l,m){if(ra.current!==Is)throw Error(r(168));Dr(ra,l),Dr(Oa,m)}function z0(i,l,m){var b=i.stateNode;if(l=l.childContextTypes,typeof b.getChildContext!="function")return m;b=b.getChildContext();for(var F in b)if(!(F in l))throw Error(r(108,we(i)||"Unknown",F));return ne({},m,b)}function so(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Is,da=ra.current,Dr(ra,i),Dr(Oa,Oa.current),!0}function q0(i,l,m){var b=i.stateNode;if(!b)throw Error(r(169));m?(i=z0(i,l,da),b.__reactInternalMemoizedMergedChildContext=i,Wr(Oa),Wr(ra),Dr(ra,i)):Wr(Oa),Dr(Oa,m)}var Wi=null,lp=!1,am=!1;function U0(i){Wi===null?Wi=[i]:Wi.push(i)}function Sl(i){lp=!0,U0(i)}function js(){if(!am&&Wi!==null){am=!0;var i=0,l=br;try{var m=Wi;for(br=1;i>=W,F-=W,li=1<<32-In(l)+F|m<qt?(An=$t,$t=null):An=$t.sibling;var yr=We(Ee,$t,Pe[qt],Ze);if(yr===null){$t===null&&($t=An);break}i&&$t&&yr.alternate===null&&l(Ee,$t),pe=L(yr,pe,qt),Lt===null?Tt=yr:Lt.sibling=yr,Lt=yr,$t=An}if(qt===Pe.length)return m(Ee,$t),Hr&&Cl(Ee,qt),Tt;if($t===null){for(;qtqt?(An=$t,$t=null):An=$t.sibling;var Us=We(Ee,$t,yr.value,Ze);if(Us===null){$t===null&&($t=An);break}i&&$t&&Us.alternate===null&&l(Ee,$t),pe=L(Us,pe,qt),Lt===null?Tt=Us:Lt.sibling=Us,Lt=Us,$t=An}if(yr.done)return m(Ee,$t),Hr&&Cl(Ee,qt),Tt;if($t===null){for(;!yr.done;qt++,yr=Pe.next())yr=Ye(Ee,yr.value,Ze),yr!==null&&(pe=L(yr,pe,qt),Lt===null?Tt=yr:Lt.sibling=yr,Lt=yr);return Hr&&Cl(Ee,qt),Tt}for($t=b(Ee,$t);!yr.done;qt++,yr=Pe.next())yr=ht($t,Ee,qt,yr.value,Ze),yr!==null&&(i&&yr.alternate!==null&&$t.delete(yr.key===null?qt:yr.key),pe=L(yr,pe,qt),Lt===null?Tt=yr:Lt.sibling=yr,Lt=yr);return i&&$t.forEach(function(qS){return l(Ee,qS)}),Hr&&Cl(Ee,qt),Tt}function un(Ee,pe,Pe,Ze){if(typeof Pe=="object"&&Pe!==null&&Pe.type===j&&Pe.key===null&&(Pe=Pe.props.children),typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case C:e:{for(var Tt=Pe.key,Lt=pe;Lt!==null;){if(Lt.key===Tt){if(Tt=Pe.type,Tt===j){if(Lt.tag===7){m(Ee,Lt.sibling),pe=F(Lt,Pe.props.children),pe.return=Ee,Ee=pe;break e}}else if(Lt.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===Y&&G0(Tt)===Lt.type){m(Ee,Lt.sibling),pe=F(Lt,Pe.props),pe.ref=ud(Ee,Lt,Pe),pe.return=Ee,Ee=pe;break e}m(Ee,Lt);break}else l(Ee,Lt);Lt=Lt.sibling}Pe.type===j?(pe=Dl(Pe.props.children,Ee.mode,Ze,Pe.key),pe.return=Ee,Ee=pe):(Ze=Hp(Pe.type,Pe.key,Pe.props,null,Ee.mode,Ze),Ze.ref=ud(Ee,pe,Pe),Ze.return=Ee,Ee=Ze)}return W(Ee);case O:e:{for(Lt=Pe.key;pe!==null;){if(pe.key===Lt)if(pe.tag===4&&pe.stateNode.containerInfo===Pe.containerInfo&&pe.stateNode.implementation===Pe.implementation){m(Ee,pe.sibling),pe=F(pe,Pe.children||[]),pe.return=Ee,Ee=pe;break e}else{m(Ee,pe);break}else l(Ee,pe);pe=pe.sibling}pe=Gm(Pe,Ee.mode,Ze),pe.return=Ee,Ee=pe}return W(Ee);case Y:return Lt=Pe._init,un(Ee,pe,Lt(Pe._payload),Ze)}if(fe(Pe))return Ct(Ee,pe,Pe,Ze);if(te(Pe))return Rt(Ee,pe,Pe,Ze);Pl(Ee,Pe)}return typeof Pe=="string"&&Pe!==""||typeof Pe=="number"?(Pe=""+Pe,pe!==null&&pe.tag===6?(m(Ee,pe.sibling),pe=F(pe,Pe),pe.return=Ee,Ee=pe):(m(Ee,pe),pe=Hm(Pe,Ee.mode,Ze),pe.return=Ee,Ee=pe),W(Ee)):m(Ee,pe)}return un}var an=im(!0),fp=im(!1),cd=Ca(null),qa=null,Ts=null,Au=null;function Gi(){Au=Ts=qa=null}function pp(i){var l=cd.current;Wr(cd),i._currentValue=l}function qn(i,l,m){for(;i!==null;){var b=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,b!==null&&(b.childLanes|=l)):b!==null&&(b.childLanes&l)!==l&&(b.childLanes|=l),i===m)break;i=i.return}}function As(i,l){qa=i,Au=Ts=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&l)!==0&&(pa=!0),i.firstContext=null)}function co(i){var l=i._currentValue;if(Au!==i)if(i={context:i,memoizedValue:l,next:null},Ts===null){if(qa===null)throw Error(r(308));Ts=i,qa.dependencies={lanes:0,firstContext:i}}else Ts=Ts.next=i;return l}var Rl=null;function sm(i){Rl===null?Rl=[i]:Rl.push(i)}function hp(i,l,m,b){var F=l.interleaved;return F===null?(m.next=m,sm(l)):(m.next=F.next,F.next=m),l.interleaved=m,Ki(i,b)}function Ki(i,l){i.lanes|=l;var m=i.alternate;for(m!==null&&(m.lanes|=l),m=i,i=i.return;i!==null;)i.childLanes|=l,m=i.alternate,m!==null&&(m.childLanes|=l),m=i,i=i.return;return m.tag===3?m.stateNode:null}var fo=!1;function vp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function K0(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Qi(i,l){return{eventTime:i,lane:l,tag:0,payload:null,callback:null,next:null}}function po(i,l,m){var b=i.updateQueue;if(b===null)return null;if(b=b.shared,(dr&2)!==0){var F=b.pending;return F===null?l.next=l:(l.next=F.next,F.next=l),b.pending=l,Ki(i,m)}return F=b.interleaved,F===null?(l.next=l,sm(b)):(l.next=F.next,F.next=l),b.interleaved=l,Ki(i,m)}function mp(i,l,m){if(l=l.updateQueue,l!==null&&(l=l.shared,(m&4194240)!==0)){var b=l.lanes;b&=i.pendingLanes,m|=b,l.lanes=m,Hc(i,m)}}function Q0(i,l){var m=i.updateQueue,b=i.alternate;if(b!==null&&(b=b.updateQueue,m===b)){var F=null,L=null;if(m=m.firstBaseUpdate,m!==null){do{var W={eventTime:m.eventTime,lane:m.lane,tag:m.tag,payload:m.payload,callback:m.callback,next:null};L===null?F=L=W:L=L.next=W,m=m.next}while(m!==null);L===null?F=L=l:L=L.next=l}else F=L=l;m={baseState:b.baseState,firstBaseUpdate:F,lastBaseUpdate:L,shared:b.shared,effects:b.effects},i.updateQueue=m;return}i=m.lastBaseUpdate,i===null?m.firstBaseUpdate=l:i.next=l,m.lastBaseUpdate=l}function Mu(i,l,m,b){var F=i.updateQueue;fo=!1;var L=F.firstBaseUpdate,W=F.lastBaseUpdate,re=F.shared.pending;if(re!==null){F.shared.pending=null;var ce=re,Ae=ce.next;ce.next=null,W===null?L=Ae:W.next=Ae,W=ce;var Qe=i.alternate;Qe!==null&&(Qe=Qe.updateQueue,re=Qe.lastBaseUpdate,re!==W&&(re===null?Qe.firstBaseUpdate=Ae:re.next=Ae,Qe.lastBaseUpdate=ce))}if(L!==null){var Ye=F.baseState;W=0,Qe=Ae=ce=null,re=L;do{var We=re.lane,ht=re.eventTime;if((b&We)===We){Qe!==null&&(Qe=Qe.next={eventTime:ht,lane:0,tag:re.tag,payload:re.payload,callback:re.callback,next:null});e:{var Ct=i,Rt=re;switch(We=l,ht=m,Rt.tag){case 1:if(Ct=Rt.payload,typeof Ct=="function"){Ye=Ct.call(ht,Ye,We);break e}Ye=Ct;break e;case 3:Ct.flags=Ct.flags&-65537|128;case 0:if(Ct=Rt.payload,We=typeof Ct=="function"?Ct.call(ht,Ye,We):Ct,We==null)break e;Ye=ne({},Ye,We);break e;case 2:fo=!0}}re.callback!==null&&re.lane!==0&&(i.flags|=64,We=F.effects,We===null?F.effects=[re]:We.push(re))}else ht={eventTime:ht,lane:We,tag:re.tag,payload:re.payload,callback:re.callback,next:null},Qe===null?(Ae=Qe=ht,ce=Ye):Qe=Qe.next=ht,W|=We;if(re=re.next,re===null){if(re=F.shared.pending,re===null)break;We=re,re=We.next,We.next=null,F.lastBaseUpdate=We,F.shared.pending=null}}while(!0);if(Qe===null&&(ce=Ye),F.baseState=ce,F.firstBaseUpdate=Ae,F.lastBaseUpdate=Qe,l=F.shared.interleaved,l!==null){F=l;do W|=F.lane,F=F.next;while(F!==l)}else L===null&&(F.shared.lanes=0);Ds|=W,i.lanes=W,i.memoizedState=Ye}}function lm(i,l,m){if(i=l.effects,l.effects=null,i!==null)for(l=0;lm?m:4,i(!0);var b=fm.transition;fm.transition={};try{i(!1),l()}finally{br=m,fm.transition=b}}function _m(){return ho().memoizedState}function wS(i,l,m){var b=zs(i);if(m={lane:b,action:m,hasEagerState:!1,eagerState:null,next:null},xm(i))fa(l,m);else if(m=hp(i,l,m,b),m!==null){var F=ma();Bo(m,i,b,F),Fo(m,l,b)}}function t_(i,l,m){var b=zs(i),F={lane:b,action:m,hasEagerState:!1,eagerState:null,next:null};if(xm(i))fa(l,F);else{var L=i.alternate;if(i.lanes===0&&(L===null||L.lanes===0)&&(L=l.lastRenderedReducer,L!==null))try{var W=l.lastRenderedState,re=L(W,m);if(F.hasEagerState=!0,F.eagerState=re,Ie(re,W)){var ce=l.interleaved;ce===null?(F.next=F,sm(l)):(F.next=ce.next,ce.next=F),l.interleaved=F;return}}catch{}finally{}m=hp(i,l,F,b),m!==null&&(F=ma(),Bo(m,i,b,F),Fo(m,l,b))}}function xm(i){var l=i.alternate;return i===en||l!==null&&l===en}function fa(i,l){hd=$u=!0;var m=i.pending;m===null?l.next=l:(l.next=m.next,m.next=l),i.pending=l}function Fo(i,l,m){if((m&4194240)!==0){var b=l.lanes;b&=i.pendingLanes,m|=b,l.lanes=m,Hc(i,m)}}var Ep={readContext:co,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useInsertionEffect:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useSyncExternalStore:oa,useId:oa,unstable_isNewReconciler:!1},SS={readContext:co,useCallback:function(i,l){return hi().memoizedState=[i,l===void 0?null:l],i},useContext:co,useEffect:Sp,useImperativeHandle:function(i,l,m){return m=m!=null?m.concat([i]):null,md(4194308,4,ym.bind(null,l,i),m)},useLayoutEffect:function(i,l){return md(4194308,4,i,l)},useInsertionEffect:function(i,l){return md(4,2,i,l)},useMemo:function(i,l){var m=hi();return l=l===void 0?null:l,i=i(),m.memoizedState=[i,l],i},useReducer:function(i,l,m){var b=hi();return l=m!==void 0?m(l):l,b.memoizedState=b.baseState=l,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:l},b.queue=i,i=i.dispatch=wS.bind(null,en,i),[b.memoizedState,i]},useRef:function(i){var l=hi();return i={current:i},l.memoizedState=i},useState:vd,useDebugValue:gd,useDeferredValue:function(i){return hi().memoizedState=i},useTransition:function(){var i=vd(!1),l=i[0];return i=e_.bind(null,i[1]),hi().memoizedState=i,[l,i]},useMutableSource:function(){},useSyncExternalStore:function(i,l,m){var b=en,F=hi();if(Hr){if(m===void 0)throw Error(r(407));m=m()}else{if(m=l(),Tn===null)throw Error(r(349));(Fs&30)!==0||mm(b,l,m)}F.memoizedState=m;var L={value:m,getSnapshot:l};return F.queue=L,Sp(Yi.bind(null,b,L,i),[i]),b.flags|=2048,Du(9,ka.bind(null,b,L,m,l),void 0,null),m},useId:function(){var i=hi(),l=Tn.identifierPrefix;if(Hr){var m=ui,b=li;m=(b&~(1<<32-In(b)-1)).toString(32)+m,l=":"+l+"R"+m,m=Il++,0<\/script>",i=i.removeChild(i.firstChild)):typeof b.is=="string"?i=W.createElement(m,{is:b.is}):(i=W.createElement(m),m==="select"&&(W=i,b.multiple?W.multiple=!0:b.size&&(W.size=b.size))):i=W.createElementNS(i,m),i[ii]=l,i[ks]=b,Vn(i,l,!1,!1),l.stateNode=i;e:{switch(W=Ht(m,b),m){case"dialog":Vr("cancel",i),Vr("close",i),F=b;break;case"iframe":case"object":case"embed":Vr("load",i),F=b;break;case"video":case"audio":for(F=0;FMl&&(l.flags|=128,b=!0,Ed(L,!1),l.lanes=4194304)}else{if(!b)if(i=kl(W),i!==null){if(l.flags|=128,b=!0,m=i.updateQueue,m!==null&&(l.updateQueue=m,l.flags|=4),Ed(L,!0),L.tail===null&&L.tailMode==="hidden"&&!W.alternate&&!Hr)return Wn(l),null}else 2*Ir()-L.renderingStartTime>Ml&&m!==1073741824&&(l.flags|=128,b=!0,Ed(L,!1),l.lanes=4194304);L.isBackwards?(W.sibling=l.child,l.child=W):(m=L.last,m!==null?m.sibling=W:l.child=W,L.last=W)}return L.tail!==null?(l=L.tail,L.rendering=l,L.tail=l.sibling,L.renderingStartTime=Ir(),l.sibling=null,m=Qr.current,Dr(Qr,b?m&1|2:m&1),l):(Wn(l),null);case 22:case 23:return Vm(),b=l.memoizedState!==null,i!==null&&i.memoizedState!==null!==b&&(l.flags|=8192),b&&(l.mode&1)!==0?(Va&1073741824)!==0&&(Wn(l),l.subtreeFlags&6&&(l.flags|=8192)):Wn(l),null;case 24:return null;case 25:return null}throw Error(r(156,l.tag))}function CS(i,l){switch(Ol(l),l.tag){case 1:return Pa(l.type)&&sp(),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return Ms(),Wr(Oa),Wr(ra),yp(),i=l.flags,(i&65536)!==0&&(i&128)===0?(l.flags=i&-65537|128,l):null;case 5:return gp(l),null;case 13:if(Wr(Qr),i=l.memoizedState,i!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(r(340));di()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return Wr(Qr),null;case 4:return Ms(),null;case 10:return pp(l.type._context),null;case 22:case 23:return Vm(),null;case 24:return null;default:return null}}var Ap=!1,Xr=!1,ha=typeof WeakSet=="function"?WeakSet:Set,bt=null;function Vu(i,l){var m=i.ref;if(m!==null)if(typeof m=="function")try{m(null)}catch(b){tn(i,l,b)}else m.current=null}function Cd(i,l,m){try{m()}catch(b){tn(i,l,b)}}var l_=!1;function OS(i,l){if(ad=Nf,i=jr(),Yc(i)){if("selectionStart"in i)var m={start:i.selectionStart,end:i.selectionEnd};else e:{m=(m=i.ownerDocument)&&m.defaultView||window;var b=m.getSelection&&m.getSelection();if(b&&b.rangeCount!==0){m=b.anchorNode;var F=b.anchorOffset,L=b.focusNode;b=b.focusOffset;try{m.nodeType,L.nodeType}catch{m=null;break e}var W=0,re=-1,ce=-1,Ae=0,Qe=0,Ye=i,We=null;t:for(;;){for(var ht;Ye!==m||F!==0&&Ye.nodeType!==3||(re=W+F),Ye!==L||b!==0&&Ye.nodeType!==3||(ce=W+b),Ye.nodeType===3&&(W+=Ye.nodeValue.length),(ht=Ye.firstChild)!==null;)We=Ye,Ye=ht;for(;;){if(Ye===i)break t;if(We===m&&++Ae===F&&(re=W),We===L&&++Qe===b&&(ce=W),(ht=Ye.nextSibling)!==null)break;Ye=We,We=Ye.parentNode}Ye=ht}m=re===-1||ce===-1?null:{start:re,end:ce}}else m=null}m=m||{start:0,end:0}}else m=null;for(wl={focusedElem:i,selectionRange:m},Nf=!1,bt=l;bt!==null;)if(l=bt,i=l.child,(l.subtreeFlags&1028)!==0&&i!==null)i.return=l,bt=i;else for(;bt!==null;){l=bt;try{var Ct=l.alternate;if((l.flags&1024)!==0)switch(l.tag){case 0:case 11:case 15:break;case 1:if(Ct!==null){var Rt=Ct.memoizedProps,un=Ct.memoizedState,Ee=l.stateNode,pe=Ee.getSnapshotBeforeUpdate(l.elementType===l.type?Rt:vo(l.type,Rt),un);Ee.__reactInternalSnapshotBeforeUpdate=pe}break;case 3:var Pe=l.stateNode.containerInfo;Pe.nodeType===1?Pe.textContent="":Pe.nodeType===9&&Pe.documentElement&&Pe.removeChild(Pe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ze){tn(l,l.return,Ze)}if(i=l.sibling,i!==null){i.return=l.return,bt=i;break}bt=l.return}return Ct=l_,l_=!1,Ct}function es(i,l,m){var b=l.updateQueue;if(b=b!==null?b.lastEffect:null,b!==null){var F=b=b.next;do{if((F.tag&i)===i){var L=F.destroy;F.destroy=void 0,L!==void 0&&Cd(l,m,L)}F=F.next}while(F!==b)}}function Od(i,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var m=l=l.next;do{if((m.tag&i)===i){var b=m.create;m.destroy=b()}m=m.next}while(m!==l)}}function Mp(i){var l=i.ref;if(l!==null){var m=i.stateNode;switch(i.tag){case 5:i=m;break;default:i=m}typeof l=="function"?l(i):l.current=i}}function u_(i){var l=i.alternate;l!==null&&(i.alternate=null,u_(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode,l!==null&&(delete l[ii],delete l[ks],delete l[op],delete l[Q],delete l[ku])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function c_(i){return i.tag===5||i.tag===3||i.tag===4}function d_(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||c_(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Am(i,l,m){var b=i.tag;if(b===5||b===6)i=i.stateNode,l?m.nodeType===8?m.parentNode.insertBefore(i,l):m.insertBefore(i,l):(m.nodeType===8?(l=m.parentNode,l.insertBefore(i,m)):(l=m,l.appendChild(i)),m=m._reactRootContainer,m!=null||l.onclick!==null||(l.onclick=np));else if(b!==4&&(i=i.child,i!==null))for(Am(i,l,m),i=i.sibling;i!==null;)Am(i,l,m),i=i.sibling}function Fp(i,l,m){var b=i.tag;if(b===5||b===6)i=i.stateNode,l?m.insertBefore(i,l):m.appendChild(i);else if(b!==4&&(i=i.child,i!==null))for(Fp(i,l,m),i=i.sibling;i!==null;)Fp(i,l,m),i=i.sibling}var jn=null,Lo=!1;function yi(i,l,m){for(m=m.child;m!==null;)Mm(i,l,m),m=m.sibling}function Mm(i,l,m){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(To,m)}catch{}switch(m.tag){case 5:Xr||Vu(m,l);case 6:var b=jn,F=Lo;jn=null,yi(i,l,m),jn=b,Lo=F,jn!==null&&(Lo?(i=jn,m=m.stateNode,i.nodeType===8?i.parentNode.removeChild(m):i.removeChild(m)):jn.removeChild(m.stateNode));break;case 18:jn!==null&&(Lo?(i=jn,m=m.stateNode,i.nodeType===8?rm(i.parentNode,m):i.nodeType===1&&rm(i,m),Cr(i)):rm(jn,m.stateNode));break;case 4:b=jn,F=Lo,jn=m.stateNode.containerInfo,Lo=!0,yi(i,l,m),jn=b,Lo=F;break;case 0:case 11:case 14:case 15:if(!Xr&&(b=m.updateQueue,b!==null&&(b=b.lastEffect,b!==null))){F=b=b.next;do{var L=F,W=L.destroy;L=L.tag,W!==void 0&&((L&2)!==0||(L&4)!==0)&&Cd(m,l,W),F=F.next}while(F!==b)}yi(i,l,m);break;case 1:if(!Xr&&(Vu(m,l),b=m.stateNode,typeof b.componentWillUnmount=="function"))try{b.props=m.memoizedProps,b.state=m.memoizedState,b.componentWillUnmount()}catch(re){tn(m,l,re)}yi(i,l,m);break;case 21:yi(i,l,m);break;case 22:m.mode&1?(Xr=(b=Xr)||m.memoizedState!==null,yi(i,l,m),Xr=b):yi(i,l,m);break;default:yi(i,l,m)}}function Wu(i){var l=i.updateQueue;if(l!==null){i.updateQueue=null;var m=i.stateNode;m===null&&(m=i.stateNode=new ha),l.forEach(function(b){var F=AS.bind(null,i,b);m.has(b)||(m.add(b),b.then(F,F))})}}function Ua(i,l){var m=l.deletions;if(m!==null)for(var b=0;bF&&(F=W),b&=~L}if(b=F,b=Ir()-b,b=(120>b?120:480>b?480:1080>b?1080:1920>b?1920:3e3>b?3e3:4320>b?4320:1960*p_(b/1960))-b,10i?16:i,Bs===null)var b=!1;else{if(i=Bs,Bs=null,va=0,(dr&6)!==0)throw Error(r(331));var F=dr;for(dr|=4,bt=i.current;bt!==null;){var L=bt,W=L.child;if((bt.flags&16)!==0){var re=L.deletions;if(re!==null){for(var ce=0;ceIr()-Dm?$l(i,0):Dp|=m),ja(i,l)}function b_(i,l){l===0&&((i.mode&1)===0?l=1:(l=Mf,Mf<<=1,(Mf&130023424)===0&&(Mf=4194304)));var m=ma();i=Ki(i,l),i!==null&&(Wc(i,l,m),ja(i,m))}function TS(i){var l=i.memoizedState,m=0;l!==null&&(m=l.retryLane),b_(i,m)}function AS(i,l){var m=0;switch(i.tag){case 13:var b=i.stateNode,F=i.memoizedState;F!==null&&(m=F.retryLane);break;case 19:b=i.stateNode;break;default:throw Error(r(314))}b!==null&&b.delete(l),b_(i,m)}var __;__=function(i,l,m){if(i!==null)if(i.memoizedProps!==l.pendingProps||Oa.current)pa=!0;else{if((i.lanes&m)===0&&(l.flags&128)===0)return pa=!1,i_(i,l,m);pa=(i.flags&131072)!==0}else pa=!1,Hr&&(l.flags&1048576)!==0&&V0(l,cp,l.index);switch(l.lanes=0,l.tag){case 2:var b=l.type;Tp(i,l),i=l.pendingProps;var F=ju(l,ra.current);As(l,m),F=jl(null,l,b,i,F,m);var L=bp();return l.flags|=1,typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,Pa(b)?(L=!0,so(l)):L=!1,l.memoizedState=F.state!==null&&F.state!==void 0?F.state:null,vp(l),F.updater=Pp,l.stateNode=F,F._reactInternals=l,Sm(l,b,i,m),l=Im(null,l,b,!0,L,m)):(l.tag=0,Hr&&L&&sd(l),Un(null,l,F,m),l=l.child),l;case 16:b=l.elementType;e:{switch(Tp(i,l),i=l.pendingProps,F=b._init,b=F(b._payload),l.type=b,F=l.tag=FS(b),i=vo(b,i),F){case 0:l=Rm(null,l,b,i,m);break e;case 1:l=km(null,l,b,i,m);break e;case 11:l=a_(null,l,b,i,m);break e;case 14:l=Cm(null,l,b,vo(b.type,i),m);break e}throw Error(r(306,b,""))}return l;case 0:return b=l.type,F=l.pendingProps,F=l.elementType===b?F:vo(b,F),Rm(i,l,b,F,m);case 1:return b=l.type,F=l.pendingProps,F=l.elementType===b?F:vo(b,F),km(i,l,b,F,m);case 3:e:{if(o_(l),i===null)throw Error(r(387));b=l.pendingProps,L=l.memoizedState,F=L.element,K0(i,l),Mu(l,b,null,m);var W=l.memoizedState;if(b=W.element,L.isDehydrated)if(L={element:b,isDehydrated:!1,cache:W.cache,pendingSuspenseBoundaries:W.pendingSuspenseBoundaries,transitions:W.transitions},l.updateQueue.baseState=L,l.memoizedState=L,l.flags&256){F=Al(Error(r(423)),l),l=gi(i,l,b,m,F);break e}else if(b!==F){F=Al(Error(r(424)),l),l=gi(i,l,b,m,F);break e}else for(za=Rs(l.stateNode.containerInfo.firstChild),aa=l,Hr=!0,Mo=null,m=fp(l,null,b,m),l.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling;else{if(di(),b===F){l=$o(i,l,m);break e}Un(i,l,b,m)}l=l.child}return l;case 5:return cm(l),i===null&&Ra(l),b=l.type,F=l.pendingProps,L=i!==null?i.memoizedProps:null,W=F.children,od(b,F)?W=null:L!==null&&od(b,L)&&(l.flags|=32),Pm(i,l),Un(i,l,W,m),l.child;case 6:return i===null&&Ra(l),null;case 13:return jp(i,l,m);case 4:return um(l,l.stateNode.containerInfo),b=l.pendingProps,i===null?l.child=an(l,null,b,m):Un(i,l,b,m),l.child;case 11:return b=l.type,F=l.pendingProps,F=l.elementType===b?F:vo(b,F),a_(i,l,b,F,m);case 7:return Un(i,l,l.pendingProps,m),l.child;case 8:return Un(i,l,l.pendingProps.children,m),l.child;case 12:return Un(i,l,l.pendingProps.children,m),l.child;case 10:e:{if(b=l.type._context,F=l.pendingProps,L=l.memoizedProps,W=F.value,Dr(cd,b._currentValue),b._currentValue=W,L!==null)if(Ie(L.value,W)){if(L.children===F.children&&!Oa.current){l=$o(i,l,m);break e}}else for(L=l.child,L!==null&&(L.return=l);L!==null;){var re=L.dependencies;if(re!==null){W=L.child;for(var ce=re.firstContext;ce!==null;){if(ce.context===b){if(L.tag===1){ce=Qi(-1,m&-m),ce.tag=2;var Ae=L.updateQueue;if(Ae!==null){Ae=Ae.shared;var Qe=Ae.pending;Qe===null?ce.next=ce:(ce.next=Qe.next,Qe.next=ce),Ae.pending=ce}}L.lanes|=m,ce=L.alternate,ce!==null&&(ce.lanes|=m),qn(L.return,m,l),re.lanes|=m;break}ce=ce.next}}else if(L.tag===10)W=L.type===l.type?null:L.child;else if(L.tag===18){if(W=L.return,W===null)throw Error(r(341));W.lanes|=m,re=W.alternate,re!==null&&(re.lanes|=m),qn(W,m,l),W=L.sibling}else W=L.child;if(W!==null)W.return=L;else for(W=L;W!==null;){if(W===l){W=null;break}if(L=W.sibling,L!==null){L.return=W.return,W=L;break}W=W.return}L=W}Un(i,l,F.children,m),l=l.child}return l;case 9:return F=l.type,b=l.pendingProps.children,As(l,m),F=co(F),b=b(F),l.flags|=1,Un(i,l,b,m),l.child;case 14:return b=l.type,F=vo(b,l.pendingProps),F=vo(b.type,F),Cm(i,l,b,F,m);case 15:return mi(i,l,l.type,l.pendingProps,m);case 17:return b=l.type,F=l.pendingProps,F=l.elementType===b?F:vo(b,F),Tp(i,l),l.tag=1,Pa(b)?(i=!0,so(l)):i=!1,As(l,m),Tl(l,b,F),Sm(l,b,F,m),Im(null,l,b,!0,i,m);case 19:return $s(i,l,m);case 22:return Om(i,l,m)}throw Error(r(156,l.tag))};function x_(i,l){return Zr(i,l)}function MS(i,l,m,b){this.tag=i,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function go(i,l,m,b){return new MS(i,l,m,b)}function Wp(i){return i=i.prototype,!(!i||!i.isReactComponent)}function FS(i){if(typeof i=="function")return Wp(i)?1:0;if(i!=null){if(i=i.$$typeof,i===B)return 11;if(i===G)return 14}return 2}function zo(i,l){var m=i.alternate;return m===null?(m=go(i.tag,l,i.key,i.mode),m.elementType=i.elementType,m.type=i.type,m.stateNode=i.stateNode,m.alternate=i,i.alternate=m):(m.pendingProps=l,m.type=i.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=i.flags&14680064,m.childLanes=i.childLanes,m.lanes=i.lanes,m.child=i.child,m.memoizedProps=i.memoizedProps,m.memoizedState=i.memoizedState,m.updateQueue=i.updateQueue,l=i.dependencies,m.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},m.sibling=i.sibling,m.index=i.index,m.ref=i.ref,m}function Hp(i,l,m,b,F,L){var W=2;if(b=i,typeof i=="function")Wp(i)&&(W=1);else if(typeof i=="string")W=5;else e:switch(i){case j:return Dl(m.children,F,L,l);case k:W=8,F|=8;break;case M:return i=go(12,m,l,F|2),i.elementType=M,i.lanes=L,i;case q:return i=go(13,m,l,F),i.elementType=q,i.lanes=L,i;case V:return i=go(19,m,l,F),i.elementType=V,i.lanes=L,i;case X:return Gp(m,F,L,l);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case $:W=10;break e;case N:W=9;break e;case B:W=11;break e;case G:W=14;break e;case Y:W=16,b=null;break e}throw Error(r(130,i==null?i:typeof i,""))}return l=go(W,m,l,F),l.elementType=i,l.type=b,l.lanes=L,l}function Dl(i,l,m,b){return i=go(7,i,b,l),i.lanes=m,i}function Gp(i,l,m,b){return i=go(22,i,b,l),i.elementType=X,i.lanes=m,i.stateNode={isHidden:!1},i}function Hm(i,l,m){return i=go(6,i,null,l),i.lanes=m,i}function Gm(i,l,m){return l=go(4,i.children!==null?i.children:[],i.key,l),l.lanes=m,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}function $S(i,l,m,b,F){this.tag=l,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vc(0),this.expirationTimes=Vc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vc(0),this.identifierPrefix=b,this.onRecoverableError=F,this.mutableSourceEagerHydrationData=null}function Km(i,l,m,b,F,L,W,re,ce){return i=new $S(i,l,m,re,ce),l===1?(l=1,L===!0&&(l|=8)):l=0,L=go(3,null,null,l),i.current=L,L.stateNode=i,L.memoizedState={element:b,isDehydrated:m,cache:null,transitions:null,pendingSuspenseBoundaries:null},vp(L),i}function LS(i,l,m){var b=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),nE.exports=BW(),nE.exports}var vA;function zW(){if(vA)return j_;vA=1;var e=e5();return j_.createRoot=e.createRoot,j_.hydrateRoot=e.hydrateRoot,j_}var qW=zW(),Ty={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 - */var UW=Ty.exports,mA;function VW(){return mA||(mA=1,function(e,t){(function(){var r,n="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",d="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",u=500,h="__lodash_placeholder__",g=1,y=2,_=4,S=1,E=2,x=1,T=2,I=4,R=8,P=16,C=32,O=64,j=128,k=256,M=512,$=30,N="...",B=800,q=16,V=1,G=2,Y=3,X=1/0,H=9007199254740991,te=17976931348623157e292,ne=NaN,K=4294967295,ee=K-1,Ce=K>>>1,se=[["ary",j],["bind",x],["bindKey",T],["curry",R],["curryRight",P],["flip",M],["partial",C],["partialRight",O],["rearg",k]],Se="[object Arguments]",me="[object Array]",we="[object AsyncFunction]",Oe="[object Boolean]",ie="[object Date]",Fe="[object DOMException]",ke="[object Error]",$e="[object Function]",Te="[object GeneratorFunction]",Be="[object Map]",Le="[object Number]",dt="[object Null]",He="[object Object]",Z="[object Promise]",ae="[object Proxy]",fe="[object RegExp]",ve="[object Set]",be="[object String]",_e="[object Symbol]",De="[object Undefined]",Ge="[object WeakMap]",Mt="[object WeakSet]",et="[object ArrayBuffer]",ot="[object DataView]",it="[object Float32Array]",Dt="[object Float64Array]",Zt="[object Int8Array]",Kt="[object Int16Array]",nt="[object Int32Array]",Pt="[object Uint8Array]",Je="[object Uint8ClampedArray]",ut="[object Uint16Array]",Ht="[object Uint32Array]",Qt=/\b__p \+= '';/g,Or=/\b(__p \+=) '' \+/g,Ur=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gr=/&(?:amp|lt|gt|quot|#39);/g,kn=/[&<>"']/g,zn=RegExp(Gr.source),Io=RegExp(kn.source),ms=/<%-([\s\S]+?)%>/g,Bi=/<%([\s\S]+?)%>/g,ri=/<%=([\s\S]+?)%>/g,fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gs=/^\w*$/,le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ye=/[\\^$.*+?()[\]{}|]/g,je=RegExp(ye.source),Ne=/^\s+/,lt=/\s/,kt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ft=/\{\n\/\* \[wrapped with (.+)\] \*/,ft=/,? & /,_t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mt=/[()=,{}\[\]\/\s]/,jt=/\\(\\)?/g,Wt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,er=/\w*$/,rn=/^[-+]0x[0-9a-f]+$/i,Er=/^0b[01]+$/i,sr=/^\[object .+?Constructor\]$/,It=/^0o[0-7]+$/i,Zr=/^(?:0|[1-9]\d*)$/,ys=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sa=/($^)/,ao=/['\n\r\u2028\u2029\\]/g,Ir="\\ud800-\\udfff",pl="\\u0300-\\u036f",jo="\\ufe20-\\ufe2f",hl="\\u20d0-\\u20ff",ni=pl+jo+hl,ur="\\u2700-\\u27bf",$r="a-z\\xdf-\\xf6\\xf8-\\xff",To="\\xac\\xb1\\xd7\\xf7",Jn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nn="\\u2000-\\u206f",In=" \\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",Uc="A-Z\\xc0-\\xd6\\xd8-\\xde",Af="\\ufe0e\\ufe0f",d0=To+Jn+nn+In,fu="['’]",Mf="["+Ir+"]",pu="["+d0+"]",vl="["+ni+"]",f0="\\d+",nS="["+ur+"]",Ff="["+$r+"]",Mv="[^"+Ir+d0+f0+ur+$r+Uc+"]",Vc="\\ud83c[\\udffb-\\udfff]",Wc="(?:"+vl+"|"+Vc+")",p0="[^"+Ir+"]",Hc="(?:\\ud83c[\\udde6-\\uddff]){2}",br="[\\ud800-\\udbff][\\udc00-\\udfff]",ml="["+Uc+"]",Fv="\\u200d",$f="(?:"+Ff+"|"+Mv+")",h0="(?:"+ml+"|"+Mv+")",$v="(?:"+fu+"(?:d|ll|m|re|s|t|ve))?",Lv="(?:"+fu+"(?:D|LL|M|RE|S|T|VE))?",Lf=Wc+"?",Gc="["+Af+"]?",bs="(?:"+Fv+"(?:"+[p0,Hc,br].join("|")+")"+Gc+Lf+")*",_s="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hu=Gc+Lf+bs,Kc="(?:"+[nS,Hc,br].join("|")+")"+hu,ws="(?:"+[p0+vl+"?",vl,Hc,br,Mf].join("|")+")",aS=RegExp(fu,"g"),v0=RegExp(vl,"g"),gl=RegExp(Vc+"(?="+Vc+")|"+ws+hu,"g"),oS=RegExp([ml+"?"+Ff+"+"+$v+"(?="+[pu,ml,"$"].join("|")+")",h0+"+"+Lv+"(?="+[pu,ml+$f,"$"].join("|")+")",ml+"?"+$f+"+"+$v,ml+"+"+Lv,xs,_s,f0,Kc].join("|"),"g"),m0=RegExp("["+Fv+Ir+ni+Af+"]"),Df=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,g0=["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"],iS=-1,Pr={};Pr[it]=Pr[Dt]=Pr[Zt]=Pr[Kt]=Pr[nt]=Pr[Pt]=Pr[Je]=Pr[ut]=Pr[Ht]=!0,Pr[Se]=Pr[me]=Pr[et]=Pr[Oe]=Pr[ot]=Pr[ie]=Pr[ke]=Pr[$e]=Pr[Be]=Pr[Le]=Pr[He]=Pr[fe]=Pr[ve]=Pr[be]=Pr[Ge]=!1;var Cr={};Cr[Se]=Cr[me]=Cr[et]=Cr[ot]=Cr[Oe]=Cr[ie]=Cr[it]=Cr[Dt]=Cr[Zt]=Cr[Kt]=Cr[nt]=Cr[Be]=Cr[Le]=Cr[He]=Cr[fe]=Cr[ve]=Cr[be]=Cr[_e]=Cr[Pt]=Cr[Je]=Cr[ut]=Cr[Ht]=!0,Cr[ke]=Cr[$e]=Cr[Ge]=!1;var vu={À:"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"},Nf={"&":"&","<":"<",">":">",'"':""","'":"'"},sS={"&":"&","<":"<",">":">",""":'"',"'":"'"},lS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dv=parseFloat,Bf=parseInt,zf=typeof Yl=="object"&&Yl&&Yl.Object===Object&&Yl,y0=typeof self=="object"&&self&&self.Object===Object&&self,Kr=zf||y0||Function("return this")(),Qc=t&&!t.nodeType&&t,ai=Qc&&!0&&e&&!e.nodeType&&e,Nv=ai&&ai.exports===Qc,mu=Nv&&zf.process,ua=function(){try{var ge=ai&&ai.require&&ai.require("util").types;return ge||mu&&mu.binding&&mu.binding("util")}catch{}}(),Bv=ua&&ua.isArrayBuffer,Ea=ua&&ua.isDate,yl=ua&&ua.isMap,qf=ua&&ua.isRegExp,gu=ua&&ua.isSet,b0=ua&&ua.isTypedArray;function ca(ge,Me,Ie){switch(Ie.length){case 0:return ge.call(Me);case 1:return ge.call(Me,Ie[0]);case 2:return ge.call(Me,Ie[0],Ie[1]);case 3:return ge.call(Me,Ie[0],Ie[1],Ie[2])}return ge.apply(Me,Ie)}function zv(ge,Me,Ie,pt){for(var Gt=-1,mr=ge==null?0:ge.length;++Gt-1}function Uv(ge,Me,Ie){for(var pt=-1,Gt=ge==null?0:ge.length;++pt-1;);return Ie}function Xv(ge,Me){for(var Ie=ge.length;Ie--&&yu(Me,ge[Ie],0)>-1;);return Ie}function P0(ge,Me){for(var Ie=ge.length,pt=0;Ie--;)ge[Ie]===Me&&++pt;return pt}var R0=Hf(vu),k0=Hf(Nf);function I0(ge){return"\\"+lS[ge]}function bu(ge,Me){return ge==null?r:ge[Me]}function _u(ge){return m0.test(ge)}function hS(ge){return Df.test(ge)}function vS(ge){for(var Me,Ie=[];!(Me=ge.next()).done;)Ie.push(Me.value);return Ie}function Gf(ge){var Me=-1,Ie=Array(ge.size);return ge.forEach(function(pt,Gt){Ie[++Me]=[Gt,pt]}),Ie}function Yv(ge,Me){return function(Ie){return ge(Me(Ie))}}function oo(ge,Me){for(var Ie=-1,pt=ge.length,Gt=0,mr=[];++Ie-1}function z0(c,v){var w=this.__data__,D=aa(w,c);return D<0?(++this.size,w.push([c,v])):w[D][1]=v,this}da.prototype.clear=ju,da.prototype.delete=Pa,da.prototype.get=sp,da.prototype.has=B0,da.prototype.set=z0;function so(c){var v=-1,w=c==null?0:c.length;for(this.clear();++v=v?c:v)),c}function Ra(c,v,w,D,U,J){var oe,de=v&g,xe=v&y,ze=v&_;if(w&&(oe=U?w(c,D,U,J):w(c)),oe!==r)return oe;if(!cn(c))return c;var qe=Yt(c);if(qe){if(oe=Ed(c),!de)return fa(c,oe)}else{var Xe=Vn(c),ct=Xe==$e||Xe==Te;if(Ku(c))return bm(c,de);if(Xe==He||Xe==Se||ct&&!U){if(oe=xe||ct?{}:Wn(c),!de)return xe?SS(c,Mo(oe,c)):Ep(c,Hr(oe,c))}else{if(!Cr[Xe])return U?c:{};oe=ES(c,Xe,de)}}J||(J=new na);var At=J.get(c);if(At)return At;J.set(c,oe),WT(c)?c.forEach(function(Vt){oe.add(Ra(Vt,v,w,Vt,c,J))}):UT(c)&&c.forEach(function(Vt,cr){oe.set(cr,Ra(Vt,v,w,cr,c,J))});var Ut=ze?xe?xd:_d:xe?bo:sa,ar=qe?r:Ut(c);return Zn(ar||c,function(Vt,cr){ar&&(cr=Vt,Vt=c[cr]),Ol(oe,cr,Ra(Vt,v,w,cr,c,J))}),oe}function W0(c){var v=sa(c);return function(w){return ld(w,c,v)}}function ld(c,v,w){var D=w.length;if(c==null)return!D;for(c=jr(c);D--;){var U=w[D],J=v[U],oe=c[U];if(oe===r&&!(U in c)||!J(oe))return!1}return!0}function om(c,v,w){if(typeof c!="function")throw new io(s);return Wu(function(){c.apply(r,w)},v)}function di(c,v,w,D){var U=-1,J=Vf,oe=!0,de=c.length,xe=[],ze=v.length;if(!de)return xe;w&&(v=Lr(v,Da(w))),D?(J=Uv,oe=!1):v.length>=a&&(J=zi,oe=!1,v=new Sl(v));e:for(;++UU?0:U+w),D=D===r||D>U?U:rr(D),D<0&&(D+=U),D=w>D?0:GT(D);w0&&w(de)?v>1?an(de,v-1,w,D,U):Es(U,de):D||(U[U.length]=de)}return U}var fp=Op(),cd=Op(!0);function qa(c,v){return c&&fp(c,v,sa)}function Ts(c,v){return c&&cd(c,v,sa)}function Au(c,v){return Ss(v,function(w){return Bl(c[w])})}function Gi(c,v){v=vi(v,c);for(var w=0,D=v.length;c!=null&&wv}function co(c,v){return c!=null&&gr.call(c,v)}function Rl(c,v){return c!=null&&v in jr(c)}function sm(c,v,w){return c>=ea(v,w)&&c=120&&qe.length>=120)?new Sl(oe&&qe):r}qe=c[0];var Xe=-1,ct=de[0];e:for(;++Xe-1;)de!==c&&ep.call(de,xe,1),ep.call(c,xe,1);return c}function xn(c,v){for(var w=c?v.length:0,D=w-1;w--;){var U=v[w];if(w==D||U!==J){var J=U;Xr(U)?ep.call(c,U,1):xp(c,U)}}return c}function $u(c,v){return c+Os(nd()*(v-c+1))}function hd(c,v,w,D){for(var U=-1,J=hn(xl((v-c)/(w||1)),0),oe=Ie(J);J--;)oe[D?J:++U]=c,c+=w;return oe}function Il(c,v){var w="";if(!c||v<1||v>H)return w;do v%2&&(w+=c),v=Os(v/2),v&&(c+=c);while(v);return w}function tr(c,v){return Ua(Fp(c,v,_o),c+"")}function oa(c){return ui(eh(c))}function pm(c,v){var w=eh(c);return $p(w,Hi(v,0,w.length))}function jl(c,v,w,D){if(!cn(c))return c;v=vi(v,c);for(var U=-1,J=v.length,oe=J-1,de=c;de!=null&&++UU?0:U+v),w=w>U?U:w,w<0&&(w+=U),U=v>w?0:w-v>>>0,v>>>=0;for(var J=Ie(U);++D>>1,oe=c[J];oe!==null&&!qo(oe)&&(w?oe<=v:oe=a){var ze=v?null:a_(c);if(ze)return Cs(ze);oe=!1,U=zi,xe=new Sl}else xe=v?[]:de;e:for(;++D=D?c:ia(c,v,w)}var ym=L0||function(c){return Kr.clearTimeout(c)};function bm(c,v){if(v)return c.slice();var w=c.length,D=Zv?Zv(w):new c.constructor(w);return c.copy(D),D}function gd(c){var v=new c.constructor(c.byteLength);return new td(v).set(new td(c)),v}function Y0(c,v){var w=v?gd(c.buffer):c.buffer;return new c.constructor(w,c.byteOffset,c.byteLength)}function J0(c){var v=new c.constructor(c.source,er.exec(c));return v.lastIndex=c.lastIndex,v}function Z0(c){return Ba?jr(Ba.call(c)):{}}function e_(c,v){var w=v?gd(c.buffer):c.buffer;return new c.constructor(w,c.byteOffset,c.length)}function _m(c,v){if(c!==v){var w=c!==r,D=c===null,U=c===c,J=qo(c),oe=v!==r,de=v===null,xe=v===v,ze=qo(v);if(!de&&!ze&&!J&&c>v||J&&oe&&xe&&!de&&!ze||D&&oe&&xe||!w&&xe||!U)return 1;if(!D&&!J&&!ze&&c=de)return xe;var ze=w[D];return xe*(ze=="desc"?-1:1)}}return c.index-v.index}function t_(c,v,w,D){for(var U=-1,J=c.length,oe=w.length,de=-1,xe=v.length,ze=hn(J-oe,0),qe=Ie(xe+ze),Xe=!D;++de1?w[U-1]:r,oe=U>2?w[2]:r;for(J=c.length>3&&typeof J=="function"?(U--,J):r,oe&&ha(w[0],w[1],oe)&&(J=U<3?r:J,U=1),v=jr(v);++D-1?U[J?v[oe]:oe]:r}}function Rp(c){return gi(function(v){var w=v.length,D=w,U=ta.prototype.thru;for(c&&v.reverse();D--;){var J=v[D];if(typeof J!="function")throw new io(s);if(U&&!oe&&Uu(J)=="wrapper")var oe=new ta([],!0)}for(D=oe?D:w;++D1&&fr.reverse(),qe&&xede))return!1;var ze=J.get(c),qe=J.get(v);if(ze&&qe)return ze==v&&qe==c;var Xe=-1,ct=!0,At=w&E?new Sl:r;for(J.set(c,v),J.set(v,c);++Xe1?"& ":"")+v[D],v=v.join(w>2?", ":" "),c.replace(kt,`{ -/* [wrapped with `+v+`] */ -`)}function Ap(c){return Yt(c)||Md(c)||!!($0&&c&&c[$0])}function Xr(c,v){var w=typeof c;return v=v??H,!!v&&(w=="number"||w!="symbol"&&Zr.test(c))&&c>-1&&c%1==0&&c0){if(++v>=B)return arguments[0]}else v=0;return c.apply(r,arguments)}}function $p(c,v){var w=-1,D=c.length,U=D-1;for(v=v===r?D:v;++w1?c[v-1]:r;return w=typeof w=="function"?(c.pop(),w):r,tn(c,w)});function Wp(c){var v=Q(c);return v.__chain__=!0,v}function FS(c,v){return v(c),c}function zo(c,v){return v(c)}var Hp=gi(function(c){var v=c.length,w=v?c[0]:0,D=this.__wrapped__,U=function(J){return dp(J,c)};return v>1||this.__actions__.length||!(D instanceof Xt)||!Xr(w)?this.thru(U):(D=D.slice(w,+w+(v?1:0)),D.__actions__.push({func:zo,args:[U],thisArg:r}),new ta(D,this.__chain__).thru(function(J){return v&&!J.length&&J.push(r),J}))});function Dl(){return Wp(this)}function Gp(){return new ta(this.value(),this.__chain__)}function Hm(){this.__values__===r&&(this.__values__=HT(this.value()));var c=this.__index__>=this.__values__.length,v=c?r:this.__values__[this.__index__++];return{done:c,value:v}}function Gm(){return this}function $S(c){for(var v,w=this;w instanceof si;){var D=p_(w);D.__index__=0,D.__values__=r,v?U.__wrapped__=D:v=D;var U=D;w=w.__wrapped__}return U.__wrapped__=c,v}function Km(){var c=this.__wrapped__;if(c instanceof Xt){var v=c;return this.__actions__.length&&(v=new Xt(this)),v=v.reverse(),v.__actions__.push({func:zo,args:[qp],thisArg:r}),new ta(v,this.__chain__)}return this.thru(qp)}function LS(){return Du(this.__wrapped__,this.__actions__)}var w_=Cp(function(c,v,w){gr.call(c,w)?++c[w]:ci(c,w,1)});function S_(c,v,w){var D=Yt(c)?qv:ud;return w&&ha(c,v,w)&&(v=r),D(c,Nt(v,3))}function Kp(c,v){var w=Yt(c)?Ss:im;return w(c,Nt(v,3))}var Qp=Al(Ds),E_=Al(Rd);function Qm(c,v){return an(Nl(c,v),1)}function DS(c,v){return an(Nl(c,v),X)}function C_(c,v,w){return w=w===r?1:rr(w),an(Nl(c,v),w)}function Xp(c,v){var w=Yt(c)?Zn:fi;return w(c,Nt(v,3))}function Td(c,v){var w=Yt(c)?Uf:H0;return w(c,Nt(v,3))}var Xm=Cp(function(c,v,w){gr.call(c,w)?c[w].push(v):ci(c,w,[v])});function Yp(c,v,w,D){c=yo(c)?c:eh(c),w=w&&!D?rr(w):0;var U=c.length;return w<0&&(w=hn(U+w,0)),R_(c)?w<=U&&c.indexOf(v,w)>-1:!!U&&yu(c,v,w)>-1}var O_=tr(function(c,v,w){var D=-1,U=typeof v=="function",J=yo(c)?Ie(c.length):[];return fi(c,function(oe){J[++D]=U?ca(v,oe,w):fo(oe,v,w)}),J}),NS=Cp(function(c,v,w){ci(c,w,v)});function Nl(c,v){var w=Yt(c)?Lr:cm;return w(c,Nt(v,3))}function BS(c,v,w,D){return c==null?[]:(Yt(v)||(v=v==null?[]:[v]),w=D?r:w,Yt(w)||(w=w==null?[]:[w]),pd(c,v,w))}var Ad=Cp(function(c,v,w){c[w?0:1].push(v)},function(){return[[],[]]});function zS(c,v,w){var D=Yt(c)?Vv:E0,U=arguments.length<3;return D(c,Nt(v,4),w,U,fi)}function Jp(c,v,w){var D=Yt(c)?uS:E0,U=arguments.length<3;return D(c,Nt(v,4),w,U,H0)}function i(c,v){var w=Yt(c)?Ss:im;return w(c,Ze(Nt(v,3)))}function l(c){var v=Yt(c)?ui:oa;return v(c)}function m(c,v,w){(w?ha(c,v,w):v===r)?v=1:v=rr(v);var D=Yt(c)?Cl:pm;return D(c,v)}function b(c){var v=Yt(c)?V0:ho;return v(c)}function F(c){if(c==null)return 0;if(yo(c))return R_(c)?bl(c):c.length;var v=Vn(c);return v==Be||v==ve?c.size:Xi(c).length}function L(c,v,w){var D=Yt(c)?Wv:hm;return w&&ha(c,v,w)&&(v=r),D(c,Nt(v,3))}var W=tr(function(c,v){if(c==null)return[];var w=v.length;return w>1&&ha(c,v[0],v[1])?v=[]:w>2&&ha(v[0],v[1],v[2])&&(v=[v[0]]),pd(c,an(v,1),[])}),re=Vr||function(){return Kr.Date.now()};function ce(c,v){if(typeof v!="function")throw new io(s);return c=rr(c),function(){if(--c<1)return v.apply(this,arguments)}}function Ae(c,v,w){return v=w?r:v,v=c&&v==null?c.length:v,mi(c,j,r,r,r,r,v)}function Qe(c,v){var w;if(typeof v!="function")throw new io(s);return c=rr(c),function(){return--c>0&&(w=v.apply(this,arguments)),c<=1&&(v=r),w}}var Ye=tr(function(c,v,w){var D=x;if(w.length){var U=oo(w,Zi(Ye));D|=C}return mi(c,D,v,w,U)}),We=tr(function(c,v,w){var D=x|T;if(w.length){var U=oo(w,Zi(We));D|=C}return mi(v,D,c,w,U)});function ht(c,v,w){v=w?r:v;var D=mi(c,R,r,r,r,r,r,v);return D.placeholder=ht.placeholder,D}function Ct(c,v,w){v=w?r:v;var D=mi(c,P,r,r,r,r,r,v);return D.placeholder=Ct.placeholder,D}function Rt(c,v,w){var D,U,J,oe,de,xe,ze=0,qe=!1,Xe=!1,ct=!0;if(typeof c!="function")throw new io(s);v=bi(v)||0,cn(w)&&(qe=!!w.leading,Xe="maxWait"in w,J=Xe?hn(bi(w.maxWait)||0,v):J,ct="trailing"in w?!!w.trailing:ct);function At(En){var ns=D,ql=U;return D=U=r,ze=En,oe=c.apply(ql,ns),oe}function Ut(En){return ze=En,de=Wu(cr,v),qe?At(En):oe}function ar(En){var ns=En-xe,ql=En-ze,oA=v-ns;return Xe?ea(oA,J-ql):oA}function Vt(En){var ns=En-xe,ql=En-ze;return xe===r||ns>=v||ns<0||Xe&&ql>=J}function cr(){var En=re();if(Vt(En))return fr(En);de=Wu(cr,ar(En))}function fr(En){return de=r,ct&&D?At(En):(D=U=r,oe)}function Uo(){de!==r&&ym(de),ze=0,D=xe=U=de=r}function Wa(){return de===r?oe:fr(re())}function Vo(){var En=re(),ns=Vt(En);if(D=arguments,U=this,xe=En,ns){if(de===r)return Ut(xe);if(Xe)return ym(de),de=Wu(cr,v),At(xe)}return de===r&&(de=Wu(cr,v)),oe}return Vo.cancel=Uo,Vo.flush=Wa,Vo}var un=tr(function(c,v){return om(c,1,v)}),Ee=tr(function(c,v,w){return om(c,bi(v)||0,w)});function pe(c){return mi(c,M)}function Pe(c,v){if(typeof c!="function"||v!=null&&typeof v!="function")throw new io(s);var w=function(){var D=arguments,U=v?v.apply(this,D):D[0],J=w.cache;if(J.has(U))return J.get(U);var oe=c.apply(this,D);return w.cache=J.set(U,oe)||J,oe};return w.cache=new(Pe.Cache||so),w}Pe.Cache=so;function Ze(c){if(typeof c!="function")throw new io(s);return function(){var v=arguments;switch(v.length){case 0:return!c.call(this);case 1:return!c.call(this,v[0]);case 2:return!c.call(this,v[0],v[1]);case 3:return!c.call(this,v[0],v[1],v[2])}return!c.apply(this,v)}}function Tt(c){return Qe(2,c)}var Lt=X0(function(c,v){v=v.length==1&&Yt(v[0])?Lr(v[0],Da(Nt())):Lr(an(v,1),Da(Nt()));var w=v.length;return tr(function(D){for(var U=-1,J=ea(D.length,w);++U=v}),Md=vp(function(){return arguments}())?vp:function(c){return mn(c)&&gr.call(c,"callee")&&!Zf.call(c,"callee")},Yt=Ie.isArray,SV=Bv?Da(Bv):K0;function yo(c){return c!=null&&P_(c.length)&&!Bl(c)}function Sn(c){return mn(c)&&yo(c)}function EV(c){return c===!0||c===!1||mn(c)&&qn(c)==Oe}var Ku=tm||ZS,CV=Ea?Da(Ea):Qi;function OV(c){return mn(c)&&c.nodeType===1&&!Ym(c)}function PV(c){if(c==null)return!0;if(yo(c)&&(Yt(c)||typeof c=="string"||typeof c.splice=="function"||Ku(c)||Zp(c)||Md(c)))return!c.length;var v=Vn(c);if(v==Be||v==ve)return!c.size;if(es(c))return!Xi(c).length;for(var w in c)if(gr.call(c,w))return!1;return!0}function RV(c,v){return po(c,v)}function kV(c,v,w){w=typeof w=="function"?w:r;var D=w?w(c,v):r;return D===r?po(c,v,r,w):!!D}function US(c){if(!mn(c))return!1;var v=qn(c);return v==ke||v==Fe||typeof c.message=="string"&&typeof c.name=="string"&&!Ym(c)}function IV(c){return typeof c=="number"&&Eu(c)}function Bl(c){if(!cn(c))return!1;var v=qn(c);return v==$e||v==Te||v==we||v==ae}function qT(c){return typeof c=="number"&&c==rr(c)}function P_(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=H}function cn(c){var v=typeof c;return c!=null&&(v=="object"||v=="function")}function mn(c){return c!=null&&typeof c=="object"}var UT=yl?Da(yl):Q0;function jV(c,v){return c===v||Mu(c,v,Sd(v))}function TV(c,v,w){return w=typeof w=="function"?w:r,Mu(c,v,Sd(v),w)}function AV(c){return VT(c)&&c!=+c}function MV(c){if(OS(c))throw new Gt(o);return lm(c)}function FV(c){return c===null}function $V(c){return c==null}function VT(c){return typeof c=="number"||mn(c)&&qn(c)==Le}function Ym(c){if(!mn(c)||qn(c)!=He)return!1;var v=Ao(c);if(v===null)return!0;var w=gr.call(v,"constructor")&&v.constructor;return typeof w=="function"&&w instanceof w&&Jc.call(w)==Yf}var VS=qf?Da(qf):dd;function LV(c){return qT(c)&&c>=-9007199254740991&&c<=H}var WT=gu?Da(gu):pi;function R_(c){return typeof c=="string"||!Yt(c)&&mn(c)&&qn(c)==be}function qo(c){return typeof c=="symbol"||mn(c)&&qn(c)==_e}var Zp=b0?Da(b0):fd;function DV(c){return c===r}function NV(c){return mn(c)&&Vn(c)==Ge}function BV(c){return mn(c)&&qn(c)==Mt}var zV=Ip(Ms),qV=Ip(function(c,v){return c<=v});function HT(c){if(!c)return[];if(yo(c))return R_(c)?Na(c):fa(c);if(Vi&&c[Vi])return vS(c[Vi]());var v=Vn(c),w=v==Be?Gf:v==ve?Cs:eh;return w(c)}function zl(c){if(!c)return c===0?c:0;if(c=bi(c),c===X||c===-1/0){var v=c<0?-1:1;return v*te}return c===c?c:0}function rr(c){var v=zl(c),w=v%1;return v===v?w?v-w:v:0}function GT(c){return c?Hi(rr(c),0,K):0}function bi(c){if(typeof c=="number")return c;if(qo(c))return ne;if(cn(c)){var v=typeof c.valueOf=="function"?c.valueOf():c;c=cn(v)?v+"":v}if(typeof c!="string")return c===0?c:+c;c=C0(c);var w=Er.test(c);return w||It.test(c)?Bf(c.slice(2),w?2:8):rn.test(c)?ne:+c}function KT(c){return Fo(c,bo(c))}function UV(c){return c?Hi(rr(c),-9007199254740991,H):c===0?c:0}function Tr(c){return c==null?"":ka(c)}var VV=Bu(function(c,v){if(es(v)||yo(v)){Fo(v,sa(v),c);return}for(var w in v)gr.call(v,w)&&Ol(c,w,v[w])}),QT=Bu(function(c,v){Fo(v,bo(v),c)}),k_=Bu(function(c,v,w,D){Fo(v,bo(v),c,D)}),WV=Bu(function(c,v,w,D){Fo(v,sa(v),c,D)}),HV=gi(dp);function GV(c,v){var w=ku(c);return v==null?w:Hr(w,v)}var KV=tr(function(c,v){c=jr(c);var w=-1,D=v.length,U=D>2?v[2]:r;for(U&&ha(v[0],v[1],U)&&(D=1);++w1),J}),Fo(c,xd(c),w),D&&(w=Ra(w,g|y|_,Rm));for(var U=v.length;U--;)xp(w,v[U]);return w});function f8(c,v){return YT(c,Ze(Nt(v)))}var p8=gi(function(c,v){return c==null?{}:fm(c,v)});function YT(c,v){if(c==null)return{};var w=Lr(xd(c),function(D){return[D]});return v=Nt(v),Fs(c,w,function(D,U){return v(D,U[0])})}function h8(c,v,w){v=vi(v,c);var D=-1,U=v.length;for(U||(U=1,c=r);++Dv){var D=c;c=v,v=D}if(w||c%1||v%1){var U=nd();return ea(c+U*(v-c+Dv("1e-"+((U+"").length-1))),v)}return $u(c,v)}var C8=Tl(function(c,v,w){return v=v.toLowerCase(),c+(w?eA(v):v)});function eA(c){return GS(Tr(c).toLowerCase())}function tA(c){return c=Tr(c),c&&c.replace(ys,R0).replace(v0,"")}function O8(c,v,w){c=Tr(c),v=ka(v);var D=c.length;w=w===r?D:Hi(rr(w),0,D);var U=w;return w-=v.length,w>=0&&c.slice(w,U)==v}function P8(c){return c=Tr(c),c&&Io.test(c)?c.replace(kn,k0):c}function R8(c){return c=Tr(c),c&&je.test(c)?c.replace(ye,"\\$&"):c}var k8=Tl(function(c,v,w){return c+(w?"-":"")+v.toLowerCase()}),I8=Tl(function(c,v,w){return c+(w?" ":"")+v.toLowerCase()}),j8=wm("toLowerCase");function T8(c,v,w){c=Tr(c),v=rr(v);var D=v?bl(c):0;if(!v||D>=v)return c;var U=(v-D)/2;return bd(Os(U),w)+c+bd(xl(U),w)}function A8(c,v,w){c=Tr(c),v=rr(v);var D=v?bl(c):0;return v&&D>>0,w?(c=Tr(c),c&&(typeof v=="string"||v!=null&&!VS(v))&&(v=ka(v),!v&&_u(c))?Ji(Na(c),0,w):c.split(v,w)):[]}var B8=Tl(function(c,v,w){return c+(w?" ":"")+GS(v)});function z8(c,v,w){return c=Tr(c),w=w==null?0:Hi(rr(w),0,c.length),v=ka(v),c.slice(w,w+v.length)==v}function q8(c,v,w){var D=Q.templateSettings;w&&ha(c,v,w)&&(v=r),c=Tr(c),v=k_({},v,D,Om);var U=k_({},v.imports,D.imports,Om),J=sa(U),oe=Xc(U,J),de,xe,ze=0,qe=v.interpolate||Sa,Xe="__p += '",ct=Yc((v.escape||Sa).source+"|"+qe.source+"|"+(qe===ri?Wt:Sa).source+"|"+(v.evaluate||Sa).source+"|$","g"),At="//# sourceURL="+(gr.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++iS+"]")+` -`;c.replace(ct,function(Vt,cr,fr,Uo,Wa,Vo){return fr||(fr=Uo),Xe+=c.slice(ze,Vo).replace(ao,I0),cr&&(de=!0,Xe+=`' + -__e(`+cr+`) + -'`),Wa&&(xe=!0,Xe+=`'; -`+Wa+`; -__p += '`),fr&&(Xe+=`' + -((__t = (`+fr+`)) == null ? '' : __t) + -'`),ze=Vo+Vt.length,Vt}),Xe+=`'; -`;var Ut=gr.call(v,"variable")&&v.variable;if(!Ut)Xe=`with (obj) { -`+Xe+` -} -`;else if(mt.test(Ut))throw new Gt(d);Xe=(xe?Xe.replace(Qt,""):Xe).replace(Or,"$1").replace(Ur,"$1;"),Xe="function("+(Ut||"obj")+`) { -`+(Ut?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(de?", __e = _.escape":"")+(xe?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Xe+`return __p -}`;var ar=nA(function(){return mr(J,At+"return "+Xe).apply(r,oe)});if(ar.source=Xe,US(ar))throw ar;return ar}function U8(c){return Tr(c).toLowerCase()}function V8(c){return Tr(c).toUpperCase()}function W8(c,v,w){if(c=Tr(c),c&&(w||v===r))return C0(c);if(!c||!(v=ka(v)))return c;var D=Na(c),U=Na(v),J=O0(D,U),oe=Xv(D,U)+1;return Ji(D,J,oe).join("")}function H8(c,v,w){if(c=Tr(c),c&&(w||v===r))return c.slice(0,Qf(c)+1);if(!c||!(v=ka(v)))return c;var D=Na(c),U=Xv(D,Na(v))+1;return Ji(D,0,U).join("")}function G8(c,v,w){if(c=Tr(c),c&&(w||v===r))return c.replace(Ne,"");if(!c||!(v=ka(v)))return c;var D=Na(c),U=O0(D,Na(v));return Ji(D,U).join("")}function K8(c,v){var w=$,D=N;if(cn(v)){var U="separator"in v?v.separator:U;w="length"in v?rr(v.length):w,D="omission"in v?ka(v.omission):D}c=Tr(c);var J=c.length;if(_u(c)){var oe=Na(c);J=oe.length}if(w>=J)return c;var de=w-bl(D);if(de<1)return D;var xe=oe?Ji(oe,0,de).join(""):c.slice(0,de);if(U===r)return xe+D;if(oe&&(de+=xe.length-de),VS(U)){if(c.slice(de).search(U)){var ze,qe=xe;for(U.global||(U=Yc(U.source,Tr(er.exec(U))+"g")),U.lastIndex=0;ze=U.exec(qe);)var Xe=ze.index;xe=xe.slice(0,Xe===r?de:Xe)}}else if(c.indexOf(ka(U),de)!=de){var ct=xe.lastIndexOf(U);ct>-1&&(xe=xe.slice(0,ct))}return xe+D}function Q8(c){return c=Tr(c),c&&zn.test(c)?c.replace(Gr,j0):c}var X8=Tl(function(c,v,w){return c+(w?" ":"")+v.toUpperCase()}),GS=wm("toUpperCase");function rA(c,v,w){return c=Tr(c),v=w?r:v,v===r?hS(c)?yS(c):dS(c):c.match(v)||[]}var nA=tr(function(c,v){try{return ca(c,r,v)}catch(w){return US(w)?w:new Gt(w)}}),Y8=gi(function(c,v){return Zn(v,function(w){w=No(w),ci(c,w,Ye(c[w],c))}),c});function J8(c){var v=c==null?0:c.length,w=Nt();return c=v?Lr(c,function(D){if(typeof D[1]!="function")throw new io(s);return[w(D[0]),D[1]]}):[],tr(function(D){for(var U=-1;++UH)return[];var w=K,D=ea(c,K);v=Nt(v),c-=K;for(var U=Qv(D,v);++w0||v<0)?new Xt(w):(c<0?w=w.takeRight(-c):c&&(w=w.drop(c)),v!==r&&(v=rr(v),w=v<0?w.dropRight(-v):w.take(v-c)),w)},Xt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Xt.prototype.toArray=function(){return this.take(K)},qa(Xt.prototype,function(c,v){var w=/^(?:filter|find|map|reject)|While$/.test(v),D=/^(?:head|last)$/.test(v),U=Q[D?"take"+(v=="last"?"Right":""):v],J=D||/^find/.test(v);U&&(Q.prototype[v]=function(){var oe=this.__wrapped__,de=D?[1]:arguments,xe=oe instanceof Xt,ze=de[0],qe=xe||Yt(oe),Xe=function(cr){var fr=U.apply(Q,Es([cr],de));return D&&ct?fr[0]:fr};qe&&w&&typeof ze=="function"&&ze.length!=1&&(xe=qe=!1);var ct=this.__chain__,At=!!this.__actions__.length,Ut=J&&!ct,ar=xe&&!At;if(!J&&qe){oe=ar?oe:new Xt(this);var Vt=c.apply(oe,de);return Vt.__actions__.push({func:zo,args:[Xe],thisArg:r}),new ta(Vt,ct)}return Ut&&ar?c.apply(this,de):(Vt=this.thru(Xe),Ut?D?Vt.value()[0]:Vt.value():Vt)})}),Zn(["pop","push","shift","sort","splice","unshift"],function(c){var v=qi[c],w=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",D=/^(?:pop|shift)$/.test(c);Q.prototype[c]=function(){var U=arguments;if(D&&!this.__chain__){var J=this.value();return v.apply(Yt(J)?J:[],U)}return this[w](function(oe){return v.apply(Yt(oe)?oe:[],U)})}}),qa(Xt.prototype,function(c,v){var w=Q[v];if(w){var D=w.name+"";gr.call(Pu,D)||(Pu[D]=[]),Pu[D].push({name:v,func:w})}}),Pu[qu(r,T).name]=[{name:"wrapper",func:r}],Xt.prototype.clone=ip,Xt.prototype.reverse=nm,Xt.prototype.value=Iu,Q.prototype.at=Hp,Q.prototype.chain=Dl,Q.prototype.commit=Gp,Q.prototype.next=Hm,Q.prototype.plant=$S,Q.prototype.reverse=Km,Q.prototype.toJSON=Q.prototype.valueOf=Q.prototype.value=LS,Q.prototype.first=Q.prototype.head,Vi&&(Q.prototype[Vi]=Gm),Q},xu=bS();ai?((ai.exports=xu)._=xu,Qc._=xu):Kr._=xu}).call(UW)}(Ty,Ty.exports)),Ty.exports}var $b=VW(),iE,gA;function t5(){if(gA)return iE;gA=1;var e=Object.prototype.toString;return iE=function(r){var n=e.call(r),a=n==="[object Arguments]";return a||(a=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),a},iE}var sE,yA;function WW(){if(yA)return sE;yA=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=t5(),a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),s=a.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(y){var _=y.constructor;return _&&_.prototype===y},u={$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},h=function(){if(typeof window>"u")return!1;for(var y in window)try{if(!u["$"+y]&&t.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{f(window[y])}catch{return!0}}catch{return!0}return!1}(),g=function(y){if(typeof window>"u"||!h)return f(y);try{return f(y)}catch{return!1}};e=function(_){var S=_!==null&&typeof _=="object",E=r.call(_)==="[object Function]",x=n(_),T=S&&r.call(_)==="[object String]",I=[];if(!S&&!E&&!x)throw new TypeError("Object.keys called on a non-object");var R=s&&E;if(T&&_.length>0&&!t.call(_,0))for(var P=0;P<_.length;++P)I.push(String(P));if(x&&_.length>0)for(var C=0;C<_.length;++C)I.push(String(C));else for(var O in _)!(R&&O==="prototype")&&t.call(_,O)&&I.push(String(O));if(o)for(var j=g(_),k=0;k"u"||!E?e:E(Uint8Array),I={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":_&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":r,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":n,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&E?E(""[Symbol.iterator]()):e,"%Symbol%":_?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":y,"%TypedArray%":T,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};if(E)try{null.error}catch(X){var R=E(E(X));I["%Error.prototype%"]=R}var P=function X(H){var te;if(H==="%AsyncFunction%")te=u("async function () {}");else if(H==="%GeneratorFunction%")te=u("function* () {}");else if(H==="%AsyncGeneratorFunction%")te=u("async function* () {}");else if(H==="%AsyncGenerator%"){var ne=X("%AsyncGeneratorFunction%");ne&&(te=ne.prototype)}else if(H==="%AsyncIteratorPrototype%"){var K=X("%AsyncGenerator%");K&&E&&(te=E(K.prototype))}return I[H]=te,te},C={__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"]},O=qI(),j=n5(),k=O.call(Function.call,Array.prototype.concat),M=O.call(Function.apply,Array.prototype.splice),$=O.call(Function.call,String.prototype.replace),N=O.call(Function.call,String.prototype.slice),B=O.call(Function.call,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,G=function(H){var te=N(H,0,1),ne=N(H,-1);if(te==="%"&&ne!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(ne==="%"&&te!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var K=[];return $(H,q,function(ee,Ce,se,Se){K[K.length]=se?$(Se,V,"$1"):Ce||ee}),K},Y=function(H,te){var ne=H,K;if(j(C,ne)&&(K=C[ne],ne="%"+K[0]+"%"),j(I,ne)){var ee=I[ne];if(ee===x&&(ee=P(ne)),typeof ee>"u"&&!te)throw new s("intrinsic "+H+" exists, but is not available. Please file an issue!");return{alias:K,name:ne,value:ee}}throw new o("intrinsic "+H+" does not exist!")};return wE=function(H,te){if(typeof H!="string"||H.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof te!="boolean")throw new s('"allowMissing" argument must be a boolean');if(B(/^%?[^%]*%?$/,H)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ne=G(H),K=ne.length>0?ne[0]:"",ee=Y("%"+K+"%",te),Ce=ee.name,se=ee.value,Se=!1,me=ee.alias;me&&(K=me[0],M(ne,k([0,1],me)));for(var we=1,Oe=!0;we=ne.length){var $e=h(se,ie);Oe=!!$e,Oe&&"get"in $e&&!("originalValue"in $e.get)?se=$e.get:se=se[ie]}else Oe=j(se,ie),se=se[ie];Oe&&!Se&&(I[Ce]=se)}}return se},wE}var SE,MA;function UI(){if(MA)return SE;MA=1;var e=Db(),t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return SE=t,SE}var EE,FA;function a5(){if(FA)return EE;FA=1;var e=Db(),t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return EE=t,EE}var CE,$A;function o5(){if($A)return CE;$A=1;var e=UI(),t=r5(),r=Lb(),n=a5();return CE=function(o,s,d){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,g=arguments.length>6?arguments[6]:!1,y=!!n&&n(o,s);if(e)e(o,s,{configurable:h===null&&y?y.configurable:!h,enumerable:f===null&&y?y.enumerable:!f,value:d,writable:u===null&&y?y.writable:!u});else if(g||!f&&!u&&!h)o[s]=d;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},CE}var OE,LA;function i5(){if(LA)return OE;LA=1;var e=UI(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},OE=t,OE}var PE,DA;function s5(){if(DA)return PE;DA=1;var e=HW(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,a=o5(),o=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},s=i5()(),d=function(u,h,g,y){if(h in u){if(y===!0){if(u[h]===g)return}else if(!o(y)||!y())return}s?a(u,h,g,!0):a(u,h,g)},f=function(u,h){var g=arguments.length>2?arguments[2]:{},y=e(h);t&&(y=n.call(y,Object.getOwnPropertySymbols(h)));for(var _=0;_4294967295||o(f)!==f)throw new a("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],h=!0,g=!0;if("length"in d&&n){var y=n(d,"length");y&&!y.configurable&&(h=!1),y&&!y.writable&&(g=!1)}return(h||g||!u)&&(r?t(d,"length",f,!0,!0):t(d,"length",f)),d},kE}var BA;function l5(){return BA||(BA=1,function(e){var t=qI(),r=Db(),n=r7(),a=Lb(),o=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),d=r("%Reflect.apply%",!0)||t.call(s,o),f=UI(),u=r("%Math.max%");e.exports=function(y){if(typeof y!="function")throw new a("a function is required");var _=d(t,s,arguments);return n(_,1+u(0,y.length-(arguments.length-1)),!0)};var h=function(){return d(t,o,arguments)};f?f(e.exports,"apply",{value:h}):e.exports.apply=h}(RE)),RE.exports}var IE,zA;function n7(){if(zA)return IE;zA=1;var e=Lb();return IE=function(r){if(r==null)throw new e(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r},IE}var jE,qA;function a7(){if(qA)return jE;qA=1;var e=Db(),t=l5(),r=t(e("String.prototype.indexOf"));return jE=function(a,o){var s=e(a,!!o);return typeof s=="function"&&r(a,".prototype.")>-1?t(s):s},jE}var TE,UA;function u5(){if(UA)return TE;UA=1;var e=n7(),t=a7(),r=t("Object.prototype.propertyIsEnumerable"),n=t("Array.prototype.push");return TE=function(o){var s=e(o),d=[];for(var f in s)r(s,f)&&n(d,[f,s[f]]);return d},TE}var AE,VA;function c5(){if(VA)return AE;VA=1;var e=u5();return AE=function(){return typeof Object.entries=="function"?Object.entries:e},AE}var ME,WA;function o7(){if(WA)return ME;WA=1;var e=c5(),t=s5();return ME=function(){var n=e();return t(Object,{entries:n},{entries:function(){return Object.entries!==n}}),n},ME}var FE,HA;function i7(){if(HA)return FE;HA=1;var e=s5(),t=l5(),r=u5(),n=c5(),a=o7(),o=t(n(),Object);return e(o,{getPolyfill:n,implementation:r,shim:a}),FE=o,FE}var $E,GA;function s7(){if(GA)return $E;GA=1;var e=function(){};return $E=e,$E}var LE,KA;function l7(){if(KA)return LE;KA=1;var e=i7(),t=s7(),r=n5(),n=function(P){t(!1,P)},a=String.prototype.replace,o=String.prototype.split,s="||||",d=function(R){var P=R%100,C=P%10;return P!==11&&C===1?0:2<=C&&C<=4&&!(P>=12&&P<=14)?1:2},f={pluralTypes:{arabic:function(R){if(R<3)return R;var P=R%100;return P>=3&&P<=10?3:P>=11?4:5},bosnian_serbian:d,chinese:function(){return 0},croatian:d,french:function(R){return R>=2?1:0},german:function(R){return R!==1?1:0},russian:d,lithuanian:function(R){return R%10===1&&R%100!==11?0:R%10>=2&&R%10<=9&&(R%100<11||R%100>19)?1:2},czech:function(R){return R===1?0:R>=2&&R<=4?1:2},polish:function(R){if(R===1)return 0;var P=R%10;return 2<=P&&P<=4&&(R%100<10||R%100>=20)?1:2},icelandic:function(R){return R%10!==1||R%100===11?1:0},slovenian:function(R){var P=R%100;return P===1?0:P===2?1:P===3||P===4?2:3},romanian:function(R){if(R===1)return 0;var P=R%100;return R===0||P>=2&&P<=19?1:2},ukrainian:d},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function u(R){for(var P={},C=e(R),O=0;O{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},hf=typeof window>"u"||"Deno"in globalThis;function Ja(){}function c7(e,t){return typeof e=="function"?e(t):e}function x2(e){return typeof e=="number"&&e>=0&&e!==1/0}function f5(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wh(e,t){return typeof e=="function"?e(t):e}function ss(e,t){return typeof e=="function"?e(t):e}function XA(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:s,stale:d}=e;if(s){if(n){if(t.queryHash!==WI(s,t.options))return!1}else if(!db(t.queryKey,s))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||a&&a!==t.state.fetchStatus||o&&!o(t))}function YA(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Pc(t.options.mutationKey)!==Pc(o))return!1}else if(!db(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function WI(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pc)(e)}function Pc(e){return JSON.stringify(e,(t,r)=>w2(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function db(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>db(e[r],t[r])):!1}function p5(e,t){if(e===t)return e;const r=JA(e)&&JA(t);if(r||w2(e)&&w2(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),s=o.length,d=r?[]:{};let f=0;for(let u=0;u{setTimeout(t,e)})}function S2(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?p5(e,t):t}function f7(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function p7(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var HI=Symbol();function h5(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===HI?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function v5(e,t){return typeof e=="function"?e(...t):!!e}var rf,lc,Dh,UB,h7=(UB=class extends pv{constructor(){super();Bt(this,rf);Bt(this,lc);Bt(this,Dh);xt(this,Dh,t=>{if(!hf&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){ue(this,lc)||this.setEventListener(ue(this,Dh))}onUnsubscribe(){var t;this.hasListeners()||((t=ue(this,lc))==null||t.call(this),xt(this,lc,void 0))}setEventListener(t){var r;xt(this,Dh,t),(r=ue(this,lc))==null||r.call(this),xt(this,lc,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){ue(this,rf)!==t&&(xt(this,rf,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof ue(this,rf)=="boolean"?ue(this,rf):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},rf=new WeakMap,lc=new WeakMap,Dh=new WeakMap,UB),GI=new h7,Nh,uc,Bh,VB,v7=(VB=class extends pv{constructor(){super();Bt(this,Nh,!0);Bt(this,uc);Bt(this,Bh);xt(this,Bh,t=>{if(!hf&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){ue(this,uc)||this.setEventListener(ue(this,Bh))}onUnsubscribe(){var t;this.hasListeners()||((t=ue(this,uc))==null||t.call(this),xt(this,uc,void 0))}setEventListener(t){var r;xt(this,Bh,t),(r=ue(this,uc))==null||r.call(this),xt(this,uc,t(this.setOnline.bind(this)))}setOnline(t){ue(this,Nh)!==t&&(xt(this,Nh,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return ue(this,Nh)}},Nh=new WeakMap,uc=new WeakMap,Bh=new WeakMap,VB),R1=new v7;function E2(){let e,t;const r=new Promise((a,o)=>{e=a,t=o});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}function m7(e){return Math.min(1e3*2**e,3e4)}function m5(e){return(e??"online")==="online"?R1.isOnline():!0}var g5=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function DE(e){return e instanceof g5}function y5(e){let t=!1,r=0,n=!1,a;const o=E2(),s=E=>{var x;n||(y(new g5(E)),(x=e.abort)==null||x.call(e))},d=()=>{t=!0},f=()=>{t=!1},u=()=>GI.isFocused()&&(e.networkMode==="always"||R1.isOnline())&&e.canRun(),h=()=>m5(e.networkMode)&&e.canRun(),g=E=>{var x;n||(n=!0,(x=e.onSuccess)==null||x.call(e,E),a==null||a(),o.resolve(E))},y=E=>{var x;n||(n=!0,(x=e.onError)==null||x.call(e,E),a==null||a(),o.reject(E))},_=()=>new Promise(E=>{var x;a=T=>{(n||u())&&E(T)},(x=e.onPause)==null||x.call(e)}).then(()=>{var E;a=void 0,n||(E=e.onContinue)==null||E.call(e)}),S=()=>{if(n)return;let E;const x=r===0?e.initialPromise:void 0;try{E=x??e.fn()}catch(T){E=Promise.reject(T)}Promise.resolve(E).then(g).catch(T=>{var O;if(n)return;const I=e.retry??(hf?0:3),R=e.retryDelay??m7,P=typeof R=="function"?R(r,T):R,C=I===!0||typeof I=="number"&&ru()?void 0:_()).then(()=>{t?y(T):S()})})};return{promise:o,cancel:s,continue:()=>(a==null||a(),o),cancelRetry:d,continueRetry:f,canStart:h,start:()=>(h()?S():_().then(S),o)}}var g7=e=>setTimeout(e,0);function y7(){let e=[],t=0,r=d=>{d()},n=d=>{d()},a=g7;const o=d=>{t?e.push(d):a(()=>{r(d)})},s=()=>{const d=e;e=[],d.length&&a(()=>{n(()=>{d.forEach(f=>{r(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||s()}return f},batchCalls:d=>(...f)=>{o(()=>{d(...f)})},schedule:o,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{n=d},setScheduler:d=>{a=d}}}var Pn=y7(),nf,WB,b5=(WB=class{constructor(){Bt(this,nf)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),x2(this.gcTime)&&xt(this,nf,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(hf?1/0:5*60*1e3))}clearGcTimeout(){ue(this,nf)&&(clearTimeout(ue(this,nf)),xt(this,nf,void 0))}},nf=new WeakMap,WB),zh,qh,xi,af,Aa,Tb,of,as,Hl,HB,b7=(HB=class extends b5{constructor(t){super();Bt(this,as);Bt(this,zh);Bt(this,qh);Bt(this,xi);Bt(this,af);Bt(this,Aa);Bt(this,Tb);Bt(this,of);xt(this,of,!1),xt(this,Tb,t.defaultOptions),this.setOptions(t.options),this.observers=[],xt(this,af,t.client),xt(this,xi,ue(this,af).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,xt(this,zh,_7(this.options)),this.state=t.state??ue(this,zh),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ue(this,Aa))==null?void 0:t.promise}setOptions(t){this.options={...ue(this,Tb),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ue(this,xi).remove(this)}setData(t,r){const n=S2(this.state.data,t,this.options);return or(this,as,Hl).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){or(this,as,Hl).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=ue(this,Aa))==null?void 0:n.promise;return(a=ue(this,Aa))==null||a.cancel(t),r?r.then(Ja).catch(Ja):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ue(this,zh))}isActive(){return this.observers.some(t=>ss(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===HI||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!f5(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=ue(this,Aa))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=ue(this,Aa))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ue(this,xi).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(ue(this,Aa)&&(ue(this,of)?ue(this,Aa).cancel({revert:!0}):ue(this,Aa).cancelRetry()),this.scheduleGc()),ue(this,xi).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||or(this,as,Hl).call(this,{type:"invalidate"})}fetch(t,r){var f,u,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(ue(this,Aa))return ue(this,Aa).continueRetry(),ue(this,Aa).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(y=>y.options.queryFn);g&&this.setOptions(g.options)}const n=new AbortController,a=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(xt(this,of,!0),n.signal)})},o=()=>{const g=h5(this.options,r),y={client:ue(this,af),queryKey:this.queryKey,meta:this.meta};return a(y),xt(this,of,!1),this.options.persister?this.options.persister(g,y,this):g(y)},s={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:ue(this,af),state:this.state,fetchFn:o};a(s),(f=this.options.behavior)==null||f.onFetch(s,this),xt(this,qh,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&or(this,as,Hl).call(this,{type:"fetch",meta:(h=s.fetchOptions)==null?void 0:h.meta});const d=g=>{var y,_,S,E;DE(g)&&g.silent||or(this,as,Hl).call(this,{type:"error",error:g}),DE(g)||((_=(y=ue(this,xi).config).onError)==null||_.call(y,g,this),(E=(S=ue(this,xi).config).onSettled)==null||E.call(S,this.state.data,g,this)),this.scheduleGc()};return xt(this,Aa,y5({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:g=>{var y,_,S,E;if(g===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(x){d(x);return}(_=(y=ue(this,xi).config).onSuccess)==null||_.call(y,g,this),(E=(S=ue(this,xi).config).onSettled)==null||E.call(S,g,this.state.error,this),this.scheduleGc()},onError:d,onFail:(g,y)=>{or(this,as,Hl).call(this,{type:"failed",failureCount:g,error:y})},onPause:()=>{or(this,as,Hl).call(this,{type:"pause"})},onContinue:()=>{or(this,as,Hl).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),ue(this,Aa).start()}},zh=new WeakMap,qh=new WeakMap,xi=new WeakMap,af=new WeakMap,Aa=new WeakMap,Tb=new WeakMap,of=new WeakMap,as=new WeakSet,Hl=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,..._5(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return DE(a)&&a.revert&&ue(this,qh)?{...ue(this,qh),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Pn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),ue(this,xi).notify({query:this,type:"updated",action:t})})},HB);function _5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:m5(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function _7(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Gs,GB,x7=(GB=class extends pv{constructor(t={}){super();Bt(this,Gs);this.config=t,xt(this,Gs,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??WI(a,r);let s=this.get(o);return s||(s=new b7({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){ue(this,Gs).has(t.queryHash)||(ue(this,Gs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=ue(this,Gs).get(t.queryHash);r&&(t.destroy(),r===t&&ue(this,Gs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Pn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ue(this,Gs).get(t)}getAll(){return[...ue(this,Gs).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>XA(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>XA(t,n)):r}notify(t){Pn.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Pn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Pn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Gs=new WeakMap,GB),Ks,Qa,sf,Qs,tc,KB,w7=(KB=class extends b5{constructor(t){super();Bt(this,Qs);Bt(this,Ks);Bt(this,Qa);Bt(this,sf);this.mutationId=t.mutationId,xt(this,Qa,t.mutationCache),xt(this,Ks,[]),this.state=t.state||x5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ue(this,Ks).includes(t)||(ue(this,Ks).push(t),this.clearGcTimeout(),ue(this,Qa).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){xt(this,Ks,ue(this,Ks).filter(r=>r!==t)),this.scheduleGc(),ue(this,Qa).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ue(this,Ks).length||(this.state.status==="pending"?this.scheduleGc():ue(this,Qa).remove(this))}continue(){var t;return((t=ue(this,sf))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,d,f,u,h,g,y,_,S,E,x,T,I,R,P,C,O,j,k;const r=()=>{or(this,Qs,tc).call(this,{type:"continue"})};xt(this,sf,y5({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,$)=>{or(this,Qs,tc).call(this,{type:"failed",failureCount:M,error:$})},onPause:()=>{or(this,Qs,tc).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ue(this,Qa).canRun(this)}));const n=this.state.status==="pending",a=!ue(this,sf).canStart();try{if(n)r();else{or(this,Qs,tc).call(this,{type:"pending",variables:t,isPaused:a}),await((s=(o=ue(this,Qa).config).onMutate)==null?void 0:s.call(o,t,this));const $=await((f=(d=this.options).onMutate)==null?void 0:f.call(d,t));$!==this.state.context&&or(this,Qs,tc).call(this,{type:"pending",context:$,variables:t,isPaused:a})}const M=await ue(this,sf).start();return await((h=(u=ue(this,Qa).config).onSuccess)==null?void 0:h.call(u,M,t,this.state.context,this)),await((y=(g=this.options).onSuccess)==null?void 0:y.call(g,M,t,this.state.context)),await((S=(_=ue(this,Qa).config).onSettled)==null?void 0:S.call(_,M,null,this.state.variables,this.state.context,this)),await((x=(E=this.options).onSettled)==null?void 0:x.call(E,M,null,t,this.state.context)),or(this,Qs,tc).call(this,{type:"success",data:M}),M}catch(M){try{throw await((I=(T=ue(this,Qa).config).onError)==null?void 0:I.call(T,M,t,this.state.context,this)),await((P=(R=this.options).onError)==null?void 0:P.call(R,M,t,this.state.context)),await((O=(C=ue(this,Qa).config).onSettled)==null?void 0:O.call(C,void 0,M,this.state.variables,this.state.context,this)),await((k=(j=this.options).onSettled)==null?void 0:k.call(j,void 0,M,t,this.state.context)),M}finally{or(this,Qs,tc).call(this,{type:"error",error:M})}}finally{ue(this,Qa).runNext(this)}}},Ks=new WeakMap,Qa=new WeakMap,sf=new WeakMap,Qs=new WeakSet,tc=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Pn.batch(()=>{ue(this,Ks).forEach(n=>{n.onMutationUpdate(t)}),ue(this,Qa).notify({mutation:this,type:"updated",action:t})})},KB);function x5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kl,os,Ab,QB,S7=(QB=class extends pv{constructor(t={}){super();Bt(this,Kl);Bt(this,os);Bt(this,Ab);this.config=t,xt(this,Kl,new Set),xt(this,os,new Map),xt(this,Ab,0)}build(t,r,n){const a=new w7({mutationCache:this,mutationId:++I_(this,Ab)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){ue(this,Kl).add(t);const r=T_(t);if(typeof r=="string"){const n=ue(this,os).get(r);n?n.push(t):ue(this,os).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(ue(this,Kl).delete(t)){const r=T_(t);if(typeof r=="string"){const n=ue(this,os).get(r);if(n)if(n.length>1){const a=n.indexOf(t);a!==-1&&n.splice(a,1)}else n[0]===t&&ue(this,os).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=T_(t);if(typeof r=="string"){const n=ue(this,os).get(r),a=n==null?void 0:n.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var n;const r=T_(t);if(typeof r=="string"){const a=(n=ue(this,os).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Pn.batch(()=>{ue(this,Kl).forEach(t=>{this.notify({type:"removed",mutation:t})}),ue(this,Kl).clear(),ue(this,os).clear()})}getAll(){return Array.from(ue(this,Kl))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>YA(r,n))}findAll(t={}){return this.getAll().filter(r=>YA(t,r))}notify(t){Pn.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Pn.batch(()=>Promise.all(t.map(r=>r.continue().catch(Ja))))}},Kl=new WeakMap,os=new WeakMap,Ab=new WeakMap,QB);function T_(e){var t;return(t=e.options.scope)==null?void 0:t.id}function eM(e){return{onFetch:(t,r)=>{var h,g,y,_,S;const n=t.options,a=(y=(g=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:g.fetchMore)==null?void 0:y.direction,o=((_=t.state.data)==null?void 0:_.pages)||[],s=((S=t.state.data)==null?void 0:S.pageParams)||[];let d={pages:[],pageParams:[]},f=0;const u=async()=>{let E=!1;const x=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(t.signal.aborted?E=!0:t.signal.addEventListener("abort",()=>{E=!0}),t.signal)})},T=h5(t.options,t.fetchOptions),I=async(R,P,C)=>{if(E)return Promise.reject();if(P==null&&R.pages.length)return Promise.resolve(R);const O={client:t.client,queryKey:t.queryKey,pageParam:P,direction:C?"backward":"forward",meta:t.options.meta};x(O);const j=await T(O),{maxPages:k}=t.options,M=C?p7:f7;return{pages:M(R.pages,j,k),pageParams:M(R.pageParams,P,k)}};if(a&&o.length){const R=a==="backward",P=R?E7:tM,C={pages:o,pageParams:s},O=P(n,C);d=await I(C,O,R)}else{const R=e??o.length;do{const P=f===0?s[0]??n.initialPageParam:tM(n,d);if(f>0&&P==null)break;d=await I(d,P),f++}while(f{var E,x;return(x=(E=t.options).persister)==null?void 0:x.call(E,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function tM(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function E7(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var bn,cc,dc,Uh,Vh,fc,Wh,Hh,XB,C7=(XB=class{constructor(e={}){Bt(this,bn);Bt(this,cc);Bt(this,dc);Bt(this,Uh);Bt(this,Vh);Bt(this,fc);Bt(this,Wh);Bt(this,Hh);xt(this,bn,e.queryCache||new x7),xt(this,cc,e.mutationCache||new S7),xt(this,dc,e.defaultOptions||{}),xt(this,Uh,new Map),xt(this,Vh,new Map),xt(this,fc,0)}mount(){I_(this,fc)._++,ue(this,fc)===1&&(xt(this,Wh,GI.subscribe(async e=>{e&&(await this.resumePausedMutations(),ue(this,bn).onFocus())})),xt(this,Hh,R1.subscribe(async e=>{e&&(await this.resumePausedMutations(),ue(this,bn).onOnline())})))}unmount(){var e,t;I_(this,fc)._--,ue(this,fc)===0&&((e=ue(this,Wh))==null||e.call(this),xt(this,Wh,void 0),(t=ue(this,Hh))==null||t.call(this),xt(this,Hh,void 0))}isFetching(e){return ue(this,bn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ue(this,cc).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=ue(this,bn).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=ue(this,bn).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(wh(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return ue(this,bn).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=ue(this,bn).get(n.queryHash),o=a==null?void 0:a.state.data,s=c7(t,o);if(s!==void 0)return ue(this,bn).build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return Pn.batch(()=>ue(this,bn).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=ue(this,bn).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=ue(this,bn);Pn.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=ue(this,bn);return Pn.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Pn.batch(()=>ue(this,bn).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Ja).catch(Ja)}invalidateQueries(e,t={}){return Pn.batch(()=>(ue(this,bn).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Pn.batch(()=>ue(this,bn).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(Ja)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Ja)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=ue(this,bn).build(this,t);return r.isStaleByTime(wh(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ja).catch(Ja)}fetchInfiniteQuery(e){return e.behavior=eM(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ja).catch(Ja)}ensureInfiniteQueryData(e){return e.behavior=eM(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return R1.isOnline()?ue(this,cc).resumePausedMutations():Promise.resolve()}getQueryCache(){return ue(this,bn)}getMutationCache(){return ue(this,cc)}getDefaultOptions(){return ue(this,dc)}setDefaultOptions(e){xt(this,dc,e)}setQueryDefaults(e,t){ue(this,Uh).set(Pc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ue(this,Uh).values()],r={};return t.forEach(n=>{db(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){ue(this,Vh).set(Pc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ue(this,Vh).values()],r={};return t.forEach(n=>{db(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ue(this,dc).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=WI(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===HI&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ue(this,dc).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ue(this,bn).clear(),ue(this,cc).clear()}},bn=new WeakMap,cc=new WeakMap,dc=new WeakMap,Uh=new WeakMap,Vh=new WeakMap,fc=new WeakMap,Wh=new WeakMap,Hh=new WeakMap,XB),So,pr,Mb,Xa,lf,Gh,pc,hc,Fb,Kh,Qh,uf,cf,vc,Xh,Fr,Ay,C2,O2,P2,R2,k2,I2,j2,w5,YB,O7=(YB=class extends pv{constructor(t,r){super();Bt(this,Fr);Bt(this,So);Bt(this,pr);Bt(this,Mb);Bt(this,Xa);Bt(this,lf);Bt(this,Gh);Bt(this,pc);Bt(this,hc);Bt(this,Fb);Bt(this,Kh);Bt(this,Qh);Bt(this,uf);Bt(this,cf);Bt(this,vc);Bt(this,Xh,new Set);this.options=r,xt(this,So,t),xt(this,hc,null),xt(this,pc,E2()),this.options.experimental_prefetchInRender||ue(this,pc).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ue(this,pr).addObserver(this),rM(ue(this,pr),this.options)?or(this,Fr,Ay).call(this):this.updateResult(),or(this,Fr,R2).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return T2(ue(this,pr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return T2(ue(this,pr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,or(this,Fr,k2).call(this),or(this,Fr,I2).call(this),ue(this,pr).removeObserver(this)}setOptions(t){const r=this.options,n=ue(this,pr);if(this.options=ue(this,So).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ss(this.options.enabled,ue(this,pr))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");or(this,Fr,j2).call(this),ue(this,pr).setOptions(this.options),r._defaulted&&!P1(this.options,r)&&ue(this,So).getQueryCache().notify({type:"observerOptionsUpdated",query:ue(this,pr),observer:this});const a=this.hasListeners();a&&nM(ue(this,pr),n,this.options,r)&&or(this,Fr,Ay).call(this),this.updateResult(),a&&(ue(this,pr)!==n||ss(this.options.enabled,ue(this,pr))!==ss(r.enabled,ue(this,pr))||wh(this.options.staleTime,ue(this,pr))!==wh(r.staleTime,ue(this,pr)))&&or(this,Fr,C2).call(this);const o=or(this,Fr,O2).call(this);a&&(ue(this,pr)!==n||ss(this.options.enabled,ue(this,pr))!==ss(r.enabled,ue(this,pr))||o!==ue(this,vc))&&or(this,Fr,P2).call(this,o)}getOptimisticResult(t){const r=ue(this,So).getQueryCache().build(ue(this,So),t),n=this.createResult(r,t);return R7(this,n)&&(xt(this,Xa,n),xt(this,Gh,this.options),xt(this,lf,ue(this,pr).state)),n}getCurrentResult(){return ue(this,Xa)}trackResult(t,r){return new Proxy(t,{get:(n,a)=>(this.trackProp(a),r==null||r(a),Reflect.get(n,a))})}trackProp(t){ue(this,Xh).add(t)}getCurrentQuery(){return ue(this,pr)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=ue(this,So).defaultQueryOptions(t),n=ue(this,So).getQueryCache().build(ue(this,So),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return or(this,Fr,Ay).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ue(this,Xa)))}createResult(t,r){var M;const n=ue(this,pr),a=this.options,o=ue(this,Xa),s=ue(this,lf),d=ue(this,Gh),u=t!==n?t.state:ue(this,Mb),{state:h}=t;let g={...h},y=!1,_;if(r._optimisticResults){const $=this.hasListeners(),N=!$&&rM(t,r),B=$&&nM(t,n,r,a);(N||B)&&(g={...g,..._5(h.data,t.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:S,errorUpdatedAt:E,status:x}=g;_=g.data;let T=!1;if(r.placeholderData!==void 0&&_===void 0&&x==="pending"){let $;o!=null&&o.isPlaceholderData&&r.placeholderData===(d==null?void 0:d.placeholderData)?($=o.data,T=!0):$=typeof r.placeholderData=="function"?r.placeholderData((M=ue(this,Qh))==null?void 0:M.state.data,ue(this,Qh)):r.placeholderData,$!==void 0&&(x="success",_=S2(o==null?void 0:o.data,$,r),y=!0)}if(r.select&&_!==void 0&&!T)if(o&&_===(s==null?void 0:s.data)&&r.select===ue(this,Fb))_=ue(this,Kh);else try{xt(this,Fb,r.select),_=r.select(_),_=S2(o==null?void 0:o.data,_,r),xt(this,Kh,_),xt(this,hc,null)}catch($){xt(this,hc,$)}ue(this,hc)&&(S=ue(this,hc),_=ue(this,Kh),E=Date.now(),x="error");const I=g.fetchStatus==="fetching",R=x==="pending",P=x==="error",C=R&&I,O=_!==void 0,k={status:x,fetchStatus:g.fetchStatus,isPending:R,isSuccess:x==="success",isError:P,isInitialLoading:C,isLoading:C,data:_,dataUpdatedAt:g.dataUpdatedAt,error:S,errorUpdatedAt:E,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>u.dataUpdateCount||g.errorUpdateCount>u.errorUpdateCount,isFetching:I,isRefetching:I&&!R,isLoadingError:P&&!O,isPaused:g.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:P&&O,isStale:KI(t,r),refetch:this.refetch,promise:ue(this,pc)};if(this.options.experimental_prefetchInRender){const $=q=>{k.status==="error"?q.reject(k.error):k.data!==void 0&&q.resolve(k.data)},N=()=>{const q=xt(this,pc,k.promise=E2());$(q)},B=ue(this,pc);switch(B.status){case"pending":t.queryHash===n.queryHash&&$(B);break;case"fulfilled":(k.status==="error"||k.data!==B.value)&&N();break;case"rejected":(k.status!=="error"||k.error!==B.reason)&&N();break}}return k}updateResult(){const t=ue(this,Xa),r=this.createResult(ue(this,pr),this.options);if(xt(this,lf,ue(this,pr).state),xt(this,Gh,this.options),ue(this,lf).data!==void 0&&xt(this,Qh,ue(this,pr)),P1(r,t))return;xt(this,Xa,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!ue(this,Xh).size)return!0;const s=new Set(o??ue(this,Xh));return this.options.throwOnError&&s.add("error"),Object.keys(ue(this,Xa)).some(d=>{const f=d;return ue(this,Xa)[f]!==t[f]&&s.has(f)})};or(this,Fr,w5).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&or(this,Fr,R2).call(this)}},So=new WeakMap,pr=new WeakMap,Mb=new WeakMap,Xa=new WeakMap,lf=new WeakMap,Gh=new WeakMap,pc=new WeakMap,hc=new WeakMap,Fb=new WeakMap,Kh=new WeakMap,Qh=new WeakMap,uf=new WeakMap,cf=new WeakMap,vc=new WeakMap,Xh=new WeakMap,Fr=new WeakSet,Ay=function(t){or(this,Fr,j2).call(this);let r=ue(this,pr).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Ja)),r},C2=function(){or(this,Fr,k2).call(this);const t=wh(this.options.staleTime,ue(this,pr));if(hf||ue(this,Xa).isStale||!x2(t))return;const n=f5(ue(this,Xa).dataUpdatedAt,t)+1;xt(this,uf,setTimeout(()=>{ue(this,Xa).isStale||this.updateResult()},n))},O2=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ue(this,pr)):this.options.refetchInterval)??!1},P2=function(t){or(this,Fr,I2).call(this),xt(this,vc,t),!(hf||ss(this.options.enabled,ue(this,pr))===!1||!x2(ue(this,vc))||ue(this,vc)===0)&&xt(this,cf,setInterval(()=>{(this.options.refetchIntervalInBackground||GI.isFocused())&&or(this,Fr,Ay).call(this)},ue(this,vc)))},R2=function(){or(this,Fr,C2).call(this),or(this,Fr,P2).call(this,or(this,Fr,O2).call(this))},k2=function(){ue(this,uf)&&(clearTimeout(ue(this,uf)),xt(this,uf,void 0))},I2=function(){ue(this,cf)&&(clearInterval(ue(this,cf)),xt(this,cf,void 0))},j2=function(){const t=ue(this,So).getQueryCache().build(ue(this,So),this.options);if(t===ue(this,pr))return;const r=ue(this,pr);xt(this,pr,t),xt(this,Mb,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},w5=function(t){Pn.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(ue(this,Xa))}),ue(this,So).getQueryCache().notify({query:ue(this,pr),type:"observerResultsUpdated"})})},YB);function P7(e,t){return ss(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function rM(e,t){return P7(e,t)||e.state.data!==void 0&&T2(e,t,t.refetchOnMount)}function T2(e,t,r){if(ss(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&KI(e,t)}return!1}function nM(e,t,r,n){return(e!==t||ss(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&KI(e,r)}function KI(e,t){return ss(t.enabled,e)!==!1&&e.isStaleByTime(wh(t.staleTime,e))}function R7(e,t){return!P1(e.getCurrentResult(),t)}var mc,gc,Eo,Ql,ru,r1,A2,JB,k7=(JB=class extends pv{constructor(r,n){super();Bt(this,ru);Bt(this,mc);Bt(this,gc);Bt(this,Eo);Bt(this,Ql);xt(this,mc,r),this.setOptions(n),this.bindMethods(),or(this,ru,r1).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=ue(this,mc).defaultMutationOptions(r),P1(this.options,n)||ue(this,mc).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ue(this,Eo),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Pc(n.mutationKey)!==Pc(this.options.mutationKey)?this.reset():((a=ue(this,Eo))==null?void 0:a.state.status)==="pending"&&ue(this,Eo).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=ue(this,Eo))==null||r.removeObserver(this)}onMutationUpdate(r){or(this,ru,r1).call(this),or(this,ru,A2).call(this,r)}getCurrentResult(){return ue(this,gc)}reset(){var r;(r=ue(this,Eo))==null||r.removeObserver(this),xt(this,Eo,void 0),or(this,ru,r1).call(this),or(this,ru,A2).call(this)}mutate(r,n){var a;return xt(this,Ql,n),(a=ue(this,Eo))==null||a.removeObserver(this),xt(this,Eo,ue(this,mc).getMutationCache().build(ue(this,mc),this.options)),ue(this,Eo).addObserver(this),ue(this,Eo).execute(r)}},mc=new WeakMap,gc=new WeakMap,Eo=new WeakMap,Ql=new WeakMap,ru=new WeakSet,r1=function(){var n;const r=((n=ue(this,Eo))==null?void 0:n.state)??x5();xt(this,gc,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},A2=function(r){Pn.batch(()=>{var n,a,o,s,d,f,u,h;if(ue(this,Ql)&&this.hasListeners()){const g=ue(this,gc).variables,y=ue(this,gc).context;(r==null?void 0:r.type)==="success"?((a=(n=ue(this,Ql)).onSuccess)==null||a.call(n,r.data,g,y),(s=(o=ue(this,Ql)).onSettled)==null||s.call(o,r.data,null,g,y)):(r==null?void 0:r.type)==="error"&&((f=(d=ue(this,Ql)).onError)==null||f.call(d,r.error,g,y),(h=(u=ue(this,Ql)).onSettled)==null||h.call(u,void 0,r.error,g,y))}this.listeners.forEach(g=>{g(ue(this,gc))})})},JB),S5=p.createContext(void 0),$i=e=>{const t=p.useContext(S5);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},I7=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),A.jsx(S5.Provider,{value:e,children:t})),E5=p.createContext(!1),j7=()=>p.useContext(E5);E5.Provider;function T7(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var A7=p.createContext(T7()),M7=()=>p.useContext(A7),F7=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},$7=e=>{p.useEffect(()=>{e.clearReset()},[e])},L7=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&e.data===void 0||v5(r,[e.error,n])),D7=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...r)=>Math.max(t(...r),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},N7=(e,t)=>e.isLoading&&e.isFetching&&!t,B7=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,aM=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function z7(e,t,r){var g,y,_,S,E;const n=$i(),a=j7(),o=M7(),s=n.defaultQueryOptions(e);(y=(g=n.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||y.call(g,s),s._optimisticResults=a?"isRestoring":"optimistic",D7(s),F7(s,o),$7(o);const d=!n.getQueryCache().get(s.queryHash),[f]=p.useState(()=>new t(n,s)),u=f.getOptimisticResult(s),h=!a&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(x=>{const T=h?f.subscribe(Pn.batchCalls(x)):Ja;return f.updateResult(),T},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),p.useEffect(()=>{f.setOptions(s)},[s,f]),B7(s,u))throw aM(s,f,o);if(L7({result:u,errorResetBoundary:o,throwOnError:s.throwOnError,query:n.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw u.error;if((S=(_=n.getDefaultOptions().queries)==null?void 0:_._experimental_afterQuery)==null||S.call(_,s,u),s.experimental_prefetchInRender&&!hf&&N7(u,a)){const x=d?aM(s,f,o):(E=n.getQueryCache().get(s.queryHash))==null?void 0:E.promise;x==null||x.catch(Ja).finally(()=>{f.updateResult()})}return s.notifyOnChangeProps?u:f.trackResult(u)}function Ic(e,t){return z7(e,O7)}function Ef(e,t){const r=$i(),[n]=p.useState(()=>new k7(r,e));p.useEffect(()=>{n.setOptions(e)},[n,e]);const a=p.useSyncExternalStore(p.useCallback(s=>n.subscribe(Pn.batchCalls(s)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=p.useCallback((s,d)=>{n.mutate(s,d).catch(Ja)},[n]);if(a.error&&v5(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}var zx=e5();const My=tt(zx),q7=ZB({__proto__:null,default:My},[zx]);/** - * @remix-run/router v1.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function vf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function V7(){return Math.random().toString(36).substr(2,8)}function iM(e,t){return{usr:e.state,key:e.key,idx:t}}function fb(e,t,r,n){return r===void 0&&(r=null),sn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sl(t):t,{state:r,key:t&&t.key||n||V7()})}function mf(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 sl(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function W7(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,s=a.history,d=On.Pop,f=null,u=h();u==null&&(u=0,s.replaceState(sn({},s.state,{idx:u}),""));function h(){return(s.state||{idx:null}).idx}function g(){d=On.Pop;let x=h(),T=x==null?null:x-u;u=x,f&&f({action:d,location:E.location,delta:T})}function y(x,T){d=On.Push;let I=fb(E.location,x,T);r&&r(I,x),u=h()+1;let R=iM(I,u),P=E.createHref(I);try{s.pushState(R,"",P)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(P)}o&&f&&f({action:d,location:E.location,delta:1})}function _(x,T){d=On.Replace;let I=fb(E.location,x,T);r&&r(I,x),u=h();let R=iM(I,u),P=E.createHref(I);s.replaceState(R,"",P),o&&f&&f({action:d,location:E.location,delta:0})}function S(x){let T=a.location.origin!=="null"?a.location.origin:a.location.href,I=typeof x=="string"?x:mf(x);return I=I.replace(/ $/,"%20"),Jt(T,"No window.location.(origin|href) available to create URL for href: "+I),new URL(I,T)}let E={get action(){return d},get location(){return e(a,s)},listen(x){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(oM,g),f=x,()=>{a.removeEventListener(oM,g),f=null}},createHref(x){return t(a,x)},createURL:S,encodeLocation(x){let T=S(x);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:y,replace:_,go(x){return s.go(x)}};return E}var zr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zr||(zr={}));const H7=new Set(["lazy","caseSensitive","path","id","index","children"]);function G7(e){return e.index===!0}function k1(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let s=[...r,String(o)],d=typeof a.id=="string"?a.id:s.join("-");if(Jt(a.index!==!0||!a.children,"Cannot specify children on an index route"),Jt(!n[d],'Found a route id collision on id "'+d+`". Route id's must be globally unique within Data Router usages`),G7(a)){let f=sn({},a,t(a),{id:d});return n[d]=f,f}else{let f=sn({},a,t(a),{id:d,children:void 0});return n[d]=f,a.children&&(f.children=k1(a.children,t,s,n)),f}})}function Ud(e,t,r){return r===void 0&&(r="/"),n1(e,t,r,!1)}function n1(e,t,r,n){let a=typeof t=="string"?sl(t):t,o=Rc(a.pathname||"/",r);if(o==null)return null;let s=C5(e);Q7(s);let d=null;for(let f=0;d==null&&f{let f={relativePath:d===void 0?o.path||"":d,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};f.relativePath.startsWith("/")&&(Jt(f.relativePath.startsWith(n),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(n.length));let u=eu([n,f.relativePath]),h=r.concat(f);o.children&&o.children.length>0&&(Jt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),C5(o.children,t,h,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:rH(u,o.index),routesMeta:h})};return e.forEach((o,s)=>{var d;if(o.path===""||!((d=o.path)!=null&&d.includes("?")))a(o,s);else for(let f of O5(o.path))a(o,s,f)}),t}function O5(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let s=O5(n.join("/")),d=[];return d.push(...s.map(f=>f===""?o:[o,f].join("/"))),a&&d.push(...s),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function Q7(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:nH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const X7=/^:[\w-]+$/,Y7=3,J7=2,Z7=1,eH=10,tH=-2,sM=e=>e==="*";function rH(e,t){let r=e.split("/"),n=r.length;return r.some(sM)&&(n+=tH),t&&(n+=J7),r.filter(a=>!sM(a)).reduce((a,o)=>a+(X7.test(o)?Y7:o===""?Z7:eH),n)}function nH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function aH(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",s=[];for(let d=0;d{let{paramName:y,isOptional:_}=h;if(y==="*"){let E=d[g]||"";s=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const S=d[g];return _&&!S?u[y]=void 0:u[y]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function oH(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),vf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,d,f)=>(n.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function P5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vf(!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 Rc(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 iH(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?sl(e):e;return{pathname:r?r.startsWith("/")?r:sH(r,t):t,search:uH(n),hash:cH(a)}}function sH(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function NE(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 R5(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function qx(e,t){let r=R5(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Ux(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=sl(e):(a=sn({},e),Jt(!a.pathname||!a.pathname.includes("?"),NE("?","pathname","search",a)),Jt(!a.pathname||!a.pathname.includes("#"),NE("#","pathname","hash",a)),Jt(!a.search||!a.search.includes("#"),NE("#","search","hash",a)));let o=e===""||a.pathname==="",s=o?"/":a.pathname,d;if(s==null)d=r;else{let g=t.length-1;if(!n&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),g-=1;a.pathname=y.join("/")}d=g>=0?t[g]:"/"}let f=iH(a,d),u=s&&s!=="/"&&s.endsWith("/"),h=(o||s===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(u||h)&&(f.pathname+="/"),f}const eu=e=>e.join("/").replace(/\/\/+/g,"/"),lH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),uH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class I1{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Vx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const k5=["post","put","patch","delete"],dH=new Set(k5),fH=["get",...k5],pH=new Set(fH),hH=new Set([301,302,303,307,308]),vH=new Set([307,308]),BE={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},mH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},dh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},QI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),I5="remix-router-transitions";function yH(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Jt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let le=e.detectErrorBoundary;a=ye=>({hasErrorBoundary:le(ye)})}else a=gH;let o={},s=k1(e.routes,a,void 0,o),d,f=e.basename||"/",u=e.dataStrategy||wH,h=e.patchRoutesOnNavigation,g=sn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),y=null,_=new Set,S=null,E=null,x=null,T=e.hydrationData!=null,I=Ud(s,e.history.location,f),R=null;if(I==null&&!h){let le=Co(404,{pathname:e.history.location.pathname}),{matches:ye,route:je}=yM(s);I=ye,R={[je.id]:le}}I&&!e.hydrationData&&Bi(I,s,e.history.location.pathname).active&&(I=null);let P;if(I)if(I.some(le=>le.route.lazy))P=!1;else if(!I.some(le=>le.route.loader))P=!0;else if(g.v7_partialHydration){let le=e.hydrationData?e.hydrationData.loaderData:null,ye=e.hydrationData?e.hydrationData.errors:null;if(ye){let je=I.findIndex(Ne=>ye[Ne.route.id]!==void 0);P=I.slice(0,je+1).every(Ne=>!F2(Ne.route,le,ye))}else P=I.every(je=>!F2(je.route,le,ye))}else P=e.hydrationData!=null;else if(P=!1,I=[],g.v7_partialHydration){let le=Bi(null,s,e.history.location.pathname);le.active&&le.matches&&(I=le.matches)}let C,O={historyAction:e.history.action,location:e.history.location,matches:I,initialized:P,navigation:BE,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||R,fetchers:new Map,blockers:new Map},j=On.Pop,k=!1,M,$=!1,N=new Map,B=null,q=!1,V=!1,G=[],Y=new Set,X=new Map,H=0,te=-1,ne=new Map,K=new Set,ee=new Map,Ce=new Map,se=new Set,Se=new Map,me=new Map,we;function Oe(){if(y=e.history.listen(le=>{let{action:ye,location:je,delta:Ne}=le;if(we){we(),we=void 0;return}vf(me.size===0||Ne!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let lt=Or({currentLocation:O.location,nextLocation:je,historyAction:ye});if(lt&&Ne!=null){let kt=new Promise(Ft=>{we=Ft});e.history.go(Ne*-1),Qt(lt,{state:"blocked",location:je,proceed(){Qt(lt,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),kt.then(()=>e.history.go(Ne))},reset(){let Ft=new Map(O.blockers);Ft.set(lt,dh),ke({blockers:Ft})}});return}return Le(ye,je)}),r){$H(t,N);let le=()=>LH(t,N);t.addEventListener("pagehide",le),B=()=>t.removeEventListener("pagehide",le)}return O.initialized||Le(On.Pop,O.location,{initialHydration:!0}),C}function ie(){y&&y(),B&&B(),_.clear(),M&&M.abort(),O.fetchers.forEach((le,ye)=>Dt(ye)),O.blockers.forEach((le,ye)=>Ht(ye))}function Fe(le){return _.add(le),()=>_.delete(le)}function ke(le,ye){ye===void 0&&(ye={}),O=sn({},O,le);let je=[],Ne=[];g.v7_fetcherPersist&&O.fetchers.forEach((lt,kt)=>{lt.state==="idle"&&(se.has(kt)?Ne.push(kt):je.push(kt))}),[..._].forEach(lt=>lt(O,{deletedFetchers:Ne,viewTransitionOpts:ye.viewTransitionOpts,flushSync:ye.flushSync===!0})),g.v7_fetcherPersist&&(je.forEach(lt=>O.fetchers.delete(lt)),Ne.forEach(lt=>Dt(lt)))}function $e(le,ye,je){var Ne,lt;let{flushSync:kt}=je===void 0?{}:je,Ft=O.actionData!=null&&O.navigation.formMethod!=null&&is(O.navigation.formMethod)&&O.navigation.state==="loading"&&((Ne=le.state)==null?void 0:Ne._isRedirect)!==!0,ft;ye.actionData?Object.keys(ye.actionData).length>0?ft=ye.actionData:ft=null:Ft?ft=O.actionData:ft=null;let _t=ye.loaderData?mM(O.loaderData,ye.loaderData,ye.matches||[],ye.errors):O.loaderData,mt=O.blockers;mt.size>0&&(mt=new Map(mt),mt.forEach((er,rn)=>mt.set(rn,dh)));let jt=k===!0||O.navigation.formMethod!=null&&is(O.navigation.formMethod)&&((lt=le.state)==null?void 0:lt._isRedirect)!==!0;d&&(s=d,d=void 0),q||j===On.Pop||(j===On.Push?e.history.push(le,le.state):j===On.Replace&&e.history.replace(le,le.state));let Wt;if(j===On.Pop){let er=N.get(O.location.pathname);er&&er.has(le.pathname)?Wt={currentLocation:O.location,nextLocation:le}:N.has(le.pathname)&&(Wt={currentLocation:le,nextLocation:O.location})}else if($){let er=N.get(O.location.pathname);er?er.add(le.pathname):(er=new Set([le.pathname]),N.set(O.location.pathname,er)),Wt={currentLocation:O.location,nextLocation:le}}ke(sn({},ye,{actionData:ft,loaderData:_t,historyAction:j,location:le,initialized:!0,navigation:BE,revalidation:"idle",restoreScrollPosition:ms(le,ye.matches||O.matches),preventScrollReset:jt,blockers:mt}),{viewTransitionOpts:Wt,flushSync:kt===!0}),j=On.Pop,k=!1,$=!1,q=!1,V=!1,G=[]}async function Te(le,ye){if(typeof le=="number"){e.history.go(le);return}let je=M2(O.location,O.matches,f,g.v7_prependBasename,le,g.v7_relativeSplatPath,ye==null?void 0:ye.fromRouteId,ye==null?void 0:ye.relative),{path:Ne,submission:lt,error:kt}=lM(g.v7_normalizeFormMethod,!1,je,ye),Ft=O.location,ft=fb(O.location,Ne,ye&&ye.state);ft=sn({},ft,e.history.encodeLocation(ft));let _t=ye&&ye.replace!=null?ye.replace:void 0,mt=On.Push;_t===!0?mt=On.Replace:_t===!1||lt!=null&&is(lt.formMethod)&<.formAction===O.location.pathname+O.location.search&&(mt=On.Replace);let jt=ye&&"preventScrollReset"in ye?ye.preventScrollReset===!0:void 0,Wt=(ye&&ye.flushSync)===!0,er=Or({currentLocation:Ft,nextLocation:ft,historyAction:mt});if(er){Qt(er,{state:"blocked",location:ft,proceed(){Qt(er,{state:"proceeding",proceed:void 0,reset:void 0,location:ft}),Te(le,ye)},reset(){let rn=new Map(O.blockers);rn.set(er,dh),ke({blockers:rn})}});return}return await Le(mt,ft,{submission:lt,pendingError:kt,preventScrollReset:jt,replace:ye&&ye.replace,enableViewTransition:ye&&ye.viewTransition,flushSync:Wt})}function Be(){if(Mt(),ke({revalidation:"loading"}),O.navigation.state!=="submitting"){if(O.navigation.state==="idle"){Le(O.historyAction,O.location,{startUninterruptedRevalidation:!0});return}Le(j||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:$===!0})}}async function Le(le,ye,je){M&&M.abort(),M=null,j=le,q=(je&&je.startUninterruptedRevalidation)===!0,Io(O.location,O.matches),k=(je&&je.preventScrollReset)===!0,$=(je&&je.enableViewTransition)===!0;let Ne=d||s,lt=je&&je.overrideNavigation,kt=Ud(Ne,ye,f),Ft=(je&&je.flushSync)===!0,ft=Bi(kt,Ne,ye.pathname);if(ft.active&&ft.matches&&(kt=ft.matches),!kt){let{error:Er,notFoundMatches:sr,route:It}=Ur(ye.pathname);$e(ye,{matches:sr,loaderData:{},errors:{[It.id]:Er}},{flushSync:Ft});return}if(O.initialized&&!V&&RH(O.location,ye)&&!(je&&je.submission&&is(je.submission.formMethod))){$e(ye,{matches:kt},{flushSync:Ft});return}M=new AbortController;let _t=th(e.history,ye,M.signal,je&&je.submission),mt;if(je&&je.pendingError)mt=[Vd(kt).route.id,{type:zr.error,error:je.pendingError}];else if(je&&je.submission&&is(je.submission.formMethod)){let Er=await dt(_t,ye,je.submission,kt,ft.active,{replace:je.replace,flushSync:Ft});if(Er.shortCircuited)return;if(Er.pendingActionResult){let[sr,It]=Er.pendingActionResult;if(Ho(It)&&Vx(It.error)&&It.error.status===404){M=null,$e(ye,{matches:Er.matches,loaderData:{},errors:{[sr]:It.error}});return}}kt=Er.matches||kt,mt=Er.pendingActionResult,lt=zE(ye,je.submission),Ft=!1,ft.active=!1,_t=th(e.history,_t.url,_t.signal)}let{shortCircuited:jt,matches:Wt,loaderData:er,errors:rn}=await He(_t,ye,kt,ft.active,lt,je&&je.submission,je&&je.fetcherSubmission,je&&je.replace,je&&je.initialHydration===!0,Ft,mt);jt||(M=null,$e(ye,sn({matches:Wt||kt},gM(mt),{loaderData:er,errors:rn})))}async function dt(le,ye,je,Ne,lt,kt){kt===void 0&&(kt={}),Mt();let Ft=MH(ye,je);if(ke({navigation:Ft},{flushSync:kt.flushSync===!0}),lt){let mt=await ri(Ne,ye.pathname,le.signal);if(mt.type==="aborted")return{shortCircuited:!0};if(mt.type==="error"){let jt=Vd(mt.partialMatches).route.id;return{matches:mt.partialMatches,pendingActionResult:[jt,{type:zr.error,error:mt.error}]}}else if(mt.matches)Ne=mt.matches;else{let{notFoundMatches:jt,error:Wt,route:er}=Ur(ye.pathname);return{matches:jt,pendingActionResult:[er.id,{type:zr.error,error:Wt}]}}}let ft,_t=Fy(Ne,ye);if(!_t.route.action&&!_t.route.lazy)ft={type:zr.error,error:Co(405,{method:le.method,pathname:ye.pathname,routeId:_t.route.id})};else if(ft=(await De("action",O,le,[_t],Ne,null))[_t.route.id],le.signal.aborted)return{shortCircuited:!0};if(Yd(ft)){let mt;return kt&&kt.replace!=null?mt=kt.replace:mt=pM(ft.response.headers.get("Location"),new URL(le.url),f)===O.location.pathname+O.location.search,await _e(le,ft,!0,{submission:je,replace:mt}),{shortCircuited:!0}}if(yc(ft))throw Co(400,{type:"defer-action"});if(Ho(ft)){let mt=Vd(Ne,_t.route.id);return(kt&&kt.replace)!==!0&&(j=On.Push),{matches:Ne,pendingActionResult:[mt.route.id,ft]}}return{matches:Ne,pendingActionResult:[_t.route.id,ft]}}async function He(le,ye,je,Ne,lt,kt,Ft,ft,_t,mt,jt){let Wt=lt||zE(ye,kt),er=kt||Ft||_M(Wt),rn=!q&&(!g.v7_partialHydration||!_t);if(Ne){if(rn){let $r=Z(jt);ke(sn({navigation:Wt},$r!==void 0?{actionData:$r}:{}),{flushSync:mt})}let ur=await ri(je,ye.pathname,le.signal);if(ur.type==="aborted")return{shortCircuited:!0};if(ur.type==="error"){let $r=Vd(ur.partialMatches).route.id;return{matches:ur.partialMatches,loaderData:{},errors:{[$r]:ur.error}}}else if(ur.matches)je=ur.matches;else{let{error:$r,notFoundMatches:To,route:Jn}=Ur(ye.pathname);return{matches:To,loaderData:{},errors:{[Jn.id]:$r}}}}let Er=d||s,[sr,It]=cM(e.history,O,je,er,ye,g.v7_partialHydration&&_t===!0,g.v7_skipActionErrorRevalidation,V,G,Y,se,ee,K,Er,f,jt);if(Gr(ur=>!(je&&je.some($r=>$r.route.id===ur))||sr&&sr.some($r=>$r.route.id===ur)),te=++H,sr.length===0&&It.length===0){let ur=Pt();return $e(ye,sn({matches:je,loaderData:{},errors:jt&&Ho(jt[1])?{[jt[0]]:jt[1].error}:null},gM(jt),ur?{fetchers:new Map(O.fetchers)}:{}),{flushSync:mt}),{shortCircuited:!0}}if(rn){let ur={};if(!Ne){ur.navigation=Wt;let $r=Z(jt);$r!==void 0&&(ur.actionData=$r)}It.length>0&&(ur.fetchers=ae(It)),ke(ur,{flushSync:mt})}It.forEach(ur=>{Kt(ur.key),ur.controller&&X.set(ur.key,ur.controller)});let Zr=()=>It.forEach(ur=>Kt(ur.key));M&&M.signal.addEventListener("abort",Zr);let{loaderResults:ys,fetcherResults:Sa}=await Ge(O,je,sr,It,le);if(le.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",Zr),It.forEach(ur=>X.delete(ur.key));let ao=A_(ys);if(ao)return await _e(le,ao.result,!0,{replace:ft}),{shortCircuited:!0};if(ao=A_(Sa),ao)return K.add(ao.key),await _e(le,ao.result,!0,{replace:ft}),{shortCircuited:!0};let{loaderData:Ir,errors:pl}=vM(O,je,ys,jt,It,Sa,Se);Se.forEach((ur,$r)=>{ur.subscribe(To=>{(To||ur.done)&&Se.delete($r)})}),g.v7_partialHydration&&_t&&O.errors&&(pl=sn({},O.errors,pl));let jo=Pt(),hl=Je(te),ni=jo||hl||It.length>0;return sn({matches:je,loaderData:Ir,errors:pl},ni?{fetchers:new Map(O.fetchers)}:{})}function Z(le){if(le&&!Ho(le[1]))return{[le[0]]:le[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function ae(le){return le.forEach(ye=>{let je=O.fetchers.get(ye.key),Ne=Zm(void 0,je?je.data:void 0);O.fetchers.set(ye.key,Ne)}),new Map(O.fetchers)}function fe(le,ye,je,Ne){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Kt(le);let lt=(Ne&&Ne.flushSync)===!0,kt=d||s,Ft=M2(O.location,O.matches,f,g.v7_prependBasename,je,g.v7_relativeSplatPath,ye,Ne==null?void 0:Ne.relative),ft=Ud(kt,Ft,f),_t=Bi(ft,kt,Ft);if(_t.active&&_t.matches&&(ft=_t.matches),!ft){ot(le,ye,Co(404,{pathname:Ft}),{flushSync:lt});return}let{path:mt,submission:jt,error:Wt}=lM(g.v7_normalizeFormMethod,!0,Ft,Ne);if(Wt){ot(le,ye,Wt,{flushSync:lt});return}let er=Fy(ft,mt),rn=(Ne&&Ne.preventScrollReset)===!0;if(jt&&is(jt.formMethod)){ve(le,ye,mt,er,ft,_t.active,lt,rn,jt);return}ee.set(le,{routeId:ye,path:mt}),be(le,ye,mt,er,ft,_t.active,lt,rn,jt)}async function ve(le,ye,je,Ne,lt,kt,Ft,ft,_t){Mt(),ee.delete(le);function mt(nn){if(!nn.route.action&&!nn.route.lazy){let In=Co(405,{method:_t.formMethod,pathname:je,routeId:ye});return ot(le,ye,In,{flushSync:Ft}),!0}return!1}if(!kt&&mt(Ne))return;let jt=O.fetchers.get(le);et(le,FH(_t,jt),{flushSync:Ft});let Wt=new AbortController,er=th(e.history,je,Wt.signal,_t);if(kt){let nn=await ri(lt,je,er.signal);if(nn.type==="aborted")return;if(nn.type==="error"){ot(le,ye,nn.error,{flushSync:Ft});return}else if(nn.matches){if(lt=nn.matches,Ne=Fy(lt,je),mt(Ne))return}else{ot(le,ye,Co(404,{pathname:je}),{flushSync:Ft});return}}X.set(le,Wt);let rn=H,sr=(await De("action",O,er,[Ne],lt,le))[Ne.route.id];if(er.signal.aborted){X.get(le)===Wt&&X.delete(le);return}if(g.v7_fetcherPersist&&se.has(le)){if(Yd(sr)||Ho(sr)){et(le,rc(void 0));return}}else{if(Yd(sr))if(X.delete(le),te>rn){et(le,rc(void 0));return}else return K.add(le),et(le,Zm(_t)),_e(er,sr,!1,{fetcherSubmission:_t,preventScrollReset:ft});if(Ho(sr)){ot(le,ye,sr.error);return}}if(yc(sr))throw Co(400,{type:"defer-action"});let It=O.navigation.location||O.location,Zr=th(e.history,It,Wt.signal),ys=d||s,Sa=O.navigation.state!=="idle"?Ud(ys,O.navigation.location,f):O.matches;Jt(Sa,"Didn't find any matches after fetcher action");let ao=++H;ne.set(le,ao);let Ir=Zm(_t,sr.data);O.fetchers.set(le,Ir);let[pl,jo]=cM(e.history,O,Sa,_t,It,!1,g.v7_skipActionErrorRevalidation,V,G,Y,se,ee,K,ys,f,[Ne.route.id,sr]);jo.filter(nn=>nn.key!==le).forEach(nn=>{let In=nn.key,Uc=O.fetchers.get(In),Af=Zm(void 0,Uc?Uc.data:void 0);O.fetchers.set(In,Af),Kt(In),nn.controller&&X.set(In,nn.controller)}),ke({fetchers:new Map(O.fetchers)});let hl=()=>jo.forEach(nn=>Kt(nn.key));Wt.signal.addEventListener("abort",hl);let{loaderResults:ni,fetcherResults:ur}=await Ge(O,Sa,pl,jo,Zr);if(Wt.signal.aborted)return;Wt.signal.removeEventListener("abort",hl),ne.delete(le),X.delete(le),jo.forEach(nn=>X.delete(nn.key));let $r=A_(ni);if($r)return _e(Zr,$r.result,!1,{preventScrollReset:ft});if($r=A_(ur),$r)return K.add($r.key),_e(Zr,$r.result,!1,{preventScrollReset:ft});let{loaderData:To,errors:Jn}=vM(O,Sa,ni,void 0,jo,ur,Se);if(O.fetchers.has(le)){let nn=rc(sr.data);O.fetchers.set(le,nn)}Je(ao),O.navigation.state==="loading"&&ao>te?(Jt(j,"Expected pending action"),M&&M.abort(),$e(O.navigation.location,{matches:Sa,loaderData:To,errors:Jn,fetchers:new Map(O.fetchers)})):(ke({errors:Jn,loaderData:mM(O.loaderData,To,Sa,Jn),fetchers:new Map(O.fetchers)}),V=!1)}async function be(le,ye,je,Ne,lt,kt,Ft,ft,_t){let mt=O.fetchers.get(le);et(le,Zm(_t,mt?mt.data:void 0),{flushSync:Ft});let jt=new AbortController,Wt=th(e.history,je,jt.signal);if(kt){let sr=await ri(lt,je,Wt.signal);if(sr.type==="aborted")return;if(sr.type==="error"){ot(le,ye,sr.error,{flushSync:Ft});return}else if(sr.matches)lt=sr.matches,Ne=Fy(lt,je);else{ot(le,ye,Co(404,{pathname:je}),{flushSync:Ft});return}}X.set(le,jt);let er=H,Er=(await De("loader",O,Wt,[Ne],lt,le))[Ne.route.id];if(yc(Er)&&(Er=await XI(Er,Wt.signal,!0)||Er),X.get(le)===jt&&X.delete(le),!Wt.signal.aborted){if(se.has(le)){et(le,rc(void 0));return}if(Yd(Er))if(te>er){et(le,rc(void 0));return}else{K.add(le),await _e(Wt,Er,!1,{preventScrollReset:ft});return}if(Ho(Er)){ot(le,ye,Er.error);return}Jt(!yc(Er),"Unhandled fetcher deferred data"),et(le,rc(Er.data))}}async function _e(le,ye,je,Ne){let{submission:lt,fetcherSubmission:kt,preventScrollReset:Ft,replace:ft}=Ne===void 0?{}:Ne;ye.response.headers.has("X-Remix-Revalidate")&&(V=!0);let _t=ye.response.headers.get("Location");Jt(_t,"Expected a Location header on the redirect Response"),_t=pM(_t,new URL(le.url),f);let mt=fb(O.location,_t,{_isRedirect:!0});if(r){let sr=!1;if(ye.response.headers.has("X-Remix-Reload-Document"))sr=!0;else if(QI.test(_t)){const It=e.history.createURL(_t);sr=It.origin!==t.location.origin||Rc(It.pathname,f)==null}if(sr){ft?t.location.replace(_t):t.location.assign(_t);return}}M=null;let jt=ft===!0||ye.response.headers.has("X-Remix-Replace")?On.Replace:On.Push,{formMethod:Wt,formAction:er,formEncType:rn}=O.navigation;!lt&&!kt&&Wt&&er&&rn&&(lt=_M(O.navigation));let Er=lt||kt;if(vH.has(ye.response.status)&&Er&&is(Er.formMethod))await Le(jt,mt,{submission:sn({},Er,{formAction:_t}),preventScrollReset:Ft||k,enableViewTransition:je?$:void 0});else{let sr=zE(mt,lt);await Le(jt,mt,{overrideNavigation:sr,fetcherSubmission:kt,preventScrollReset:Ft||k,enableViewTransition:je?$:void 0})}}async function De(le,ye,je,Ne,lt,kt){let Ft,ft={};try{Ft=await SH(u,le,ye,je,Ne,lt,kt,o,a)}catch(_t){return Ne.forEach(mt=>{ft[mt.route.id]={type:zr.error,error:_t}}),ft}for(let[_t,mt]of Object.entries(Ft))if(kH(mt)){let jt=mt.result;ft[_t]={type:zr.redirect,response:OH(jt,je,_t,lt,f,g.v7_relativeSplatPath)}}else ft[_t]=await CH(mt);return ft}async function Ge(le,ye,je,Ne,lt){let kt=le.matches,Ft=De("loader",le,lt,je,ye,null),ft=Promise.all(Ne.map(async jt=>{if(jt.matches&&jt.match&&jt.controller){let er=(await De("loader",le,th(e.history,jt.path,jt.controller.signal),[jt.match],jt.matches,jt.key))[jt.match.route.id];return{[jt.key]:er}}else return Promise.resolve({[jt.key]:{type:zr.error,error:Co(404,{pathname:jt.path})}})})),_t=await Ft,mt=(await ft).reduce((jt,Wt)=>Object.assign(jt,Wt),{});return await Promise.all([TH(ye,_t,lt.signal,kt,le.loaderData),AH(ye,mt,Ne)]),{loaderResults:_t,fetcherResults:mt}}function Mt(){V=!0,G.push(...Gr()),ee.forEach((le,ye)=>{X.has(ye)&&Y.add(ye),Kt(ye)})}function et(le,ye,je){je===void 0&&(je={}),O.fetchers.set(le,ye),ke({fetchers:new Map(O.fetchers)},{flushSync:(je&&je.flushSync)===!0})}function ot(le,ye,je,Ne){Ne===void 0&&(Ne={});let lt=Vd(O.matches,ye);Dt(le),ke({errors:{[lt.route.id]:je},fetchers:new Map(O.fetchers)},{flushSync:(Ne&&Ne.flushSync)===!0})}function it(le){return g.v7_fetcherPersist&&(Ce.set(le,(Ce.get(le)||0)+1),se.has(le)&&se.delete(le)),O.fetchers.get(le)||mH}function Dt(le){let ye=O.fetchers.get(le);X.has(le)&&!(ye&&ye.state==="loading"&&ne.has(le))&&Kt(le),ee.delete(le),ne.delete(le),K.delete(le),se.delete(le),Y.delete(le),O.fetchers.delete(le)}function Zt(le){if(g.v7_fetcherPersist){let ye=(Ce.get(le)||0)-1;ye<=0?(Ce.delete(le),se.add(le)):Ce.set(le,ye)}else Dt(le);ke({fetchers:new Map(O.fetchers)})}function Kt(le){let ye=X.get(le);ye&&(ye.abort(),X.delete(le))}function nt(le){for(let ye of le){let je=it(ye),Ne=rc(je.data);O.fetchers.set(ye,Ne)}}function Pt(){let le=[],ye=!1;for(let je of K){let Ne=O.fetchers.get(je);Jt(Ne,"Expected fetcher: "+je),Ne.state==="loading"&&(K.delete(je),le.push(je),ye=!0)}return nt(le),ye}function Je(le){let ye=[];for(let[je,Ne]of ne)if(Ne0}function ut(le,ye){let je=O.blockers.get(le)||dh;return me.get(le)!==ye&&me.set(le,ye),je}function Ht(le){O.blockers.delete(le),me.delete(le)}function Qt(le,ye){let je=O.blockers.get(le)||dh;Jt(je.state==="unblocked"&&ye.state==="blocked"||je.state==="blocked"&&ye.state==="blocked"||je.state==="blocked"&&ye.state==="proceeding"||je.state==="blocked"&&ye.state==="unblocked"||je.state==="proceeding"&&ye.state==="unblocked","Invalid blocker state transition: "+je.state+" -> "+ye.state);let Ne=new Map(O.blockers);Ne.set(le,ye),ke({blockers:Ne})}function Or(le){let{currentLocation:ye,nextLocation:je,historyAction:Ne}=le;if(me.size===0)return;me.size>1&&vf(!1,"A router only supports one blocker at a time");let lt=Array.from(me.entries()),[kt,Ft]=lt[lt.length-1],ft=O.blockers.get(kt);if(!(ft&&ft.state==="proceeding")&&Ft({currentLocation:ye,nextLocation:je,historyAction:Ne}))return kt}function Ur(le){let ye=Co(404,{pathname:le}),je=d||s,{matches:Ne,route:lt}=yM(je);return Gr(),{notFoundMatches:Ne,route:lt,error:ye}}function Gr(le){let ye=[];return Se.forEach((je,Ne)=>{(!le||le(Ne))&&(je.cancel(),ye.push(Ne),Se.delete(Ne))}),ye}function kn(le,ye,je){if(S=le,x=ye,E=je||null,!T&&O.navigation===BE){T=!0;let Ne=ms(O.location,O.matches);Ne!=null&&ke({restoreScrollPosition:Ne})}return()=>{S=null,x=null,E=null}}function zn(le,ye){return E&&E(le,ye.map(Ne=>K7(Ne,O.loaderData)))||le.key}function Io(le,ye){if(S&&x){let je=zn(le,ye);S[je]=x()}}function ms(le,ye){if(S){let je=zn(le,ye),Ne=S[je];if(typeof Ne=="number")return Ne}return null}function Bi(le,ye,je){if(h)if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:n1(ye,je,f,!0)}}else return{active:!0,matches:n1(ye,je,f,!0)||[]};return{active:!1,matches:null}}async function ri(le,ye,je){if(!h)return{type:"success",matches:le};let Ne=le;for(;;){let lt=d==null,kt=d||s,Ft=o;try{await h({path:ye,matches:Ne,patch:(mt,jt)=>{je.aborted||fM(mt,jt,kt,Ft,a)}})}catch(mt){return{type:"error",error:mt,partialMatches:Ne}}finally{lt&&!je.aborted&&(s=[...s])}if(je.aborted)return{type:"aborted"};let ft=Ud(kt,ye,f);if(ft)return{type:"success",matches:ft};let _t=n1(kt,ye,f,!0);if(!_t||Ne.length===_t.length&&Ne.every((mt,jt)=>mt.route.id===_t[jt].route.id))return{type:"success",matches:null};Ne=_t}}function fl(le){o={},d=k1(le,a,void 0,o)}function gs(le,ye){let je=d==null;fM(le,ye,d||s,o,a),je&&(s=[...s],ke({}))}return C={get basename(){return f},get future(){return g},get state(){return O},get routes(){return s},get window(){return t},initialize:Oe,subscribe:Fe,enableScrollRestoration:kn,navigate:Te,fetch:fe,revalidate:Be,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:it,deleteFetcher:Zt,dispose:ie,getBlocker:ut,deleteBlocker:Ht,patchRoutes:gs,_internalFetchControllers:X,_internalActiveDeferreds:Se,_internalSetRoutes:fl},C}function bH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function M2(e,t,r,n,a,o,s,d){let f,u;if(s){f=[];for(let g of t)if(f.push(g),g.route.id===s){u=g;break}}else f=t,u=t[t.length-1];let h=Ux(a||".",qx(f,o),Rc(e.pathname,r)||e.pathname,d==="path");if(a==null&&(h.search=e.search,h.hash=e.hash),(a==null||a===""||a===".")&&u){let g=YI(h.search);if(u.route.index&&!g)h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&g){let y=new URLSearchParams(h.search),_=y.getAll("index");y.delete("index"),_.filter(E=>E).forEach(E=>y.append("index",E));let S=y.toString();h.search=S?"?"+S:""}}return n&&r!=="/"&&(h.pathname=h.pathname==="/"?r:eu([r,h.pathname])),mf(h)}function lM(e,t,r,n){if(!n||!bH(n))return{path:r};if(n.formMethod&&!jH(n.formMethod))return{path:r,error:Co(405,{method:n.formMethod})};let a=()=>({path:r,error:Co(400,{type:"invalid-body"})}),o=n.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),d=A5(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!is(s))return a();let y=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((_,S)=>{let[E,x]=S;return""+_+E+"="+x+` -`},""):String(n.body);return{path:r,submission:{formMethod:s,formAction:d,formEncType:n.formEncType,formData:void 0,json:void 0,text:y}}}else if(n.formEncType==="application/json"){if(!is(s))return a();try{let y=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:s,formAction:d,formEncType:n.formEncType,formData:void 0,json:y,text:void 0}}}catch{return a()}}}Jt(typeof FormData=="function","FormData is not available in this environment");let f,u;if(n.formData)f=$2(n.formData),u=n.formData;else if(n.body instanceof FormData)f=$2(n.body),u=n.body;else if(n.body instanceof URLSearchParams)f=n.body,u=hM(f);else if(n.body==null)f=new URLSearchParams,u=new FormData;else try{f=new URLSearchParams(n.body),u=hM(f)}catch{return a()}let h={formMethod:s,formAction:d,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(is(h.formMethod))return{path:r,submission:h};let g=sl(r);return t&&g.search&&YI(g.search)&&f.append("index",""),g.search="?"+f,{path:mf(g),submission:h}}function uM(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(a=>a.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function cM(e,t,r,n,a,o,s,d,f,u,h,g,y,_,S,E){let x=E?Ho(E[1])?E[1].error:E[1].data:void 0,T=e.createURL(t.location),I=e.createURL(a),R=r;o&&t.errors?R=uM(r,Object.keys(t.errors)[0],!0):E&&Ho(E[1])&&(R=uM(r,E[0]));let P=E?E[1].statusCode:void 0,C=s&&P&&P>=400,O=R.filter((k,M)=>{let{route:$}=k;if($.lazy)return!0;if($.loader==null)return!1;if(o)return F2($,t.loaderData,t.errors);if(_H(t.loaderData,t.matches[M],k)||f.some(q=>q===k.route.id))return!0;let N=t.matches[M],B=k;return dM(k,sn({currentUrl:T,currentParams:N.params,nextUrl:I,nextParams:B.params},n,{actionResult:x,actionStatus:P,defaultShouldRevalidate:C?!1:d||T.pathname+T.search===I.pathname+I.search||T.search!==I.search||j5(N,B)}))}),j=[];return g.forEach((k,M)=>{if(o||!r.some(V=>V.route.id===k.routeId)||h.has(M))return;let $=Ud(_,k.path,S);if(!$){j.push({key:M,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let N=t.fetchers.get(M),B=Fy($,k.path),q=!1;y.has(M)?q=!1:u.has(M)?(u.delete(M),q=!0):N&&N.state!=="idle"&&N.data===void 0?q=d:q=dM(B,sn({currentUrl:T,currentParams:t.matches[t.matches.length-1].params,nextUrl:I,nextParams:r[r.length-1].params},n,{actionResult:x,actionStatus:P,defaultShouldRevalidate:C?!1:d})),q&&j.push({key:M,routeId:k.routeId,path:k.path,matches:$,match:B,controller:new AbortController})}),[O,j]}function F2(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function _H(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function j5(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function dM(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function fM(e,t,r,n,a){var o;let s;if(e){let u=n[e];Jt(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),s=u.children}else s=r;let d=t.filter(u=>!s.some(h=>T5(u,h))),f=k1(d,a,[e||"_","patch",String(((o=s)==null?void 0:o.length)||"0")],n);s.push(...f)}function T5(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(o=>T5(r,o))}):!1}async function xH(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];Jt(a,"No route found in manifest");let o={};for(let s in n){let f=a[s]!==void 0&&s!=="hasErrorBoundary";vf(!f,'Route "'+a.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!f&&!H7.has(s)&&(o[s]=n[s])}Object.assign(a,o),Object.assign(a,sn({},t(a),{lazy:void 0}))}async function wH(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,s)=>Object.assign(a,{[r[s].route.id]:o}),{})}async function SH(e,t,r,n,a,o,s,d,f,u){let h=o.map(_=>_.route.lazy?xH(_.route,f,d):void 0),g=o.map((_,S)=>{let E=h[S],x=a.some(I=>I.route.id===_.route.id);return sn({},_,{shouldLoad:x,resolve:async I=>(I&&n.method==="GET"&&(_.route.lazy||_.route.loader)&&(x=!0),x?EH(t,n,_,E,I,u):Promise.resolve({type:zr.data,result:void 0}))})}),y=await e({matches:g,request:n,params:o[0].params,fetcherKey:s,context:u});try{await Promise.all(h)}catch{}return y}async function EH(e,t,r,n,a,o){let s,d,f=u=>{let h,g=new Promise((S,E)=>h=E);d=()=>h(),t.signal.addEventListener("abort",d);let y=S=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):u({request:t,params:r.params,context:o},...S!==void 0?[S]:[]),_=(async()=>{try{return{type:"data",result:await(a?a(E=>y(E)):y())}}catch(S){return{type:"error",result:S}}})();return Promise.race([_,g])};try{let u=r.route[e];if(n)if(u){let h,[g]=await Promise.all([f(u).catch(y=>{h=y}),n]);if(h!==void 0)throw h;s=g}else if(await n,u=r.route[e],u)s=await f(u);else if(e==="action"){let h=new URL(t.url),g=h.pathname+h.search;throw Co(405,{method:t.method,pathname:g,routeId:r.route.id})}else return{type:zr.data,result:void 0};else if(u)s=await f(u);else{let h=new URL(t.url),g=h.pathname+h.search;throw Co(404,{pathname:g})}Jt(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:zr.error,result:u}}finally{d&&t.signal.removeEventListener("abort",d)}return s}async function CH(e){let{result:t,type:r}=e;if(M5(t)){let u;try{let h=t.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(h){return{type:zr.error,error:h}}return r===zr.error?{type:zr.error,error:new I1(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:zr.data,data:u,statusCode:t.status,headers:t.headers}}if(r===zr.error){if(bM(t)){var n;if(t.data instanceof Error){var a;return{type:zr.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new I1(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:zr.error,error:t,statusCode:Vx(t)?t.status:void 0}}if(IH(t)){var o,s;return{type:zr.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((s=t.init)==null?void 0:s.headers)&&new Headers(t.init.headers)}}if(bM(t)){var d,f;return{type:zr.data,data:t.data,statusCode:(d=t.init)==null?void 0:d.status,headers:(f=t.init)!=null&&f.headers?new Headers(t.init.headers):void 0}}return{type:zr.data,data:t}}function OH(e,t,r,n,a,o){let s=e.headers.get("Location");if(Jt(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!QI.test(s)){let d=n.slice(0,n.findIndex(f=>f.route.id===r)+1);s=M2(new URL(t.url),d,a,!0,s,o),e.headers.set("Location",s)}return e}function pM(e,t,r){if(QI.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Rc(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function th(e,t,r,n){let a=e.createURL(A5(t)).toString(),o={signal:r};if(n&&is(n.formMethod)){let{formMethod:s,formEncType:d}=n;o.method=s.toUpperCase(),d==="application/json"?(o.headers=new Headers({"Content-Type":d}),o.body=JSON.stringify(n.json)):d==="text/plain"?o.body=n.text:d==="application/x-www-form-urlencoded"&&n.formData?o.body=$2(n.formData):o.body=n.formData}return new Request(a,o)}function $2(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function hM(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function PH(e,t,r,n,a){let o={},s=null,d,f=!1,u={},h=r&&Ho(r[1])?r[1].error:void 0;return e.forEach(g=>{if(!(g.route.id in t))return;let y=g.route.id,_=t[y];if(Jt(!Yd(_),"Cannot handle redirect results in processLoaderData"),Ho(_)){let S=_.error;h!==void 0&&(S=h,h=void 0),s=s||{};{let E=Vd(e,y);s[E.route.id]==null&&(s[E.route.id]=S)}o[y]=void 0,f||(f=!0,d=Vx(_.error)?_.error.status:500),_.headers&&(u[y]=_.headers)}else yc(_)?(n.set(y,_.deferredData),o[y]=_.deferredData.data,_.statusCode!=null&&_.statusCode!==200&&!f&&(d=_.statusCode),_.headers&&(u[y]=_.headers)):(o[y]=_.data,_.statusCode&&_.statusCode!==200&&!f&&(d=_.statusCode),_.headers&&(u[y]=_.headers))}),h!==void 0&&r&&(s={[r[0]]:h},o[r[0]]=void 0),{loaderData:o,errors:s,statusCode:d||200,loaderHeaders:u}}function vM(e,t,r,n,a,o,s){let{loaderData:d,errors:f}=PH(t,r,n,s);return a.forEach(u=>{let{key:h,match:g,controller:y}=u,_=o[h];if(Jt(_,"Did not find corresponding fetcher result"),!(y&&y.signal.aborted))if(Ho(_)){let S=Vd(e.matches,g==null?void 0:g.route.id);f&&f[S.route.id]||(f=sn({},f,{[S.route.id]:_.error})),e.fetchers.delete(h)}else if(Yd(_))Jt(!1,"Unhandled fetcher revalidation redirect");else if(yc(_))Jt(!1,"Unhandled fetcher deferred data");else{let S=rc(_.data);e.fetchers.set(h,S)}}),{loaderData:d,errors:f}}function mM(e,t,r,n){let a=sn({},t);for(let o of r){let s=o.route.id;if(t.hasOwnProperty(s)?t[s]!==void 0&&(a[s]=t[s]):e[s]!==void 0&&o.route.loader&&(a[s]=e[s]),n&&n.hasOwnProperty(s))break}return a}function gM(e){return e?Ho(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Vd(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function yM(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Co(e,t){let{pathname:r,routeId:n,method:a,type:o,message:s}=t===void 0?{}:t,d="Unknown Server Error",f="Unknown @remix-run/router error";return e===400?(d="Bad Request",a&&r&&n?f="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?f="defer() is not supported in actions":o==="invalid-body"&&(f="Unable to encode submission body")):e===403?(d="Forbidden",f='Route "'+n+'" does not match URL "'+r+'"'):e===404?(d="Not Found",f='No route matches URL "'+r+'"'):e===405&&(d="Method Not Allowed",a&&r&&n?f="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(f='Invalid request method "'+a.toUpperCase()+'"')),new I1(e||500,d,new Error(f),!0)}function A_(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Yd(a))return{key:n,result:a}}}function A5(e){let t=typeof e=="string"?sl(e):e;return mf(sn({},t,{hash:""}))}function RH(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function kH(e){return M5(e.result)&&hH.has(e.result.status)}function yc(e){return e.type===zr.deferred}function Ho(e){return e.type===zr.error}function Yd(e){return(e&&e.type)===zr.redirect}function bM(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function IH(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function M5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function jH(e){return pH.has(e.toLowerCase())}function is(e){return dH.has(e.toLowerCase())}async function TH(e,t,r,n,a){let o=Object.entries(t);for(let s=0;s(y==null?void 0:y.route.id)===d);if(!u)continue;let h=n.find(y=>y.route.id===u.route.id),g=h!=null&&!j5(h,u)&&(a&&a[u.route.id])!==void 0;yc(f)&&g&&await XI(f,r,!1).then(y=>{y&&(t[d]=y)})}}async function AH(e,t,r){for(let n=0;n(u==null?void 0:u.route.id)===o)&&yc(d)&&(Jt(s,"Expected an AbortController for revalidating fetcher deferred result"),await XI(d,s.signal,!0).then(u=>{u&&(t[a]=u)}))}}async function XI(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:zr.data,data:e.deferredData.unwrappedData}}catch(a){return{type:zr.error,error:a}}return{type:zr.data,data:e.deferredData.data}}}function YI(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Fy(e,t){let r=typeof t=="string"?sl(t).search:t.search;if(e[e.length-1].route.index&&YI(r||""))return e[e.length-1];let n=R5(e);return n[n.length-1]}function _M(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:s}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:s,text:void 0}}}function zE(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function MH(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Zm(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function FH(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function rc(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $H(e,t){try{let r=e.sessionStorage.getItem(I5);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function LH(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(I5,JSON.stringify(r))}catch(n){vf(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** - * React Router v6.27.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;tYh(e,P5(t)),[t,e])}function $5(e){p.useContext(jc).static||p.useLayoutEffect(e)}function ul(){let{isDataRoute:e}=p.useContext(ll);return e?ZH():BH()}function BH(){Tc()||Jt(!1);let e=p.useContext(Nb),{basename:t,future:r,navigator:n}=p.useContext(jc),{matches:a}=p.useContext(ll),{pathname:o}=Yn(),s=JSON.stringify(qx(a,r.v7_relativeSplatPath)),d=p.useRef(!1);return $5(()=>{d.current=!0}),p.useCallback(function(u,h){if(h===void 0&&(h={}),!d.current)return;if(typeof u=="number"){n.go(u);return}let g=Ux(u,JSON.parse(s),o,h.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:eu([t,g.pathname])),(h.replace?n.replace:n.push)(g,h.state,h)},[t,n,s,o,e])}const zH=p.createContext(null);function qH(e){let t=p.useContext(ll).outlet;return t&&p.createElement(zH.Provider,{value:e},t)}function Hx(){let{matches:e}=p.useContext(ll),t=e[e.length-1];return t?t.params:{}}function ZI(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=p.useContext(jc),{matches:a}=p.useContext(ll),{pathname:o}=Yn(),s=JSON.stringify(qx(a,n.v7_relativeSplatPath));return p.useMemo(()=>Ux(e,JSON.parse(s),o,r==="path"),[e,s,o,r])}function UH(e,t){return L5(e,t)}function L5(e,t,r,n){Tc()||Jt(!1);let{navigator:a}=p.useContext(jc),{matches:o}=p.useContext(ll),s=o[o.length-1],d=s?s.params:{};s&&s.pathname;let f=s?s.pathnameBase:"/";s&&s.route;let u=Yn(),h;if(t){var g;let x=typeof t=="string"?sl(t):t;f==="/"||(g=x.pathname)!=null&&g.startsWith(f)||Jt(!1),h=x}else h=u;let y=h.pathname||"/",_=y;if(f!=="/"){let x=f.replace(/^\//,"").split("/");_="/"+y.replace(/^\//,"").split("/").slice(x.length).join("/")}let S=Ud(e,{pathname:_}),E=KH(S&&S.map(x=>Object.assign({},x,{params:Object.assign({},d,x.params),pathname:eu([f,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?f:eu([f,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,r,n);return t&&E?p.createElement(Wx.Provider,{value:{location:gf({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:On.Pop}},E):E}function VH(){let e=XH(),t=Vx(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:a},r):null,null)}const WH=p.createElement(VH,null);class HH extends p.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?p.createElement(ll.Provider,{value:this.props.routeContext},p.createElement(F5.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function GH(e){let{routeContext:t,match:r,children:n}=e,a=p.useContext(Nb);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(ll.Provider,{value:t},n)}function KH(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,d=(a=r)==null?void 0:a.errors;if(d!=null){let h=s.findIndex(g=>g.route.id&&(d==null?void 0:d[g.route.id])!==void 0);h>=0||Jt(!1),s=s.slice(0,Math.min(s.length,h+1))}let f=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let h=0;h=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((h,g,y)=>{let _,S=!1,E=null,x=null;r&&(_=d&&g.route.id?d[g.route.id]:void 0,E=g.route.errorElement||WH,f&&(u<0&&y===0?(eG("route-fallback"),S=!0,x=null):u===y&&(S=!0,x=g.route.hydrateFallbackElement||null)));let T=t.concat(s.slice(0,y+1)),I=()=>{let R;return _?R=E:S?R=x:g.route.Component?R=p.createElement(g.route.Component,null):g.route.element?R=g.route.element:R=h,p.createElement(GH,{match:g,routeContext:{outlet:h,matches:T,isDataRoute:r!=null},children:R})};return r&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?p.createElement(HH,{location:r.location,revalidation:r.revalidation,component:E,error:_,children:I(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):I()},null)}var D5=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(D5||{}),N5=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}(N5||{});function B5(e){let t=p.useContext(Nb);return t||Jt(!1),t}function z5(e){let t=p.useContext(JI);return t||Jt(!1),t}function QH(e){let t=p.useContext(ll);return t||Jt(!1),t}function q5(e){let t=QH(),r=t.matches[t.matches.length-1];return r.route.id||Jt(!1),r.route.id}function XH(){var e;let t=p.useContext(F5),r=z5(),n=q5();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let YH=0;function JH(e){let{router:t,basename:r}=B5(),n=z5(),[a,o]=p.useState(""),s=p.useCallback(d=>{if(typeof e!="function")return!!e;if(r==="/")return e(d);let{currentLocation:f,nextLocation:u,historyAction:h}=d;return e({currentLocation:gf({},f,{pathname:Rc(f.pathname,r)||f.pathname}),nextLocation:gf({},u,{pathname:Rc(u.pathname,r)||u.pathname}),historyAction:h})},[r,e]);return p.useEffect(()=>{let d=String(++YH);return o(d),()=>t.deleteBlocker(d)},[t]),p.useEffect(()=>{a!==""&&t.getBlocker(a,s)},[t,a,s]),a&&n.blockers.has(a)?n.blockers.get(a):dh}function ZH(){let{router:e}=B5(D5.UseNavigateStable),t=q5(N5.UseNavigateStable),r=p.useRef(!1);return $5(()=>{r.current=!0}),p.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,gf({fromRouteId:t},o)))},[e,t])}const xM={};function eG(e,t,r){xM[e]||(xM[e]=!0)}function tG(e){let{to:t,replace:r,state:n,relative:a}=e;Tc()||Jt(!1);let{future:o,static:s}=p.useContext(jc),{matches:d}=p.useContext(ll),{pathname:f}=Yn(),u=ul(),h=Ux(t,qx(d,o.v7_relativeSplatPath),f,a==="path"),g=JSON.stringify(h);return p.useEffect(()=>u(JSON.parse(g),{replace:r,state:n,relative:a}),[u,g,a,r,n]),null}function rG(e){return qH(e.context)}function la(e){Jt(!1)}function nG(e){let{basename:t="/",children:r=null,location:n,navigationType:a=On.Pop,navigator:o,static:s=!1,future:d}=e;Tc()&&Jt(!1);let f=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:f,navigator:o,static:s,future:gf({v7_relativeSplatPath:!1},d)}),[f,d,o,s]);typeof n=="string"&&(n=sl(n));let{pathname:h="/",search:g="",hash:y="",state:_=null,key:S="default"}=n,E=p.useMemo(()=>{let x=Rc(h,f);return x==null?null:{location:{pathname:x,search:g,hash:y,state:_,key:S},navigationType:a}},[f,h,g,y,_,S,a]);return E==null?null:p.createElement(jc.Provider,{value:u},p.createElement(Wx.Provider,{children:r,value:E}))}function bc(e){let{children:t,location:r}=e;return UH(L2(t),r)}new Promise(()=>{});function L2(e,t){t===void 0&&(t=[]);let r=[];return p.Children.forEach(e,(n,a)=>{if(!p.isValidElement(n))return;let o=[...t,a];if(n.type===p.Fragment){r.push.apply(r,L2(n.props.children,o));return}n.type!==la&&Jt(!1),!n.props.index||!n.props.children||Jt(!1);let s={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=L2(n.props.children,o)),r.push(s)}),r}function aG(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.27.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function pb(){return pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function iG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sG(e,t){return e.button===0&&(!t||t==="_self")&&!iG(e)}const lG=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],uG="6";try{window.__reactRouterVersion=uG}catch{}function cG(e,t){return yH({basename:t==null?void 0:t.basename,future:pb({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:U7({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||dG(),routes:e,mapRouteProperties:aG,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function dG(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=pb({},t,{errors:fG(t.errors)})),t}function fG(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new I1(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let s=new o(a.message);s.stack="",r[n]=s}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const pG=p.createContext({isTransitioning:!1}),hG=p.createContext(new Map),vG="startTransition",wM=O1[vG],mG="flushSync",SM=q7[mG];function gG(e){wM?wM(e):e()}function eg(e){SM?SM(e):e()}class yG{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function bG(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=p.useState(r.state),[s,d]=p.useState(),[f,u]=p.useState({isTransitioning:!1}),[h,g]=p.useState(),[y,_]=p.useState(),[S,E]=p.useState(),x=p.useRef(new Map),{v7_startTransition:T}=n||{},I=p.useCallback(k=>{T?gG(k):k()},[T]),R=p.useCallback((k,M)=>{let{deletedFetchers:$,flushSync:N,viewTransitionOpts:B}=M;$.forEach(V=>x.current.delete(V)),k.fetchers.forEach((V,G)=>{V.data!==void 0&&x.current.set(G,V.data)});let q=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!B||q){N?eg(()=>o(k)):I(()=>o(k));return}if(N){eg(()=>{y&&(h&&h.resolve(),y.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let V=r.window.document.startViewTransition(()=>{eg(()=>o(k))});V.finished.finally(()=>{eg(()=>{g(void 0),_(void 0),d(void 0),u({isTransitioning:!1})})}),eg(()=>_(V));return}y?(h&&h.resolve(),y.skipTransition(),E({state:k,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(d(k),u({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[r.window,y,h,x,I]);p.useLayoutEffect(()=>r.subscribe(R),[r,R]),p.useEffect(()=>{f.isTransitioning&&!f.flushSync&&g(new yG)},[f]),p.useEffect(()=>{if(h&&s&&r.window){let k=s,M=h.promise,$=r.window.document.startViewTransition(async()=>{I(()=>o(k)),await M});$.finished.finally(()=>{g(void 0),_(void 0),d(void 0),u({isTransitioning:!1})}),_($)}},[I,s,h,r.window]),p.useEffect(()=>{h&&s&&a.location.key===s.location.key&&h.resolve()},[h,y,a.location,s]),p.useEffect(()=>{!f.isTransitioning&&S&&(d(S.state),u({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),E(void 0))},[f.isTransitioning,S]),p.useEffect(()=>{},[]);let P=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:k=>r.navigate(k),push:(k,M,$)=>r.navigate(k,{state:M,preventScrollReset:$==null?void 0:$.preventScrollReset}),replace:(k,M,$)=>r.navigate(k,{replace:!0,state:M,preventScrollReset:$==null?void 0:$.preventScrollReset})}),[r]),C=r.basename||"/",O=p.useMemo(()=>({router:r,navigator:P,static:!1,basename:C}),[r,P,C]),j=p.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return p.createElement(p.Fragment,null,p.createElement(Nb.Provider,{value:O},p.createElement(JI.Provider,{value:a},p.createElement(hG.Provider,{value:x.current},p.createElement(pG.Provider,{value:f},p.createElement(nG,{basename:C,location:a.location,navigationType:a.historyAction,navigator:P,future:j},a.initialized||r.future.v7_partialHydration?p.createElement(_G,{routes:r.routes,future:r.future,state:a}):t))))),null)}const _G=p.memo(xG);function xG(e){let{routes:t,future:r,state:n}=e;return L5(t,void 0,n,r)}const wG=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",SG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cs=p.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:s,state:d,target:f,to:u,preventScrollReset:h,viewTransition:g}=t,y=oG(t,lG),{basename:_}=p.useContext(jc),S,E=!1;if(typeof u=="string"&&SG.test(u)&&(S=u,wG))try{let R=new URL(window.location.href),P=u.startsWith("//")?new URL(R.protocol+u):new URL(u),C=Rc(P.pathname,_);P.origin===R.origin&&C!=null?u=C+P.search+P.hash:E=!0}catch{}let x=DH(u,{relative:a}),T=EG(u,{replace:s,state:d,target:f,preventScrollReset:h,relative:a,viewTransition:g});function I(R){n&&n(R),R.defaultPrevented||T(R)}return p.createElement("a",pb({},y,{href:S||x,onClick:E||o?n:I,ref:r,target:f}))});var EM;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(EM||(EM={}));var CM;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(CM||(CM={}));function EG(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:s,viewTransition:d}=t===void 0?{}:t,f=ul(),u=Yn(),h=ZI(e,{relative:s});return p.useCallback(g=>{if(sG(g,r)){g.preventDefault();let y=n!==void 0?n:mf(u)===mf(h);f(e,{replace:y,state:a,preventScrollReset:o,relative:s,viewTransition:d})}},[u,f,h,n,a,r,e,o,s,d])}var CG="RaStore",OG=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}},D2=OG(),PG=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(CG).concat(t),n=r.length,a={},o=function(d,f){Object.keys(a).forEach(function(u){a[u]&&a[u].key===d&&a[u].callback(f)})},s=function(d){var f;if(((f=d.key)===null||f===void 0?void 0:f.substring(0,n))===r){var u=d.key.substring(n+1),h=d.newValue?OM(d.newValue):void 0;Object.keys(a).forEach(function(g){a[g]&&a[g].key===u&&(h===null?a[g].callback(void 0):a[g].callback(h??void 0))})}};return{setup:function(){if(D2){var d=Ul().getItem("".concat(r,".version"));if(d&&d!==e){var f=Ul();Object.keys(f).forEach(function(u){u.startsWith(r)&&f.removeItem(u)})}Ul().setItem("".concat(r,".version"),e),window.addEventListener("storage",s)}},teardown:function(){D2&&window.removeEventListener("storage",s)},getItem:function(d,f){var u=Ul().getItem("".concat(r,".").concat(d));return u==null?f:OM(u)},setItem:function(d,f){f===void 0?Ul().removeItem("".concat(r,".").concat(d)):Ul().setItem("".concat(r,".").concat(d),JSON.stringify(f)),o(d,f)},removeItem:function(d){Ul().removeItem("".concat(r,".").concat(d)),o(d,void 0)},removeItems:function(d){var f=Ul();Object.keys(f).forEach(function(u){if(u.startsWith("".concat(r,".").concat(d))){f.removeItem(u);var h=u.substring(n+1);o(h,void 0)}})},reset:function(){var d=Ul();Object.keys(d).forEach(function(f){if(f.startsWith(r)){d.removeItem(f);var u=f.substring(n+1);o(u,void 0)}})},subscribe:function(d,f){var u=Math.random().toString();return a[u]={key:d,callback:f},function(){delete a[u]}}}},OM=function(e){try{return JSON.parse(e)}catch{return e}},RG=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),kG=new RG,Ul=function(){return D2?window.localStorage:kG},qE,PM;function U5(){if(PM)return qE;PM=1;var e=typeof Yl=="object"&&Yl&&Yl.Object===Object&&Yl;return qE=e,qE}var UE,RM;function fs(){if(RM)return UE;RM=1;var e=U5(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return UE=r,UE}var VE,kM;function hv(){if(kM)return VE;kM=1;var e=fs(),t=e.Symbol;return VE=t,VE}var WE,IM;function IG(){if(IM)return WE;IM=1;var e=hv(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function o(s){var d=r.call(s,a),f=s[a];try{s[a]=void 0;var u=!0}catch{}var h=n.call(s);return u&&(d?s[a]=f:delete s[a]),h}return WE=o,WE}var HE,jM;function jG(){if(jM)return HE;jM=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return HE=r,HE}var GE,TM;function vv(){if(TM)return GE;TM=1;var e=hv(),t=IG(),r=jG(),n="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function s(d){return d==null?d===void 0?a:n:o&&o in Object(d)?t(d):r(d)}return GE=s,GE}var KE,AM;function ps(){if(AM)return KE;AM=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return KE=e,KE}var QE,MM;function ej(){if(MM)return QE;MM=1;var e=vv(),t=ps(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function s(d){if(!t(d))return!1;var f=e(d);return f==n||f==a||f==r||f==o}return QE=s,QE}var XE,FM;function TG(){if(FM)return XE;FM=1;var e=fs(),t=e["__core-js_shared__"];return XE=t,XE}var YE,$M;function AG(){if($M)return YE;$M=1;var e=TG(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return YE=r,YE}var JE,LM;function V5(){if(LM)return JE;LM=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return JE=r,JE}var ZE,DM;function MG(){if(DM)return ZE;DM=1;var e=ej(),t=AG(),r=ps(),n=V5(),a=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,s=Function.prototype,d=Object.prototype,f=s.toString,u=d.hasOwnProperty,h=RegExp("^"+f.call(u).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(y){if(!r(y)||t(y))return!1;var _=e(y)?h:o;return _.test(n(y))}return ZE=g,ZE}var eC,NM;function FG(){if(NM)return eC;NM=1;function e(t,r){return t==null?void 0:t[r]}return eC=e,eC}var tC,BM;function Cf(){if(BM)return tC;BM=1;var e=MG(),t=FG();function r(n,a){var o=t(n,a);return e(o)?o:void 0}return tC=r,tC}var rC,zM;function W5(){if(zM)return rC;zM=1;var e=Cf(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return rC=t,rC}var nC,qM;function tj(){if(qM)return nC;qM=1;var e=W5();function t(r,n,a){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[n]=a}return nC=t,nC}var aC,UM;function mv(){if(UM)return aC;UM=1;function e(t,r){return t===r||t!==t&&r!==r}return aC=e,aC}var oC,VM;function rj(){if(VM)return oC;VM=1;var e=tj(),t=mv(),r=Object.prototype,n=r.hasOwnProperty;function a(o,s,d){var f=o[s];(!(n.call(o,s)&&t(f,d))||d===void 0&&!(s in o))&&e(o,s,d)}return oC=a,oC}var iC,WM;function cl(){if(WM)return iC;WM=1;var e=Array.isArray;return iC=e,iC}var sC,HM;function su(){if(HM)return sC;HM=1;function e(t){return t!=null&&typeof t=="object"}return sC=e,sC}var lC,GM;function Gx(){if(GM)return lC;GM=1;var e=vv(),t=su(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return lC=n,lC}var uC,KM;function $G(){if(KM)return uC;KM=1;var e=cl(),t=Gx(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(o,s){if(e(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||t(o)?!0:n.test(o)||!r.test(o)||s!=null&&o in Object(s)}return uC=a,uC}var cC,QM;function Kx(){if(QM)return cC;QM=1;var e=Cf(),t=e(Object,"create");return cC=t,cC}var dC,XM;function LG(){if(XM)return dC;XM=1;var e=Kx();function t(){this.__data__=e?e(null):{},this.size=0}return dC=t,dC}var fC,YM;function DG(){if(YM)return fC;YM=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return fC=e,fC}var pC,JM;function NG(){if(JM)return pC;JM=1;var e=Kx(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(o){var s=this.__data__;if(e){var d=s[o];return d===t?void 0:d}return n.call(s,o)?s[o]:void 0}return pC=a,pC}var hC,ZM;function BG(){if(ZM)return hC;ZM=1;var e=Kx(),t=Object.prototype,r=t.hasOwnProperty;function n(a){var o=this.__data__;return e?o[a]!==void 0:r.call(o,a)}return hC=n,hC}var vC,eF;function zG(){if(eF)return vC;eF=1;var e=Kx(),t="__lodash_hash_undefined__";function r(n,a){var o=this.__data__;return this.size+=this.has(n)?0:1,o[n]=e&&a===void 0?t:a,this}return vC=r,vC}var mC,tF;function qG(){if(tF)return mC;tF=1;var e=LG(),t=DG(),r=NG(),n=BG(),a=zG();function o(s){var d=-1,f=s==null?0:s.length;for(this.clear();++d-1}return xC=t,xC}var wC,sF;function GG(){if(sF)return wC;sF=1;var e=Qx();function t(r,n){var a=this.__data__,o=e(a,r);return o<0?(++this.size,a.push([r,n])):a[o][1]=n,this}return wC=t,wC}var SC,lF;function Xx(){if(lF)return SC;lF=1;var e=UG(),t=VG(),r=WG(),n=HG(),a=GG();function o(s){var d=-1,f=s==null?0:s.length;for(this.clear();++d-1&&n%1==0&&no?0:o+r),n=n>o?o:n,n<0&&(n+=o),o=r>n?0:n-r>>>0,r>>>=0;for(var s=Array(o);++a_))return!1;var E=g.get(s),x=g.get(d);if(E&&x)return E==d&&x==s;var T=-1,I=!0,R=f&a?new e:void 0;for(g.set(s,d),g.set(d,s);++T<_;){var P=s[T],C=d[T];if(u)var O=y?u(C,P,T,d,s,g):u(P,C,T,s,d,g);if(O!==void 0){if(O)continue;I=!1;break}if(R){if(!t(d,function(j,k){if(!r(R,k)&&(P===j||h(P,j,f,u,g)))return R.push(k)})){I=!1;break}}else if(!(P===C||h(P,C,f,u,g))){I=!1;break}}return g.delete(s),g.delete(d),I}return lO=o,lO}var uO,QF;function J5(){if(QF)return uO;QF=1;var e=fs(),t=e.Uint8Array;return uO=t,uO}var cO,XF;function EK(){if(XF)return cO;XF=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a,o){n[++r]=[o,a]}),n}return cO=e,cO}var dO,YF;function uj(){if(YF)return dO;YF=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a){n[++r]=a}),n}return dO=e,dO}var fO,JF;function CK(){if(JF)return fO;JF=1;var e=hv(),t=J5(),r=mv(),n=Y5(),a=EK(),o=uj(),s=1,d=2,f="[object Boolean]",u="[object Date]",h="[object Error]",g="[object Map]",y="[object Number]",_="[object RegExp]",S="[object Set]",E="[object String]",x="[object Symbol]",T="[object ArrayBuffer]",I="[object DataView]",R=e?e.prototype:void 0,P=R?R.valueOf:void 0;function C(O,j,k,M,$,N,B){switch(k){case I:if(O.byteLength!=j.byteLength||O.byteOffset!=j.byteOffset)return!1;O=O.buffer,j=j.buffer;case T:return!(O.byteLength!=j.byteLength||!N(new t(O),new t(j)));case f:case u:case y:return r(+O,+j);case h:return O.name==j.name&&O.message==j.message;case _:case E:return O==j+"";case g:var q=a;case S:var V=M&s;if(q||(q=o),O.size!=j.size&&!V)return!1;var G=B.get(O);if(G)return G==j;M|=d,B.set(O,j);var Y=n(q(O),q(j),M,$,N,B);return B.delete(O),Y;case x:if(P)return P.call(O)==P.call(j)}return!1}return fO=C,fO}var pO,ZF;function cj(){if(ZF)return pO;ZF=1;function e(t,r){for(var n=-1,a=r.length,o=t.length;++n-1&&r%1==0&&r<=e}return wO=t,wO}var SO,c$;function IK(){if(c$)return SO;c$=1;var e=vv(),t=fj(),r=su(),n="[object Arguments]",a="[object Array]",o="[object Boolean]",s="[object Date]",d="[object Error]",f="[object Function]",u="[object Map]",h="[object Number]",g="[object Object]",y="[object RegExp]",_="[object Set]",S="[object String]",E="[object WeakMap]",x="[object ArrayBuffer]",T="[object DataView]",I="[object Float32Array]",R="[object Float64Array]",P="[object Int8Array]",C="[object Int16Array]",O="[object Int32Array]",j="[object Uint8Array]",k="[object Uint8ClampedArray]",M="[object Uint16Array]",$="[object Uint32Array]",N={};N[I]=N[R]=N[P]=N[C]=N[O]=N[j]=N[k]=N[M]=N[$]=!0,N[n]=N[a]=N[x]=N[o]=N[T]=N[s]=N[d]=N[f]=N[u]=N[h]=N[g]=N[y]=N[_]=N[S]=N[E]=!1;function B(q){return r(q)&&t(q.length)&&!!N[e(q)]}return SO=B,SO}var EO,d$;function aw(){if(d$)return EO;d$=1;function e(t){return function(r){return t(r)}}return EO=e,EO}var Ly={exports:{}};Ly.exports;var f$;function pj(){return f$||(f$=1,function(e,t){var r=U5(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,s=o&&r.process,d=function(){try{var f=a&&a.require&&a.require("util").types;return f||s&&s.binding&&s.binding("util")}catch{}}();e.exports=d}(Ly,Ly.exports)),Ly.exports}var CO,p$;function hj(){if(p$)return CO;p$=1;var e=IK(),t=aw(),r=pj(),n=r&&r.isTypedArray,a=n?t(n):e;return CO=a,CO}var OO,h$;function tz(){if(h$)return OO;h$=1;var e=PK(),t=rw(),r=cl(),n=nw(),a=Jx(),o=hj(),s=Object.prototype,d=s.hasOwnProperty;function f(u,h){var g=r(u),y=!g&&t(u),_=!g&&!y&&n(u),S=!g&&!y&&!_&&o(u),E=g||y||_||S,x=E?e(u.length,String):[],T=x.length;for(var I in u)(h||d.call(u,I))&&!(E&&(I=="length"||_&&(I=="offset"||I=="parent")||S&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||a(I,T)))&&x.push(I);return x}return OO=f,OO}var PO,v$;function vj(){if(v$)return PO;v$=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||e;return r===a}return PO=t,PO}var RO,m$;function rz(){if(m$)return RO;m$=1;function e(t,r){return function(n){return t(r(n))}}return RO=e,RO}var kO,g$;function jK(){if(g$)return kO;g$=1;var e=rz(),t=e(Object.keys,Object);return kO=t,kO}var IO,y$;function TK(){if(y$)return IO;y$=1;var e=vj(),t=jK(),r=Object.prototype,n=r.hasOwnProperty;function a(o){if(!e(o))return t(o);var s=[];for(var d in Object(o))n.call(o,d)&&d!="constructor"&&s.push(d);return s}return IO=a,IO}var jO,b$;function ow(){if(b$)return jO;b$=1;var e=ej(),t=fj();function r(n){return n!=null&&t(n.length)&&!e(n)}return jO=r,jO}var TO,_$;function mj(){if(_$)return TO;_$=1;var e=tz(),t=TK(),r=ow();function n(a){return r(a)?e(a):t(a)}return TO=n,TO}var AO,x$;function nz(){if(x$)return AO;x$=1;var e=Z5(),t=dj(),r=mj();function n(a){return e(a,r,t)}return AO=n,AO}var MO,w$;function AK(){if(w$)return MO;w$=1;var e=nz(),t=1,r=Object.prototype,n=r.hasOwnProperty;function a(o,s,d,f,u,h){var g=d&t,y=e(o),_=y.length,S=e(s),E=S.length;if(_!=E&&!g)return!1;for(var x=_;x--;){var T=y[x];if(!(g?T in s:n.call(s,T)))return!1}var I=h.get(o),R=h.get(s);if(I&&R)return I==s&&R==o;var P=!0;h.set(o,s),h.set(s,o);for(var C=g;++x<_;){T=y[x];var O=o[T],j=s[T];if(f)var k=g?f(j,O,T,s,o,h):f(O,j,T,o,s,h);if(!(k===void 0?O===j||u(O,j,d,f,h):k)){P=!1;break}C||(C=T=="constructor")}if(P&&!C){var M=o.constructor,$=s.constructor;M!=$&&"constructor"in o&&"constructor"in s&&!(typeof M=="function"&&M instanceof M&&typeof $=="function"&&$ instanceof $)&&(P=!1)}return h.delete(o),h.delete(s),P}return MO=a,MO}var FO,S$;function MK(){if(S$)return FO;S$=1;var e=Cf(),t=fs(),r=e(t,"DataView");return FO=r,FO}var $O,E$;function FK(){if(E$)return $O;E$=1;var e=Cf(),t=fs(),r=e(t,"Promise");return $O=r,$O}var LO,C$;function az(){if(C$)return LO;C$=1;var e=Cf(),t=fs(),r=e(t,"Set");return LO=r,LO}var DO,O$;function $K(){if(O$)return DO;O$=1;var e=Cf(),t=fs(),r=e(t,"WeakMap");return DO=r,DO}var NO,P$;function iw(){if(P$)return NO;P$=1;var e=MK(),t=nj(),r=FK(),n=az(),a=$K(),o=vv(),s=V5(),d="[object Map]",f="[object Object]",u="[object Promise]",h="[object Set]",g="[object WeakMap]",y="[object DataView]",_=s(e),S=s(t),E=s(r),x=s(n),T=s(a),I=o;return(e&&I(new e(new ArrayBuffer(1)))!=y||t&&I(new t)!=d||r&&I(r.resolve())!=u||n&&I(new n)!=h||a&&I(new a)!=g)&&(I=function(R){var P=o(R),C=P==f?R.constructor:void 0,O=C?s(C):"";if(O)switch(O){case _:return y;case S:return d;case E:return u;case x:return h;case T:return g}return P}),NO=I,NO}var BO,R$;function LK(){if(R$)return BO;R$=1;var e=ij(),t=Y5(),r=CK(),n=AK(),a=iw(),o=cl(),s=nw(),d=hj(),f=1,u="[object Arguments]",h="[object Array]",g="[object Object]",y=Object.prototype,_=y.hasOwnProperty;function S(E,x,T,I,R,P){var C=o(E),O=o(x),j=C?h:a(E),k=O?h:a(x);j=j==u?g:j,k=k==u?g:k;var M=j==g,$=k==g,N=j==k;if(N&&s(E)){if(!s(x))return!1;C=!0,M=!1}if(N&&!M)return P||(P=new e),C||d(E)?t(E,x,T,I,R,P):r(E,x,j,T,I,R,P);if(!(T&f)){var B=M&&_.call(E,"__wrapped__"),q=$&&_.call(x,"__wrapped__");if(B||q){var V=B?E.value():E,G=q?x.value():x;return P||(P=new e),R(V,G,T,I,P)}}return N?(P||(P=new e),n(E,x,T,I,R,P)):!1}return BO=S,BO}var zO,k$;function DK(){if(k$)return zO;k$=1;var e=LK(),t=su();function r(n,a,o,s,d){return n===a?!0:n==null||a==null||!t(n)&&!t(a)?n!==n&&a!==a:e(n,a,o,s,r,d)}return zO=r,zO}var qO,I$;function NK(){if(I$)return qO;I$=1;var e=DK();function t(r,n){return e(r,n)}return qO=t,qO}var BK=NK();const ki=tt(BK);var j$=function(e,t){return e&&t?String.prototype.replace.call(e,zK,function(r,n){return!t.hasOwnProperty(n)||t[n]==null?r:t[n]}):e},zK=/%\{(.*?)\}/g,qK={translate:function(e,t){return t!=null&&t._?j$(t._,t):j$(e,t)},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},gj=p.createContext(qK);gj.displayName="I18nContext";var oz=p.createContext(function(){}),iz=p.createContext({notifications:[],addNotification:function(){},takeNotification:function(){},resetNotifications:function(){},setNotifications:function(){}}),T$=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return pP=n,pP}var hP,oL;function mz(){if(oL)return hP;oL=1;var e=oQ(),t=iQ(),r=t(e);return hP=r,hP}var vP,iL;function sw(){if(iL)return vP;iL=1;var e=hz(),t=vz(),r=mz();function n(a,o){return r(t(a,o,e),a+"")}return vP=n,vP}var mP,sL;function gz(){if(sL)return mP;sL=1;var e=mv(),t=ow(),r=Jx(),n=ps();function a(o,s,d){if(!n(d))return!1;var f=typeof s;return(f=="number"?t(d)&&r(s,d.length):f=="string"&&s in d)?e(d[s],o):!1}return mP=a,mP}var gP,lL;function sQ(){if(lL)return gP;lL=1;var e=sw(),t=gz();function r(n){return e(function(a,o){var s=-1,d=o.length,f=d>1?o[d-1]:void 0,u=d>2?o[2]:void 0;for(f=n.length>3&&typeof f=="function"?(d--,f):void 0,u&&t(o[0],o[1],u)&&(f=d<3?void 0:f,d=1),a=Object(a);++s=f||V<0||I&&G>=y}function k(){var q=t();if(j(q))return M(q);S=setTimeout(k,O(q))}function M(q){return S=void 0,R&&h?P(q):(h=g=void 0,_)}function $(){S!==void 0&&clearTimeout(S),x=0,h=E=g=S=void 0}function N(){return S===void 0?_:M(t())}function B(){var q=t(),V=j(q);if(h=arguments,g=this,E=q,V){if(S===void 0)return C(E);if(I)return clearTimeout(S),S=setTimeout(k,f),P(E)}return S===void 0&&(S=setTimeout(k,f)),_}return B.cancel=$,B.flush=N,B}return zP=s,zP}var BQ=NQ();const Cj=tt(BQ);var zQ=function(e,t){t===void 0&&(t=250);var r=qQ(e,t),n=r[0],a=r[1],o=Yn();p.useEffect(function(){var s;n!=null&&((s=o.state)===null||s===void 0?void 0:s._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},qQ=function(e,t){t===void 0&&(t=250);var r=_a(e),n=r[0],a=r[1];return p.useEffect(function(){if(!(typeof window>"u")){var o=Cj(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},UQ=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return zQ(r,a),t},Ac=function(){return p.useContext(_z)},Of=function(){var e=Ac();return p.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return Xs("".concat(e,"/").concat(r));case"create":return Xs("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Xs("".concat(e,"/").concat(r)):Xs("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Xs("".concat(e,"/").concat(r)):Xs("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},Xs=function(e){return e.replace("//","/")};function AL(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var xz=function(e,t){if(AL(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var a=0;a0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. -Be sure to pass the props from the parent. Example: - -const My`).concat(e,` = props => ( - <`).concat(e," {...props}> -); - -The missing props are: `).concat(a.join(", ")))},T1=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),UP}var VP,DL;function fX(){if(DL)return VP;DL=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,d){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;d=d||1;var f=s.slice(0,d),u=s.slice(d);return Array.prototype.concat.call([],n(f),n(u))}function a(s){try{return decodeURIComponent(s)}catch{for(var d=s.match(t)||[],f=1;f{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)]}),WP}var HP,BL;function hX(){return BL||(BL=1,HP=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;oI==null,s=Symbol("encodeFragmentIdentifier");function d(I){switch(I.arrayFormat){case"index":return R=>(P,C)=>{const O=P.length;return C===void 0||I.skipNull&&C===null||I.skipEmptyString&&C===""?P:C===null?[...P,[h(R,I),"[",O,"]"].join("")]:[...P,[h(R,I),"[",h(O,I),"]=",h(C,I)].join("")]};case"bracket":return R=>(P,C)=>C===void 0||I.skipNull&&C===null||I.skipEmptyString&&C===""?P:C===null?[...P,[h(R,I),"[]"].join("")]:[...P,[h(R,I),"[]=",h(C,I)].join("")];case"colon-list-separator":return R=>(P,C)=>C===void 0||I.skipNull&&C===null||I.skipEmptyString&&C===""?P:C===null?[...P,[h(R,I),":list="].join("")]:[...P,[h(R,I),":list=",h(C,I)].join("")];case"comma":case"separator":case"bracket-separator":{const R=I.arrayFormat==="bracket-separator"?"[]=":"=";return P=>(C,O)=>O===void 0||I.skipNull&&O===null||I.skipEmptyString&&O===""?C:(O=O===null?"":O,C.length===0?[[h(P,I),R,h(O,I)].join("")]:[[C,h(O,I)].join(I.arrayFormatSeparator)])}default:return R=>(P,C)=>C===void 0||I.skipNull&&C===null||I.skipEmptyString&&C===""?P:C===null?[...P,h(R,I)]:[...P,[h(R,I),"=",h(C,I)].join("")]}}function f(I){let R;switch(I.arrayFormat){case"index":return(P,C,O)=>{if(R=/\[(\d*)\]$/.exec(P),P=P.replace(/\[\d*\]$/,""),!R){O[P]=C;return}O[P]===void 0&&(O[P]={}),O[P][R[1]]=C};case"bracket":return(P,C,O)=>{if(R=/(\[\])$/.exec(P),P=P.replace(/\[\]$/,""),!R){O[P]=C;return}if(O[P]===void 0){O[P]=[C];return}O[P]=[].concat(O[P],C)};case"colon-list-separator":return(P,C,O)=>{if(R=/(:list)$/.exec(P),P=P.replace(/:list$/,""),!R){O[P]=C;return}if(O[P]===void 0){O[P]=[C];return}O[P]=[].concat(O[P],C)};case"comma":case"separator":return(P,C,O)=>{const j=typeof C=="string"&&C.includes(I.arrayFormatSeparator),k=typeof C=="string"&&!j&&g(C,I).includes(I.arrayFormatSeparator);C=k?g(C,I):C;const M=j||k?C.split(I.arrayFormatSeparator).map($=>g($,I)):C===null?C:g(C,I);O[P]=M};case"bracket-separator":return(P,C,O)=>{const j=/(\[\])$/.test(P);if(P=P.replace(/\[\]$/,""),!j){O[P]=C&&g(C,I);return}const k=C===null?[]:C.split(I.arrayFormatSeparator).map(M=>g(M,I));if(O[P]===void 0){O[P]=k;return}O[P]=[].concat(O[P],k)};default:return(P,C,O)=>{if(O[P]===void 0){O[P]=C;return}O[P]=[].concat(O[P],C)}}}function u(I){if(typeof I!="string"||I.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function h(I,R){return R.encode?R.strict?t(I):encodeURIComponent(I):I}function g(I,R){return R.decode?r(I):I}function y(I){return Array.isArray(I)?I.sort():typeof I=="object"?y(Object.keys(I)).sort((R,P)=>Number(R)-Number(P)).map(R=>I[R]):I}function _(I){const R=I.indexOf("#");return R!==-1&&(I=I.slice(0,R)),I}function S(I){let R="";const P=I.indexOf("#");return P!==-1&&(R=I.slice(P)),R}function E(I){I=_(I);const R=I.indexOf("?");return R===-1?"":I.slice(R+1)}function x(I,R){return R.parseNumbers&&!Number.isNaN(Number(I))&&typeof I=="string"&&I.trim()!==""?I=Number(I):R.parseBooleans&&I!==null&&(I.toLowerCase()==="true"||I.toLowerCase()==="false")&&(I=I.toLowerCase()==="true"),I}function T(I,R){R=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},R),u(R.arrayFormatSeparator);const P=f(R),C=Object.create(null);if(typeof I!="string"||(I=I.trim().replace(/^[?#&]/,""),!I))return C;for(const O of I.split("&")){if(O==="")continue;let[j,k]=n(R.decode?O.replace(/\+/g," "):O,"=");k=k===void 0?null:["comma","separator","bracket-separator"].includes(R.arrayFormat)?k:g(k,R),P(g(j,R),k,C)}for(const O of Object.keys(C)){const j=C[O];if(typeof j=="object"&&j!==null)for(const k of Object.keys(j))j[k]=x(j[k],R);else C[O]=x(j,R)}return R.sort===!1?C:(R.sort===!0?Object.keys(C).sort():Object.keys(C).sort(R.sort)).reduce((O,j)=>{const k=C[j];return k&&typeof k=="object"&&!Array.isArray(k)?O[j]=y(k):O[j]=k,O},Object.create(null))}e.extract=E,e.parse=T,e.stringify=(I,R)=>{if(!I)return"";R=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},R),u(R.arrayFormatSeparator);const P=k=>R.skipNull&&o(I[k])||R.skipEmptyString&&I[k]==="",C=d(R),O={};for(const k of Object.keys(I))P(k)||(O[k]=I[k]);const j=Object.keys(O);return R.sort!==!1&&j.sort(R.sort),j.map(k=>{const M=I[k];return M===void 0?"":M===null?h(k,R):Array.isArray(M)?M.length===0&&R.arrayFormat==="bracket-separator"?h(k,R)+"[]":M.reduce(C(k),[]).join("&"):h(k,R)+"="+h(M,R)}).filter(k=>k.length>0).join("&")},e.parseUrl=(I,R)=>{R=Object.assign({decode:!0},R);const[P,C]=n(I,"#");return Object.assign({url:P.split("?")[0]||"",query:T(E(I),R)},R&&R.parseFragmentIdentifier&&C?{fragmentIdentifier:g(C,R)}:{})},e.stringifyUrl=(I,R)=>{R=Object.assign({encode:!0,strict:!0,[s]:!0},R);const P=_(I.url).split("?")[0]||"",C=e.extract(I.url),O=e.parse(C,{sort:!1}),j=Object.assign(O,I.query);let k=e.stringify(j,R);k&&(k=`?${k}`);let M=S(I.url);return I.fragmentIdentifier&&(M=`#${R[s]?h(I.fragmentIdentifier,R):I.fragmentIdentifier}`),`${P}${k}${M}`},e.pick=(I,R,P)=>{P=Object.assign({parseFragmentIdentifier:!0,[s]:!1},P);const{url:C,query:O,fragmentIdentifier:j}=e.parseUrl(I,P);return e.stringifyUrl({url:C,query:a(O,R),fragmentIdentifier:j},P)},e.exclude=(I,R,P)=>{const C=Array.isArray(R)?O=>!R.includes(O):(O,j)=>!R(O,j);return e.pick(I,C,P)}}(qP)),qP}var Zh=vX(),A1=function(){return A1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new Iz(f&&f.message||o,a,f)):Promise.resolve({status:a,headers:s,body:d,json:f})})},yX=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},jz=function(e,t){var r;return t===void 0&&(t=[]),yX(e)?Object.assign.apply(Object,mX([{}],Object.keys(e).map(function(n){return jz(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},GP={exports:{}},qL;function bX(){return qL||(qL=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(f,u,h){this.fn=f,this.context=u,this.once=h||!1}function o(f,u,h,g,y){if(typeof h!="function")throw new TypeError("The listener must be a function");var _=new a(h,g||f,y),S=r?r+u:u;return f._events[S]?f._events[S].fn?f._events[S]=[f._events[S],_]:f._events[S].push(_):(f._events[S]=_,f._eventsCount++),f}function s(f,u){--f._eventsCount===0?f._events=new n:delete f._events[u]}function d(){this._events=new n,this._eventsCount=0}d.prototype.eventNames=function(){var u=[],h,g;if(this._eventsCount===0)return u;for(g in h=this._events)t.call(h,g)&&u.push(r?g.slice(1):g);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(h)):u},d.prototype.listeners=function(u){var h=r?r+u:u,g=this._events[h];if(!g)return[];if(g.fn)return[g.fn];for(var y=0,_=g.length,S=new Array(_);y<_;y++)S[y]=g[y].fn;return S},d.prototype.listenerCount=function(u){var h=r?r+u:u,g=this._events[h];return g?g.fn?1:g.length:0},d.prototype.emit=function(u,h,g,y,_,S){var E=r?r+u:u;if(!this._events[E])return!1;var x=this._events[E],T=arguments.length,I,R;if(x.fn){switch(x.once&&this.removeListener(u,x.fn,void 0,!0),T){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,h),!0;case 3:return x.fn.call(x.context,h,g),!0;case 4:return x.fn.call(x.context,h,g,y),!0;case 5:return x.fn.call(x.context,h,g,y,_),!0;case 6:return x.fn.call(x.context,h,g,y,_,S),!0}for(R=1,I=new Array(T-1);R0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]"u"||!e.message?t:e.message},CX=["getList","getMany","getManyReference"],Zo=function(){var e=p.useContext(Pj)||Oj,t=Tz(),r=p.useMemo(function(){return new Proxy(e,{get:function(n,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],s=0;s0),n=Ke.useRef(e.isMutating()>0),a=Ke.useState(r.current||n.current),o=a[0],s=a[1];return Ke.useEffect(function(){t.current=!0;var d=e.getQueryCache().subscribe(Pn.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,s(r.current||n.current))})),f=e.getMutationCache().subscribe(Pn.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,s(r.current||n.current))}));return function(){t.current=!1,d(),f()}},[e]),o},dl=function(){var e=$i();return p.useCallback(function(){e.invalidateQueries()},[e])},q2=function(){return q2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o(h)?a>1?r(h,a-1,o,s,d):e(d,h):s||(d[d.length]=h)}return d}return JP=r,JP}var ZP,HL;function TX(){if(HL)return ZP;HL=1;function e(t,r,n,a){for(var o=t.length,s=n+(a?1:-1);a?s--:++s-1}return nR=t,nR}var aR,YL;function Fz(){if(YL)return aR;YL=1;function e(t,r,n){for(var a=-1,o=t==null?0:t.length;++a=s){var T=u?null:a(f);if(T)return o(T);S=!1,y=n,x=new e}else x=u?[]:E;e:for(;++g<_;){var I=f[g],R=u?u(I):I;if(I=h||I!==0?I:0,S&&R===R){for(var P=x.length;P--;)if(x[P]===R)continue e;u&&x.push(R),E.push(I)}else y(x,R,h)||(x!==E&&x.push(R),E.push(I))}return E}return sR=d,sR}var lR,tD;function NX(){if(tD)return lR;tD=1;var e=Rj(),t=sw(),r=DX(),n=_j(),a=t(function(o){return r(e(o,1,n,!0))});return lR=a,lR}var BX=NX();const $z=tt(BX);var U2=function(){return U2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0?V(G):G},{updatedAt:B}),a.setQueriesData({queryKey:[k,"getManyReference"]},function(G){return G&&G.data?{data:V(G.data),total:G.total}:G},{updatedAt:B})},P=Ef(Nr(Nr({mutationFn:function(j){var k=j===void 0?{}:j,M=k.resource,$=M===void 0?e:M,N=k.id,B=N===void 0?_.current.id:N,q=k.data,V=q===void 0?_.current.data:q,G=k.meta,Y=G===void 0?_.current.meta:G,X=k.previousData,H=X===void 0?_.current.previousData:X;if(!$)throw new Error("useUpdate mutation requires a non-empty resource");if(B==null)throw new Error("useUpdate mutation requires a non-empty id");if(!V)throw new Error("useUpdate mutation requires a non-empty data object");return E.current($,{id:B,data:V,previousData:H,meta:Y}).then(function(te){var ne=te.data;return ne})}},g),{onMutate:function(j){return nD(void 0,void 0,void 0,function(){var k;return aD(this,function(M){switch(M.label){case 0:return g.onMutate?[4,g.onMutate(j)]:[3,2];case 1:return k=M.sent()||{},[2,Nr({snapshot:S.current},k)];case 2:return[2,{snapshot:S.current}]}})})},onError:function(j,k,M){if(k===void 0&&(k={}),(y.current==="optimistic"||y.current==="undoable")&&M.snapshot.forEach(function($){var N=$[0],B=$[1];a.setQueryData(N,B)}),x.current)return x.current(j,k,M);if(g.onError)return g.onError(j,k,M)},onSuccess:function(j,k,M){if(k===void 0&&(k={}),y.current==="pessimistic"){var $=k.resource,N=$===void 0?e:$,B=k.id,q=B===void 0?o:B;R({resource:N,id:q,data:j}),g.onSuccess&&!I.current&&g.onSuccess(j,k,M)}},onSettled:function(j,k,M,$){if(M===void 0&&(M={}),(y.current==="optimistic"||y.current==="undoable")&&$.snapshot.forEach(function(N){var B=N[0];a.invalidateQueries({queryKey:B})}),T.current)return T.current(j,k,M,$);if(g.onSettled)return g.onSettled(j,k,M,$)}})),C=function(j,k,M){return j===void 0&&(j=e),k===void 0&&(k={}),M===void 0&&(M={}),nD(void 0,void 0,void 0,function(){var $,N,B,q,V,G,Y,X,H,te,ne,K,ee,Ce,se;return aD(this,function(Se){switch(Se.label){case 0:return $=M.mutationMode,N=M.returnPromise,B=N===void 0?g.returnPromise:N,q=M.onError,V=M.onSettled,G=M.onSuccess,Y=oD(M,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),h?E.current=h(n.update.bind(n)):E.current=n.update,I.current=!!G,x.current=q,T.current=V,_.current=t,$&&(y.current=$),B&&y.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),y.current==="pessimistic"?B?[2,P.mutateAsync(Nr({resource:j},k),Nr({onSuccess:G},Y))]:[2,P.mutate(Nr({resource:j},k),Nr({onSuccess:G},Y))]:(X=k.id,H=X===void 0?o:X,te=k.data,ne=te===void 0?s:te,K=k.meta,ee=K===void 0?d:K,Ce=a.getQueryData([j,"getOne",{id:String(H),meta:ee}]),se=[[j,"getOne",{id:String(H),meta:ee}],[j,"getList"],[j,"getInfiniteList"],[j,"getMany"],[j,"getManyReference"]],S.current=se.reduce(function(me,we){return me.concat(a.getQueriesData({queryKey:we}))},[]),[4,Promise.all(S.current.map(function(me){var we=me[0];return a.cancelQueries({queryKey:we})}))]);case 1:return Se.sent(),R({resource:j,id:H,data:ne}),setTimeout(function(){G?G(Nr(Nr({},Ce),ne),Nr({resource:j},k),{snapshot:S.current}):g.onSuccess&&!I.current&&g.onSuccess(Nr(Nr({},Ce),ne),Nr({resource:j},k),{snapshot:S.current})},0),y.current==="optimistic"?[2,P.mutate(Nr({resource:j},k))]:(hb.once("end",function(me){var we=me.isUndo;we?S.current.forEach(function(Oe){var ie=Oe[0],Fe=Oe[1];a.setQueryData(ie,Fe)}):P.mutate(Nr({resource:j},k))}),[2])}})})},O=p.useMemo(function(){return Nr({isLoading:P.isPending},P)},[P]);return[wr(C),O]},Ha=function(){return Ha=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0?M($):$},{updatedAt:k}),a.setQueriesData({queryKey:[C,"getManyReference"]},function($){if(!$||!$.data)return $;var N=M($.data),B=N.length<$.data.length;return B?{data:N,total:$.total-1}:$},{updatedAt:k})},T=Ef(Ha(Ha({mutationFn:function(P){var C=P===void 0?{}:P,O=C.resource,j=O===void 0?e:O,k=C.id,M=k===void 0?g.current.id:k,$=C.previousData,N=$===void 0?g.current.previousData:$,B=C.meta,q=B===void 0?g.current.meta:B;if(!j)throw new Error("useDelete mutation requires a non-empty resource");if(M==null)throw new Error("useDelete mutation requires a non-empty id");return n.delete(j,{id:M,previousData:N,meta:q}).then(function(V){var G=V.data;return G})}},u),{onMutate:function(P){return iD(void 0,void 0,void 0,function(){var C;return sD(this,function(O){switch(O.label){case 0:return u.onMutate?[4,u.onMutate(P)]:[3,2];case 1:return C=O.sent()||{},[2,Ha({snapshot:y.current},C)];case 2:return[2,{snapshot:y.current}]}})})},onError:function(P,C,O){if(C===void 0&&(C={}),(h.current==="optimistic"||h.current==="undoable")&&O.snapshot.forEach(function(j){var k=j[0],M=j[1];a.setQueryData(k,M)}),u.onError&&!_.current)return u.onError(P,C,O)},onSuccess:function(P,C,O){if(C===void 0&&(C={}),h.current==="pessimistic"){var j=C.resource,k=j===void 0?e:j,M=C.id,$=M===void 0?o:M;x({resource:k,id:$}),u.onSuccess&&!S.current&&u.onSuccess(P,C,O)}},onSettled:function(P,C,O,j){if(O===void 0&&(O={}),(h.current==="optimistic"||h.current==="undoable")&&j.snapshot.forEach(function(k){var M=k[0];a.invalidateQueries({queryKey:M})}),u.onSettled&&!E.current)return u.onSettled(P,C,O,j)}})),I=function(P,C,O){return P===void 0&&(P=e),C===void 0&&(C={}),O===void 0&&(O={}),iD(void 0,void 0,void 0,function(){var j,k,M,$,N,B,q;return sD(this,function(V){switch(V.label){case 0:return j=O.mutationMode,k=lD(O,["mutationMode"]),_.current=!!O.onError,S.current=!!O.onSuccess,E.current=!!O.onSettled,g.current=t,j&&(h.current=j),h.current==="pessimistic"?[2,T.mutate(Ha({resource:P},C),k)]:(M=C.id,$=M===void 0?o:M,N=C.previousData,B=N===void 0?s:N,q=[[P,"getList"],[P,"getInfiniteList"],[P,"getMany"],[P,"getManyReference"]],y.current=q.reduce(function(G,Y){return G.concat(a.getQueriesData({queryKey:Y}))},[]),[4,Promise.all(y.current.map(function(G){var Y=G[0];return a.cancelQueries({queryKey:Y})}))]);case 1:return V.sent(),x({resource:P,id:$}),setTimeout(function(){O.onSuccess?O.onSuccess(B,Ha({resource:P},C),{snapshot:y.current}):u.onSuccess&&u.onSuccess(B,Ha({resource:P},C),{snapshot:y.current})},0),h.current==="optimistic"?[2,T.mutate(Ha({resource:P},C),{onSettled:O.onSettled,onError:O.onError})]:(hb.once("end",function(G){var Y=G.isUndo;Y?y.current.forEach(function(X){var H=X[0],te=X[1];a.setQueryData(H,te)}):T.mutate(Ha({resource:P},C),{onSettled:O.onSettled,onError:O.onError})}),[2])}})})},R=p.useMemo(function(){return Ha({isLoading:T.isPending},T)},[T]);return[wr(I),R]},Ga=function(){return Ga=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0?k(M):M},{updatedAt:j}),a.setQueriesData({queryKey:[P,"getManyReference"]},function(M){if(!M||!M.data)return M;var $=k(M.data),N=$.length=0?s[u].apply(s,tg(tg([],g,!1),[h],!1)):o.apply(void 0,g)};return s.length>0?s[u].apply(s,tg(tg([],d,!1),[h],!1)):o.apply(void 0,d)}},[]),a=p.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},M1=function(){return M1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0;K||E(typeof Y=="string"?Y:Y.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof Y=="string"?Y:Y instanceof Error||typeof Y=="object"&&Y!==null&&Y.hasOwnProperty("message")?Y.message:void 0}})}},C),{returnPromise:!0,getMutateWithMiddlewares:k})),N=$[0],B=$[1].isPending,q=p.useCallback(function(Y,X){X===void 0&&(X={});var H=X.transform,te=X.meta,ne=SD(X,["transform","meta"]);return Promise.resolve(H?H(Y):o?o(Y):Y).then(function(K){return xD(void 0,void 0,void 0,function(){var ee,Ce;return wD(this,function(se){switch(se.label){case 0:return se.trys.push([0,2,,3]),[4,N(f,{data:K,meta:te??P},ne)];case 1:return se.sent(),[3,3];case 2:return ee=se.sent(),(ee instanceof Iz||typeof ee=="object"&&ee!==null&&ee.hasOwnProperty("body"))&&((Ce=ee.body)===null||Ce===void 0?void 0:Ce.errors)!=null?[2,ee.body.errors]:[3,3];case 3:return[2]}})})})},[N,P,f,o]),V=bv(),G=S("ra.page.create",{name:V(f,1)});return{isFetching:!1,isLoading:!1,isPending:B,saving:B,defaultTitle:G,save:q,resource:f,record:T,redirect:y,registerMutationMiddleware:j,unregisterMutationMiddleware:M}},uY=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=Zh.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},cY=function(e,t){return t?"edit":e?"show":"list"},Ij=p.createContext(void 0);Ij.displayName="RecordContext";var Mc=function(e){var t=e.children,r=e.value;return p.createElement(Ij.Provider,{value:r},t)},jj=p.createContext(null);jj.displayName="CreateContext";var F1=function(){return F1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0;(!Be||a!=="pessimistic")&&E(typeof ie=="string"?ie:ie.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ie=="string"?ie:ie instanceof Error||typeof ie=="object"&&ie!==null&&ie.hasOwnProperty("message")?ie.message:void 0}})}},M),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:B})),me=Se[0],we=Se[1].isPending,Oe=p.useCallback(function(ie,Fe){var ke=Fe===void 0?{}:Fe,$e=ke.onSuccess,Te=ke.onError,Be=ke.transform,Le=ke.meta;return Promise.resolve(Be?Be(ie,{previousData:se.previousData}):g?g(ie,{previousData:se.previousData}):ie).then(function(dt){return ED(void 0,void 0,void 0,function(){var He,Z;return CD(this,function(ae){switch(ae.label){case 0:return ae.trys.push([0,2,,3]),[4,me(y,{id:R,data:dt,meta:Le??O},{onError:Te,onSuccess:$e})];case 1:return ae.sent(),[3,3];case 2:return He=ae.sent(),((Z=He.body)===null||Z===void 0?void 0:Z.errors)!=null?[2,He.body.errors]:[3,3];case 3:return[2]}})})})},[R,O,y,g,me,se.previousData]);return{defaultTitle:Ce,error:Y,isFetching:H,isLoading:X,isPending:te,mutationMode:a,record:G,redirect:h,refetch:ne,registerMutationMiddleware:N,resource:y,save:Oe,saving:we,unregisterMutationMiddleware:q}},mY="list",Sr=function(e){var t=p.useContext(Ij);return e&&e.record||t},qz=function(e){var t=e.value,r=e.children;return t?p.createElement(Mc,{value:t},r):r},Tj=p.createContext(null);Tj.displayName="EditContext";var gY=function(e){var t=e.children,r=e.value;return p.createElement(Tj.Provider,{value:r},p.createElement(Nz,{value:Bz(r)},p.createElement(Mc,{value:r&&r.record},t)))},yY=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a"u"?"undefined":e(u)){case"string":return[{item:h,value:this._handleString(u,h)}];case"number":return[{item:h,value:this._handleNumber(u,h)}];case"boolean":return[{item:h,value:this._handleBoolean.bind(this)(u,h)}]}return this.checkComplex(u,h)}},{key:"_handleObject",value:function(u){var h=[];for(var g in u){var y=u[g],_=this.check(y,g,g,u);h=h.concat(_)}return h}},{key:"_handleArray",value:function(u){for(var h=this,g=[],y,_=0;_0&&!x.item&&y===void 0&&(y=x);g=g.concat(E)}}return g}},{key:"_handleBoolean",value:function(u){var h;return u?h=this._options.booleanTrueString||"true":h=this._options.booleanFalseString||"false",h}},{key:"_handleString",value:function(u){return u}},{key:"_handleNumber",value:function(u){return u}},{key:"_handleDate",value:function(u){return u.toLocaleDateString()}}]),d}();SR=a;var o=typeof window>"u"?Yl:window;function s(d,f){if(d instanceof o[f])return!0;switch(typeof d>"u"?"undefined":e(d)){case"string":return f==="String";case"boolean":return f==="Boolean";case"number":return f==="Number"}return!1}return SR}var ER,jD;function kY(){return jD||(jD=1,ER=function(t,r,n){var a=` -`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),s=t+t,d=t==='"'?function(f){return f.indexOf(r)>=0||f.indexOf(a)>=0||f.indexOf('"')>=0}:function(f){return f.indexOf(r)>=0||f.indexOf(a)>=0};return function(f){return n&&(f=""+f),f.replace&&(f=f.replace(o,s),(n||d(f))&&(f=t+f+t)),f}}),ER}var CR,TD;function IY(){if(TD)return CR;TD=1;var e=function(){function s(d,f){for(var u=0;u0&&(T=T.concat(Array(I).join(".").split("."))),u&&this._options.fillGaps&&(T=T.map(g)),h.push(T.join(this._options.rowDelimiter)),u=T}}catch(R){_=!0,S=R}finally{try{!y&&E.return&&E.return()}finally{if(_)throw S}}return h}},{key:"_parseArray",value:function(f,u){var h=this;this._headers=this._headers||[];var g=[],y=void 0,_=function(O){var j=h._headers.indexOf(O);return j===-1&&(h._headers.push(O),j=h._headers.indexOf(O)),j};y=function(O){var j=[],k=function(ne){return j.push(ne.map(function(K){return K??""}))},M=function(){return new Array(h._headers.length).fill(null)},$={},N=M(),B=!0,q=!1,V=void 0;try{for(var G=O[Symbol.iterator](),Y;!(B=(Y=G.next()).done);B=!0){var X=Y.value,H=_(X.item);if(N[H]!=null&&(k(N),N=M()),$[H]=$[H]||0,h._options.fillTopRow&&$[H]0&&k(N),g=g.concat(h._checkRows(j))};var S=!0,E=!1,x=void 0;try{for(var T=f[Symbol.iterator](),I;!(S=(I=T.next()).done);S=!0){var R=I.value,P=h._handler.check(R,h._options.mainPathItem,R,f);y(P)}}catch(C){E=!0,x=C}finally{try{!S&&T.return&&T.return()}finally{if(E)throw x}}return!u&&h._options.includeHeaders&&g.unshift(this.headers),r(g,h._options.endOfLine)}},{key:"_parseObject",value:function(f){var u=this,h=[],g=[],y=void 0,_=[[],[]];y=function(T){var I=T.value||T.value===0?T.value.toString():u._options.undefinedString;if(I=u._escape(I),u._options.verticalOutput){var R=[T.item,I];h.push(R.join(u._options.rowDelimiter))}else _[0].push(T.item),_[1].push(I)};for(var S in f){var E="";this._options.mainPathItem&&(E=this._options.mainPathItem+this._options.headerPathString),g=this._handler.check(f[S],E+S,S,f),g.forEach(y)}return this._options.verticalOutput||(h.push(_[0].join(this._options.rowDelimiter)),h.push(_[1].join(this._options.rowDelimiter))),r(h,this._options.endOfLine)}},{key:"headers",get:function(){var f=this,u=this._headers;return this._options.rename&&this._options.rename.length>0&&(u=u.map(function(h){return f._options.rename[f._options.headers.indexOf(h)]||h})),this._options.forceTextDelimiter&&(u=u.map(function(h){return""+f._options.textDelimiter+h+f._options.textDelimiter})),this._options.mapHeaders&&(u=u.map(this._options.mapHeaders)),u.join(this._options.rowDelimiter)}}]),s}();return CR=o,CR}var OR,AD;function jY(){if(AD)return OR;AD=1;var e=function(t){throw new Error("jsonexport called without third argument as a callback and is required")};return OR=e,OR}var PR,MD;function TY(){if(MD)return PR;MD=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t=IY(),r=jY();uw();var n=Vz();return PR=function(){var a={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:n||` -`,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},o=void 0,s=void 0,d=void 0;if(arguments.length===3){var f=Array.prototype.slice.call(arguments);o=f[0],s=f[1],d=f[2]}else if(arguments.length===2){var u=void 0,h=Array.prototype.slice.call(arguments);o=h[0],u=h[1],typeof u=="function"?d=u:(typeof u>"u"?"undefined":e(u))==="object"&&(s=u)}else if(arguments.length===1){var g=Array.prototype.slice.call(arguments),y=g[0];if((typeof y>"u"?"undefined":e(y))==="object"){var _=Object.keys(a),S=Object.keys(y),E=S.every(function(I){return _.includes(I)});S.length>0&&E?s=y:o=y}else o=y}else return new r(new t(a));var x=Object.assign({},a,s),T=new t(x);return o?new Promise(function(I,R){T.parse(o,function(P,C){if(d)return d(P,C);if(P)return R(P);if(R)return I(C)})}):new r(T)},PR}var AY=TY();const MY=tt(AY);var FY=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},$Y=function(e,t,r,n){return MY(e,function(a,o){return FY(o,n)})},LY=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)},[])))},DY=function(e){return function(t,r,n){return e.getMany(n,{ids:LY(t,r)}).then(function(a){var o=a.data;return o.reduce(function(s,d){return s[d.id]=d,s},{})})}},rh=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||S(function(I){if(!Array.isArray(I))return rh([],I,!0);var R=I.indexOf(T);return R>-1?rh(rh([],I.slice(0,R),!0),I.slice(R+1),!0):rh(rh([],I,!0),[T],!1)})},clearSelection:function(){E()}}},[S,E]);return[_,x]},RR=[];function Ci(e){var t=p.useState(e),r=t[0],n=t[1],a=p.useRef(!1);p.useEffect(function(){return a.current=!0,function(){a.current=!1}},[]);var o=p.useCallback(function(s){if(a.current)return n(s)},[a,n]);return[r,o]}function cw(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=Ci(!1),n=r[0],a=r[1];return p.useEffect(function(){a(!1);var o=setTimeout(function(){a(!0)},e);return function(){clearTimeout(o)}},[t,e,a]),n}function NY(){var e=p.useRef(!0);return p.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Jl=function(){return Jl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&P(M)},[_.search]);var $=p.useCallback(function(ne){O.current&&(C.current?C.current=FL(C.current,ne):(C.current=FL(M,ne),setTimeout(function(){C.current&&(a&&!y?T(C.current):a&&y?P(C.current):S({search:"?".concat(Zh.stringify(Jl(Jl({},C.current),{filter:JSON.stringify(C.current.filter),displayedFilters:JSON.stringify(C.current.displayedFilters)})))},{state:{_scrollToTop:ne.type===B2}}),C.current=void 0)},0)))},FD(FD([],j,!0),[S],!1)),N=p.useCallback(function(ne){return $({type:Sz,payload:ne})},[$]),B=p.useCallback(function(ne){return $({type:B2,payload:ne})},[$]),q=p.useCallback(function(ne){return $({type:Ez,payload:ne})},[$]),V=M.filter||DD,G=M.displayedFilters||DD,Y=Cj(function(ne,K){$({type:z2,payload:{filter:kc(ne),displayedFilters:K}})},r),X=p.useCallback(function(ne,K,ee){return K===void 0&&(K=void 0),ee===void 0&&(ee=!1),ee?Y(ne,K):$({type:z2,payload:{filter:kc(ne),displayedFilters:K}})},[$]),H=p.useCallback(function(ne){$({type:Oz,payload:ne})},[$]),te=p.useCallback(function(ne,K){$({type:Cz,payload:{filterName:ne,defaultValue:K}})},[$]);return[Jl(Jl({filterValues:V,requestSignature:j},M),{displayedFilters:G}),{changeParams:$,setPage:B,setPerPage:q,setSort:N,setFilters:X,hideFilter:H,showFilter:te}]},$D=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},zY=function(e){var t=e.search,r=Zh.parse(t);return $D(r,"filter"),$D(r,"displayedFilters"),r},qY=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},UY=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,s=Object.keys(t).length>0?t:qY(r)?Jl({},r):{filter:n||{}};return s.sort||(s.sort=a.field,s.order=a.order),s.perPage==null&&(s.perPage=o),s.page==null&&(s.page=1),Jl(Jl({},s),{page:LD(s.page,1),perPage:LD(s.perPage,10)})},LD=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},DD={},VY={field:"id",order:df},ND={},dw=p.createContext(null);dw.displayName="ListContext";var Wz=p.createContext(void 0),WY=function(e){return p.useMemo(function(){return lw(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};Wz.displayName="ListFilterContext";var Hz=p.createContext(void 0),HY=function(e){return p.useMemo(function(){return lw(e,["sort","setSort","resource"])},[e.sort,e.setSort])};Hz.displayName="ListSortContext";var Aj=p.createContext(void 0);Aj.displayName="ListPaginationContext";var GY=function(e){return p.useMemo(function(){return lw(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},Mj=function(e){var t=e.value,r=e.children;return p.createElement(dw.Provider,{value:t},p.createElement(Wz.Provider,{value:WY(t)},p.createElement(Hz.Provider,{value:HY(t)},p.createElement(Aj.Provider,{value:GY(t)},r))))},ff=function(){return ff=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(B==null||(B==null?void 0:B.length)===0)){j.setPage(1);return}if(V!=null){var se=Math.ceil(V/O.perPage)||1;!H&&O.page>se&&j.setPage(se)}},[H,O.page,O.perPage,B,j,V]);var K=p.useMemo(function(){return{field:O.sort,order:O.order}},[O.sort,O.order]),ee=bv(),Ce=R("ra.page.list",{name:ee(x,2)});return{sort:K,data:B,meta:G,defaultTitle:Ce,displayedFilters:O.displayedFilters,error:Y,exporter:s,filter:d,filterValues:O.filterValues,hideFilter:j.hideFilter,isFetching:H,isLoading:X,isPending:te,onSelect:$.select,onToggleItem:$.toggle,onUnselectItems:$.clearSelection,page:O.page,perPage:O.perPage,refetch:ne,resource:x,selectedIds:M,setFilters:j.setFilters,setPage:j.setPage,setPerPage:j.setPerPage,setSort:j.setSort,showFilter:j.showFilter,total:V,hasNextPage:q?q.hasNextPage:V!=null?O.page*O.perPage1}},XY={field:"id",order:df},YY=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],vb=function(e){return Object.keys(e).filter(function(t){return!YY.includes(t)}).reduce(function(t,r){var n;return ff(ff({},t),(n={},n[r]=e[r],n))},{})},JY=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a-1?r?[]:M_(M_([],f.slice(0,u),!0),f.slice(u+1),!0):r?[t]:M_(M_([],f,!0),[t],!1)})},[o,t,r]);return[s,d]},tJ=function(e,t){var r=_a("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(d){return t.some(function(f){return f==d})}):!1,s=p.useCallback(function(){var d=n.filter(function(f){return!t.some(function(u){return u==f})});a(o?d:d.concat(t))},[n,a,o,t]);return[o,s]},yh=function(){return yh=Object.assign||function(e){for(var t,r=1,n=arguments.length;rxr(be,ee.field)?ee.order==="ASC"?1:-1:xr(ve,ee.field)1,hideFilter:Le,isFetching:C,isLoading:k,isPending:N,onSelect:we.select,onToggleItem:we.toggle,onUnselectItems:we.clearSelection,page:X,perPage:te,resource:"",refetch:rJ,selectedIds:me,setFilters:He,setPage:H,setPerPage:ne,setSort:se,showFilter:dt,total:V==null?void 0:V.total}},nJ={},La=function(){var e=p.useContext(dw);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},kR,zD;function aJ(){if(zD)return kR;zD=1;var e=sw(),t=mv(),r=gz(),n=gv(),a=Object.prototype,o=a.hasOwnProperty,s=e(function(d,f){d=Object(d);var u=-1,h=f.length,g=h>2?f[2]:void 0;for(g&&r(f[0],f[1],g)&&(h=1);++u1,setSort:V,showFilter:me,total:ke}},uJ={},Wb=e=>e.type==="checkbox",bh=e=>e instanceof Date,Za=e=>e==null;const Yz=e=>typeof e=="object";var Nn=e=>!Za(e)&&!Array.isArray(e)&&Yz(e)&&!bh(e),Jz=e=>Nn(e)&&e.target?Wb(e.target)?e.target.checked:e.target.value:e,cJ=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Zz=(e,t)=>e.has(cJ(t)),dJ=e=>{const t=e.constructor&&e.constructor.prototype;return Nn(t)&&t.hasOwnProperty("isPrototypeOf")},$j=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Kn(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(!($j&&(e instanceof Blob||e instanceof FileList))&&(r||Nn(e)))if(t=r?[]:{},!r&&!dJ(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Kn(e[n]));else return e;return t}var Hb=e=>Array.isArray(e)?e.filter(Boolean):[],Yr=e=>e===void 0,at=(e,t,r)=>{if(!t||!Nn(e))return r;const n=Hb(t.split(/[,[\].]+?/)).reduce((a,o)=>Za(a)?a:a[o],e);return Yr(n)||n===e?Yr(e[t])?r:e[t]:n},wi=e=>typeof e=="boolean",Lj=e=>/^\w*$/.test(e),eq=e=>Hb(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Br=(e,t,r)=>{let n=-1;const a=Lj(t)?[t]:eq(t),o=a.length,s=o-1;for(;++nKe.useContext(tq),rq=e=>{const{children:t,...r}=e;return Ke.createElement(tq.Provider,{value:r},t)};var nq=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const s=o;return t._proxyFormState[s]!==Pi.all&&(t._proxyFormState[s]=!n||Pi.all),r&&(r[s]=!0),e[s]}});return a},Ya=e=>Nn(e)&&!Object.keys(e).length,aq=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return Ya(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!n||Pi.all))},Oo=e=>Array.isArray(e)?e:[e],oq=(e,t,r)=>!e||!t||e===t||Oo(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function fw(e){const t=Ke.useRef(e);t.current=e,Ke.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Gb(e){const t=Li(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[s,d]=Ke.useState(r._formState),f=Ke.useRef(!0),u=Ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),h=Ke.useRef(a);return h.current=a,fw({disabled:n,next:g=>f.current&&oq(h.current,g.name,o)&&aq(g,u.current,r._updateFormState)&&d({...r._formState,...g}),subject:r._subjects.state}),Ke.useEffect(()=>(f.current=!0,u.current.isValid&&r._updateValid(!0),()=>{f.current=!1}),[r]),nq(s,r,u.current,!1)}var el=e=>typeof e=="string",iq=(e,t,r,n,a)=>el(e)?(n&&t.watch.add(e),at(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),at(r,o))):(n&&(t.watchAll=!0),r);function sq(e){const t=Li(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:s}=e||{},d=Ke.useRef(n);d.current=n,fw({disabled:o,subject:r._subjects.values,next:h=>{oq(d.current,h.name,s)&&u(Kn(iq(d.current,r._names,h.values||r._formValues,!1,a)))}});const[f,u]=Ke.useState(r._getWatch(n,a));return Ke.useEffect(()=>r._removeUnmounted()),f}function fJ(e){const t=Li(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,s=Zz(a._names.array,r),d=sq({control:a,name:r,defaultValue:at(a._formValues,r,at(a._defaultValues,r,e.defaultValue)),exact:!0}),f=Gb({control:a,name:r,exact:!0}),u=Ke.useRef(a.register(r,{...e.rules,value:d,...wi(e.disabled)?{disabled:e.disabled}:{}}));return Ke.useEffect(()=>{const h=a._options.shouldUnregister||o,g=(y,_)=>{const S=at(a._fields,y);S&&S._f&&(S._f.mount=_)};if(g(r,!0),h){const y=Kn(at(a._options.defaultValues,r));Br(a._defaultValues,r,y),Yr(at(a._formValues,r))&&Br(a._formValues,r,y)}return()=>{(s?h&&!a._state.action:h)?a.unregister(r):g(r,!1)}},[r,a,s,o]),Ke.useEffect(()=>{at(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:at(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:d,...wi(n)||f.disabled?{disabled:f.disabled||n}:{},onChange:Ke.useCallback(h=>u.current.onChange({target:{value:Jz(h),name:r},type:$1.CHANGE}),[r]),onBlur:Ke.useCallback(()=>u.current.onBlur({target:{value:at(a._formValues,r),name:r},type:$1.BLUR}),[r,a]),ref:Ke.useCallback(h=>{const g=at(a._fields,r);g&&h&&(g._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:y=>h.setCustomValidity(y),reportValidity:()=>h.reportValidity()})},[a._fields,r])},formState:f,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!at(f.errors,r)},isDirty:{enumerable:!0,get:()=>!!at(f.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!at(f.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!at(f.validatingFields,r)},error:{enumerable:!0,get:()=>at(f.errors,r)}})}}var pJ=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},Qu=()=>{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)})},jR=(e,t,r={})=>r.shouldFocus||Yr(r.shouldFocus)?r.focusName||`${e}.${Yr(r.focusIndex)?t:r.focusIndex}.`:"",Gy=e=>({isOnSubmit:!e||e===Pi.onSubmit,isOnBlur:e===Pi.onBlur,isOnChange:e===Pi.onChange,isOnAll:e===Pi.all,isOnTouch:e===Pi.onTouched}),H2=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Sh=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=at(e,a);if(o){const{_f:s,...d}=o;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],a)&&!n)return!0;if(s.ref&&t(s.ref,s.name)&&!n)return!0;if(Sh(d,t))break}else if(Nn(d)&&Sh(d,t))break}}};var lq=(e,t,r)=>{const n=Oo(at(e,r));return Br(n,"root",t[r]),Br(e,r,n),e},Dj=e=>e.type==="file",Zl=e=>typeof e=="function",L1=e=>{if(!$j)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},o1=e=>el(e),Nj=e=>e.type==="radio",D1=e=>e instanceof RegExp;const qD={value:!1,isValid:!1},UD={value:!0,isValid:!0};var uq=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&&!Yr(e[0].attributes.value)?Yr(e[0].value)||e[0].value===""?UD:{value:e[0].value,isValid:!0}:UD:qD}return qD};const VD={isValid:!1,value:null};var cq=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,VD):VD;function WD(e,t,r="validate"){if(o1(e)||Array.isArray(e)&&e.every(o1)||wi(e)&&!e)return{type:r,message:o1(e)?e:"",ref:t}}var nh=e=>Nn(e)&&!D1(e)?e:{value:e,message:""},G2=async(e,t,r,n,a)=>{const{ref:o,refs:s,required:d,maxLength:f,minLength:u,min:h,max:g,pattern:y,validate:_,name:S,valueAsNumber:E,mount:x,disabled:T}=e._f,I=at(t,S);if(!x||T)return{};const R=s?s[0]:o,P=B=>{n&&R.reportValidity&&(R.setCustomValidity(wi(B)?"":B||""),R.reportValidity())},C={},O=Nj(o),j=Wb(o),k=O||j,M=(E||Dj(o))&&Yr(o.value)&&Yr(I)||L1(o)&&o.value===""||I===""||Array.isArray(I)&&!I.length,$=pJ.bind(null,S,r,C),N=(B,q,V,G=Wl.maxLength,Y=Wl.minLength)=>{const X=B?q:V;C[S]={type:B?G:Y,message:X,ref:o,...$(B?G:Y,X)}};if(a?!Array.isArray(I)||!I.length:d&&(!k&&(M||Za(I))||wi(I)&&!I||j&&!uq(s).isValid||O&&!cq(s).isValid)){const{value:B,message:q}=o1(d)?{value:!!d,message:d}:nh(d);if(B&&(C[S]={type:Wl.required,message:q,ref:R,...$(Wl.required,q)},!r))return P(q),C}if(!M&&(!Za(h)||!Za(g))){let B,q;const V=nh(g),G=nh(h);if(!Za(I)&&!isNaN(I)){const Y=o.valueAsNumber||I&&+I;Za(V.value)||(B=Y>V.value),Za(G.value)||(q=Ynew Date(new Date().toDateString()+" "+ne),H=o.type=="time",te=o.type=="week";el(V.value)&&I&&(B=H?X(I)>X(V.value):te?I>V.value:Y>new Date(V.value)),el(G.value)&&I&&(q=H?X(I)+B.value,G=!Za(q.value)&&I.length<+q.value;if((V||G)&&(N(V,B.message,q.message),!r))return P(C[S].message),C}if(y&&!M&&el(I)){const{value:B,message:q}=nh(y);if(D1(B)&&!I.match(B)&&(C[S]={type:Wl.pattern,message:q,ref:o,...$(Wl.pattern,q)},!r))return P(q),C}if(_){if(Zl(_)){const B=await _(I,t),q=WD(B,R);if(q&&(C[S]={...q,...$(Wl.validate,q.message)},!r))return P(q.message),C}else if(Nn(_)){let B={};for(const q in _){if(!Ya(B)&&!r)break;const V=WD(await _[q](I,t),R,q);V&&(B={...V,...$(q,V.message)},P(V.message),r&&(C[S]=B))}if(!Ya(B)&&(C[S]={ref:R,...B},!r))return C}}return P(!0),C},TR=(e,t)=>[...e,...Oo(t)],AR=e=>Array.isArray(e)?e.map(()=>{}):void 0;function MR(e,t,r){return[...e.slice(0,t),...Oo(r),...e.slice(t)]}var FR=(e,t,r)=>Array.isArray(e)?(Yr(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],$R=(e,t)=>[...Oo(t),...Oo(e)];function hJ(e,t){let r=0;const n=[...e];for(const a of t)n.splice(a-r,1),r++;return Hb(n).length?n:[]}var LR=(e,t)=>Yr(t)?[]:hJ(e,Oo(t).sort((r,n)=>r-n)),DR=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function vJ(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function gJ(e){const t=Li(),{control:r=t.control,name:n,keyName:a="id",shouldUnregister:o}=e,[s,d]=Ke.useState(r._getFieldArray(n)),f=Ke.useRef(r._getFieldArray(n).map(Qu)),u=Ke.useRef(s),h=Ke.useRef(n),g=Ke.useRef(!1);h.current=n,u.current=s,r._names.array.add(n),e.rules&&r.register(n,e.rules),fw({next:({values:C,name:O})=>{if(O===h.current||!O){const j=at(C,h.current);Array.isArray(j)&&(d(j),f.current=j.map(Qu))}},subject:r._subjects.array});const y=Ke.useCallback(C=>{g.current=!0,r._updateFieldArray(n,C)},[r,n]),_=(C,O)=>{const j=Oo(Kn(C)),k=TR(r._getFieldArray(n),j);r._names.focus=jR(n,k.length-1,O),f.current=TR(f.current,j.map(Qu)),y(k),d(k),r._updateFieldArray(n,k,TR,{argA:AR(C)})},S=(C,O)=>{const j=Oo(Kn(C)),k=$R(r._getFieldArray(n),j);r._names.focus=jR(n,0,O),f.current=$R(f.current,j.map(Qu)),y(k),d(k),r._updateFieldArray(n,k,$R,{argA:AR(C)})},E=C=>{const O=LR(r._getFieldArray(n),C);f.current=LR(f.current,C),y(O),d(O),r._updateFieldArray(n,O,LR,{argA:C})},x=(C,O,j)=>{const k=Oo(Kn(O)),M=MR(r._getFieldArray(n),C,k);r._names.focus=jR(n,C,j),f.current=MR(f.current,C,k.map(Qu)),y(M),d(M),r._updateFieldArray(n,M,MR,{argA:C,argB:AR(O)})},T=(C,O)=>{const j=r._getFieldArray(n);DR(j,C,O),DR(f.current,C,O),y(j),d(j),r._updateFieldArray(n,j,DR,{argA:C,argB:O},!1)},I=(C,O)=>{const j=r._getFieldArray(n);FR(j,C,O),FR(f.current,C,O),y(j),d(j),r._updateFieldArray(n,j,FR,{argA:C,argB:O},!1)},R=(C,O)=>{const j=Kn(O),k=HD(r._getFieldArray(n),C,j);f.current=[...k].map((M,$)=>!M||$===C?Qu():f.current[$]),y(k),d([...k]),r._updateFieldArray(n,k,HD,{argA:C,argB:j},!0,!1)},P=C=>{const O=Oo(Kn(C));f.current=O.map(Qu),y([...O]),d([...O]),r._updateFieldArray(n,[...O],j=>j,{},!0,!1)};return Ke.useEffect(()=>{if(r._state.action=!1,H2(n,r._names)&&r._subjects.state.next({...r._formState}),g.current&&(!Gy(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(C=>{const O=at(C.errors,n),j=at(r._formState.errors,n);(j?!O&&j.type||O&&(j.type!==O.type||j.message!==O.message):O&&O.type)&&(O?Br(r._formState.errors,n,O):$n(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const C=at(r._fields,n);C&&C._f&&!(Gy(r._options.reValidateMode).isOnSubmit&&Gy(r._options.mode).isOnSubmit)&&G2(C,r._formValues,r._options.criteriaMode===Pi.all,r._options.shouldUseNativeValidation,!0).then(O=>!Ya(O)&&r._subjects.state.next({errors:lq(r._formState.errors,O,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&Sh(r._fields,(C,O)=>{if(r._names.focus&&O.startsWith(r._names.focus)&&C.focus)return C.focus(),1}),r._names.focus="",r._updateValid(),g.current=!1},[s,n,r]),Ke.useEffect(()=>(!at(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)}),[n,r,a,o]),{swap:Ke.useCallback(T,[y,n,r]),move:Ke.useCallback(I,[y,n,r]),prepend:Ke.useCallback(S,[y,n,r]),append:Ke.useCallback(_,[y,n,r]),remove:Ke.useCallback(E,[y,n,r]),insert:Ke.useCallback(x,[y,n,r]),update:Ke.useCallback(R,[y,n,r]),replace:Ke.useCallback(P,[y,n,r]),fields:Ke.useMemo(()=>s.map((C,O)=>({...C,[a]:f.current[O]||Qu()})),[s,a])}}var NR=()=>{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},N1=e=>Za(e)||!Yz(e);function ic(e,t){if(N1(e)||N1(t))return e===t;if(bh(e)&&bh(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const s=t[a];if(bh(o)&&bh(s)||Nn(o)&&Nn(s)||Array.isArray(o)&&Array.isArray(s)?!ic(o,s):o!==s)return!1}}return!0}var dq=e=>e.type==="select-multiple",yJ=e=>Nj(e)||Wb(e),BR=e=>L1(e)&&e.isConnected,fq=e=>{for(const t in e)if(Zl(e[t]))return!0;return!1};function B1(e,t={}){const r=Array.isArray(e);if(Nn(e)||r)for(const n in e)Array.isArray(e[n])||Nn(e[n])&&!fq(e[n])?(t[n]=Array.isArray(e[n])?[]:{},B1(e[n],t[n])):Za(e[n])||(t[n]=!0);return t}function pq(e,t,r){const n=Array.isArray(e);if(Nn(e)||n)for(const a in e)Array.isArray(e[a])||Nn(e[a])&&!fq(e[a])?Yr(t)||N1(r[a])?r[a]=Array.isArray(e[a])?B1(e[a],[]):{...B1(e[a])}:pq(e[a],Za(t)?{}:t[a],r[a]):r[a]=!ic(e[a],t[a]);return r}var F_=(e,t)=>pq(e,t,B1(t)),hq=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Yr(e)?e:t?e===""?NaN:e&&+e:r&&el(e)?new Date(e):n?n(e):e;function zR(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Dj(t)?t.files:Nj(t)?cq(e.refs).value:dq(t)?[...t.selectedOptions].map(({value:r})=>r):Wb(t)?uq(e.refs).value:hq(Yr(t.value)?e.ref.value:t.value,e)}var bJ=(e,t,r,n)=>{const a={};for(const o of e){const s=at(t,o);s&&Br(a,o,s._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},rg=e=>Yr(e)?e:D1(e)?e.source:Nn(e)?D1(e.value)?e.value.source:e.value:e;const GD="AsyncFunction";var _J=e=>(!e||!e.validate)&&!!(Zl(e.validate)&&e.validate.constructor.name===GD||Nn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===GD)),xJ=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function KD(e,t,r){const n=at(e,r);if(n||Lj(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),s=at(t,o),d=at(e,o);if(s&&!Array.isArray(s)&&r!==o)return{name:r};if(d&&d.type)return{name:o,error:d};a.pop()}return{name:r}}var wJ=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,SJ=(e,t)=>!Hb(at(e,t)).length&&$n(e,t);const EJ={mode:Pi.onSubmit,reValidateMode:Pi.onChange,shouldFocusError:!0};function CJ(e={}){let t={...EJ,...e},r={submitCount:0,isDirty:!1,isLoading:Zl(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=Nn(t.defaultValues)||Nn(t.values)?Kn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Kn(a),s={action:!1,mount:!1,watch:!1},d={mount:new Set,unMount:new Set,array:new Set,watch:new Set},f,u=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},g={values:NR(),array:NR(),state:NR()},y=Gy(t.mode),_=Gy(t.reValidateMode),S=t.criteriaMode===Pi.all,E=Z=>ae=>{clearTimeout(u),u=setTimeout(Z,ae)},x=async Z=>{if(h.isValid||Z){const ae=t.resolver?Ya((await k()).errors):await $(n,!0);ae!==r.isValid&&g.state.next({isValid:ae})}},T=(Z,ae)=>{(h.isValidating||h.validatingFields)&&((Z||Array.from(d.mount)).forEach(fe=>{fe&&(ae?Br(r.validatingFields,fe,ae):$n(r.validatingFields,fe))}),g.state.next({validatingFields:r.validatingFields,isValidating:!Ya(r.validatingFields)}))},I=(Z,ae=[],fe,ve,be=!0,_e=!0)=>{if(ve&&fe){if(s.action=!0,_e&&Array.isArray(at(n,Z))){const De=fe(at(n,Z),ve.argA,ve.argB);be&&Br(n,Z,De)}if(_e&&Array.isArray(at(r.errors,Z))){const De=fe(at(r.errors,Z),ve.argA,ve.argB);be&&Br(r.errors,Z,De),SJ(r.errors,Z)}if(h.touchedFields&&_e&&Array.isArray(at(r.touchedFields,Z))){const De=fe(at(r.touchedFields,Z),ve.argA,ve.argB);be&&Br(r.touchedFields,Z,De)}h.dirtyFields&&(r.dirtyFields=F_(a,o)),g.state.next({name:Z,isDirty:B(Z,ae),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Br(o,Z,ae)},R=(Z,ae)=>{Br(r.errors,Z,ae),g.state.next({errors:r.errors})},P=Z=>{r.errors=Z,g.state.next({errors:r.errors,isValid:!1})},C=(Z,ae,fe,ve)=>{const be=at(n,Z);if(be){const _e=at(o,Z,Yr(fe)?at(a,Z):fe);Yr(_e)||ve&&ve.defaultChecked||ae?Br(o,Z,ae?_e:zR(be._f)):G(Z,_e),s.mount&&x()}},O=(Z,ae,fe,ve,be)=>{let _e=!1,De=!1;const Ge={name:Z},Mt=!!(at(n,Z)&&at(n,Z)._f&&at(n,Z)._f.disabled);if(!fe||ve){h.isDirty&&(De=r.isDirty,r.isDirty=Ge.isDirty=B(),_e=De!==Ge.isDirty);const et=Mt||ic(at(a,Z),ae);De=!!(!Mt&&at(r.dirtyFields,Z)),et||Mt?$n(r.dirtyFields,Z):Br(r.dirtyFields,Z,!0),Ge.dirtyFields=r.dirtyFields,_e=_e||h.dirtyFields&&De!==!et}if(fe){const et=at(r.touchedFields,Z);et||(Br(r.touchedFields,Z,fe),Ge.touchedFields=r.touchedFields,_e=_e||h.touchedFields&&et!==fe)}return _e&&be&&g.state.next(Ge),_e?Ge:{}},j=(Z,ae,fe,ve)=>{const be=at(r.errors,Z),_e=h.isValid&&wi(ae)&&r.isValid!==ae;if(e.delayError&&fe?(f=E(()=>R(Z,fe)),f(e.delayError)):(clearTimeout(u),f=null,fe?Br(r.errors,Z,fe):$n(r.errors,Z)),(fe?!ic(be,fe):be)||!Ya(ve)||_e){const De={...ve,..._e&&wi(ae)?{isValid:ae}:{},errors:r.errors,name:Z};r={...r,...De},g.state.next(De)}},k=async Z=>{T(Z,!0);const ae=await t.resolver(o,t.context,bJ(Z||d.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return T(Z),ae},M=async Z=>{const{errors:ae}=await k(Z);if(Z)for(const fe of Z){const ve=at(ae,fe);ve?Br(r.errors,fe,ve):$n(r.errors,fe)}else r.errors=ae;return ae},$=async(Z,ae,fe={valid:!0})=>{for(const ve in Z){const be=Z[ve];if(be){const{_f:_e,...De}=be;if(_e){const Ge=d.array.has(_e.name),Mt=be._f&&_J(be._f);Mt&&h.validatingFields&&T([ve],!0);const et=await G2(be,o,S,t.shouldUseNativeValidation&&!ae,Ge);if(Mt&&h.validatingFields&&T([ve]),et[_e.name]&&(fe.valid=!1,ae))break;!ae&&(at(et,_e.name)?Ge?lq(r.errors,et,_e.name):Br(r.errors,_e.name,et[_e.name]):$n(r.errors,_e.name))}!Ya(De)&&await $(De,ae,fe)}}return fe.valid},N=()=>{for(const Z of d.unMount){const ae=at(n,Z);ae&&(ae._f.refs?ae._f.refs.every(fe=>!BR(fe)):!BR(ae._f.ref))&&me(Z)}d.unMount=new Set},B=(Z,ae)=>(Z&&ae&&Br(o,Z,ae),!ic(K(),a)),q=(Z,ae,fe)=>iq(Z,d,{...s.mount?o:Yr(ae)?a:el(Z)?{[Z]:ae}:ae},fe,ae),V=Z=>Hb(at(s.mount?o:a,Z,e.shouldUnregister?at(a,Z,[]):[])),G=(Z,ae,fe={})=>{const ve=at(n,Z);let be=ae;if(ve){const _e=ve._f;_e&&(!_e.disabled&&Br(o,Z,hq(ae,_e)),be=L1(_e.ref)&&Za(ae)?"":ae,dq(_e.ref)?[..._e.ref.options].forEach(De=>De.selected=be.includes(De.value)):_e.refs?Wb(_e.ref)?_e.refs.length>1?_e.refs.forEach(De=>(!De.defaultChecked||!De.disabled)&&(De.checked=Array.isArray(be)?!!be.find(Ge=>Ge===De.value):be===De.value)):_e.refs[0]&&(_e.refs[0].checked=!!be):_e.refs.forEach(De=>De.checked=De.value===be):Dj(_e.ref)?_e.ref.value="":(_e.ref.value=be,_e.ref.type||g.values.next({name:Z,values:{...o}})))}(fe.shouldDirty||fe.shouldTouch)&&O(Z,be,fe.shouldTouch,fe.shouldDirty,!0),fe.shouldValidate&&ne(Z)},Y=(Z,ae,fe)=>{for(const ve in ae){const be=ae[ve],_e=`${Z}.${ve}`,De=at(n,_e);(d.array.has(Z)||!N1(be)||De&&!De._f)&&!bh(be)?Y(_e,be,fe):G(_e,be,fe)}},X=(Z,ae,fe={})=>{const ve=at(n,Z),be=d.array.has(Z),_e=Kn(ae);Br(o,Z,_e),be?(g.array.next({name:Z,values:{...o}}),(h.isDirty||h.dirtyFields)&&fe.shouldDirty&&g.state.next({name:Z,dirtyFields:F_(a,o),isDirty:B(Z,_e)})):ve&&!ve._f&&!Za(_e)?Y(Z,_e,fe):G(Z,_e,fe),H2(Z,d)&&g.state.next({...r}),g.values.next({name:s.mount?Z:void 0,values:{...o}})},H=async Z=>{s.mount=!0;const ae=Z.target;let fe=ae.name,ve=!0;const be=at(n,fe),_e=()=>ae.type?zR(be._f):Jz(Z),De=Ge=>{ve=Number.isNaN(Ge)||ic(Ge,at(o,fe,Ge))};if(be){let Ge,Mt;const et=_e(),ot=Z.type===$1.BLUR||Z.type===$1.FOCUS_OUT,it=!xJ(be._f)&&!t.resolver&&!at(r.errors,fe)&&!be._f.deps||wJ(ot,at(r.touchedFields,fe),r.isSubmitted,_,y),Dt=H2(fe,d,ot);Br(o,fe,et),ot?(be._f.onBlur&&be._f.onBlur(Z),f&&f(0)):be._f.onChange&&be._f.onChange(Z);const Zt=O(fe,et,ot,!1),Kt=!Ya(Zt)||Dt;if(!ot&&g.values.next({name:fe,type:Z.type,values:{...o}}),it)return h.isValid&&(e.mode==="onBlur"?ot&&x():x()),Kt&&g.state.next({name:fe,...Dt?{}:Zt});if(!ot&&Dt&&g.state.next({...r}),t.resolver){const{errors:nt}=await k([fe]);if(De(et),ve){const Pt=KD(r.errors,n,fe),Je=KD(nt,n,Pt.name||fe);Ge=Je.error,fe=Je.name,Mt=Ya(nt)}}else T([fe],!0),Ge=(await G2(be,o,S,t.shouldUseNativeValidation))[fe],T([fe]),De(et),ve&&(Ge?Mt=!1:h.isValid&&(Mt=await $(n,!0)));ve&&(be._f.deps&&ne(be._f.deps),j(fe,Mt,Ge,Zt))}},te=(Z,ae)=>{if(at(r.errors,ae)&&Z.focus)return Z.focus(),1},ne=async(Z,ae={})=>{let fe,ve;const be=Oo(Z);if(t.resolver){const _e=await M(Yr(Z)?Z:be);fe=Ya(_e),ve=Z?!be.some(De=>at(_e,De)):fe}else Z?(ve=(await Promise.all(be.map(async _e=>{const De=at(n,_e);return await $(De&&De._f?{[_e]:De}:De)}))).every(Boolean),!(!ve&&!r.isValid)&&x()):ve=fe=await $(n);return g.state.next({...!el(Z)||h.isValid&&fe!==r.isValid?{}:{name:Z},...t.resolver||!Z?{isValid:fe}:{},errors:r.errors}),ae.shouldFocus&&!ve&&Sh(n,te,Z?be:d.mount),ve},K=Z=>{const ae={...s.mount?o:a};return Yr(Z)?ae:el(Z)?at(ae,Z):Z.map(fe=>at(ae,fe))},ee=(Z,ae)=>({invalid:!!at((ae||r).errors,Z),isDirty:!!at((ae||r).dirtyFields,Z),error:at((ae||r).errors,Z),isValidating:!!at(r.validatingFields,Z),isTouched:!!at((ae||r).touchedFields,Z)}),Ce=Z=>{Z&&Oo(Z).forEach(ae=>$n(r.errors,ae)),g.state.next({errors:Z?r.errors:{}})},se=(Z,ae,fe)=>{const ve=(at(n,Z,{_f:{}})._f||{}).ref,be=at(r.errors,Z)||{},{ref:_e,message:De,type:Ge,...Mt}=be;Br(r.errors,Z,{...Mt,...ae,ref:ve}),g.state.next({name:Z,errors:r.errors,isValid:!1}),fe&&fe.shouldFocus&&ve&&ve.focus&&ve.focus()},Se=(Z,ae)=>Zl(Z)?g.values.subscribe({next:fe=>Z(q(void 0,ae),fe)}):q(Z,ae,!0),me=(Z,ae={})=>{for(const fe of Z?Oo(Z):d.mount)d.mount.delete(fe),d.array.delete(fe),ae.keepValue||($n(n,fe),$n(o,fe)),!ae.keepError&&$n(r.errors,fe),!ae.keepDirty&&$n(r.dirtyFields,fe),!ae.keepTouched&&$n(r.touchedFields,fe),!ae.keepIsValidating&&$n(r.validatingFields,fe),!t.shouldUnregister&&!ae.keepDefaultValue&&$n(a,fe);g.values.next({values:{...o}}),g.state.next({...r,...ae.keepDirty?{isDirty:B()}:{}}),!ae.keepIsValid&&x()},we=({disabled:Z,name:ae,field:fe,fields:ve,value:be})=>{if(wi(Z)&&s.mount||Z){const _e=Z?void 0:Yr(be)?zR(fe?fe._f:at(ve,ae)._f):be;Br(o,ae,_e),O(ae,_e,!1,!1,!0)}},Oe=(Z,ae={})=>{let fe=at(n,Z);const ve=wi(ae.disabled)||wi(e.disabled);return Br(n,Z,{...fe||{},_f:{...fe&&fe._f?fe._f:{ref:{name:Z}},name:Z,mount:!0,...ae}}),d.mount.add(Z),fe?we({field:fe,disabled:wi(ae.disabled)?ae.disabled:e.disabled,name:Z,value:ae.value}):C(Z,!0,ae.value),{...ve?{disabled:ae.disabled||e.disabled}:{},...t.progressive?{required:!!ae.required,min:rg(ae.min),max:rg(ae.max),minLength:rg(ae.minLength),maxLength:rg(ae.maxLength),pattern:rg(ae.pattern)}:{},name:Z,onChange:H,onBlur:H,ref:be=>{if(be){Oe(Z,ae),fe=at(n,Z);const _e=Yr(be.value)&&be.querySelectorAll&&be.querySelectorAll("input,select,textarea")[0]||be,De=yJ(_e),Ge=fe._f.refs||[];if(De?Ge.find(Mt=>Mt===_e):_e===fe._f.ref)return;Br(n,Z,{_f:{...fe._f,...De?{refs:[...Ge.filter(BR),_e,...Array.isArray(at(a,Z))?[{}]:[]],ref:{type:_e.type,name:Z}}:{ref:_e}}}),C(Z,!1,void 0,_e)}else fe=at(n,Z,{}),fe._f&&(fe._f.mount=!1),(t.shouldUnregister||ae.shouldUnregister)&&!(Zz(d.array,Z)&&s.action)&&d.unMount.add(Z)}}},ie=()=>t.shouldFocusError&&Sh(n,te,d.mount),Fe=Z=>{wi(Z)&&(g.state.next({disabled:Z}),Sh(n,(ae,fe)=>{const ve=at(n,fe);ve&&(ae.disabled=ve._f.disabled||Z,Array.isArray(ve._f.refs)&&ve._f.refs.forEach(be=>{be.disabled=ve._f.disabled||Z}))},0,!1))},ke=(Z,ae)=>async fe=>{let ve;fe&&(fe.preventDefault&&fe.preventDefault(),fe.persist&&fe.persist());let be=Kn(o);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:_e,values:De}=await k();r.errors=_e,be=De}else await $(n);if($n(r.errors,"root"),Ya(r.errors)){g.state.next({errors:{}});try{await Z(be,fe)}catch(_e){ve=_e}}else ae&&await ae({...r.errors},fe),ie(),setTimeout(ie);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ya(r.errors)&&!ve,submitCount:r.submitCount+1,errors:r.errors}),ve)throw ve},$e=(Z,ae={})=>{at(n,Z)&&(Yr(ae.defaultValue)?X(Z,Kn(at(a,Z))):(X(Z,ae.defaultValue),Br(a,Z,Kn(ae.defaultValue))),ae.keepTouched||$n(r.touchedFields,Z),ae.keepDirty||($n(r.dirtyFields,Z),r.isDirty=ae.defaultValue?B(Z,Kn(at(a,Z))):B()),ae.keepError||($n(r.errors,Z),h.isValid&&x()),g.state.next({...r}))},Te=(Z,ae={})=>{const fe=Z?Kn(Z):a,ve=Kn(fe),be=Ya(Z),_e=be?a:ve;if(ae.keepDefaultValues||(a=fe),!ae.keepValues){if(ae.keepDirtyValues)for(const De of d.mount)at(r.dirtyFields,De)?Br(_e,De,at(o,De)):X(De,at(_e,De));else{if($j&&Yr(Z))for(const De of d.mount){const Ge=at(n,De);if(Ge&&Ge._f){const Mt=Array.isArray(Ge._f.refs)?Ge._f.refs[0]:Ge._f.ref;if(L1(Mt)){const et=Mt.closest("form");if(et){et.reset();break}}}}n={}}o=e.shouldUnregister?ae.keepDefaultValues?Kn(a):{}:Kn(_e),g.array.next({values:{..._e}}),g.values.next({values:{..._e}})}d={mount:ae.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!h.isValid||!!ae.keepIsValid||!!ae.keepDirtyValues,s.watch=!!e.shouldUnregister,g.state.next({submitCount:ae.keepSubmitCount?r.submitCount:0,isDirty:be?!1:ae.keepDirty?r.isDirty:!!(ae.keepDefaultValues&&!ic(Z,a)),isSubmitted:ae.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:be?{}:ae.keepDirtyValues?ae.keepDefaultValues&&o?F_(a,o):r.dirtyFields:ae.keepDefaultValues&&Z?F_(a,Z):ae.keepDirty?r.dirtyFields:{},touchedFields:ae.keepTouched?r.touchedFields:{},errors:ae.keepErrors?r.errors:{},isSubmitSuccessful:ae.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Be=(Z,ae)=>Te(Zl(Z)?Z(o):Z,ae);return{control:{register:Oe,unregister:me,getFieldState:ee,handleSubmit:ke,setError:se,_executeSchema:k,_getWatch:q,_getDirty:B,_updateValid:x,_removeUnmounted:N,_updateFieldArray:I,_updateDisabledField:we,_getFieldArray:V,_reset:Te,_resetDefaultValues:()=>Zl(t.defaultValues)&&t.defaultValues().then(Z=>{Be(Z,t.resetOptions),g.state.next({isLoading:!1})}),_updateFormState:Z=>{r={...r,...Z}},_disableForm:Fe,_subjects:g,_proxyFormState:h,_setErrors:P,get _fields(){return n},get _formValues(){return o},get _state(){return s},set _state(Z){s=Z},get _defaultValues(){return a},get _names(){return d},set _names(Z){d=Z},get _formState(){return r},set _formState(Z){r=Z},get _options(){return t},set _options(Z){t={...t,...Z}}},trigger:ne,register:Oe,handleSubmit:ke,watch:Se,setValue:X,getValues:K,reset:Be,resetField:$e,clearErrors:Ce,unregister:me,setError:se,setFocus:(Z,ae={})=>{const fe=at(n,Z),ve=fe&&fe._f;if(ve){const be=ve.refs?ve.refs[0]:ve.ref;be.focus&&(be.focus(),ae.shouldSelect&&be.select())}},getFieldState:ee}}function vq(e={}){const t=Ke.useRef(),r=Ke.useRef(),[n,a]=Ke.useState({isDirty:!1,isValidating:!1,isLoading:Zl(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Zl(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...CJ(e),formState:n});const o=t.current.control;return o._options=e,fw({subject:o._subjects.state,next:s=>{aq(s,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),Ke.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Ke.useEffect(()=>{if(o._proxyFormState.isDirty){const s=o._getDirty();s!==n.isDirty&&o._subjects.state.next({isDirty:s})}},[o,n.isDirty]),Ke.useEffect(()=>{e.values&&!ic(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(s=>({...s}))):o._resetDefaultValues()},[e.values,o]),Ke.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Ke.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),Ke.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=nq(n,o),t.current}var z1=function(){return z1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0,f=p.useState(!1),u=f[0],h=f[1],g=!e||!d||o,y=JH(function(_){var S=_.currentLocation,E=_.nextLocation;if(g)return!1;var x=t||S.pathname,T=E.pathname.startsWith(x),I=E.pathname.startsWith("".concat(x,"/show")),R=T&&!I;return!R});p.useEffect(function(){if(y.state==="blocked"){if(g){y.proceed();return}h(!0)}},[y.state]),p.useEffect(function(){if(u){var _=window.confirm(n("ra.message.unsaved_changes"));_?y.proceed&&y.proceed():y.reset&&y.reset()}h(!1)},[u,n]),p.useEffect(function(){var _=function(S){S.preventDefault(),S.returnValue=!0};if(!g)return window.addEventListener("beforeunload",_),function(){window.removeEventListener("beforeunload",_)}},[g])},BJ=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return NJ(r,n,a),null};function zJ(e,t){var r=xj({},qJ(e,t),t);return r}function qJ(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var bq=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var s=o[0],d=o[1];if(typeof d=="object"){r(d,"".concat(a).concat(s,"."));return}t("".concat(a).concat(s),{type:"server",message:d.toString()})})};r(e,"")},UJ=function(e,t){t===void 0&&(t=!0);var r=Gb(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=p.useRef(n),s=Jr();p.useEffect(function(){var d,f;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var u=typeof((f=(d=a.root)===null||d===void 0?void 0:d.serverError)===null||f===void 0?void 0:f.message)=="string"?a.root.serverError.message:void 0;s(u||"ra.message.invalid_form",{type:"error"})}},[a,n,s,t])},VJ=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},J2=function(){return J2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[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,}))$/,Fc=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function YJ(e){return e?e.hasOwnProperty("message"):!1}var $c=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Lc=function(e){return _q(e,function(){for(var t=[],r=0;re?$c(t,{max:e},r,n):void 0}});Lc(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Fc(r)&&re?$c(t,{max:e},r,n):void 0}}),wq=Lc(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Fc(t)&&isNaN(Number(t))?$c(e,void 0,t,r):void 0}}),Bj=_q(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Fc(r)&&typeof r=="string"&&!e.test(r)?$c(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Lc(function(e){return e===void 0&&(e="ra.validation.email"),Bj(XJ,e)});var rZ=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Lc(function(e,t){return t===void 0&&(t=rZ),function(r,n){return!Fc(r)&&e.indexOf(r)===-1?$c(t,{list:e},r,n):void 0}});var nZ=function(e){return e&&e.isRequired?!0:Array.isArray(e)?!!e.find(function(t){return t.isRequired}):!1},Sq=p.createContext(null),hw=function(){var e=p.useContext(mq);return e},aZ=function(e){var t=e.children,r=e.name,n=hw();return p.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]),p.createElement(Sq.Provider,{value:r},t)},Eq=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,s=gw(o),d=Sr(t),f=Li(),u=f.getValues,h=f.resetField,g=f.formState,y=f.reset,_=xr(d,s),S=xr(u(),s),E=g.dirtyFields,x=Object.keys(E).includes(s);p.useEffect(function(){if(!(a==null||S!=null||_!=null||x)){var T=s.split(".").some(function(P){return oZ.test(P)});if(T){var I=s.split(".").slice(0,-1).join("."),R=xr(u(),I);if(R==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),y({},{keepValues:!0});return}h(s,{defaultValue:a})}})},oZ=/^\d+$/,Cq=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,a=n===void 0?"id":n,o=e.disableValue,s=o===void 0?"disabled":o,d=e.translateChoice,f=d===void 0?!0:d,u=rt(),h=p.useCallback(function(_){if(p.isValidElement(r))return p.createElement(Mc,{value:_},r);var S=typeof r=="function"?r(_):xr(_,r);return p.isValidElement(S)?S:f?u(String(S),{_:S}):String(S)},[r,u,f]),g=p.useCallback(function(_){return xr(_,a)},[a]),y=p.useCallback(function(_){return xr(_,s)},[s]);return{getChoiceText:h,getChoiceValue:g,getDisableValue:y}},iZ=function(e){var t=Gb(),r=t.dirtyFields,n=t.touchedFields,a=t.validatingFields,o=t.errors,s=Object.keys(r),d=Object.keys(n),f=Object.keys(a),u=Object.keys(o),h=hw(),g=p.useState({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0,isValidating:!0}),y=g[0],_=g[1],S=wr(function(){if(h){var E=h.getGroupFields(e),x=E.map(function(I){return{name:I,error:xr(o,I,void 0),isDirty:xr(r,I,!1)!==!1,isValid:xr(o,I,void 0)==null,isValidating:xr(a,I,void 0)==null,isTouched:xr(n,I,!1)!==!1}}).filter(function(I){return I!=null}),T=sZ(x);_(function(I){return ki(I,T)?I:T})}});return p.useEffect(function(){S()},[JSON.stringify(s),JSON.stringify(u),JSON.stringify(d),JSON.stringify(f),S,e,h]),p.useEffect(function(){if(h){var E=h.subscribe(e,function(){S()});return E}},[h,e,S]),y},sZ=function(e){return e.reduce(function(t,r){var n=t.errors||{};r.error&&(n[r.name]=r.error);var a={isDirty:t.isDirty||r.isDirty,errors:n,isTouched:t.isTouched||r.isTouched,isValid:t.isValid&&r.isValid,isValidating:t.isValidating&&r.isValidating};return a},{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1,isValidating:!1})},Oq=function(){var e=p.useContext(Sq);return e},ek=function(){return ek=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var Tq=function(){return p.useContext(Iq)},rk=function(){return rk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0||S.customRoutesWithLayout.length>0||S.customRoutesWithoutLayout.length>0?"ready":"empty"),_&&g(_),[2]})})};r||y()},[e,n,r,d,t,s,h]),[o,u]},FZ=function(e){var t=p.useState(e),r=t[0],n=t[1],a=p.useCallback(function(o){n(function(s){return{customRoutesWithLayout:s.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:s.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:s.resources.concat(o.resources)}})},[]);return[r,n,a]},$Z=function(e,t){var r=Tq(),n=r.register,a=r.unregister;p.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var s=o.type.registerResource(o.props,t);n(s)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var s=o.type.registerResource(o.props,t);a(s)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},LZ=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return Aq(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},Aq=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]},Ny=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(p.Children.forEach(e,function(a){if(p.isValidElement(a)){if(a.type===p.Fragment){var o=Ny(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var s=a;s.props.noLayout?r.push(s.props.children):t.push(s.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},Mq=p.createContext(!1),DZ=Mq.Provider,NZ=function(){return p.useContext(Mq)},BZ=function(e){CZ();var t=Of(),r=AZ(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,s=r.resources,d=e.layout,f=e.catchAll,u=e.dashboard,h=e.loading,g=e.requireAuth,y=e.ready,_=p.useState(g),S=_[0],E=_[1],x=p.useState(g),T=x[0],I=x[1],R=Wq();if(p.useEffect(function(){g&&R(void 0,!1).then(function(){E(!1)}).catch(function(){}).finally(function(){I(!1)})},[R,g]),o==="empty"){if(!y)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return p.createElement(y,null)}return o==="loading"||T?p.createElement(bc,null,a,p.createElement(la,{path:"*",element:p.createElement("div",{style:{height:"100vh"}},p.createElement(h,null))})):S?p.createElement(bc,null,a,p.createElement(la,{path:"*",element:p.createElement(See,null)})):p.createElement(bc,null,a,p.createElement(la,{path:"/*",element:p.createElement(DZ,{value:!!u},p.createElement(d,null,p.createElement(bc,null,n,p.Children.map(s,function(P){return p.createElement(la,{key:P.props.name,path:"".concat(P.props.name,"/*"),element:P})}),p.createElement(la,{path:"/",element:u?p.createElement(mee,{authParams:zZ,component:u}):s.length>0?p.createElement(tG,{to:t({resource:s[0].props.name,type:"list"})}):null}),p.createElement(la,{path:"*",element:p.createElement(f,null)}))))}))},zZ={params:{route:"dashboard"}},Fq=p.createContext("React Admin"),qZ=Fq.Provider,$q=function(){return p.useContext(Fq)},UZ=function(e){var t=e.children;return p.createElement(p.Fragment,null,t)},VZ=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return Rq(n),p.createElement("div",null,p.createElement("h1",null,"Error"),p.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},WZ=function(e){var t=p.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,s=e.catchAll,d=s===void 0?eN:s,f=e.children,u=e.dashboard,h=e.disableTelemetry,g=h===void 0?!1:h,y=e.error,_=y===void 0?VZ:y,S=e.layout,E=S===void 0?UZ:S,x=e.loading,T=x===void 0?eN:x,I=e.loginPage,R=I===void 0?!1:I,P=e.ready,C=P===void 0?JZ:P,O=e.requireAuth,j=O===void 0?!1:O,k=e.title,M=k===void 0?"React Admin":k;p.useEffect(function(){if(!(g||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var N=new Image;N.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[g]);var $=function(N,B){return n(B)};return p.createElement(qZ,{value:M},p.createElement(jq,{onError:$,fallbackRender:function(N){var B=N.error,q=N.resetErrorBoundary;return p.createElement("div",{style:{minHeight:"100vh"}},p.createElement(_,{error:B,errorInfo:r,resetErrorBoundary:q}))}},p.createElement(bc,null,R!==!1&&R!==!0?p.createElement(la,{path:"/login",element:ZD(R)}):null,o!==!1&&o!==!0?p.createElement(la,{path:"/auth-callback",element:ZD(o)}):null,p.createElement(la,{path:"/*",element:p.createElement(BZ,{catchAll:d,dashboard:u,layout:E,loading:T,requireAuth:j,ready:C},f)}))))},ZD=function(e){return p.isValidElement(e)?e:p.createElement(e)},eN=function(){return null},Lq=function(e){return null};Lq.raName="CustomRoutes";var Dq=p.createContext(void 0),Dc=function(e){var t=e.children,r=e.value;return r?p.createElement(Dq.Provider,{value:r},t):t},Nq=function(e){var t=e.value,r=e.children;return t?p.createElement(Dc,{value:t},r):r},UR={exports:{}},Ar={};/** - * @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 tN;function HZ(){if(tN)return Ar;tN=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),d=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function E(x){if(typeof x=="object"&&x!==null){var T=x.$$typeof;switch(T){case e:switch(x=x.type,x){case r:case a:case n:case u:case h:return x;default:switch(x=x&&x.$$typeof,x){case d:case s:case f:case y:case g:case o:return x;default:return T}}case t:return T}}}return Ar.ContextConsumer=s,Ar.ContextProvider=o,Ar.Element=e,Ar.ForwardRef=f,Ar.Fragment=r,Ar.Lazy=y,Ar.Memo=g,Ar.Portal=t,Ar.Profiler=a,Ar.StrictMode=n,Ar.Suspense=u,Ar.SuspenseList=h,Ar.isAsyncMode=function(){return!1},Ar.isConcurrentMode=function(){return!1},Ar.isContextConsumer=function(x){return E(x)===s},Ar.isContextProvider=function(x){return E(x)===o},Ar.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Ar.isForwardRef=function(x){return E(x)===f},Ar.isFragment=function(x){return E(x)===r},Ar.isLazy=function(x){return E(x)===y},Ar.isMemo=function(x){return E(x)===g},Ar.isPortal=function(x){return E(x)===t},Ar.isProfiler=function(x){return E(x)===a},Ar.isStrictMode=function(x){return E(x)===n},Ar.isSuspense=function(x){return E(x)===u},Ar.isSuspenseList=function(x){return E(x)===h},Ar.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===a||x===n||x===u||x===h||x===_||typeof x=="object"&&x!==null&&(x.$$typeof===y||x.$$typeof===g||x.$$typeof===o||x.$$typeof===s||x.$$typeof===f||x.$$typeof===S||x.getModuleId!==void 0)},Ar.typeOf=E,Ar}var rN;function GZ(){return rN||(rN=1,UR.exports=HZ()),UR.exports}var nk=GZ(),Gn=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return p.createElement(Dc,{value:a},p.createElement(bc,null,t&&p.createElement(la,{path:"create/*",element:$_(t)}),o&&p.createElement(la,{path:":id/show/*",element:$_(o)}),r&&p.createElement(la,{path:":id/*",element:$_(r)}),n&&p.createElement(la,{path:"/*",element:p.createElement(UQ,{storeKey:"".concat(a,".list.scrollPosition")},$_(n))}),e.children))},$_=function(e){if(p.isValidElement(e))return e;if(nk.isValidElementType(e)){var t=e;return p.createElement(t,null)}return null};Gn.raName="Resource";Gn.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,s=e.options,d=e.show,f=e.recordRepresentation,u=e.hasCreate,h=e.hasEdit,g=e.hasShow;return{name:o,options:s,hasList:!!a,hasCreate:!!t||!!u,hasEdit:!!r||!!h,hasShow:!!d||!!g,icon:n,recordRepresentation:f}};var qj=p.createContext(void 0),KZ={getSource:function(e){return e},getLabel:function(e){return e}},vw=qj.Provider,Uj=function(){var e=p.useContext(qj);return e||KZ},QZ=function(){return p.useContext(qj)},Qb=function(){return Tq().definitions},_r={},nN;function XZ(){if(nN)return _r;nN=1;/*! - * inflection - * Copyright(c) 2011 Ben Lin - * MIT Licensed - * - * @fileoverview - * A port of inflection-js to node.js module. - */Object.defineProperty(_r,"__esModule",{value:!0}),_r.transform=_r.ordinalize=_r.foreignKey=_r.classify=_r.tableize=_r.demodulize=_r.titleize=_r.dasherize=_r.capitalize=_r.humanize=_r.underscore=_r.camelize=_r.inflect=_r.singularize=_r.pluralize=void 0;const e=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],t={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},r=[[t.plural.men],[t.plural.people],[t.plural.children],[t.plural.tia],[t.plural.analyses],[t.plural.databases],[t.plural.drives],[t.plural.hives],[t.plural.curves],[t.plural.lrves],[t.plural.foves],[t.plural.aeiouyies],[t.plural.series],[t.plural.movies],[t.plural.xes],[t.plural.mice],[t.plural.buses],[t.plural.oes],[t.plural.shoes],[t.plural.crises],[t.plural.octopuses],[t.plural.aliases],[t.plural.summonses],[t.plural.oxen],[t.plural.matrices],[t.plural.feet],[t.plural.teeth],[t.plural.geese],[t.plural.quizzes],[t.plural.whereases],[t.plural.criteria],[t.plural.genera],[t.singular.man,"$1en"],[t.singular.person,"$1ople"],[t.singular.child,"$1ren"],[t.singular.drive,"$1s"],[t.singular.ox,"$1en"],[t.singular.axis,"$1es"],[t.singular.octopus,"$1uses"],[t.singular.alias,"$1es"],[t.singular.summons,"$1es"],[t.singular.bus,"$1ses"],[t.singular.buffalo,"$1oes"],[t.singular.tium,"$1a"],[t.singular.sis,"ses"],[t.singular.ffe,"$1$2ves"],[t.singular.hive,"$1ves"],[t.singular.aeiouyy,"$1ies"],[t.singular.matrix,"$1ices"],[t.singular.vertex,"$1ices"],[t.singular.x,"$1es"],[t.singular.mouse,"$1ice"],[t.singular.foot,"feet"],[t.singular.tooth,"teeth"],[t.singular.goose,"geese"],[t.singular.quiz,"$1zes"],[t.singular.whereas,"$1es"],[t.singular.criterion,"$1a"],[t.singular.genus,"genera"],[t.singular.s,"s"],[t.singular.common,"s"]],n=[[t.singular.man],[t.singular.person],[t.singular.child],[t.singular.drive],[t.singular.ox],[t.singular.axis],[t.singular.octopus],[t.singular.alias],[t.singular.summons],[t.singular.bus],[t.singular.buffalo],[t.singular.tium],[t.singular.sis],[t.singular.ffe],[t.singular.hive],[t.singular.aeiouyy],[t.singular.x],[t.singular.matrix],[t.singular.mouse],[t.singular.foot],[t.singular.tooth],[t.singular.goose],[t.singular.quiz],[t.singular.whereas],[t.singular.criterion],[t.singular.genus],[t.plural.men,"$1an"],[t.plural.people,"$1rson"],[t.plural.children,"$1"],[t.plural.databases,"$1"],[t.plural.drives,"$1"],[t.plural.genera,"genus"],[t.plural.criteria,"$1on"],[t.plural.tia,"$1um"],[t.plural.analyses,"$1$2sis"],[t.plural.hives,"$1ve"],[t.plural.curves,"$1"],[t.plural.lrves,"$1f"],[t.plural.aves,"$1ve"],[t.plural.foves,"$1fe"],[t.plural.movies,"$1ovie"],[t.plural.aeiouyies,"$1y"],[t.plural.series,"$1eries"],[t.plural.xes,"$1"],[t.plural.mice,"$1ouse"],[t.plural.buses,"$1"],[t.plural.oes,"$1"],[t.plural.shoes,"$1"],[t.plural.crises,"$1is"],[t.plural.octopuses,"$1us"],[t.plural.aliases,"$1"],[t.plural.summonses,"$1"],[t.plural.oxen,"$1"],[t.plural.matrices,"$1ix"],[t.plural.vertices,"$1ex"],[t.plural.feet,"foot"],[t.plural.teeth,"tooth"],[t.plural.geese,"goose"],[t.plural.quizzes,"$1"],[t.plural.whereases,"$1"],[t.plural.ss,"ss"],[t.plural.s,""]],a=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],o=new RegExp("(_ids|_id)$","g"),s=new RegExp("_","g"),d=new RegExp("[ _]","g"),f=new RegExp("([A-Z])","g"),u=new RegExp("^_");function h(N,B,q,V){if(V)return V;if(q.includes(N.toLocaleLowerCase()))return N;for(const G of B)if(N.match(G[0]))return G[1]!==void 0?N.replace(G[0],G[1]):N;return N}function g(N,B){return h(N,r,e,B)}_r.pluralize=g;function y(N,B){return h(N,n,e,B)}_r.singularize=y;function _(N,B,q,V){return isNaN(B)?N:B===1?h(N,n,e,q):h(N,r,e,V)}_r.inflect=_;function S(N,B){const q=N.split("/"),V=q.length;let G,Y,X,H;for(let te=0;te1?Ec.pluralize(r):Ec.singularize(r))});return o}},vr=function(e){var t=p.useContext(Dq);return e&&e.resource||t},lu=function(e){var t=vr(e),r=Qb(),n=e||{},a=n.hasCreate,o=n.hasEdit,s=n.hasList,d=n.hasShow,f=n.recordRepresentation,u=p.useMemo(function(){return Fj({},{hasCreate:a,hasEdit:o,hasList:s,hasShow:d,recordRepresentation:f},t?r[t]:{})},[t,r,a,o,s,d,f]);return u},mw=function(e){var t=lu({resource:e}).recordRepresentation;return p.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?xr(r,t):p.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},gw=function(e){var t=Uj();return t.getSource(e)},Bq=function(){var e=rt(),t=vr(),r=QZ();return p.useCallback(function(n){var a=n.source,o=n.label,s=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,ZZ({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:s,resourceFromContext:t,source:a}))},[t,e,r])},YZ="en",zq=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=Bq();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:p.createElement("span",null,o({label:r,resource:n,source:t}),a&&p.createElement("span",{"aria-hidden":"true"}," *"))};zq.displayName="FieldTitle";const ji=p.memo(zq),JZ=function(){return p.createElement("span",null)},Vj=function(e,t){};var ZZ=function(e){if(!e)return[""];var t=e.label,r=e.defaultLabel,n=e.resource,a=e.resourceFromContext,o=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof o>"u")return[""];var s=eee(o),d=s.sourceWithoutDigits,f=s.sourceSuffix,u=Ec.transform(f.replace(/\./g," "),["underscore","humanize"]);return n?[aN(n,d),{_:u}]:r?[r,{_:u}]:[aN(a||"undefined",d),{_:u}]},aN=function(e,t){return"resources.".concat(e,".fields.").concat(t)},eee=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,s){tee(o)&&(n=s)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},tee=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};function ree(e){return function(t){e.forEach(function(r){typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var nee=typeof window<"u"?p.useLayoutEffect:p.useEffect,wr=function(e){var t=p.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return nee(function(){t.current=e}),p.useCallback(function(){for(var r=[],n=0;n"u"?t:y)});return function(){return g()}},[e,o,t,n,d]);var u=wr(function(h,g){var y=typeof h=="function"?h(d):h;a(e,typeof y>"u"?typeof g>"u"?t:g:y)});return[d,u]},aee=function(e){var t=tw().removeItem;return p.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])},oee=function(e){var t=tw().removeItems;return p.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])},iee=function(){var e=tw().reset;return e},_v=function(){var e=iu(),t=$i(),r=iee(),n=ul(),a=p.useRef(n),o=Yn(),s=p.useRef(o),d=Ac(),f=Xs("".concat(d,"/").concat(Bx.loginUrl));p.useEffect(function(){s.current=o,a.current=n},[o,n]);var u=p.useCallback(function(h,g,y){return h===void 0&&(h={}),g===void 0&&(g=f),y===void 0&&(y=!0),e?e.logout(h).then(function(_){if(_===!1||g===!1){r(),t.clear();return}var S=_||g;if(S!=null&&S.startsWith("http"))return r(),t.clear(),window.location.href=S,S;var E=S.split("?"),x={pathname:E[0]},T={};return y&&s.current&&s.current.pathname&&(T={state:{nextPathname:s.current.pathname,nextSearch:s.current.search}}),E[1]&&(x.search=E[1]),a.current(x,T),r(),t.clear(),_}):(a.current({pathname:f},{state:{nextPathname:s.current&&s.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,f,t]);return u},Kd=function(){return Kd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},iN=function(){},Qd=function(){return Qd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]"),xv(t);var s=Uq(t).permissions;if(a)return p.createElement(a,Qy({permissions:s},o));if(n)return n(Qy({permissions:s},o));if(r)return r(Qy({permissions:s},o))},Vq=function(){var e=iu(),t=Yn(),r=t.state,n=ul(),a=Ac(),o=sz().resetNotifications,s=r&&r.nextPathname,d=r&&r.nextSearch,f=Xs("".concat(a,"/").concat(Bx.afterLoginUrl)),u=p.useCallback(function(h,g){return h===void 0&&(h={}),e?e.login(h).then(function(y){if(o(),y&&y.hasOwnProperty("redirectTo"))y&&n(y.redirectTo);else{var _=g||s+d||f;n(_)}return y}):(o(),n(f),Promise.resolve())},[e,n,s,d,o,f]);return u},gee="AUTH_LOGIN",yee="AUTH_CHECK",bee="AUTH_ERROR",_ee="AUTH_LOGOUT",xee="AUTH_GET_PERMISSIONS";const wee=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Xy=function(){return Xy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return _a(r&&e?"".concat(r,".").concat(e):r??e,t)},Wj=function(){var e=p.useContext(kq);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},$ee=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0?ya(wv,--ko):0,ev--,Ln===10&&(ev=1,bw--),Ln}function Xo(){return Ln=ko2||yb(Ln)>3?"":" "}function tte(e,t){for(;--t&&Xo()&&!(Ln<48||Ln>102||Ln>57&&Ln<65||Ln>70&&Ln<97););return Xb(e,i1()+(t<6&&rl()==32&&Xo()==32))}function ik(e){for(;Xo();)switch(Ln){case e:return ko;case 34:case 39:e!==34&&e!==39&&ik(Ln);break;case 40:e===41&&ik(e);break;case 92:Xo();break}return ko}function rte(e,t){for(;Xo()&&e+Ln!==57;)if(e+Ln===84&&rl()===47)break;return"/*"+Xb(t,ko-1)+"*"+yw(e===47?e:Xo())}function nte(e){for(;!yb(rl());)Xo();return Xb(e,ko)}function ate(e){return t6(l1("",null,null,null,[""],e=e6(e),0,[0],e))}function l1(e,t,r,n,a,o,s,d,f){for(var u=0,h=0,g=s,y=0,_=0,S=0,E=1,x=1,T=1,I=0,R="",P=a,C=o,O=n,j=R;x;)switch(S=I,I=Xo()){case 40:if(S!=108&&ya(j,g-1)==58){ok(j+=kr(s1(I),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:j+=s1(I);break;case 9:case 10:case 13:case 32:j+=ete(S);break;case 92:j+=tte(i1()-1,7);continue;case 47:switch(rl()){case 42:case 47:L_(ote(rte(Xo(),i1()),t,r),f);break;default:j+="/"}break;case 123*E:d[u++]=Ys(j)*T;case 125*E:case 59:case 0:switch(I){case 0:case 125:x=0;case 59+h:T==-1&&(j=kr(j,/\f/g,"")),_>0&&Ys(j)-g&&L_(_>32?dN(j+";",n,r,g-1):dN(kr(j," ","")+";",n,r,g-2),f);break;case 59:j+=";";default:if(L_(O=cN(j,t,r,u,h,a,d,R,P=[],C=[],g),o),I===123)if(h===0)l1(j,t,O,O,P,o,g,d,C);else switch(y===99&&ya(j,3)===110?100:y){case 100:case 108:case 109:case 115:l1(e,O,O,n&&L_(cN(e,O,O,0,0,a,d,R,a,P=[],g),C),a,C,g,d,n?P:C);break;default:l1(j,O,O,O,[""],C,0,d,C)}}u=h=_=0,E=T=1,R=j="",g=s;break;case 58:g=1+Ys(j),_=S;default:if(E<1){if(I==123)--E;else if(I==125&&E++==0&&Zee()==125)continue}switch(j+=yw(I),I*E){case 38:T=h>0?1:(j+="\f",-1);break;case 44:d[u++]=(Ys(j)-1)*T,T=1;break;case 64:rl()===45&&(j+=s1(Xo())),y=rl(),h=g=Ys(R=j+=nte(i1())),I++;break;case 45:S===45&&Ys(j)==2&&(E=0)}}return o}function cN(e,t,r,n,a,o,s,d,f,u,h){for(var g=a-1,y=a===0?o:[""],_=Kj(y),S=0,E=0,x=0;S0?y[T]+" "+I:kr(I,/&\f/g,y[T])))&&(f[x++]=R);return _w(e,t,r,a===0?Hj:d,f,u,h)}function ote(e,t,r){return _w(e,t,r,Xq,yw(Jee()),gb(e,2,-2),0)}function dN(e,t,r,n){return _w(e,t,r,Gj,gb(e,0,n),gb(e,n+1,-1),n)}function Eh(e,t){for(var r="",n=Kj(e),a=0;a6)switch(ya(e,t+1)){case 109:if(ya(e,t+4)!==45)break;case 102:return kr(e,/(.+:)(.+)-([^]+)/,"$1"+Rr+"$2-$3$1"+W1+(ya(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ok(e,"stretch")?r6(kr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ya(e,t+1)!==115)break;case 6444:switch(ya(e,Ys(e)-3-(~ok(e,"!important")&&10))){case 107:return kr(e,":",":"+Rr)+e;case 101:return kr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rr+(ya(e,14)===45?"inline-":"")+"box$3$1"+Rr+"$2$3$1"+Ta+"$2box$3")+e}break;case 5936:switch(ya(e,t+11)){case 114:return Rr+e+Ta+kr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rr+e+Ta+kr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rr+e+Ta+kr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rr+e+Ta+e+e}return e}var hte=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Gj:t.return=r6(t.value,t.length);break;case Yq:return Eh([ag(t,{value:kr(t.value,"@","@"+Rr)})],a);case Hj:if(t.length)return Yee(t.props,function(o){switch(Xee(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Eh([ag(t,{props:[kr(o,/:(read-\w+)/,":"+W1+"$1")]})],a);case"::placeholder":return Eh([ag(t,{props:[kr(o,/:(plac\w+)/,":"+Rr+"input-$1")]}),ag(t,{props:[kr(o,/:(plac\w+)/,":"+W1+"$1")]}),ag(t,{props:[kr(o,/:(plac\w+)/,Ta+"input-$1")]})],a)}return""})}},vte=[hte],n6=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(E){var x=E.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||vte,o={},s,d=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(E){for(var x=E.getAttribute("data-emotion").split(" "),T=1;T=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var wte={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ste=/[A-Z]|^ms/g,Ete=/_EMO_([^_]+?)_([^]*?)_EMO_/g,i6=function(t){return t.charCodeAt(1)===45},mN=function(t){return t!=null&&typeof t!="boolean"},GR=Qq(function(e){return i6(e)?e:e.replace(Ste,"-$&").toLowerCase()}),gN=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Ete,function(n,a,o){return Js={name:a,styles:o,next:Js},a})}return wte[t]!==1&&!i6(t)&&typeof r=="number"&&r!==0?r+"px":r};function bb(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Js={name:a.name,styles:a.styles,next:Js},a.name;var o=r;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Js={name:s.name,styles:s.styles,next:Js},s=s.next;var d=o.styles+";";return d}return Cte(e,t,r)}case"function":{if(e!==void 0){var f=Js,u=r(e);return Js=f,bb(e,t,u)}break}}var h=r;if(t==null)return h;var g=t[h];return g!==void 0?g:h}function Cte(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?Ite:jte},xN=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},Tte=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return a6(r,n,a),Pte(function(){return o6(r,n,a)}),null},Ate=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,s;r!==void 0&&(o=r.label,s=r.target);var d=xN(t,r,n),f=d||_N(a),u=!f("as");return function(){var h=arguments,g=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&g.push("label:"+o+";"),h[0]==null||h[0].raw===void 0)g.push.apply(g,h);else{g.push(h[0][0]);for(var y=h.length,_=1;_t($te(a)?r:a):t;return A.jsx(kte,{styles:n})}function Xj(e,t){return sk(e,t)}const d6=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Lte=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:c6,StyledEngineProvider:Fte,ThemeContext:Yb,css:Pf,default:Xj,internal_processStyles:d6,keyframes:uu},Symbol.toStringTag,{value:"Module"}));function Xl(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 f6(e){if(!Xl(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=f6(e[r])}),t}function ro(e,t,r={clone:!0}){const n=r.clone?z({},e):e;return Xl(e)&&Xl(t)&&Object.keys(t).forEach(a=>{Xl(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Xl(e[a])?n[a]=ro(e[a],t[a],r):r.clone?n[a]=Xl(t[a])?f6(t[a]):t[a]:n[a]=t[a]}),n}const Dte=Object.freeze(Object.defineProperty({__proto__:null,default:ro,isPlainObject:Xl},Symbol.toStringTag,{value:"Module"})),Nte=["values","unit","step"],Bte=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)=>z({},r,{[n.key]:n.val}),{})};function p6(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Ve(e,Nte),o=Bte(t),s=Object.keys(o);function d(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r})`}function f(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-n/100}${r})`}function u(y,_){const S=s.indexOf(_);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r}) and (max-width:${(S!==-1&&typeof t[s[S]]=="number"?t[s[S]]:_)-n/100}${r})`}function h(y){return s.indexOf(y)+1`@media (min-width:${Yj[e]}px)`};function ds(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||wN;return t.reduce((s,d,f)=>(s[o.up(o.keys[f])]=r(t[f]),s),{})}if(typeof t=="object"){const o=n.breakpoints||wN;return Object.keys(t).reduce((s,d)=>{if(Object.keys(o.values||Yj).indexOf(d)!==-1){const f=o.up(d);s[f]=r(t[d],d)}else{const f=d;s[f]=t[f]}return s},{})}return r(t)}function h6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function v6(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function qte(e,...t){const r=h6(e),n=[r,...t].reduce((a,o)=>ro(a,o),{});return v6(Object.keys(r),n)}function Ute(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function KR({values:e,breakpoints:t,base:r}){const n=r||Ute(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((s,d,f)=>(Array.isArray(e)?(s[d]=e[f]!=null?e[f]:e[o],o=f):typeof e=="object"?(s[d]=e[d]!=null?e[d]:e[o],o=d):s[d]=e,s),{})}function Ue(e){if(typeof e!="string")throw new Error(nu(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Vte=Object.freeze(Object.defineProperty({__proto__:null,default:Ue},Symbol.toStringTag,{value:"Module"}));function tv(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function H1(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=tv(e,r)||n,t&&(a=t(a,n,e)),a}function Rn(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=s=>{if(s[t]==null)return null;const d=s[t],f=s.theme,u=tv(f,n)||{};return ds(s,d,g=>{let y=H1(u,a,g);return g===y&&typeof g=="string"&&(y=H1(u,a,`${t}${g==="default"?"":Ue(g)}`,g)),r===!1?y:{[r]:y}})};return o.propTypes={},o.filterProps=[t],o}function Wte(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Hte={m:"margin",p:"padding"},Gte={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},SN={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kte=Wte(e=>{if(e.length>2)if(SN[e])e=SN[e];else return[e];const[t,r]=e.split(""),n=Hte[t],a=Gte[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),Jj=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zj=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Jj,...Zj];function Jb(e,t,r,n){var a;const o=(a=tv(e,t,!1))!=null?a:r;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function eT(e){return Jb(e,"spacing",8)}function _f(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 Qte(e,t){return r=>e.reduce((n,a)=>(n[a]=_f(t,r),n),{})}function Xte(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Kte(r),o=Qte(a,n),s=e[r];return ds(e,s,o)}function m6(e,t){const r=eT(e.theme);return Object.keys(e).map(n=>Xte(e,t,n,r)).reduce(Yy,{})}function gn(e){return m6(e,Jj)}gn.propTypes={};gn.filterProps=Jj;function yn(e){return m6(e,Zj)}yn.propTypes={};yn.filterProps=Zj;function Yte(e=8){if(e.mui)return e;const t=eT({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function xw(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Yy(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function Oi(e){return typeof e!="number"?e:`${e}px solid`}function Di(e,t){return Rn({prop:e,themeKey:"borders",transform:t})}const Jte=Di("border",Oi),Zte=Di("borderTop",Oi),ere=Di("borderRight",Oi),tre=Di("borderBottom",Oi),rre=Di("borderLeft",Oi),nre=Di("borderColor"),are=Di("borderTopColor"),ore=Di("borderRightColor"),ire=Di("borderBottomColor"),sre=Di("borderLeftColor"),lre=Di("outline",Oi),ure=Di("outlineColor"),ww=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Jb(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:_f(t,n)});return ds(e,e.borderRadius,r)}return null};ww.propTypes={};ww.filterProps=["borderRadius"];xw(Jte,Zte,ere,tre,rre,nre,are,ore,ire,sre,ww,lre,ure);const Sw=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Jb(e.theme,"spacing",8),r=n=>({gap:_f(t,n)});return ds(e,e.gap,r)}return null};Sw.propTypes={};Sw.filterProps=["gap"];const Ew=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Jb(e.theme,"spacing",8),r=n=>({columnGap:_f(t,n)});return ds(e,e.columnGap,r)}return null};Ew.propTypes={};Ew.filterProps=["columnGap"];const Cw=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Jb(e.theme,"spacing",8),r=n=>({rowGap:_f(t,n)});return ds(e,e.rowGap,r)}return null};Cw.propTypes={};Cw.filterProps=["rowGap"];const cre=Rn({prop:"gridColumn"}),dre=Rn({prop:"gridRow"}),fre=Rn({prop:"gridAutoFlow"}),pre=Rn({prop:"gridAutoColumns"}),hre=Rn({prop:"gridAutoRows"}),vre=Rn({prop:"gridTemplateColumns"}),mre=Rn({prop:"gridTemplateRows"}),gre=Rn({prop:"gridTemplateAreas"}),yre=Rn({prop:"gridArea"});xw(Sw,Ew,Cw,cre,dre,fre,pre,hre,vre,mre,gre,yre);function Ch(e,t){return t==="grey"?t:e}const bre=Rn({prop:"color",themeKey:"palette",transform:Ch}),_re=Rn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ch}),xre=Rn({prop:"backgroundColor",themeKey:"palette",transform:Ch});xw(bre,_re,xre);function Go(e){return e<=1&&e!==0?`${e*100}%`:e}const wre=Rn({prop:"width",transform:Go}),tT=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Yj[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Go(r)}};return ds(e,e.maxWidth,t)}return null};tT.filterProps=["maxWidth"];const Sre=Rn({prop:"minWidth",transform:Go}),Ere=Rn({prop:"height",transform:Go}),Cre=Rn({prop:"maxHeight",transform:Go}),Ore=Rn({prop:"minHeight",transform:Go});Rn({prop:"size",cssProperty:"width",transform:Go});Rn({prop:"size",cssProperty:"height",transform:Go});const Pre=Rn({prop:"boxSizing"});xw(wre,tT,Sre,Ere,Cre,Ore,Pre);const Zb={border:{themeKey:"borders",transform:Oi},borderTop:{themeKey:"borders",transform:Oi},borderRight:{themeKey:"borders",transform:Oi},borderBottom:{themeKey:"borders",transform:Oi},borderLeft:{themeKey:"borders",transform:Oi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Oi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ww},color:{themeKey:"palette",transform:Ch},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ch},backgroundColor:{themeKey:"palette",transform:Ch},p:{style:yn},pt:{style:yn},pr:{style:yn},pb:{style:yn},pl:{style:yn},px:{style:yn},py:{style:yn},padding:{style:yn},paddingTop:{style:yn},paddingRight:{style:yn},paddingBottom:{style:yn},paddingLeft:{style:yn},paddingX:{style:yn},paddingY:{style:yn},paddingInline:{style:yn},paddingInlineStart:{style:yn},paddingInlineEnd:{style:yn},paddingBlock:{style:yn},paddingBlockStart:{style:yn},paddingBlockEnd:{style:yn},m:{style:gn},mt:{style:gn},mr:{style:gn},mb:{style:gn},ml:{style:gn},mx:{style:gn},my:{style:gn},margin:{style:gn},marginTop:{style:gn},marginRight:{style:gn},marginBottom:{style:gn},marginLeft:{style:gn},marginX:{style:gn},marginY:{style:gn},marginInline:{style:gn},marginInlineStart:{style:gn},marginInlineEnd:{style:gn},marginBlock:{style:gn},marginBlockStart:{style:gn},marginBlockEnd:{style:gn},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:Sw},rowGap:{style:Cw},columnGap:{style:Ew},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Go},maxWidth:{style:tT},minWidth:{transform:Go},height:{transform:Go},maxHeight:{transform:Go},minHeight:{transform:Go},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Rre(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function kre(e,t){return typeof e=="function"?e(t):e}function g6(){function e(r,n,a,o){const s={[r]:n,theme:a},d=o[r];if(!d)return{[r]:n};const{cssProperty:f=r,themeKey:u,transform:h,style:g}=d;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const y=tv(a,u)||{};return g?g(s):ds(s,n,S=>{let E=H1(y,h,S);return S===E&&typeof S=="string"&&(E=H1(y,h,`${r}${S==="default"?"":Ue(S)}`,S)),f===!1?E:{[f]:E}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const s=(n=o.unstable_sxConfig)!=null?n:Zb;function d(f){let u=f;if(typeof f=="function")u=f(o);else if(typeof f!="object")return f;if(!u)return null;const h=h6(o.breakpoints),g=Object.keys(h);let y=h;return Object.keys(u).forEach(_=>{const S=kre(u[_],o);if(S!=null)if(typeof S=="object")if(s[_])y=Yy(y,e(_,S,o,s));else{const E=ds({theme:o},S,x=>({[_]:x}));Rre(E,S)?y[_]=t({sx:S,theme:o}):y=Yy(y,E)}else y=Yy(y,e(_,S,o,s))}),v6(g,y)}return Array.isArray(a)?a.map(d):d(a)}return t}const Sv=g6();Sv.filterProps=["sx"];function y6(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 Ire=["breakpoints","palette","spacing","shape"];function Ev(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,s=Ve(e,Ire),d=p6(r),f=Yte(a);let u=ro({breakpoints:d,direction:"ltr",components:{},palette:z({mode:"light"},n),spacing:f,shape:z({},zte,o)},s);return u.applyStyles=y6,u=t.reduce((h,g)=>ro(h,g),u),u.unstable_sxConfig=z({},Zb,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(g){return Sv({sx:g,theme:this})},u}const jre=Object.freeze(Object.defineProperty({__proto__:null,default:Ev,private_createBreakpoints:p6,unstable_applyStyles:y6},Symbol.toStringTag,{value:"Module"}));function Tre(e){return Object.keys(e).length===0}function rT(e=null){const t=p.useContext(Yb);return!t||Tre(t)?e:t}const Are=Ev();function Ow(e=Are){return rT(e)}function Mre({styles:e,themeId:t,defaultTheme:r={}}){const n=Ow(r),a=typeof e=="function"?e(t&&n[t]||n):e;return A.jsx(c6,{styles:a})}const Fre=["sx"],$re=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Zb;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function Pw(e){const{sx:t}=e,r=Ve(e,Fre),{systemProps:n,otherProps:a}=$re(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...s)=>{const d=t(...s);return Xl(d)?z({},n,d):n}:o=z({},n,t),z({},a,{sx:o})}const Lre=Object.freeze(Object.defineProperty({__proto__:null,default:Sv,extendSxProp:Pw,unstable_createStyleFunctionSx:g6,unstable_defaultSxConfig:Zb},Symbol.toStringTag,{value:"Module"})),EN=e=>e,Dre=()=>{let e=EN;return{configure(t){e=t},generate(t){return e(t)},reset(){e=EN}}},nT=Dre();function b6(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;td!=="theme"&&d!=="sx"&&d!=="as"})(Sv);return p.forwardRef(function(f,u){const h=Ow(r),g=Pw(f),{className:y,component:_="div"}=g,S=Ve(g,Nre);return A.jsx(o,z({as:_,ref:u,className:Re(y,a?a(n):n),theme:t&&h[t]||h},S))})}const zre={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 wt(e,t,r="Mui"){const n=zre[t];return n?`${r}-${n}`:`${nT.generate(e)}-${t}`}function Ot(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=wt(e,a,r)}),n}const qre=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function _6(e){const t=`${e}`.match(qre);return t&&t[1]||""}function x6(e,t=""){return e.displayName||e.name||_6(e)||t}function CN(e,t,r){const n=x6(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ure(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return x6(e,"Component");if(typeof e=="object")switch(e.$$typeof){case nk.ForwardRef:return CN(e,e.render,"ForwardRef");case nk.Memo:return CN(e,e.type,"memo");default:return}}}const Vre=Object.freeze(Object.defineProperty({__proto__:null,default:Ure,getFunctionName:_6},Symbol.toStringTag,{value:"Module"})),Wre=["ownerState"],Hre=["variants"],Gre=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Kre(e){return Object.keys(e).length===0}function Qre(e){return typeof e=="string"&&e.charCodeAt(0)>96}function QR(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xre=Ev(),Yre=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function D_({defaultTheme:e,theme:t,themeId:r}){return Kre(t)?e:t[r]||t}function Jre(e){return e?(t,r)=>r[e]:null}function u1(e,t){let{ownerState:r}=t,n=Ve(t,Wre);const a=typeof e=="function"?e(z({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>u1(o,z({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let d=Ve(a,Hre);return o.forEach(f=>{let u=!0;typeof f.props=="function"?u=f.props(z({ownerState:r},n,r)):Object.keys(f.props).forEach(h=>{(r==null?void 0:r[h])!==f.props[h]&&n[h]!==f.props[h]&&(u=!1)}),u&&(Array.isArray(d)||(d=[d]),d.push(typeof f.style=="function"?f.style(z({ownerState:r},n,r)):f.style))}),d}return a}function Zre(e={}){const{themeId:t,defaultTheme:r=Xre,rootShouldForwardProp:n=QR,slotShouldForwardProp:a=QR}=e,o=s=>Sv(z({},s,{theme:D_(z({},s,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(s,d={})=>{d6(s,C=>C.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:f,slot:u,skipVariantsResolver:h,skipSx:g,overridesResolver:y=Jre(Yre(u))}=d,_=Ve(d,Gre),S=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,E=g||!1;let x,T=QR;u==="Root"||u==="root"?T=n:u?T=a:Qre(s)&&(T=void 0);const I=Xj(s,z({shouldForwardProp:T,label:x},_)),R=C=>typeof C=="function"&&C.__emotion_real!==C||Xl(C)?O=>u1(C,z({},O,{theme:D_({theme:O.theme,defaultTheme:r,themeId:t})})):C,P=(C,...O)=>{let j=R(C);const k=O?O.map(R):[];f&&y&&k.push(N=>{const B=D_(z({},N,{defaultTheme:r,themeId:t}));if(!B.components||!B.components[f]||!B.components[f].styleOverrides)return null;const q=B.components[f].styleOverrides,V={};return Object.entries(q).forEach(([G,Y])=>{V[G]=u1(Y,z({},N,{theme:B}))}),y(N,V)}),f&&!S&&k.push(N=>{var B;const q=D_(z({},N,{defaultTheme:r,themeId:t})),V=q==null||(B=q.components)==null||(B=B[f])==null?void 0:B.variants;return u1({variants:V},z({},N,{theme:q}))}),E||k.push(o);const M=k.length-O.length;if(Array.isArray(C)&&M>0){const N=new Array(M).fill("");j=[...C,...N],j.raw=[...C.raw,...N]}const $=I(j,...k);return s.muiName&&($.muiName=s.muiName),$};return I.withConfig&&(P.withConfig=I.withConfig),P}}const w6=Zre();function _b(e,t){const r=z({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=z({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=z({},o),Object.keys(a).forEach(s=>{r[n][s]=_b(a[s],o[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function S6(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:_b(t.components[r].defaultProps,n)}function aT({props:e,name:t,defaultTheme:r,themeId:n}){let a=Ow(r);return n&&(a=a[n]||a),S6({theme:a,name:t,props:e})}const Yo=typeof window<"u"?p.useLayoutEffect:p.useEffect;function ene(e,t,r,n,a){const[o,s]=p.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return Yo(()=>{let d=!0;if(!r)return;const f=r(e),u=()=>{d&&s(f.matches)};return u(),f.addListener(u),()=>{d=!1,f.removeListener(u)}},[e,r]),o}const E6=p.useSyncExternalStore;function tne(e,t,r,n,a){const o=p.useCallback(()=>t,[t]),s=p.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:h}=n(e);return()=>h}return o},[o,e,n,a,r]),[d,f]=p.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const h=r(e);return[()=>h.matches,g=>(h.addListener(g),()=>{h.removeListener(g)})]},[o,r,e]);return E6(f,d,s)}function no(e,t={}){const r=rT(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:d=!1}=S6({name:"MuiUseMediaQuery",props:t,theme:r});let f=typeof e=="function"?e(r):e;return f=f.replace(/^@media( ?)/m,""),(E6!==void 0?tne:ene)(f,a,o,s,d)}function C6(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const rne=Object.freeze(Object.defineProperty({__proto__:null,default:C6},Symbol.toStringTag,{value:"Module"}));function O6(e,t=0,r=1){return C6(e,t,r)}function nne(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function oT(e){if(e.type)return e;if(e.charAt(0)==="#")return oT(nne(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(nu(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(nu(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function P6(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function rv(e,t){return e=oT(e),t=O6(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,P6(e)}function R6(e,t){if(e=oT(e),t=O6(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 P6(e)}function uk(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function Cv(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function ane(e,t){return()=>null}function c1(e,t){var r,n;return p.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 Dn(e){return e&&e.ownerDocument||document}function Ti(e){return Dn(e).defaultView||window}function one(e,t){return()=>null}function G1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let ON=0;function ine(e){const[t,r]=p.useState(e),n=e||t;return p.useEffect(()=>{t==null&&(ON+=1,r(`mui-${ON}`))},[t]),n}const PN=O1.useId;function xf(e){if(PN!==void 0){const t=PN();return e??t}return ine(e)}function sne(e,t,r,n,a){return null}function nv({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=p.useRef(e!==void 0),[o,s]=p.useState(t),d=a?e:o,f=p.useCallback(u=>{a||s(u)},[]);return[d,f]}function to(e){const t=p.useRef(e);return Yo(()=>{t.current=e}),p.useRef((...r)=>(0,t.current)(...r)).current}function fn(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{G1(r,t)})},e)}const RN={};function lne(e,t){const r=p.useRef(RN);return r.current===RN&&(r.current=e(t)),r}const une=[];function cne(e){p.useEffect(e,une)}class e0{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e0}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Jd(){const e=lne(e0.create).current;return cne(e.disposeEffect),e}let Rw=!0,ck=!1;const dne=new e0,fne={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 pne(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&fne[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function hne(e){e.metaKey||e.altKey||e.ctrlKey||(Rw=!0)}function XR(){Rw=!1}function vne(){this.visibilityState==="hidden"&&ck&&(Rw=!0)}function mne(e){e.addEventListener("keydown",hne,!0),e.addEventListener("mousedown",XR,!0),e.addEventListener("pointerdown",XR,!0),e.addEventListener("touchstart",XR,!0),e.addEventListener("visibilitychange",vne,!0)}function gne(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Rw||pne(t)}function kw(){const e=p.useCallback(a=>{a!=null&&mne(a.ownerDocument)},[]),t=p.useRef(!1);function r(){return t.current?(ck=!0,dne.start(100,()=>{ck=!1}),t.current=!1,!0):!1}function n(a){return gne(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function k6(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let lh;function I6(){if(lh)return lh;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),lh="reverse",e.scrollLeft>0?lh="default":(e.scrollLeft=1,e.scrollLeft===0&&(lh="negative")),document.body.removeChild(e),lh}function yne(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(I6()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function St(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,s)=>{if(s){const d=t(s);d!==""&&o.push(d),r&&r[s]&&o.push(r[s])}return o},[]).join(" ")}),n}function xb(e){return typeof e=="string"}function _h(e,t,r){return e===void 0||xb(e)?t:z({},t,{ownerState:z({},t.ownerState,r)})}function K1(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 kN(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 j6(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const _=Re(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),S=z({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),E=z({},r,a,n);return _.length>0&&(E.className=_),Object.keys(S).length>0&&(E.style=S),{props:E,internalRef:void 0}}const s=K1(z({},a,n)),d=kN(n),f=kN(a),u=t(s),h=Re(u==null?void 0:u.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),g=z({},u==null?void 0:u.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),y=z({},u,r,f,d);return h.length>0&&(y.className=h),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:u.ref}}function T6(e,t,r){return typeof e=="function"?e(t,r):e}const bne=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ai(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,s=Ve(e,bne),d=o?{}:T6(n,a),{props:f,internalRef:u}=j6(z({},s,{externalSlotProps:d})),h=fn(u,d==null?void 0:d.ref,(t=e.additionalProps)==null?void 0:t.ref);return _h(r,z({},f,{ref:h}),a)}const A6=p.createContext(null);function M6(){return p.useContext(A6)}const _ne=typeof Symbol=="function"&&Symbol.for,xne=_ne?Symbol.for("mui.nested"):"__THEME_NESTED__";function wne(e,t){return typeof t=="function"?t(e):z({},e,t)}function Sne(e){const{children:t,theme:r}=e,n=M6(),a=p.useMemo(()=>{const o=n===null?r:wne(n,r);return o!=null&&(o[xne]=n!==null),o},[r,n]);return A.jsx(A6.Provider,{value:a,children:t})}const Ene=["value"],F6=p.createContext();function Cne(e){let{value:t}=e,r=Ve(e,Ene);return A.jsx(F6.Provider,z({value:t??!0},r))}const Bc=()=>{const e=p.useContext(F6);return e??!1},$6=p.createContext(void 0);function One({value:e,children:t}){return A.jsx($6.Provider,{value:e,children:t})}function Pne(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?_b(a.defaultProps,n):!a.styleOverrides&&!a.variants?_b(a,n):n}function Rne({props:e,name:t}){const r=p.useContext($6);return Pne({props:e,name:t,theme:{components:r}})}const IN={};function jN(e,t,r,n=!1){return p.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),s=e?z({},t,{[e]:o}):o;return n?()=>s:s}return e?z({},t,{[e]:r}):z({},t,r)},[e,t,r,n])}function kne(e){const{children:t,theme:r,themeId:n}=e,a=rT(IN),o=M6()||IN,s=jN(n,a,r),d=jN(n,o,r,!0),f=s.direction==="rtl";return A.jsx(Sne,{theme:d,children:A.jsx(Yb.Provider,{value:s,children:A.jsx(Cne,{value:f,children:A.jsx(One,{value:s==null?void 0:s.components,children:t})})})})}const Ine=["className","component","disableGutters","fixed","maxWidth","classes"],jne=Ev(),Tne=w6("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Ue(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),Ane=e=>aT({props:e,name:"MuiContainer",defaultTheme:jne}),Mne=(e,t)=>{const r=f=>wt(t,f),{classes:n,fixed:a,disableGutters:o,maxWidth:s}=e,d={root:["root",s&&`maxWidth${Ue(String(s))}`,a&&"fixed",o&&"disableGutters"]};return St(d,r,n)};function Fne(e={}){const{createStyledComponent:t=Tne,useThemeProps:r=Ane,componentName:n="MuiContainer"}=e,a=t(({theme:s,ownerState:d})=>z({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!d.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:d})=>d.fixed&&Object.keys(s.breakpoints.values).reduce((f,u)=>{const h=u,g=s.breakpoints.values[h];return g!==0&&(f[s.breakpoints.up(h)]={maxWidth:`${g}${s.breakpoints.unit}`}),f},{}),({theme:s,ownerState:d})=>z({},d.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},d.maxWidth&&d.maxWidth!=="xs"&&{[s.breakpoints.up(d.maxWidth)]:{maxWidth:`${s.breakpoints.values[d.maxWidth]}${s.breakpoints.unit}`}}));return p.forwardRef(function(d,f){const u=r(d),{className:h,component:g="div",disableGutters:y=!1,fixed:_=!1,maxWidth:S="lg"}=u,E=Ve(u,Ine),x=z({},u,{component:g,disableGutters:y,fixed:_,maxWidth:S}),T=Mne(x,n);return A.jsx(a,z({as:g,ownerState:x,className:Re(T.root,h),ref:f},E))})}const $ne=["component","direction","spacing","divider","children","className","useFlexGap"],Lne=Ev(),Dne=w6("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Nne(e){return aT({props:e,name:"MuiStack",defaultTheme:Lne})}function Bne(e,t){const r=p.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],qne=({ownerState:e,theme:t})=>{let r=z({display:"flex",flexDirection:"column"},ds({theme:t},KR({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=eT(t),a=Object.keys(t.breakpoints.values).reduce((f,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(f[u]=!0),f),{}),o=KR({values:e.direction,base:a}),s=KR({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((f,u,h)=>{if(!o[f]){const y=u>0?o[h[u-1]]:"column";o[f]=y}}),r=ro(r,ds({theme:t},s,(f,u)=>e.useFlexGap?{gap:_f(n,f)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${zne(u?o[u]:e.direction)}`]:_f(n,f)}}))}return r=qte(t.breakpoints,r),r};function Une(e={}){const{createStyledComponent:t=Dne,useThemeProps:r=Nne,componentName:n="MuiStack"}=e,a=()=>St({root:["root"]},f=>wt(n,f),{}),o=t(qne);return p.forwardRef(function(f,u){const h=r(f),g=Pw(h),{component:y="div",direction:_="column",spacing:S=0,divider:E,children:x,className:T,useFlexGap:I=!1}=g,R=Ve(g,$ne),P={direction:_,spacing:S,useFlexGap:I},C=a();return A.jsx(o,z({as:y,ownerState:P,ref:u,className:Re(C.root,T)},R,{children:E?Bne(x,E):x}))})}function Vne(e,t){return z({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var dn={},YR={exports:{}},TN;function vt(){return TN||(TN=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(YR)),YR.exports}const Wne=ou(Nee),Hne=ou(rne);var AN;function Gne(){if(AN)return dn;AN=1;var e=vt();Object.defineProperty(dn,"__esModule",{value:!0}),dn.alpha=S,dn.blend=O,dn.colorChannel=void 0,dn.darken=x,dn.decomposeColor=s,dn.emphasize=P,dn.getContrastRatio=_,dn.getLuminance=y,dn.hexToRgb=a,dn.hslToRgb=g,dn.lighten=I,dn.private_safeAlpha=E,dn.private_safeColorChannel=void 0,dn.private_safeDarken=T,dn.private_safeEmphasize=C,dn.private_safeLighten=R,dn.recomposeColor=u,dn.rgbToHex=h;var t=e(Wne),r=e(Hne);function n(j,k=0,M=1){return(0,r.default)(j,k,M)}function a(j){j=j.slice(1);const k=new RegExp(`.{1,${j.length>=6?2:1}}`,"g");let M=j.match(k);return M&&M[0].length===1&&(M=M.map($=>$+$)),M?`rgb${M.length===4?"a":""}(${M.map(($,N)=>N<3?parseInt($,16):Math.round(parseInt($,16)/255*1e3)/1e3).join(", ")})`:""}function o(j){const k=j.toString(16);return k.length===1?`0${k}`:k}function s(j){if(j.type)return j;if(j.charAt(0)==="#")return s(a(j));const k=j.indexOf("("),M=j.substring(0,k);if(["rgb","rgba","hsl","hsla","color"].indexOf(M)===-1)throw new Error((0,t.default)(9,j));let $=j.substring(k+1,j.length-1),N;if(M==="color"){if($=$.split(" "),N=$.shift(),$.length===4&&$[3].charAt(0)==="/"&&($[3]=$[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(N)===-1)throw new Error((0,t.default)(10,N))}else $=$.split(",");return $=$.map(B=>parseFloat(B)),{type:M,values:$,colorSpace:N}}const d=j=>{const k=s(j);return k.values.slice(0,3).map((M,$)=>k.type.indexOf("hsl")!==-1&&$!==0?`${M}%`:M).join(" ")};dn.colorChannel=d;const f=(j,k)=>{try{return d(j)}catch{return j}};dn.private_safeColorChannel=f;function u(j){const{type:k,colorSpace:M}=j;let{values:$}=j;return k.indexOf("rgb")!==-1?$=$.map((N,B)=>B<3?parseInt(N,10):N):k.indexOf("hsl")!==-1&&($[1]=`${$[1]}%`,$[2]=`${$[2]}%`),k.indexOf("color")!==-1?$=`${M} ${$.join(" ")}`:$=`${$.join(", ")}`,`${k}(${$})`}function h(j){if(j.indexOf("#")===0)return j;const{values:k}=s(j);return`#${k.map((M,$)=>o($===3?Math.round(255*M):M)).join("")}`}function g(j){j=s(j);const{values:k}=j,M=k[0],$=k[1]/100,N=k[2]/100,B=$*Math.min(N,1-N),q=(Y,X=(Y+M/30)%12)=>N-B*Math.max(Math.min(X-3,9-X,1),-1);let V="rgb";const G=[Math.round(q(0)*255),Math.round(q(8)*255),Math.round(q(4)*255)];return j.type==="hsla"&&(V+="a",G.push(k[3])),u({type:V,values:G})}function y(j){j=s(j);let k=j.type==="hsl"||j.type==="hsla"?s(g(j)).values:j.values;return k=k.map(M=>(j.type!=="color"&&(M/=255),M<=.03928?M/12.92:((M+.055)/1.055)**2.4)),Number((.2126*k[0]+.7152*k[1]+.0722*k[2]).toFixed(3))}function _(j,k){const M=y(j),$=y(k);return(Math.max(M,$)+.05)/(Math.min(M,$)+.05)}function S(j,k){return j=s(j),k=n(k),(j.type==="rgb"||j.type==="hsl")&&(j.type+="a"),j.type==="color"?j.values[3]=`/${k}`:j.values[3]=k,u(j)}function E(j,k,M){try{return S(j,k)}catch{return j}}function x(j,k){if(j=s(j),k=n(k),j.type.indexOf("hsl")!==-1)j.values[2]*=1-k;else if(j.type.indexOf("rgb")!==-1||j.type.indexOf("color")!==-1)for(let M=0;M<3;M+=1)j.values[M]*=1-k;return u(j)}function T(j,k,M){try{return x(j,k)}catch{return j}}function I(j,k){if(j=s(j),k=n(k),j.type.indexOf("hsl")!==-1)j.values[2]+=(100-j.values[2])*k;else if(j.type.indexOf("rgb")!==-1)for(let M=0;M<3;M+=1)j.values[M]+=(255-j.values[M])*k;else if(j.type.indexOf("color")!==-1)for(let M=0;M<3;M+=1)j.values[M]+=(1-j.values[M])*k;return u(j)}function R(j,k,M){try{return I(j,k)}catch{return j}}function P(j,k=.15){return y(j)>.5?x(j,k):I(j,k)}function C(j,k,M){try{return P(j,k)}catch{return j}}function O(j,k,M,$=1){const N=(G,Y)=>Math.round((G**(1/$)*(1-M)+Y**(1/$)*M)**$),B=s(j),q=s(k),V=[N(B.values[0],q.values[0]),N(B.values[1],q.values[1]),N(B.values[2],q.values[2])];return u({type:"rgb",values:V})}return dn}var ir=Gne();const Kne=["mode","contrastThreshold","tonalOffset"],MN={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:mb.white,default:mb.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}},JR={text:{primary:mb.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:mb.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 FN(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ir.lighten(e.main,a):t==="dark"&&(e.dark=ir.darken(e.main,o)))}function Qne(e="light"){return e==="dark"?{main:Nd[200],light:Nd[50],dark:Nd[400]}:{main:Nd[700],light:Nd[400],dark:Nd[800]}}function Xne(e="light"){return e==="dark"?{main:oh[200],light:oh[50],dark:oh[400]}:{main:oh[500],light:oh[300],dark:oh[700]}}function Yne(e="light"){return e==="dark"?{main:ah[500],light:ah[300],dark:ah[700]}:{main:ah[700],light:ah[400],dark:ah[800]}}function Jne(e="light"){return e==="dark"?{main:ih[400],light:ih[300],dark:ih[700]}:{main:ih[700],light:ih[500],dark:ih[900]}}function Zne(e="light"){return e==="dark"?{main:sh[400],light:sh[300],dark:sh[700]}:{main:sh[800],light:sh[500],dark:sh[900]}}function eae(e="light"){return e==="dark"?{main:ng[400],light:ng[300],dark:ng[700]}:{main:"#ed6c02",light:ng[500],dark:ng[900]}}function tae(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Ve(e,Kne),o=e.primary||Qne(t),s=e.secondary||Xne(t),d=e.error||Yne(t),f=e.info||Jne(t),u=e.success||Zne(t),h=e.warning||eae(t);function g(E){return ir.getContrastRatio(E,JR.text.primary)>=r?JR.text.primary:MN.text.primary}const y=({color:E,name:x,mainShade:T=500,lightShade:I=300,darkShade:R=700})=>{if(E=z({},E),!E.main&&E[T]&&(E.main=E[T]),!E.hasOwnProperty("main"))throw new Error(nu(11,x?` (${x})`:"",T));if(typeof E.main!="string")throw new Error(nu(12,x?` (${x})`:"",JSON.stringify(E.main)));return FN(E,"light",I,n),FN(E,"dark",R,n),E.contrastText||(E.contrastText=g(E.main)),E},_={dark:JR,light:MN};return ro(z({common:z({},mb),mode:t,primary:y({color:o,name:"primary"}),secondary:y({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:d,name:"error"}),warning:y({color:h,name:"warning"}),info:y({color:f,name:"info"}),success:y({color:u,name:"success"}),grey:Dee,contrastThreshold:r,getContrastText:g,augmentColor:y,tonalOffset:n},_[t]),a)}const rae=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function nae(e){return Math.round(e*1e5)/1e5}const $N={textTransform:"uppercase"},LN='"Roboto", "Helvetica", "Arial", sans-serif';function aae(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=LN,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:d=500,fontWeightBold:f=700,htmlFontSize:u=16,allVariants:h,pxToRem:g}=r,y=Ve(r,rae),_=a/14,S=g||(T=>`${T/u*_}rem`),E=(T,I,R,P,C)=>z({fontFamily:n,fontWeight:T,fontSize:S(I),lineHeight:R},n===LN?{letterSpacing:`${nae(P/I)}em`}:{},C,h),x={h1:E(o,96,1.167,-1.5),h2:E(o,60,1.2,-.5),h3:E(s,48,1.167,0),h4:E(s,34,1.235,.25),h5:E(s,24,1.334,0),h6:E(d,20,1.6,.15),subtitle1:E(s,16,1.75,.15),subtitle2:E(d,14,1.57,.1),body1:E(s,16,1.5,.15),body2:E(s,14,1.43,.15),button:E(d,14,1.75,.4,$N),caption:E(s,12,1.66,.4),overline:E(s,12,2.66,1,$N),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ro(z({htmlFontSize:u,pxToRem:S,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:d,fontWeightBold:f},x),y,{clone:!1})}const oae=.2,iae=.14,sae=.12;function on(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${oae})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iae})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${sae})`].join(",")}const lae=["none",on(0,2,1,-1,0,1,1,0,0,1,3,0),on(0,3,1,-2,0,2,2,0,0,1,5,0),on(0,3,3,-2,0,3,4,0,0,1,8,0),on(0,2,4,-1,0,4,5,0,0,1,10,0),on(0,3,5,-1,0,5,8,0,0,1,14,0),on(0,3,5,-1,0,6,10,0,0,1,18,0),on(0,4,5,-2,0,7,10,1,0,2,16,1),on(0,5,5,-3,0,8,10,1,0,3,14,2),on(0,5,6,-3,0,9,12,1,0,3,16,2),on(0,6,6,-3,0,10,14,1,0,4,18,3),on(0,6,7,-4,0,11,15,1,0,4,20,3),on(0,7,8,-4,0,12,17,2,0,5,22,4),on(0,7,8,-4,0,13,19,2,0,5,24,4),on(0,7,9,-4,0,14,21,2,0,5,26,4),on(0,8,9,-5,0,15,22,2,0,6,28,5),on(0,8,10,-5,0,16,24,2,0,6,30,5),on(0,8,11,-5,0,17,26,2,0,6,32,5),on(0,9,11,-5,0,18,28,2,0,7,34,6),on(0,9,12,-6,0,19,29,2,0,7,36,6),on(0,10,13,-6,0,20,31,3,0,8,38,7),on(0,10,13,-6,0,21,33,3,0,8,40,7),on(0,10,14,-6,0,22,35,3,0,8,42,7),on(0,11,14,-7,0,23,36,3,0,9,44,8),on(0,11,15,-7,0,24,38,3,0,9,46,8)],uae=["duration","easing","delay"],cae={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)"},dae={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function DN(e){return`${Math.round(e)}ms`}function fae(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function pae(e){const t=z({},cae,e.easing),r=z({},dae,e.duration);return z({getAutoHeightDuration:fae,create:(a=["all"],o={})=>{const{duration:s=r.standard,easing:d=t.easeInOut,delay:f=0}=o;return Ve(o,uae),(Array.isArray(a)?a:[a]).map(u=>`${u} ${typeof s=="string"?s:DN(s)} ${d} ${typeof f=="string"?f:DN(f)}`).join(",")}},e,{easing:t,duration:r})}const hae={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},vae=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Q1(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,s=Ve(e,vae);if(e.vars)throw new Error(nu(18));const d=tae(n),f=Ev(e);let u=ro(f,{mixins:Vne(f.breakpoints,r),palette:d,shadows:lae.slice(),typography:aae(d,o),transitions:pae(a),zIndex:z({},hae)});return u=ro(u,s),u=t.reduce((h,g)=>ro(h,g),u),u.unstable_sxConfig=z({},Zb,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(g){return Sv({sx:g,theme:this})},u}const Iw=Q1();function ei(){const e=Ow(Iw);return e[bf]||e}function L6({props:e,name:t}){return aT({props:e,name:t,defaultTheme:Iw,themeId:bf})}var Fd={},ZR={exports:{}},NN;function mae(){return NN||(NN=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n96}function S(C){return C!=="ownerState"&&C!=="theme"&&C!=="sx"&&C!=="as"}const E=Fd.systemDefaultTheme=(0,o.default)(),x=C=>C&&C.charAt(0).toLowerCase()+C.slice(1);function T({defaultTheme:C,theme:O,themeId:j}){return y(O)?C:O[j]||O}function I(C){return C?(O,j)=>j[C]:null}function R(C,O){let{ownerState:j}=O,k=(0,r.default)(O,d);const M=typeof C=="function"?C((0,t.default)({ownerState:j},k)):C;if(Array.isArray(M))return M.flatMap($=>R($,(0,t.default)({ownerState:j},k)));if(M&&typeof M=="object"&&Array.isArray(M.variants)){const{variants:$=[]}=M;let B=(0,r.default)(M,f);return $.forEach(q=>{let V=!0;typeof q.props=="function"?V=q.props((0,t.default)({ownerState:j},k,j)):Object.keys(q.props).forEach(G=>{(j==null?void 0:j[G])!==q.props[G]&&k[G]!==q.props[G]&&(V=!1)}),V&&(Array.isArray(B)||(B=[B]),B.push(typeof q.style=="function"?q.style((0,t.default)({ownerState:j},k,j)):q.style))}),B}return M}function P(C={}){const{themeId:O,defaultTheme:j=E,rootShouldForwardProp:k=S,slotShouldForwardProp:M=S}=C,$=N=>(0,s.default)((0,t.default)({},N,{theme:T((0,t.default)({},N,{defaultTheme:j,themeId:O}))}));return $.__mui_systemSx=!0,(N,B={})=>{(0,n.internal_processStyles)(N,me=>me.filter(we=>!(we!=null&&we.__mui_systemSx)));const{name:q,slot:V,skipVariantsResolver:G,skipSx:Y,overridesResolver:X=I(x(V))}=B,H=(0,r.default)(B,u),te=G!==void 0?G:V&&V!=="Root"&&V!=="root"||!1,ne=Y||!1;let K,ee=S;V==="Root"||V==="root"?ee=k:V?ee=M:_(N)&&(ee=void 0);const Ce=(0,n.default)(N,(0,t.default)({shouldForwardProp:ee,label:K},H)),se=me=>typeof me=="function"&&me.__emotion_real!==me||(0,a.isPlainObject)(me)?we=>R(me,(0,t.default)({},we,{theme:T({theme:we.theme,defaultTheme:j,themeId:O})})):me,Se=(me,...we)=>{let Oe=se(me);const ie=we?we.map(se):[];q&&X&&ie.push($e=>{const Te=T((0,t.default)({},$e,{defaultTheme:j,themeId:O}));if(!Te.components||!Te.components[q]||!Te.components[q].styleOverrides)return null;const Be=Te.components[q].styleOverrides,Le={};return Object.entries(Be).forEach(([dt,He])=>{Le[dt]=R(He,(0,t.default)({},$e,{theme:Te}))}),X($e,Le)}),q&&!te&&ie.push($e=>{var Te;const Be=T((0,t.default)({},$e,{defaultTheme:j,themeId:O})),Le=Be==null||(Te=Be.components)==null||(Te=Te[q])==null?void 0:Te.variants;return R({variants:Le},(0,t.default)({},$e,{theme:Be}))}),ne||ie.push($);const Fe=ie.length-we.length;if(Array.isArray(me)&&Fe>0){const $e=new Array(Fe).fill("");Oe=[...me,...$e],Oe.raw=[...me.raw,...$e]}const ke=Ce(Oe,...ie);return N.muiName&&(ke.muiName=N.muiName),ke};return Ce.withConfig&&(Se.withConfig=Ce.withConfig),Se}}return Fd}var Eae=Sae();const Cae=tt(Eae);function N6(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wa=e=>N6(e)&&e!=="classes",he=Cae({themeId:bf,defaultTheme:Iw,rootShouldForwardProp:wa}),Oae=["theme"];function Pae(e){let{theme:t}=e,r=Ve(e,Oae);const n=t[bf];return A.jsx(kne,z({},r,{themeId:n?bf:void 0,theme:n||t}))}const qN=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Et(e){return Rne(e)}function Rae(e){return wt("MuiSvgIcon",e)}Ot("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const kae=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Iae=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Ue(t)}`,`fontSize${Ue(r)}`]};return St(a,Rae,n)},jae=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ue(r.color)}`],t[`fontSize${Ue(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,s,d,f,u,h,g,y,_,S;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,24))||"1.5rem",large:((u=e.typography)==null||(h=u.pxToRem)==null?void 0:h.call(u,35))||"2.1875rem"}[t.fontSize],color:(g=(y=(e.vars||e).palette)==null||(y=y[t.color])==null?void 0:y.main)!=null?g:{action:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.active,disabled:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.disabled,inherit:void 0}[t.color]}}),dk=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:s="inherit",component:d="svg",fontSize:f="medium",htmlColor:u,inheritViewBox:h=!1,titleAccess:g,viewBox:y="0 0 24 24"}=n,_=Ve(n,kae),S=p.isValidElement(a)&&a.type==="svg",E=z({},n,{color:s,component:d,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:y,hasSvgAsChild:S}),x={};h||(x.viewBox=y);const T=Iae(E);return A.jsxs(jae,z({as:d,className:Re(T.root,o),focusable:"false",color:u,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:r},x,_,S&&a.props,{ownerState:E,children:[S?a.props.children:a,g?A.jsx("title",{children:g}):null]}))});dk.muiName="SvgIcon";function ti(e,t){function r(n,a){return A.jsx(dk,z({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=dk.muiName,p.memo(p.forwardRef(r))}const Tae={configure:e=>{nT.configure(e)}},Aae=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ue,createChainedFunction:uk,createSvgIcon:ti,debounce:Cv,deprecatedPropType:ane,isMuiElement:c1,ownerDocument:Dn,ownerWindow:Ti,requirePropFactory:one,setRef:G1,unstable_ClassNameGenerator:Tae,unstable_useEnhancedEffect:Yo,unstable_useId:xf,unsupportedProp:sne,useControlled:nv,useEventCallback:to,useForkRef:fn,useIsFocusVisible:kw},Symbol.toStringTag,{value:"Module"}));function fk(e,t){return fk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},fk(e,t)}function B6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fk(e,t)}const UN={disabled:!1},X1=Ke.createContext(null);var Mae=function(t){return t.scrollTop},By="unmounted",Bd="exited",zd="entering",fh="entered",pk="exiting",hs=function(e){B6(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var s=a,d=s&&!s.isMounting?n.enter:n.appear,f;return o.appearStatus=null,n.in?d?(f=Bd,o.appearStatus=zd):f=fh:n.unmountOnExit||n.mountOnEnter?f=By:f=Bd,o.state={status:f},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var s=a.in;return s&&o.status===By?{status:Bd}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==zd&&s!==fh&&(o=zd):(s===zd||s===fh)&&(o=pk)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,s,d;return o=s=d=a,a!=null&&typeof a!="number"&&(o=a.exit,s=a.enter,d=a.appear!==void 0?a.appear:s),{exit:o,enter:s,appear:d}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===zd){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:My.findDOMNode(this);s&&Mae(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Bd&&this.setState({status:By})},r.performEnter=function(a){var o=this,s=this.props.enter,d=this.context?this.context.isMounting:a,f=this.props.nodeRef?[d]:[My.findDOMNode(this),d],u=f[0],h=f[1],g=this.getTimeouts(),y=d?g.appear:g.enter;if(!a&&!s||UN.disabled){this.safeSetState({status:fh},function(){o.props.onEntered(u)});return}this.props.onEnter(u,h),this.safeSetState({status:zd},function(){o.props.onEntering(u,h),o.onTransitionEnd(y,function(){o.safeSetState({status:fh},function(){o.props.onEntered(u,h)})})})},r.performExit=function(){var a=this,o=this.props.exit,s=this.getTimeouts(),d=this.props.nodeRef?void 0:My.findDOMNode(this);if(!o||UN.disabled){this.safeSetState({status:Bd},function(){a.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:pk},function(){a.props.onExiting(d),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:Bd},function(){a.props.onExited(d)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,s=!0;return this.nextCallback=function(d){s&&(s=!1,o.nextCallback=null,a(d))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:My.findDOMNode(this),d=a==null&&!this.props.addEndListener;if(!s||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=f[0],h=f[1];this.props.addEndListener(u,h)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===By)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var d=Ve(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ke.createElement(X1.Provider,{value:null},typeof s=="function"?s(a,d):Ke.cloneElement(Ke.Children.only(s),d))},t}(Ke.Component);hs.contextType=X1;hs.propTypes={};function uh(){}hs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uh,onEntering:uh,onEntered:uh,onExit:uh,onExiting:uh,onExited:uh};hs.UNMOUNTED=By;hs.EXITED=Bd;hs.ENTERING=zd;hs.ENTERED=fh;hs.EXITING=pk;function Fae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iT(e,t){var r=function(o){return t&&p.isValidElement(o)?t(o):o},n=Object.create(null);return e&&p.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function $ae(e,t){e=e||{},t=t||{};function r(h){return h in t?t[h]:e[h]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var s,d={};for(var f in t){if(n[f])for(s=0;se.scrollTop;function av(e,t){var r,n;const{timeout:a,easing:o,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=s.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function zae(e){return wt("MuiPaper",e)}Ot("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const qae=["className","component","elevation","square","variant"],Uae=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return St(o,zae,a)},Vae=he("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 z({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"&&z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ir.alpha("#fff",qN(t.elevation))}, ${ir.alpha("#fff",qN(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),zc=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:s=1,square:d=!1,variant:f="elevation"}=n,u=Ve(n,qae),h=z({},n,{component:o,elevation:s,square:d,variant:f}),g=Uae(h);return A.jsx(Vae,z({as:o,ownerState:h,className:Re(g.root,a),ref:r},u))}),Wae=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Hae=["component","slots","slotProps"],Gae=["component"];function Kae(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:s,internalForwardedProps:d}=t,f=Ve(t,Wae),{component:u,slots:h={[e]:void 0},slotProps:g={[e]:void 0}}=o;Ve(o,Hae);const y=h[e]||n,_=T6(g[e],a),S=j6(z({className:r},f,{externalForwardedProps:void 0,externalSlotProps:_})),{props:{component:E},internalRef:x}=S,T=Ve(S.props,Gae),I=fn(x,_==null?void 0:_.ref,t.ref),R=s?s(T):{},P=z({},a,R),C=E,O=_h(y,z({},e==="root",!h[e]&&d,T,C&&{as:C},{ref:I}),P);return Object.keys(R).forEach(j=>{delete O[j]}),[y,O]}function Qae(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:s,in:d,onExited:f,timeout:u}=e,[h,g]=p.useState(!1),y=Re(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),_={width:s,height:s,top:-(s/2)+o,left:-(s/2)+a},S=Re(r.child,h&&r.childLeaving,n&&r.childPulsate);return!d&&!h&&g(!0),p.useEffect(()=>{if(!d&&f!=null){const E=setTimeout(f,u);return()=>{clearTimeout(E)}}},[f,d,u]),A.jsx("span",{className:y,style:_,children:A.jsx("span",{className:S})})}const Si=Ot("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xae=["center","classes","className"];let jw=e=>e,VN,WN,HN,GN;const hk=550,Yae=80,Jae=uu(VN||(VN=jw` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),Zae=uu(WN||(WN=jw` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),eoe=uu(HN||(HN=jw` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),toe=he("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),roe=he(Qae,{name:"MuiTouchRipple",slot:"Ripple"})(GN||(GN=jw` - 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; - } -`),Si.rippleVisible,Jae,hk,({theme:e})=>e.transitions.easing.easeInOut,Si.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Si.child,Si.childLeaving,Zae,hk,({theme:e})=>e.transitions.easing.easeInOut,Si.childPulsate,eoe,({theme:e})=>e.transitions.easing.easeInOut),noe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:s}=n,d=Ve(n,Xae),[f,u]=p.useState([]),h=p.useRef(0),g=p.useRef(null);p.useEffect(()=>{g.current&&(g.current(),g.current=null)},[f]);const y=p.useRef(!1),_=Jd(),S=p.useRef(null),E=p.useRef(null),x=p.useCallback(P=>{const{pulsate:C,rippleX:O,rippleY:j,rippleSize:k,cb:M}=P;u($=>[...$,A.jsx(roe,{classes:{ripple:Re(o.ripple,Si.ripple),rippleVisible:Re(o.rippleVisible,Si.rippleVisible),ripplePulsate:Re(o.ripplePulsate,Si.ripplePulsate),child:Re(o.child,Si.child),childLeaving:Re(o.childLeaving,Si.childLeaving),childPulsate:Re(o.childPulsate,Si.childPulsate)},timeout:hk,pulsate:C,rippleX:O,rippleY:j,rippleSize:k},h.current)]),h.current+=1,g.current=M},[o]),T=p.useCallback((P={},C={},O=()=>{})=>{const{pulsate:j=!1,center:k=a||C.pulsate,fakeElement:M=!1}=C;if((P==null?void 0:P.type)==="mousedown"&&y.current){y.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(y.current=!0);const $=M?null:E.current,N=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,q,V;if(k||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)B=Math.round(N.width/2),q=Math.round(N.height/2);else{const{clientX:G,clientY:Y}=P.touches&&P.touches.length>0?P.touches[0]:P;B=Math.round(G-N.left),q=Math.round(Y-N.top)}if(k)V=Math.sqrt((2*N.width**2+N.height**2)/3),V%2===0&&(V+=1);else{const G=Math.max(Math.abs(($?$.clientWidth:0)-B),B)*2+2,Y=Math.max(Math.abs(($?$.clientHeight:0)-q),q)*2+2;V=Math.sqrt(G**2+Y**2)}P!=null&&P.touches?S.current===null&&(S.current=()=>{x({pulsate:j,rippleX:B,rippleY:q,rippleSize:V,cb:O})},_.start(Yae,()=>{S.current&&(S.current(),S.current=null)})):x({pulsate:j,rippleX:B,rippleY:q,rippleSize:V,cb:O})},[a,x,_]),I=p.useCallback(()=>{T({},{pulsate:!0})},[T]),R=p.useCallback((P,C)=>{if(_.clear(),(P==null?void 0:P.type)==="touchend"&&S.current){S.current(),S.current=null,_.start(0,()=>{R(P,C)});return}S.current=null,u(O=>O.length>0?O.slice(1):O),g.current=C},[_]);return p.useImperativeHandle(r,()=>({pulsate:I,start:T,stop:R}),[I,T,R]),A.jsx(toe,z({className:Re(Si.root,o.root,s),ref:E},d,{children:A.jsx(sT,{component:null,exit:!0,children:f})}))});function aoe(e){return wt("MuiButtonBase",e)}const ooe=Ot("MuiButtonBase",["root","disabled","focusVisible"]),ioe=["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"],soe=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,s=St({root:["root",t&&"disabled",r&&"focusVisible"]},aoe,a);return r&&n&&(s.root+=` ${n}`),s},loe=he("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"},[`&.${ooe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),cu=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:s,className:d,component:f="button",disabled:u=!1,disableRipple:h=!1,disableTouchRipple:g=!1,focusRipple:y=!1,LinkComponent:_="a",onBlur:S,onClick:E,onContextMenu:x,onDragLeave:T,onFocus:I,onFocusVisible:R,onKeyDown:P,onKeyUp:C,onMouseDown:O,onMouseLeave:j,onMouseUp:k,onTouchEnd:M,onTouchMove:$,onTouchStart:N,tabIndex:B=0,TouchRippleProps:q,touchRippleRef:V,type:G}=n,Y=Ve(n,ioe),X=p.useRef(null),H=p.useRef(null),te=fn(H,V),{isFocusVisibleRef:ne,onFocus:K,onBlur:ee,ref:Ce}=kw(),[se,Se]=p.useState(!1);u&&se&&Se(!1),p.useImperativeHandle(a,()=>({focusVisible:()=>{Se(!0),X.current.focus()}}),[]);const[me,we]=p.useState(!1);p.useEffect(()=>{we(!0)},[]);const Oe=me&&!h&&!u;p.useEffect(()=>{se&&y&&!h&&me&&H.current.pulsate()},[h,y,se,me]);function ie(it,Dt,Zt=g){return to(Kt=>(Dt&&Dt(Kt),!Zt&&H.current&&H.current[it](Kt),!0))}const Fe=ie("start",O),ke=ie("stop",x),$e=ie("stop",T),Te=ie("stop",k),Be=ie("stop",it=>{se&&it.preventDefault(),j&&j(it)}),Le=ie("start",N),dt=ie("stop",M),He=ie("stop",$),Z=ie("stop",it=>{ee(it),ne.current===!1&&Se(!1),S&&S(it)},!1),ae=to(it=>{X.current||(X.current=it.currentTarget),K(it),ne.current===!0&&(Se(!0),R&&R(it)),I&&I(it)}),fe=()=>{const it=X.current;return f&&f!=="button"&&!(it.tagName==="A"&&it.href)},ve=p.useRef(!1),be=to(it=>{y&&!ve.current&&se&&H.current&&it.key===" "&&(ve.current=!0,H.current.stop(it,()=>{H.current.start(it)})),it.target===it.currentTarget&&fe()&&it.key===" "&&it.preventDefault(),P&&P(it),it.target===it.currentTarget&&fe()&&it.key==="Enter"&&!u&&(it.preventDefault(),E&&E(it))}),_e=to(it=>{y&&it.key===" "&&H.current&&se&&!it.defaultPrevented&&(ve.current=!1,H.current.stop(it,()=>{H.current.pulsate(it)})),C&&C(it),E&&it.target===it.currentTarget&&fe()&&it.key===" "&&!it.defaultPrevented&&E(it)});let De=f;De==="button"&&(Y.href||Y.to)&&(De=_);const Ge={};De==="button"?(Ge.type=G===void 0?"button":G,Ge.disabled=u):(!Y.href&&!Y.to&&(Ge.role="button"),u&&(Ge["aria-disabled"]=u));const Mt=fn(r,Ce,X),et=z({},n,{centerRipple:o,component:f,disabled:u,disableRipple:h,disableTouchRipple:g,focusRipple:y,tabIndex:B,focusVisible:se}),ot=soe(et);return A.jsxs(loe,z({as:De,className:Re(ot.root,d),ownerState:et,onBlur:Z,onClick:E,onContextMenu:ke,onFocus:ae,onKeyDown:be,onKeyUp:_e,onMouseDown:Fe,onMouseLeave:Be,onMouseUp:Te,onDragLeave:$e,onTouchEnd:dt,onTouchMove:He,onTouchStart:Le,ref:Mt,tabIndex:u?-1:B,type:G},Ge,Y,{children:[s,Oe?A.jsx(noe,z({ref:te,center:o},q)):null]}))});function uoe(e){return wt("MuiIconButton",e)}const coe=Ot("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),doe=["edge","children","className","color","disabled","disableFocusRipple","size"],foe=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,s={root:["root",r&&"disabled",n!=="default"&&`color${Ue(n)}`,a&&`edge${Ue(a)}`,`size${Ue(o)}`]};return St(s,uoe,t)},poe=he(cu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Ue(r.color)}`],r.edge&&t[`edge${Ue(r.edge)}`],t[`size${Ue(r.size)}`]]}})(({theme:e,ownerState:t})=>z({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})`:ir.alpha(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 z({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&z({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":z({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ir.alpha(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)},{[`&.${coe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),_n=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:s,color:d="default",disabled:f=!1,disableFocusRipple:u=!1,size:h="medium"}=n,g=Ve(n,doe),y=z({},n,{edge:a,color:d,disabled:f,disableFocusRipple:u,size:h}),_=foe(y);return A.jsx(poe,z({className:Re(_.root,s),centerRipple:!0,focusRipple:!u,disabled:f,ref:r},g,{ownerState:y,children:o}))});function hoe(e){return wt("MuiTypography",e)}Ot("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const voe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],moe=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:s}=e,d={root:["root",o,e.align!=="inherit"&&`align${Ue(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return St(d,hoe,s)},goe=he("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${Ue(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>z({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})),KN={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yoe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},boe=e=>yoe[e]||e,nr=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTypography"}),a=boe(n.color),o=Pw(z({},n,{color:a})),{align:s="inherit",className:d,component:f,gutterBottom:u=!1,noWrap:h=!1,paragraph:g=!1,variant:y="body1",variantMapping:_=KN}=o,S=Ve(o,voe),E=z({},o,{align:s,color:a,className:d,component:f,gutterBottom:u,noWrap:h,paragraph:g,variant:y,variantMapping:_}),x=f||(g?"p":_[y]||KN[y])||"span",T=moe(E);return A.jsx(goe,z({as:x,ref:r,ownerState:E,className:Re(T.root,d)},S))});function _oe(e){return wt("MuiAppBar",e)}Ot("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const xoe=["className","color","enableColorOnDark","position"],woe=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${Ue(t)}`,`position${Ue(r)}`]};return St(a,_oe,n)},N_=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Soe=he(zc,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Ue(r.position)}`],t[`color${Ue(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return z({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&&z({},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"&&z({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&z({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:N_(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:N_(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:N_(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:N_(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"}))}),Eoe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:s=!1,position:d="fixed"}=n,f=Ve(n,xoe),u=z({},n,{color:o,position:d,enableColorOnDark:s}),h=woe(u);return A.jsx(Soe,z({square:!0,component:"header",ownerState:u,elevation:4,className:Re(h.root,a,d==="fixed"&&"mui-fixed"),ref:r},f))});var og={},QN;function Coe(){if(QN)return og;QN=1,Object.defineProperty(og,"__esModule",{value:!0}),og.default=void 0;var e=n(Nx()),t=D6;function r(s){if(typeof WeakMap!="function")return null;var d=new WeakMap,f=new WeakMap;return(r=function(u){return u?f:d})(s)}function n(s,d){if(s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var f=r(d);if(f&&f.has(s))return f.get(s);var u={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in s)if(g!=="default"&&Object.prototype.hasOwnProperty.call(s,g)){var y=h?Object.getOwnPropertyDescriptor(s,g):null;y&&(y.get||y.set)?Object.defineProperty(u,g,y):u[g]=s[g]}return u.default=s,f&&f.set(s,u),u}function a(s){return Object.keys(s).length===0}function o(s=null){const d=e.useContext(t.ThemeContext);return!d||a(d)?s:d}return og.default=o,og}var Ooe=Coe();const Poe=tt(Ooe);var Po="top",Mi="bottom",Fi="right",Ro="left",uT="auto",t0=[Po,Mi,Fi,Ro],ov="start",wb="end",Roe="clippingParents",z6="viewport",ig="popper",koe="reference",XN=t0.reduce(function(e,t){return e.concat([t+"-"+ov,t+"-"+wb])},[]),q6=[].concat(t0,[uT]).reduce(function(e,t){return e.concat([t,t+"-"+ov,t+"-"+wb])},[]),Ioe="beforeRead",joe="read",Toe="afterRead",Aoe="beforeMain",Moe="main",Foe="afterMain",$oe="beforeWrite",Loe="write",Doe="afterWrite",Noe=[Ioe,joe,Toe,Aoe,Moe,Foe,$oe,Loe,Doe];function ol(e){return e?(e.nodeName||"").toLowerCase():null}function Jo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wf(e){var t=Jo(e).Element;return e instanceof t||e instanceof Element}function Ii(e){var t=Jo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function cT(e){if(typeof ShadowRoot>"u")return!1;var t=Jo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Boe(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Ii(o)||!ol(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(s){var d=a[s];d===!1?o.removeAttribute(s):o.setAttribute(s,d===!0?"":d)}))})}function zoe(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),d=s.reduce(function(f,u){return f[u]="",f},{});!Ii(a)||!ol(a)||(Object.assign(a.style,d),Object.keys(o).forEach(function(f){a.removeAttribute(f)}))})}}const qoe={name:"applyStyles",enabled:!0,phase:"write",fn:Boe,effect:zoe,requires:["computeStyles"]};function nl(e){return e.split("-")[0]}var pf=Math.max,Y1=Math.min,iv=Math.round;function vk(){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 U6(){return!/^((?!chrome|android).)*safari/i.test(vk())}function sv(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Ii(e)&&(a=e.offsetWidth>0&&iv(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&iv(n.height)/e.offsetHeight||1);var s=wf(e)?Jo(e):window,d=s.visualViewport,f=!U6()&&r,u=(n.left+(f&&d?d.offsetLeft:0))/a,h=(n.top+(f&&d?d.offsetTop:0))/o,g=n.width/a,y=n.height/o;return{width:g,height:y,top:h,right:u+g,bottom:h+y,left:u,x:u,y:h}}function dT(e){var t=sv(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 V6(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&cT(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function au(e){return Jo(e).getComputedStyle(e)}function Uoe(e){return["table","td","th"].indexOf(ol(e))>=0}function qc(e){return((wf(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tw(e){return ol(e)==="html"?e:e.assignedSlot||e.parentNode||(cT(e)?e.host:null)||qc(e)}function YN(e){return!Ii(e)||au(e).position==="fixed"?null:e.offsetParent}function Voe(e){var t=/firefox/i.test(vk()),r=/Trident/i.test(vk());if(r&&Ii(e)){var n=au(e);if(n.position==="fixed")return null}var a=Tw(e);for(cT(a)&&(a=a.host);Ii(a)&&["html","body"].indexOf(ol(a))<0;){var o=au(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function r0(e){for(var t=Jo(e),r=YN(e);r&&Uoe(r)&&au(r).position==="static";)r=YN(r);return r&&(ol(r)==="html"||ol(r)==="body"&&au(r).position==="static")?t:r||Voe(e)||t}function fT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jy(e,t,r){return pf(e,Y1(t,r))}function Woe(e,t,r){var n=Jy(e,t,r);return n>r?r:n}function W6(){return{top:0,right:0,bottom:0,left:0}}function H6(e){return Object.assign({},W6(),e)}function G6(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Hoe=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,H6(typeof t!="number"?t:G6(t,t0))};function Goe(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,d=nl(r.placement),f=fT(d),u=[Ro,Fi].indexOf(d)>=0,h=u?"height":"width";if(!(!o||!s)){var g=Hoe(a.padding,r),y=dT(o),_=f==="y"?Po:Ro,S=f==="y"?Mi:Fi,E=r.rects.reference[h]+r.rects.reference[f]-s[f]-r.rects.popper[h],x=s[f]-r.rects.reference[f],T=r0(o),I=T?f==="y"?T.clientHeight||0:T.clientWidth||0:0,R=E/2-x/2,P=g[_],C=I-y[h]-g[S],O=I/2-y[h]/2+R,j=Jy(P,O,C),k=f;r.modifiersData[n]=(t={},t[k]=j,t.centerOffset=j-O,t)}}function Koe(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||V6(t.elements.popper,a)&&(t.elements.arrow=a))}const Qoe={name:"arrow",enabled:!0,phase:"main",fn:Goe,effect:Koe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function lv(e){return e.split("-")[1]}var Xoe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yoe(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:iv(r*a)/a||0,y:iv(n*a)/a||0}}function JN(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,d=e.position,f=e.gpuAcceleration,u=e.adaptive,h=e.roundOffsets,g=e.isFixed,y=s.x,_=y===void 0?0:y,S=s.y,E=S===void 0?0:S,x=typeof h=="function"?h({x:_,y:E}):{x:_,y:E};_=x.x,E=x.y;var T=s.hasOwnProperty("x"),I=s.hasOwnProperty("y"),R=Ro,P=Po,C=window;if(u){var O=r0(r),j="clientHeight",k="clientWidth";if(O===Jo(r)&&(O=qc(r),au(O).position!=="static"&&d==="absolute"&&(j="scrollHeight",k="scrollWidth")),O=O,a===Po||(a===Ro||a===Fi)&&o===wb){P=Mi;var M=g&&O===C&&C.visualViewport?C.visualViewport.height:O[j];E-=M-n.height,E*=f?1:-1}if(a===Ro||(a===Po||a===Mi)&&o===wb){R=Fi;var $=g&&O===C&&C.visualViewport?C.visualViewport.width:O[k];_-=$-n.width,_*=f?1:-1}}var N=Object.assign({position:d},u&&Xoe),B=h===!0?Yoe({x:_,y:E},Jo(r)):{x:_,y:E};if(_=B.x,E=B.y,f){var q;return Object.assign({},N,(q={},q[P]=I?"0":"",q[R]=T?"0":"",q.transform=(C.devicePixelRatio||1)<=1?"translate("+_+"px, "+E+"px)":"translate3d("+_+"px, "+E+"px, 0)",q))}return Object.assign({},N,(t={},t[P]=I?E+"px":"",t[R]=T?_+"px":"",t.transform="",t))}function Joe(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,d=r.roundOffsets,f=d===void 0?!0:d,u={placement:nl(t.placement),variation:lv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,JN(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,JN(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Zoe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Joe,data:{}};var B_={passive:!0};function eie(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,s=n.resize,d=s===void 0?!0:s,f=Jo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(h){h.addEventListener("scroll",r.update,B_)}),d&&f.addEventListener("resize",r.update,B_),function(){o&&u.forEach(function(h){h.removeEventListener("scroll",r.update,B_)}),d&&f.removeEventListener("resize",r.update,B_)}}const tie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eie,data:{}};var rie={left:"right",right:"left",bottom:"top",top:"bottom"};function d1(e){return e.replace(/left|right|bottom|top/g,function(t){return rie[t]})}var nie={start:"end",end:"start"};function ZN(e){return e.replace(/start|end/g,function(t){return nie[t]})}function pT(e){var t=Jo(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function hT(e){return sv(qc(e)).left+pT(e).scrollLeft}function aie(e,t){var r=Jo(e),n=qc(e),a=r.visualViewport,o=n.clientWidth,s=n.clientHeight,d=0,f=0;if(a){o=a.width,s=a.height;var u=U6();(u||!u&&t==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}return{width:o,height:s,x:d+hT(e),y:f}}function oie(e){var t,r=qc(e),n=pT(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=pf(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=pf(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-n.scrollLeft+hT(e),f=-n.scrollTop;return au(a||r).direction==="rtl"&&(d+=pf(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:d,y:f}}function vT(e){var t=au(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function K6(e){return["html","body","#document"].indexOf(ol(e))>=0?e.ownerDocument.body:Ii(e)&&vT(e)?e:K6(Tw(e))}function Zy(e,t){var r;t===void 0&&(t=[]);var n=K6(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Jo(n),s=a?[o].concat(o.visualViewport||[],vT(n)?n:[]):n,d=t.concat(s);return a?d:d.concat(Zy(Tw(s)))}function mk(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function iie(e,t){var r=sv(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 e3(e,t,r){return t===z6?mk(aie(e,r)):wf(t)?iie(t,r):mk(oie(qc(e)))}function sie(e){var t=Zy(Tw(e)),r=["absolute","fixed"].indexOf(au(e).position)>=0,n=r&&Ii(e)?r0(e):e;return wf(n)?t.filter(function(a){return wf(a)&&V6(a,n)&&ol(a)!=="body"}):[]}function lie(e,t,r,n){var a=t==="clippingParents"?sie(e):[].concat(t),o=[].concat(a,[r]),s=o[0],d=o.reduce(function(f,u){var h=e3(e,u,n);return f.top=pf(h.top,f.top),f.right=Y1(h.right,f.right),f.bottom=Y1(h.bottom,f.bottom),f.left=pf(h.left,f.left),f},e3(e,s,n));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function Q6(e){var t=e.reference,r=e.element,n=e.placement,a=n?nl(n):null,o=n?lv(n):null,s=t.x+t.width/2-r.width/2,d=t.y+t.height/2-r.height/2,f;switch(a){case Po:f={x:s,y:t.y-r.height};break;case Mi:f={x:s,y:t.y+t.height};break;case Fi:f={x:t.x+t.width,y:d};break;case Ro:f={x:t.x-r.width,y:d};break;default:f={x:t.x,y:t.y}}var u=a?fT(a):null;if(u!=null){var h=u==="y"?"height":"width";switch(o){case ov:f[u]=f[u]-(t[h]/2-r[h]/2);break;case wb:f[u]=f[u]+(t[h]/2-r[h]/2);break}}return f}function Sb(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,d=r.boundary,f=d===void 0?Roe:d,u=r.rootBoundary,h=u===void 0?z6:u,g=r.elementContext,y=g===void 0?ig:g,_=r.altBoundary,S=_===void 0?!1:_,E=r.padding,x=E===void 0?0:E,T=H6(typeof x!="number"?x:G6(x,t0)),I=y===ig?koe:ig,R=e.rects.popper,P=e.elements[S?I:y],C=lie(wf(P)?P:P.contextElement||qc(e.elements.popper),f,h,s),O=sv(e.elements.reference),j=Q6({reference:O,element:R,placement:a}),k=mk(Object.assign({},R,j)),M=y===ig?k:O,$={top:C.top-M.top+T.top,bottom:M.bottom-C.bottom+T.bottom,left:C.left-M.left+T.left,right:M.right-C.right+T.right},N=e.modifiersData.offset;if(y===ig&&N){var B=N[a];Object.keys($).forEach(function(q){var V=[Fi,Mi].indexOf(q)>=0?1:-1,G=[Po,Mi].indexOf(q)>=0?"y":"x";$[q]+=B[G]*V})}return $}function uie(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,s=r.padding,d=r.flipVariations,f=r.allowedAutoPlacements,u=f===void 0?q6:f,h=lv(n),g=h?d?XN:XN.filter(function(S){return lv(S)===h}):t0,y=g.filter(function(S){return u.indexOf(S)>=0});y.length===0&&(y=g);var _=y.reduce(function(S,E){return S[E]=Sb(e,{placement:E,boundary:a,rootBoundary:o,padding:s})[nl(E)],S},{});return Object.keys(_).sort(function(S,E){return _[S]-_[E]})}function cie(e){if(nl(e)===uT)return[];var t=d1(e);return[ZN(e),t,ZN(t)]}function die(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,d=s===void 0?!0:s,f=r.fallbackPlacements,u=r.padding,h=r.boundary,g=r.rootBoundary,y=r.altBoundary,_=r.flipVariations,S=_===void 0?!0:_,E=r.allowedAutoPlacements,x=t.options.placement,T=nl(x),I=T===x,R=f||(I||!S?[d1(x)]:cie(x)),P=[x].concat(R).reduce(function(se,Se){return se.concat(nl(Se)===uT?uie(t,{placement:Se,boundary:h,rootBoundary:g,padding:u,flipVariations:S,allowedAutoPlacements:E}):Se)},[]),C=t.rects.reference,O=t.rects.popper,j=new Map,k=!0,M=P[0],$=0;$=0,G=V?"width":"height",Y=Sb(t,{placement:N,boundary:h,rootBoundary:g,altBoundary:y,padding:u}),X=V?q?Fi:Ro:q?Mi:Po;C[G]>O[G]&&(X=d1(X));var H=d1(X),te=[];if(o&&te.push(Y[B]<=0),d&&te.push(Y[X]<=0,Y[H]<=0),te.every(function(se){return se})){M=N,k=!1;break}j.set(N,te)}if(k)for(var ne=S?3:1,K=function(Se){var me=P.find(function(we){var Oe=j.get(we);if(Oe)return Oe.slice(0,Se).every(function(ie){return ie})});if(me)return M=me,"break"},ee=ne;ee>0;ee--){var Ce=K(ee);if(Ce==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const fie={name:"flip",enabled:!0,phase:"main",fn:die,requiresIfExists:["offset"],data:{_skip:!1}};function t3(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 r3(e){return[Po,Fi,Mi,Ro].some(function(t){return e[t]>=0})}function pie(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=Sb(t,{elementContext:"reference"}),d=Sb(t,{altBoundary:!0}),f=t3(s,n),u=t3(d,a,o),h=r3(f),g=r3(u);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:u,isReferenceHidden:h,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":g})}const hie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pie};function vie(e,t,r){var n=nl(e),a=[Ro,Po].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],d=o[1];return s=s||0,d=(d||0)*a,[Ro,Fi].indexOf(n)>=0?{x:d,y:s}:{x:s,y:d}}function mie(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,s=q6.reduce(function(h,g){return h[g]=vie(g,t.rects,o),h},{}),d=s[t.placement],f=d.x,u=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}const gie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mie};function yie(e){var t=e.state,r=e.name;t.modifiersData[r]=Q6({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const bie={name:"popperOffsets",enabled:!0,phase:"read",fn:yie,data:{}};function _ie(e){return e==="x"?"y":"x"}function xie(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,d=s===void 0?!1:s,f=r.boundary,u=r.rootBoundary,h=r.altBoundary,g=r.padding,y=r.tether,_=y===void 0?!0:y,S=r.tetherOffset,E=S===void 0?0:S,x=Sb(t,{boundary:f,rootBoundary:u,padding:g,altBoundary:h}),T=nl(t.placement),I=lv(t.placement),R=!I,P=fT(T),C=_ie(P),O=t.modifiersData.popperOffsets,j=t.rects.reference,k=t.rects.popper,M=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,$=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(O){if(o){var q,V=P==="y"?Po:Ro,G=P==="y"?Mi:Fi,Y=P==="y"?"height":"width",X=O[P],H=X+x[V],te=X-x[G],ne=_?-k[Y]/2:0,K=I===ov?j[Y]:k[Y],ee=I===ov?-k[Y]:-j[Y],Ce=t.elements.arrow,se=_&&Ce?dT(Ce):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:W6(),me=Se[V],we=Se[G],Oe=Jy(0,j[Y],se[Y]),ie=R?j[Y]/2-ne-Oe-me-$.mainAxis:K-Oe-me-$.mainAxis,Fe=R?-j[Y]/2+ne+Oe+we+$.mainAxis:ee+Oe+we+$.mainAxis,ke=t.elements.arrow&&r0(t.elements.arrow),$e=ke?P==="y"?ke.clientTop||0:ke.clientLeft||0:0,Te=(q=N==null?void 0:N[P])!=null?q:0,Be=X+ie-Te-$e,Le=X+Fe-Te,dt=Jy(_?Y1(H,Be):H,X,_?pf(te,Le):te);O[P]=dt,B[P]=dt-X}if(d){var He,Z=P==="x"?Po:Ro,ae=P==="x"?Mi:Fi,fe=O[C],ve=C==="y"?"height":"width",be=fe+x[Z],_e=fe-x[ae],De=[Po,Ro].indexOf(T)!==-1,Ge=(He=N==null?void 0:N[C])!=null?He:0,Mt=De?be:fe-j[ve]-k[ve]-Ge+$.altAxis,et=De?fe+j[ve]+k[ve]-Ge-$.altAxis:_e,ot=_&&De?Woe(Mt,fe,et):Jy(_?Mt:be,fe,_?et:_e);O[C]=ot,B[C]=ot-fe}t.modifiersData[n]=B}}const wie={name:"preventOverflow",enabled:!0,phase:"main",fn:xie,requiresIfExists:["offset"]};function Sie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Eie(e){return e===Jo(e)||!Ii(e)?pT(e):Sie(e)}function Cie(e){var t=e.getBoundingClientRect(),r=iv(t.width)/e.offsetWidth||1,n=iv(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Oie(e,t,r){r===void 0&&(r=!1);var n=Ii(t),a=Ii(t)&&Cie(t),o=qc(t),s=sv(e,a,r),d={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(n||!n&&!r)&&((ol(t)!=="body"||vT(o))&&(d=Eie(t)),Ii(t)?(f=sv(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=hT(o))),{x:s.left+d.scrollLeft-f.x,y:s.top+d.scrollTop-f.y,width:s.width,height:s.height}}function Pie(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(d){if(!r.has(d)){var f=t.get(d);f&&a(f)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function Rie(e){var t=Pie(e);return Noe.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function kie(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Iie(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var n3={placement:"bottom",modifiers:[],strategy:"absolute"};function a3(){for(var e=arguments.length,t=new Array(e),r=0;r{o||d(Mie(a)||document.body)},[a,o]),Yo(()=>{if(s&&!o)return G1(r,s),()=>{G1(r,null)}},[r,s,o]),o){if(p.isValidElement(n)){const u={ref:f};return p.cloneElement(n,u)}return A.jsx(p.Fragment,{children:n})}return A.jsx(p.Fragment,{children:s&&zx.createPortal(n,s)})});function Fie(e){return wt("MuiPopper",e)}Ot("MuiPopper",["root"]);const $ie=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Lie=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Die(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 gk(e){return typeof e=="function"?e():e}function Nie(e){return e.nodeType!==void 0}const Bie=e=>{const{classes:t}=e;return St({root:["root"]},Fie,t)},zie={},qie=p.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:s,disablePortal:d,modifiers:f,open:u,placement:h,popperOptions:g,popperRef:y,slotProps:_={},slots:S={},TransitionProps:E}=t,x=Ve(t,$ie),T=p.useRef(null),I=fn(T,r),R=p.useRef(null),P=fn(R,y),C=p.useRef(P);Yo(()=>{C.current=P},[P]),p.useImperativeHandle(y,()=>R.current,[]);const O=Die(h,s),[j,k]=p.useState(O),[M,$]=p.useState(gk(a));p.useEffect(()=>{R.current&&R.current.forceUpdate()}),p.useEffect(()=>{a&&$(gk(a))},[a]),Yo(()=>{if(!M||!u)return;const G=H=>{k(H.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:d}},{name:"flip",options:{altBoundary:d}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{G(H)}}];f!=null&&(Y=Y.concat(f)),g&&g.modifiers!=null&&(Y=Y.concat(g.modifiers));const X=Aie(M,T.current,z({placement:O},g,{modifiers:Y}));return C.current(X),()=>{X.destroy(),C.current(null)}},[M,d,f,u,g,O]);const N={placement:j};E!==null&&(N.TransitionProps=E);const B=Bie(t),q=(n=S.root)!=null?n:"div",V=Ai({elementType:q,externalSlotProps:_.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:I},ownerState:t,className:B.root});return A.jsx(q,z({},V,{children:typeof o=="function"?o(N):o}))}),Uie=p.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:s="ltr",disablePortal:d=!1,keepMounted:f=!1,modifiers:u,open:h,placement:g="bottom",popperOptions:y=zie,popperRef:_,style:S,transition:E=!1,slotProps:x={},slots:T={}}=t,I=Ve(t,Lie),[R,P]=p.useState(!0),C=()=>{P(!1)},O=()=>{P(!0)};if(!f&&!h&&(!E||R))return null;let j;if(o)j=o;else if(n){const $=gk(n);j=$&&Nie($)?Dn($).body:Dn(null).body}const k=!h&&f&&(!E||R)?"none":void 0,M=E?{in:h,onEnter:C,onExited:O}:void 0;return A.jsx(X6,{disablePortal:d,container:j,children:A.jsx(qie,z({anchorEl:n,direction:s,disablePortal:d,modifiers:u,ref:r,open:E?!R:h,placement:g,popperOptions:y,popperRef:_,slotProps:x,slots:T},I,{style:z({position:"fixed",top:0,left:0,display:k},S),TransitionProps:M,children:a}))})}),Vie=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Wie=he(Uie,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Y6=p.forwardRef(function(t,r){var n;const a=Poe(),o=Et({props:t,name:"MuiPopper"}),{anchorEl:s,component:d,components:f,componentsProps:u,container:h,disablePortal:g,keepMounted:y,modifiers:_,open:S,placement:E,popperOptions:x,popperRef:T,transition:I,slots:R,slotProps:P}=o,C=Ve(o,Vie),O=(n=R==null?void 0:R.root)!=null?n:f==null?void 0:f.Root,j=z({anchorEl:s,container:h,disablePortal:g,keepMounted:y,modifiers:_,open:S,placement:E,popperOptions:x,popperRef:T,transition:I},C);return A.jsx(Wie,z({as:d,direction:a==null?void 0:a.direction,slots:{root:O},slotProps:P??u},j,{ref:r}))}),Hie=["onChange","maxRows","minRows","style","value"];function z_(e){return parseInt(e,10)||0}const Gie={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Kie(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Qie=p.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:s,value:d}=t,f=Ve(t,Hie),{current:u}=p.useRef(d!=null),h=p.useRef(null),g=fn(r,h),y=p.useRef(null),_=p.useRef(null),S=p.useCallback(()=>{const T=h.current,R=Ti(T).getComputedStyle(T);if(R.width==="0px")return{outerHeightStyle:0,overflowing:!1};const P=_.current;P.style.width=R.width,P.value=T.value||t.placeholder||"x",P.value.slice(-1)===` -`&&(P.value+=" ");const C=R.boxSizing,O=z_(R.paddingBottom)+z_(R.paddingTop),j=z_(R.borderBottomWidth)+z_(R.borderTopWidth),k=P.scrollHeight;P.value="x";const M=P.scrollHeight;let $=k;o&&($=Math.max(Number(o)*M,$)),a&&($=Math.min(Number(a)*M,$)),$=Math.max($,M);const N=$+(C==="border-box"?O+j:0),B=Math.abs($-k)<=1;return{outerHeightStyle:N,overflowing:B}},[a,o,t.placeholder]),E=p.useCallback(()=>{const T=S();if(Kie(T))return;const I=T.outerHeightStyle,R=h.current;y.current!==I&&(y.current=I,R.style.height=`${I}px`),R.style.overflow=T.overflowing?"hidden":""},[S]);Yo(()=>{const T=()=>{E()};let I;const R=Cv(T),P=h.current,C=Ti(P);C.addEventListener("resize",R);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(T),O.observe(P)),()=>{R.clear(),cancelAnimationFrame(I),C.removeEventListener("resize",R),O&&O.disconnect()}},[S,E]),Yo(()=>{E()});const x=T=>{u||E(),n&&n(T)};return A.jsxs(p.Fragment,{children:[A.jsx("textarea",z({value:d,onChange:x,ref:g,rows:o,style:s},f)),A.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:_,tabIndex:-1,style:z({},Gie.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function du({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const Aw=p.createContext(void 0);function vs(){return p.useContext(Aw)}function J6(e){return A.jsx(Mre,z({},e,{defaultTheme:Iw,themeId:bf}))}function o3(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function J1(e,t=!1){return e&&(o3(e.value)&&e.value!==""||t&&o3(e.defaultValue)&&e.defaultValue!=="")}function Xie(e){return e.startAdornment}function Yie(e){return wt("MuiInputBase",e)}const uv=Ot("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Jie=["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"],Mw=(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${Ue(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Fw=(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]},Zie=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:s,formControl:d,fullWidth:f,hiddenLabel:u,multiline:h,readOnly:g,size:y,startAdornment:_,type:S}=e,E={root:["root",`color${Ue(r)}`,n&&"disabled",a&&"error",f&&"fullWidth",s&&"focused",d&&"formControl",y&&y!=="medium"&&`size${Ue(y)}`,h&&"multiline",_&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",g&&"readOnly"],input:["input",n&&"disabled",S==="search"&&"inputTypeSearch",h&&"inputMultiline",y==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",_&&"inputAdornedStart",o&&"inputAdornedEnd",g&&"readOnly"]};return St(E,Yie,t)},$w=he("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Mw})(({theme:e,ownerState:t})=>z({},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",[`&.${uv.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&z({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Lw=he("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Fw})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=z({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return z({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] + .${uv.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${uv.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"})}),ese=A.jsx(J6,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Dw=p.forwardRef(function(t,r){var n;const a=Et({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:d,className:f,components:u={},componentsProps:h={},defaultValue:g,disabled:y,disableInjectingGlobalStyles:_,endAdornment:S,fullWidth:E=!1,id:x,inputComponent:T="input",inputProps:I={},inputRef:R,maxRows:P,minRows:C,multiline:O=!1,name:j,onBlur:k,onChange:M,onClick:$,onFocus:N,onKeyDown:B,onKeyUp:q,placeholder:V,readOnly:G,renderSuffix:Y,rows:X,slotProps:H={},slots:te={},startAdornment:ne,type:K="text",value:ee}=a,Ce=Ve(a,Jie),se=I.value!=null?I.value:ee,{current:Se}=p.useRef(se!=null),me=p.useRef(),we=p.useCallback(ot=>{},[]),Oe=fn(me,R,I.ref,we),[ie,Fe]=p.useState(!1),ke=vs(),$e=du({props:a,muiFormControl:ke,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=ke?ke.focused:ie,p.useEffect(()=>{!ke&&y&&ie&&(Fe(!1),k&&k())},[ke,y,ie,k]);const Te=ke&&ke.onFilled,Be=ke&&ke.onEmpty,Le=p.useCallback(ot=>{J1(ot)?Te&&Te():Be&&Be()},[Te,Be]);Yo(()=>{Se&&Le({value:se})},[se,Le,Se]);const dt=ot=>{if($e.disabled){ot.stopPropagation();return}N&&N(ot),I.onFocus&&I.onFocus(ot),ke&&ke.onFocus?ke.onFocus(ot):Fe(!0)},He=ot=>{k&&k(ot),I.onBlur&&I.onBlur(ot),ke&&ke.onBlur?ke.onBlur(ot):Fe(!1)},Z=(ot,...it)=>{if(!Se){const Dt=ot.target||me.current;if(Dt==null)throw new Error(nu(1));Le({value:Dt.value})}I.onChange&&I.onChange(ot,...it),M&&M(ot,...it)};p.useEffect(()=>{Le(me.current)},[]);const ae=ot=>{me.current&&ot.currentTarget===ot.target&&me.current.focus(),$&&$(ot)};let fe=T,ve=I;O&&fe==="input"&&(X?ve=z({type:void 0,minRows:X,maxRows:X},ve):ve=z({type:void 0,maxRows:P,minRows:C},ve),fe=Qie);const be=ot=>{Le(ot.animationName==="mui-auto-fill-cancel"?me.current:{value:"x"})};p.useEffect(()=>{ke&&ke.setAdornedStart(!!ne)},[ke,ne]);const _e=z({},a,{color:$e.color||"primary",disabled:$e.disabled,endAdornment:S,error:$e.error,focused:$e.focused,formControl:ke,fullWidth:E,hiddenLabel:$e.hiddenLabel,multiline:O,size:$e.size,startAdornment:ne,type:K}),De=Zie(_e),Ge=te.root||u.Root||$w,Mt=H.root||h.root||{},et=te.input||u.Input||Lw;return ve=z({},ve,(n=H.input)!=null?n:h.input),A.jsxs(p.Fragment,{children:[!_&&ese,A.jsxs(Ge,z({},Mt,!xb(Ge)&&{ownerState:z({},_e,Mt.ownerState)},{ref:r,onClick:ae},Ce,{className:Re(De.root,Mt.className,f,G&&"MuiInputBase-readOnly"),children:[ne,A.jsx(Aw.Provider,{value:null,children:A.jsx(et,z({ownerState:_e,"aria-invalid":$e.error,"aria-describedby":o,autoComplete:s,autoFocus:d,defaultValue:g,disabled:$e.disabled,id:x,onAnimationStart:be,name:j,placeholder:V,readOnly:G,required:$e.required,rows:X,value:se,onKeyDown:B,onKeyUp:q,type:K},ve,!xb(et)&&{as:fe,ownerState:z({},_e,ve.ownerState)},{ref:Oe,className:Re(De.input,ve.className,G&&"MuiInputBase-readOnly"),onBlur:He,onChange:Z,onFocus:dt}))}),S,Y?Y(z({},$e,{startAdornment:ne})):null]}))]})});function tse(e){return wt("MuiInput",e)}const sg=z({},uv,Ot("MuiInput",["root","underline","input"]));function rse(e){return wt("MuiOutlinedInput",e)}const Xu=z({},uv,Ot("MuiOutlinedInput",["root","notchedOutline","input"]));function nse(e){return wt("MuiFilledInput",e)}const $d=z({},uv,Ot("MuiFilledInput",["root","underline","input"])),Z6=ti(A.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ase=ti(A.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 ose(e){return wt("MuiAvatar",e)}Ot("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const ise=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],sse=e=>{const{classes:t,variant:r,colorDefault:n}=e;return St({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},ose,t)},lse=he("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:z({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:z({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),use=he("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),cse=he(ase,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function dse({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=p.useState(!1);return p.useEffect(()=>{if(!r&&!n)return;o(!1);let s=!0;const d=new Image;return d.onload=()=>{s&&o("loaded")},d.onerror=()=>{s&&o("error")},d.crossOrigin=e,d.referrerPolicy=t,d.src=r,n&&(d.srcset=n),()=>{s=!1}},[e,t,r,n]),a}const Eb=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:s,component:d="div",slots:f={},slotProps:u={},imgProps:h,sizes:g,src:y,srcSet:_,variant:S="circular"}=n,E=Ve(n,ise);let x=null;const T=dse(z({},h,{src:y,srcSet:_})),I=y||_,R=I&&T!=="error",P=z({},n,{colorDefault:!R,component:d,variant:S}),C=sse(P),[O,j]=Kae("img",{className:C.img,elementType:use,externalForwardedProps:{slots:f,slotProps:{img:z({},h,u.img)}},additionalProps:{alt:a,src:y,srcSet:_,sizes:g},ownerState:P});return R?x=A.jsx(O,z({},j)):o||o===0?x=o:I&&a?x=a[0]:x=A.jsx(cse,{ownerState:P,className:C.fallback}),A.jsx(lse,z({as:d,ownerState:P,className:Re(C.root,s),ref:r},E,{children:x}))}),fse=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pse={entering:{opacity:1},entered:{opacity:1}},eU=p.forwardRef(function(t,r){const n=ei(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:d,easing:f,in:u,onEnter:h,onEntered:g,onEntering:y,onExit:_,onExited:S,onExiting:E,style:x,timeout:T=a,TransitionComponent:I=hs}=t,R=Ve(t,fse),P=p.useRef(null),C=fn(P,d.ref,r),O=V=>G=>{if(V){const Y=P.current;G===void 0?V(Y):V(Y,G)}},j=O(y),k=O((V,G)=>{lT(V);const Y=av({style:x,timeout:T,easing:f},{mode:"enter"});V.style.webkitTransition=n.transitions.create("opacity",Y),V.style.transition=n.transitions.create("opacity",Y),h&&h(V,G)}),M=O(g),$=O(E),N=O(V=>{const G=av({style:x,timeout:T,easing:f},{mode:"exit"});V.style.webkitTransition=n.transitions.create("opacity",G),V.style.transition=n.transitions.create("opacity",G),_&&_(V)}),B=O(S),q=V=>{o&&o(P.current,V)};return A.jsx(I,z({appear:s,in:u,nodeRef:P,onEnter:k,onEntered:M,onEntering:j,onExit:N,onExited:B,onExiting:$,addEndListener:q,timeout:T},R,{children:(V,G)=>p.cloneElement(d,z({style:z({opacity:0,visibility:V==="exited"&&!u?"hidden":void 0},pse[V],x,d.props.style),ref:C},G))}))});function hse(e){return wt("MuiBackdrop",e)}Ot("MuiBackdrop",["root","invisible"]);const vse=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],mse=e=>{const{classes:t,invisible:r}=e;return St({root:["root",r&&"invisible"]},hse,t)},gse=he("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>z({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"})),tU=p.forwardRef(function(t,r){var n,a,o;const s=Et({props:t,name:"MuiBackdrop"}),{children:d,className:f,component:u="div",components:h={},componentsProps:g={},invisible:y=!1,open:_,slotProps:S={},slots:E={},TransitionComponent:x=eU,transitionDuration:T}=s,I=Ve(s,vse),R=z({},s,{component:u,invisible:y}),P=mse(R),C=(n=S.root)!=null?n:g.root;return A.jsx(x,z({in:_,timeout:T},I,{children:A.jsx(gse,z({"aria-hidden":!0},C,{as:(a=(o=E.root)!=null?o:h.Root)!=null?a:u,className:Re(P.root,f,C==null?void 0:C.className),ownerState:z({},R,C==null?void 0:C.ownerState),classes:P,ref:r,children:d}))}))}),yse=Ot("MuiBox",["root"]),bse=Q1(),eo=Bre({themeId:bf,defaultTheme:bse,defaultClassName:yse.root,generateClassName:nT.generate});function _se(e){return wt("MuiButton",e)}const q_=Ot("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),xse=p.createContext({}),wse=p.createContext(void 0),Sse=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ese=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:s}=e,d={root:["root",o,`${o}${Ue(t)}`,`size${Ue(a)}`,`${o}Size${Ue(a)}`,`color${Ue(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ue(a)}`],endIcon:["icon","endIcon",`iconSize${Ue(a)}`]},f=St(d,_se,s);return z({},s,f)},rU=e=>z({},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}}),Cse=he(cu,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ue(r.color)}`],t[`size${Ue(r.size)}`],t[`${r.variant}Size${Ue(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return z({},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":z({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ir.alpha(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})`:ir.alpha(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})`:ir.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${q_.focusVisible}`]:z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${q_.disabled}`]:z({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 ${ir.alpha(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${q_.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${q_.disabled}`]:{boxShadow:"none"}}),Ose=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Ue(r.size)}`]]}})(({ownerState:e})=>z({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},rU(e))),Pse=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Ue(r.size)}`]]}})(({ownerState:e})=>z({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},rU(e))),Bn=p.forwardRef(function(t,r){const n=p.useContext(xse),a=p.useContext(wse),o=_b(n,t),s=Et({props:o,name:"MuiButton"}),{children:d,color:f="primary",component:u="button",className:h,disabled:g=!1,disableElevation:y=!1,disableFocusRipple:_=!1,endIcon:S,focusVisibleClassName:E,fullWidth:x=!1,size:T="medium",startIcon:I,type:R,variant:P="text"}=s,C=Ve(s,Sse),O=z({},s,{color:f,component:u,disabled:g,disableElevation:y,disableFocusRipple:_,fullWidth:x,size:T,type:R,variant:P}),j=Ese(O),k=I&&A.jsx(Ose,{className:j.startIcon,ownerState:O,children:I}),M=S&&A.jsx(Pse,{className:j.endIcon,ownerState:O,children:S}),$=a||"";return A.jsxs(Cse,z({ownerState:O,className:Re(n.className,j.root,h,$),component:u,disabled:g,focusRipple:!_,focusVisibleClassName:Re(j.focusVisible,E),ref:r,type:R},C,{classes:j,children:[k,d,M]}))});function Rse(e){return wt("MuiCard",e)}Ot("MuiCard",["root"]);const kse=["className","raised"],Ise=e=>{const{classes:t}=e;return St({root:["root"]},Rse,t)},jse=he(zc,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Rf=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,s=Ve(n,kse),d=z({},n,{raised:o}),f=Ise(d);return A.jsx(jse,z({className:Re(f.root,a),elevation:o?8:void 0,ref:r,ownerState:d},s))});function Tse(e){return wt("MuiCardActions",e)}Ot("MuiCardActions",["root","spacing"]);const Ase=["disableSpacing","className"],Mse=e=>{const{classes:t,disableSpacing:r}=e;return St({root:["root",!r&&"spacing"]},Tse,t)},Fse=he("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>z({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),nU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCardActions"}),{disableSpacing:a=!1,className:o}=n,s=Ve(n,Ase),d=z({},n,{disableSpacing:a}),f=Mse(d);return A.jsx(Fse,z({className:Re(f.root,o),ownerState:d,ref:r},s))});function $se(e){return wt("MuiCardContent",e)}Ot("MuiCardContent",["root"]);const Lse=["className","component"],Dse=e=>{const{classes:t}=e;return St({root:["root"]},$se,t)},Nse=he("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Ei=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,s=Ve(n,Lse),d=z({},n,{component:o}),f=Dse(d);return A.jsx(Nse,z({as:o,className:Re(f.root,a),ownerState:d,ref:r},s))});function Bse(e){return wt("MuiCardHeader",e)}const i3=Ot("MuiCardHeader",["root","avatar","action","content","title","subheader"]),zse=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],qse=e=>{const{classes:t}=e;return St({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Bse,t)},Use=he("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>z({[`& .${i3.title}`]:t.title,[`& .${i3.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),Vse=he("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Wse=he("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Hse=he("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Ld=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCardHeader"}),{action:a,avatar:o,className:s,component:d="div",disableTypography:f=!1,subheader:u,subheaderTypographyProps:h,title:g,titleTypographyProps:y}=n,_=Ve(n,zse),S=z({},n,{component:d,disableTypography:f}),E=qse(S);let x=g;x!=null&&x.type!==nr&&!f&&(x=A.jsx(nr,z({variant:o?"body2":"h5",className:E.title,component:"span",display:"block"},y,{children:x})));let T=u;return T!=null&&T.type!==nr&&!f&&(T=A.jsx(nr,z({variant:o?"body2":"body1",className:E.subheader,color:"text.secondary",component:"span",display:"block"},h,{children:T}))),A.jsxs(Use,z({className:Re(E.root,s),as:d,ref:r,ownerState:S},_,{children:[o&&A.jsx(Vse,{className:E.avatar,ownerState:S,children:o}),A.jsxs(Hse,{className:E.content,ownerState:S,children:[x,T]}),a&&A.jsx(Wse,{className:E.action,ownerState:S,children:a})]}))});function Gse(e){return wt("PrivateSwitchBase",e)}Ot("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Kse=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Qse=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${Ue(a)}`],input:["input"]};return St(o,Gse,t)},Xse=he(cu)(({ownerState:e})=>z({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Yse=he("input",{shouldForwardProp:wa})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),aU=p.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:s,defaultChecked:d,disabled:f,disableFocusRipple:u=!1,edge:h=!1,icon:g,id:y,inputProps:_,inputRef:S,name:E,onBlur:x,onChange:T,onFocus:I,readOnly:R,required:P=!1,tabIndex:C,type:O,value:j}=t,k=Ve(t,Kse),[M,$]=nv({controlled:a,default:!!d,name:"SwitchBase",state:"checked"}),N=vs(),B=te=>{I&&I(te),N&&N.onFocus&&N.onFocus(te)},q=te=>{x&&x(te),N&&N.onBlur&&N.onBlur(te)},V=te=>{if(te.nativeEvent.defaultPrevented)return;const ne=te.target.checked;$(ne),T&&T(te,ne)};let G=f;N&&typeof G>"u"&&(G=N.disabled);const Y=O==="checkbox"||O==="radio",X=z({},t,{checked:M,disabled:G,disableFocusRipple:u,edge:h}),H=Qse(X);return A.jsxs(Xse,z({component:"span",className:Re(H.root,s),centerRipple:!0,focusRipple:!u,disabled:G,tabIndex:null,role:void 0,onFocus:B,onBlur:q,ownerState:X,ref:r},k,{children:[A.jsx(Yse,z({autoFocus:n,checked:a,defaultChecked:d,className:H.input,disabled:G,id:Y?y:void 0,name:E,onChange:V,readOnly:R,ref:S,required:P,ownerState:X,tabIndex:C,type:O},O==="checkbox"&&j===void 0?{}:{value:j},_)),M?o:g]}))}),Jse=ti(A.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"),Zse=ti(A.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"),ele=ti(A.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 tle(e){return wt("MuiCheckbox",e)}const t2=Ot("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),rle=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],nle=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${Ue(n)}`,`size${Ue(a)}`]},s=St(o,tle,t);return z({},t,s)},ale=he(aU,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Ue(r.size)}`],r.color!=="default"&&t[`color${Ue(r.color)}`]]}})(({theme:e,ownerState:t})=>z({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})`:ir.alpha(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${t2.checked}, &.${t2.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${t2.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),ole=A.jsx(Zse,{}),ile=A.jsx(Jse,{}),sle=A.jsx(ele,{}),cv=p.forwardRef(function(t,r){var n,a;const o=Et({props:t,name:"MuiCheckbox"}),{checkedIcon:s=ole,color:d="primary",icon:f=ile,indeterminate:u=!1,indeterminateIcon:h=sle,inputProps:g,size:y="medium",className:_}=o,S=Ve(o,rle),E=u?h:f,x=u?h:s,T=z({},o,{color:d,indeterminate:u,size:y}),I=nle(T);return A.jsx(ale,z({type:"checkbox",inputProps:z({"data-indeterminate":u},g),icon:p.cloneElement(E,{fontSize:(n=E.props.fontSize)!=null?n:y}),checkedIcon:p.cloneElement(x,{fontSize:(a=x.props.fontSize)!=null?a:y}),ownerState:T,ref:r,className:Re(I.root,_)},S,{classes:I}))});function lle(e){return wt("MuiCircularProgress",e)}Ot("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ule=["className","color","disableShrink","size","style","thickness","value","variant"];let Nw=e=>e,s3,l3,u3,c3;const Yu=44,cle=uu(s3||(s3=Nw` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),dle=uu(l3||(l3=Nw` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),fle=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${Ue(n)}`],svg:["svg"],circle:["circle",`circle${Ue(r)}`,a&&"circleDisableShrink"]};return St(o,lle,t)},ple=he("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Ue(r.color)}`]]}})(({ownerState:e,theme:t})=>z({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"&&Pf(u3||(u3=Nw` - animation: ${0} 1.4s linear infinite; - `),cle)),hle=he("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),vle=he("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Ue(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>z({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&&Pf(c3||(c3=Nw` - animation: ${0} 1.4s ease-in-out infinite; - `),dle)),Ov=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:s=!1,size:d=40,style:f,thickness:u=3.6,value:h=0,variant:g="indeterminate"}=n,y=Ve(n,ule),_=z({},n,{color:o,disableShrink:s,size:d,thickness:u,value:h,variant:g}),S=fle(_),E={},x={},T={};if(g==="determinate"){const I=2*Math.PI*((Yu-u)/2);E.strokeDasharray=I.toFixed(3),T["aria-valuenow"]=Math.round(h),E.strokeDashoffset=`${((100-h)/100*I).toFixed(3)}px`,x.transform="rotate(-90deg)"}return A.jsx(ple,z({className:Re(S.root,a),style:z({width:d,height:d},x,f),ownerState:_,ref:r,role:"progressbar"},T,y,{children:A.jsx(hle,{className:S.svg,ownerState:_,viewBox:`${Yu/2} ${Yu/2} ${Yu} ${Yu}`,children:A.jsx(vle,{className:S.circle,style:E,ownerState:_,cx:Yu,cy:Yu,r:(Yu-u)/2,fill:"none",strokeWidth:u})})}))});function d3(e){return e.substring(2).toLowerCase()}function mle(e,t){return t.documentElement.clientWidth(setTimeout(()=>{f.current=!0},0),()=>{f.current=!1}),[]);const h=fn(t.ref,d),g=to(S=>{const E=u.current;u.current=!1;const x=Dn(d.current);if(!f.current||!d.current||"clientX"in S&&mle(S,x))return;if(s.current){s.current=!1;return}let T;S.composedPath?T=S.composedPath().indexOf(d.current)>-1:T=!x.documentElement.contains(S.target)||d.current.contains(S.target),!T&&(r||!E)&&a(S)}),y=S=>E=>{u.current=!0;const x=t.props[S];x&&x(E)},_={ref:h};return o!==!1&&(_[o]=y(o)),p.useEffect(()=>{if(o!==!1){const S=d3(o),E=Dn(d.current),x=()=>{s.current=!0};return E.addEventListener(S,g),E.addEventListener("touchmove",x),()=>{E.removeEventListener(S,g),E.removeEventListener("touchmove",x)}}},[g,o]),n!==!1&&(_[n]=y(n)),p.useEffect(()=>{if(n!==!1){const S=d3(n),E=Dn(d.current);return E.addEventListener(S,g),()=>{E.removeEventListener(S,g)}}},[g,n]),A.jsx(p.Fragment,{children:p.cloneElement(t,_)})}const ch=Fne({createStyledComponent:he("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Ue(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Et({props:e,name:"MuiContainer"})}),yle=(e,t)=>z({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),ble=e=>z({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}}),_le=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,d])=>{var f;n[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(f=d.palette)==null?void 0:f.mode}});let a=z({html:yle(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:z({margin:0},ble(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return o&&(a=[a,o]),a};function xle(e){const t=Et({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return A.jsxs(p.Fragment,{children:[A.jsx(J6,{styles:a=>_le(a,n)}),r]})}function wle(e){const t=Dn(e);return t.body===e?Ti(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function eb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function f3(e){return parseInt(Ti(e).getComputedStyle(e).paddingRight,10)||0}function Sle(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 p3(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,s=>{const d=o.indexOf(s)===-1,f=!Sle(s);d&&f&&eb(s,a)})}function r2(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function Ele(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(wle(n)){const s=k6(Dn(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${f3(n)+s}px`;const d=Dn(n).querySelectorAll(".mui-fixed");[].forEach.call(d,f=>{r.push({value:f.style.paddingRight,property:"padding-right",el:f}),f.style.paddingRight=`${f3(f)+s}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Dn(n).body;else{const s=n.parentElement,d=Ti(n);o=(s==null?void 0:s.nodeName)==="HTML"&&d.getComputedStyle(s).overflowY==="scroll"?s:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:s,property:d})=>{o?s.style.setProperty(d,o):s.style.removeProperty(d)})}}function Cle(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Ole{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&&eb(t.modalRef,!1);const a=Cle(r);p3(r,t.mount,t.modalRef,a,!0);const o=r2(this.containers,s=>s.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=r2(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=Ele(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=r2(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&eb(t.modalRef,r),p3(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&eb(s.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Ple=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Rle(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 kle(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 Ile(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||kle(e))}function jle(e){const t=[],r=[];return Array.from(e.querySelectorAll(Ple)).forEach((n,a)=>{const o=Rle(n);o===-1||!Ile(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function Tle(){return!0}function Ale(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=jle,isEnabled:s=Tle,open:d}=e,f=p.useRef(!1),u=p.useRef(null),h=p.useRef(null),g=p.useRef(null),y=p.useRef(null),_=p.useRef(!1),S=p.useRef(null),E=fn(t.ref,S),x=p.useRef(null);p.useEffect(()=>{!d||!S.current||(_.current=!r)},[r,d]),p.useEffect(()=>{if(!d||!S.current)return;const R=Dn(S.current);return S.current.contains(R.activeElement)||(S.current.hasAttribute("tabIndex")||S.current.setAttribute("tabIndex","-1"),_.current&&S.current.focus()),()=>{a||(g.current&&g.current.focus&&(f.current=!0,g.current.focus()),g.current=null)}},[d]),p.useEffect(()=>{if(!d||!S.current)return;const R=Dn(S.current),P=j=>{x.current=j,!(n||!s()||j.key!=="Tab")&&R.activeElement===S.current&&j.shiftKey&&(f.current=!0,h.current&&h.current.focus())},C=()=>{const j=S.current;if(j===null)return;if(!R.hasFocus()||!s()||f.current){f.current=!1;return}if(j.contains(R.activeElement)||n&&R.activeElement!==u.current&&R.activeElement!==h.current)return;if(R.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!_.current)return;let k=[];if((R.activeElement===u.current||R.activeElement===h.current)&&(k=o(S.current)),k.length>0){var M,$;const N=!!((M=x.current)!=null&&M.shiftKey&&(($=x.current)==null?void 0:$.key)==="Tab"),B=k[0],q=k[k.length-1];typeof B!="string"&&typeof q!="string"&&(N?q.focus():B.focus())}else j.focus()};R.addEventListener("focusin",C),R.addEventListener("keydown",P,!0);const O=setInterval(()=>{R.activeElement&&R.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(O),R.removeEventListener("focusin",C),R.removeEventListener("keydown",P,!0)}},[r,n,a,s,d,o]);const T=R=>{g.current===null&&(g.current=R.relatedTarget),_.current=!0,y.current=R.target;const P=t.props.onFocus;P&&P(R)},I=R=>{g.current===null&&(g.current=R.relatedTarget),_.current=!0};return A.jsxs(p.Fragment,{children:[A.jsx("div",{tabIndex:d?0:-1,onFocus:I,ref:u,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:E,onFocus:T}),A.jsx("div",{tabIndex:d?0:-1,onFocus:I,ref:h,"data-testid":"sentinelEnd"})]})}function Mle(e){return typeof e=="function"?e():e}function Fle(e){return e?e.props.hasOwnProperty("in"):!1}const $le=new Ole;function Lle(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=$le,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:d,children:f,onClose:u,open:h,rootRef:g}=e,y=p.useRef({}),_=p.useRef(null),S=p.useRef(null),E=fn(S,g),[x,T]=p.useState(!h),I=Fle(f);let R=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(R=!1);const P=()=>Dn(_.current),C=()=>(y.current.modalRef=S.current,y.current.mount=_.current,y.current),O=()=>{a.mount(C(),{disableScrollLock:n}),S.current&&(S.current.scrollTop=0)},j=to(()=>{const Y=Mle(t)||P().body;a.add(C(),Y),S.current&&O()}),k=p.useCallback(()=>a.isTopModal(C()),[a]),M=to(Y=>{_.current=Y,Y&&(h&&k()?O():S.current&&eb(S.current,R))}),$=p.useCallback(()=>{a.remove(C(),R)},[R,a]);p.useEffect(()=>()=>{$()},[$]),p.useEffect(()=>{h?j():(!I||!o)&&$()},[h,$,I,o,j]);const N=Y=>X=>{var H;(H=Y.onKeyDown)==null||H.call(Y,X),!(X.key!=="Escape"||X.which===229||!k())&&(r||(X.stopPropagation(),u&&u(X,"escapeKeyDown")))},B=Y=>X=>{var H;(H=Y.onClick)==null||H.call(Y,X),X.target===X.currentTarget&&u&&u(X,"backdropClick")};return{getRootProps:(Y={})=>{const X=K1(e);delete X.onTransitionEnter,delete X.onTransitionExited;const H=z({},X,Y);return z({role:"presentation"},H,{onKeyDown:N(H),ref:E})},getBackdropProps:(Y={})=>{const X=Y;return z({"aria-hidden":!0},X,{onClick:B(X),open:h})},getTransitionProps:()=>{const Y=()=>{T(!1),s&&s()},X=()=>{T(!0),d&&d(),o&&$()};return{onEnter:uk(Y,f==null?void 0:f.props.onEnter),onExited:uk(X,f==null?void 0:f.props.onExited)}},rootRef:E,portalRef:M,isTopModal:k,exited:x,hasTransition:I}}function Dle(e){return wt("MuiModal",e)}Ot("MuiModal",["root","hidden","backdrop"]);const Nle=["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"],Ble=e=>{const{open:t,exited:r,classes:n}=e;return St({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Dle,n)},zle=he("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})=>z({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),qle=he(tU,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),mT=p.forwardRef(function(t,r){var n,a,o,s,d,f;const u=Et({name:"MuiModal",props:t}),{BackdropComponent:h=qle,BackdropProps:g,className:y,closeAfterTransition:_=!1,children:S,container:E,component:x,components:T={},componentsProps:I={},disableAutoFocus:R=!1,disableEnforceFocus:P=!1,disableEscapeKeyDown:C=!1,disablePortal:O=!1,disableRestoreFocus:j=!1,disableScrollLock:k=!1,hideBackdrop:M=!1,keepMounted:$=!1,onBackdropClick:N,open:B,slotProps:q,slots:V}=u,G=Ve(u,Nle),Y=z({},u,{closeAfterTransition:_,disableAutoFocus:R,disableEnforceFocus:P,disableEscapeKeyDown:C,disablePortal:O,disableRestoreFocus:j,disableScrollLock:k,hideBackdrop:M,keepMounted:$}),{getRootProps:X,getBackdropProps:H,getTransitionProps:te,portalRef:ne,isTopModal:K,exited:ee,hasTransition:Ce}=Lle(z({},Y,{rootRef:r})),se=z({},Y,{exited:ee}),Se=Ble(se),me={};if(S.props.tabIndex===void 0&&(me.tabIndex="-1"),Ce){const{onEnter:Te,onExited:Be}=te();me.onEnter=Te,me.onExited=Be}const we=(n=(a=V==null?void 0:V.root)!=null?a:T.Root)!=null?n:zle,Oe=(o=(s=V==null?void 0:V.backdrop)!=null?s:T.Backdrop)!=null?o:h,ie=(d=q==null?void 0:q.root)!=null?d:I.root,Fe=(f=q==null?void 0:q.backdrop)!=null?f:I.backdrop,ke=Ai({elementType:we,externalSlotProps:ie,externalForwardedProps:G,getSlotProps:X,additionalProps:{ref:r,as:x},ownerState:se,className:Re(y,ie==null?void 0:ie.className,Se==null?void 0:Se.root,!se.open&&se.exited&&(Se==null?void 0:Se.hidden))}),$e=Ai({elementType:Oe,externalSlotProps:Fe,additionalProps:g,getSlotProps:Te=>H(z({},Te,{onClick:Be=>{N&&N(Be),Te!=null&&Te.onClick&&Te.onClick(Be)}})),className:Re(Fe==null?void 0:Fe.className,g==null?void 0:g.className,Se==null?void 0:Se.backdrop),ownerState:se});return!$&&!B&&(!Ce||ee)?null:A.jsx(X6,{ref:ne,container:E,disablePortal:O,children:A.jsxs(we,z({},ke,{children:[!M&&h?A.jsx(Oe,z({},$e)):null,A.jsx(Ale,{disableEnforceFocus:P,disableAutoFocus:R,disableRestoreFocus:j,isEnabled:K,open:B,children:p.cloneElement(S,me)})]}))})});function Ule(e){return wt("MuiDialog",e)}const n2=Ot("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),oU=p.createContext({}),Vle=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Wle=he(tU,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Hle=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${Ue(r)}`],paper:["paper",`paperScroll${Ue(r)}`,`paperWidth${Ue(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return St(s,Ule,t)},Gle=he(mT,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Kle=he("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Ue(r.scroll)}`]]}})(({ownerState:e})=>z({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"}})),Qle=he(zc,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Ue(r.scroll)}`],t[`paperWidth${Ue(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>z({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)`,[`&.${n2.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}`,[`&.${n2.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,[`&.${n2.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),n0=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialog"}),a=ei(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":d,BackdropComponent:f,BackdropProps:u,children:h,className:g,disableEscapeKeyDown:y=!1,fullScreen:_=!1,fullWidth:S=!1,maxWidth:E="sm",onBackdropClick:x,onClick:T,onClose:I,open:R,PaperComponent:P=zc,PaperProps:C={},scroll:O="paper",TransitionComponent:j=eU,transitionDuration:k=o,TransitionProps:M}=n,$=Ve(n,Vle),N=z({},n,{disableEscapeKeyDown:y,fullScreen:_,fullWidth:S,maxWidth:E,scroll:O}),B=Hle(N),q=p.useRef(),V=H=>{q.current=H.target===H.currentTarget},G=H=>{T&&T(H),q.current&&(q.current=null,x&&x(H),I&&I(H,"backdropClick"))},Y=xf(d),X=p.useMemo(()=>({titleId:Y}),[Y]);return A.jsx(Gle,z({className:Re(B.root,g),closeAfterTransition:!0,components:{Backdrop:Wle},componentsProps:{backdrop:z({transitionDuration:k,as:f},u)},disableEscapeKeyDown:y,onClose:I,open:R,ref:r,onClick:G,ownerState:N},$,{children:A.jsx(j,z({appear:!0,in:R,timeout:k,role:"presentation"},M,{children:A.jsx(Kle,{className:Re(B.container),onMouseDown:V,ownerState:N,children:A.jsx(Qle,z({as:P,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":Y},C,{className:Re(B.paper,C.className),ownerState:N,children:A.jsx(oU.Provider,{value:X,children:h})}))})}))}))});function Xle(e){return wt("MuiDialogActions",e)}Ot("MuiDialogActions",["root","spacing"]);const Yle=["className","disableSpacing"],Jle=e=>{const{classes:t,disableSpacing:r}=e;return St({root:["root",!r&&"spacing"]},Xle,t)},Zle=he("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>z({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),gT=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,s=Ve(n,Yle),d=z({},n,{disableSpacing:o}),f=Jle(d);return A.jsx(Zle,z({className:Re(f.root,a),ownerState:d,ref:r},s))});function eue(e){return wt("MuiDialogContent",e)}Ot("MuiDialogContent",["root","dividers"]);function tue(e){return wt("MuiDialogTitle",e)}const rue=Ot("MuiDialogTitle",["root"]),nue=["className","dividers"],aue=e=>{const{classes:t,dividers:r}=e;return St({root:["root",r&&"dividers"]},eue,t)},oue=he("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>z({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}`}:{[`.${rue.root} + &`]:{paddingTop:0}})),a0=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,s=Ve(n,nue),d=z({},n,{dividers:o}),f=aue(d);return A.jsx(oue,z({className:Re(f.root,a),ownerState:d,ref:r},s))});function iue(e){return wt("MuiDialogContentText",e)}Ot("MuiDialogContentText",["root"]);const sue=["children","className"],lue=e=>{const{classes:t}=e,n=St({root:["root"]},iue,t);return z({},t,n)},uue=he(nr,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bw=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Ve(n,sue),s=lue(o);return A.jsx(uue,z({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:Re(s.root,a)},n,{classes:s}))}),cue=["className","id"],due=e=>{const{classes:t}=e;return St({root:["root"]},tue,t)},fue=he(nr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),o0=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,s=Ve(n,cue),d=n,f=due(d),{titleId:u=o}=p.useContext(oU);return A.jsx(fue,z({component:"h2",className:Re(f.root,a),ownerState:d,ref:r,variant:"h6",id:o??u},s))});function pue(e){return wt("MuiDivider",e)}const h3=Ot("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),hue=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],vue=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:s,textAlign:d,variant:f}=e;return St({root:["root",t&&"absolute",f,o&&"light",s==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&s==="vertical"&&"withChildrenVertical",d==="right"&&s!=="vertical"&&"textAlignRight",d==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},pue,n)},mue=he("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})=>z({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)`:ir.alpha(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})=>z({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>z({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>z({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>z({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),gue=he("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>z({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)`})),Cb=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:s,component:d=o?"div":"hr",flexItem:f=!1,light:u=!1,orientation:h="horizontal",role:g=d!=="hr"?"separator":void 0,textAlign:y="center",variant:_="fullWidth"}=n,S=Ve(n,hue),E=z({},n,{absolute:a,component:d,flexItem:f,light:u,orientation:h,role:g,textAlign:y,variant:_}),x=vue(E);return A.jsx(mue,z({as:d,className:Re(x.root,s),role:g,ref:r,ownerState:E},S,{children:o?A.jsx(gue,{className:x.wrapper,ownerState:E,children:o}):null}))});Cb.muiSkipListHighlight=!0;const yue=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function bue(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=Ti(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=o.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let d=0,f=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");d=parseInt(u[4],10),f=parseInt(u[5],10)}return e==="left"?a?`translateX(${a.right+d-n.left}px)`:`translateX(${o.innerWidth+d-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-d}px)`:`translateX(-${n.left+n.width-d}px)`:e==="up"?a?`translateY(${a.bottom+f-n.top}px)`:`translateY(${o.innerHeight+f-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-f}px)`:`translateY(-${n.top+n.height-f}px)`}function _ue(e){return typeof e=="function"?e():e}function U_(e,t,r){const n=_ue(r),a=bue(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const iU=p.forwardRef(function(t,r){const n=ei(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:d=!0,children:f,container:u,direction:h="down",easing:g=a,in:y,onEnter:_,onEntered:S,onEntering:E,onExit:x,onExited:T,onExiting:I,style:R,timeout:P=o,TransitionComponent:C=hs}=t,O=Ve(t,yue),j=p.useRef(null),k=fn(f.ref,j,r),M=H=>te=>{H&&(te===void 0?H(j.current):H(j.current,te))},$=M((H,te)=>{U_(h,H,u),lT(H),_&&_(H,te)}),N=M((H,te)=>{const ne=av({timeout:P,style:R,easing:g},{mode:"enter"});H.style.webkitTransition=n.transitions.create("-webkit-transform",z({},ne)),H.style.transition=n.transitions.create("transform",z({},ne)),H.style.webkitTransform="none",H.style.transform="none",E&&E(H,te)}),B=M(S),q=M(I),V=M(H=>{const te=av({timeout:P,style:R,easing:g},{mode:"exit"});H.style.webkitTransition=n.transitions.create("-webkit-transform",te),H.style.transition=n.transitions.create("transform",te),U_(h,H,u),x&&x(H)}),G=M(H=>{H.style.webkitTransition="",H.style.transition="",T&&T(H)}),Y=H=>{s&&s(j.current,H)},X=p.useCallback(()=>{j.current&&U_(h,j.current,u)},[h,u]);return p.useEffect(()=>{if(y||h==="down"||h==="right")return;const H=Cv(()=>{j.current&&U_(h,j.current,u)}),te=Ti(j.current);return te.addEventListener("resize",H),()=>{H.clear(),te.removeEventListener("resize",H)}},[h,y,u]),p.useEffect(()=>{y||X()},[y,X]),A.jsx(C,z({nodeRef:j,onEnter:$,onEntered:B,onEntering:N,onExit:V,onExited:G,onExiting:q,addEndListener:Y,appear:d,in:y,timeout:P},O,{children:(H,te)=>p.cloneElement(f,z({ref:k,style:z({visibility:H==="exited"&&!y?"hidden":void 0},R,f.props.style)},te))}))});function xue(e){return wt("MuiDrawer",e)}Ot("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const wue=["BackdropProps"],Sue=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],sU=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Eue=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Ue(r)}`,n!=="temporary"&&`paperAnchorDocked${Ue(r)}`]};return St(a,xue,t)},Cue=he(mT,{name:"MuiDrawer",slot:"Root",overridesResolver:sU})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),v3=he("div",{shouldForwardProp:wa,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:sU})({flex:"0 0 auto"}),Oue=he(zc,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Ue(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${Ue(r.anchor)}`]]}})(({theme:e,ownerState:t})=>z({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}`})),lU={left:"right",right:"left",top:"down",bottom:"up"};function Pue(e){return["left","right"].indexOf(e)!==-1}function Rue({direction:e},t){return e==="rtl"&&Pue(t)?lU[t]:t}const kue=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDrawer"}),a=ei(),o=Bc(),s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:f,children:u,className:h,elevation:g=16,hideBackdrop:y=!1,ModalProps:{BackdropProps:_}={},onClose:S,open:E=!1,PaperProps:x={},SlideProps:T,TransitionComponent:I=iU,transitionDuration:R=s,variant:P="temporary"}=n,C=Ve(n.ModalProps,wue),O=Ve(n,Sue),j=p.useRef(!1);p.useEffect(()=>{j.current=!0},[]);const k=Rue({direction:o?"rtl":"ltr"},d),$=z({},n,{anchor:d,elevation:g,open:E,variant:P},O),N=Eue($),B=A.jsx(Oue,z({elevation:P==="temporary"?g:0,square:!0},x,{className:Re(N.paper,x.className),ownerState:$,children:u}));if(P==="permanent")return A.jsx(v3,z({className:Re(N.root,N.docked,h),ownerState:$,ref:r},O,{children:B}));const q=A.jsx(I,z({in:E,direction:lU[k],timeout:R,appear:j.current},T,{children:B}));return P==="persistent"?A.jsx(v3,z({className:Re(N.root,N.docked,h),ownerState:$,ref:r},O,{children:q})):A.jsx(Cue,z({BackdropProps:z({},f,_,{transitionDuration:R}),className:Re(N.root,N.modal,h),open:E,ownerState:$,onClose:S,hideBackdrop:y,ref:r},O,C,{children:q}))});function Iue(e){return wt("MuiFab",e)}const m3=Ot("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),jue=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Tue=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${Ue(a)}`,t==="inherit"?"colorInherit":t]},s=St(o,Iue,n);return z({},n,s)},Aue=he(cu,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>wa(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ue(r.size)}`],r.color==="inherit"&&t.colorInherit,t[Ue(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return z({},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"},[`&.${m3.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})=>z({},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})=>({[`&.${m3.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Mue=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFab"}),{children:a,className:o,color:s="default",component:d="button",disabled:f=!1,disableFocusRipple:u=!1,focusVisibleClassName:h,size:g="large",variant:y="circular"}=n,_=Ve(n,jue),S=z({},n,{color:s,component:d,disabled:f,disableFocusRipple:u,size:g,variant:y}),E=Tue(S);return A.jsx(Aue,z({className:Re(E.root,o),component:d,disabled:f,focusRipple:!u,focusVisibleClassName:Re(E.focusVisible,h),ownerState:S,ref:r},_,{classes:E,children:a}))}),Fue=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],$ue=e=>{const{classes:t,disableUnderline:r}=e,a=St({root:["root",!r&&"underline"],input:["input"]},nse,t);return z({},t,a)},Lue=he($w,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Mw(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",d=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return z({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${$d.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${$d.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:d}},!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"},[`&.${$d.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$d.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$d.disabled}, .${$d.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${$d.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&z({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}))}),Due=he(Lw,{name:"MuiFilledInput",slot:"Input",overridesResolver:Fw})(({theme:e,ownerState:t})=>z({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})),yT=p.forwardRef(function(t,r){var n,a,o,s;const d=Et({props:t,name:"MuiFilledInput"}),{components:f={},componentsProps:u,fullWidth:h=!1,inputComponent:g="input",multiline:y=!1,slotProps:_,slots:S={},type:E="text"}=d,x=Ve(d,Fue),T=z({},d,{fullWidth:h,inputComponent:g,multiline:y,type:E}),I=$ue(d),R={root:{ownerState:T},input:{ownerState:T}},P=_??u?ro(R,_??u):R,C=(n=(a=S.root)!=null?a:f.Root)!=null?n:Lue,O=(o=(s=S.input)!=null?s:f.Input)!=null?o:Due;return A.jsx(Dw,z({slots:{root:C,input:O},componentsProps:P,fullWidth:h,inputComponent:g,multiline:y,ref:r,type:E},x,{classes:I}))});yT.muiName="Input";function Nue(e){return wt("MuiFormControl",e)}Ot("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Bue=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],zue=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${Ue(r)}`,n&&"fullWidth"]};return St(a,Nue,t)},que=he("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>z({},t.root,t[`margin${Ue(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>z({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%"})),uU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFormControl"}),{children:a,className:o,color:s="primary",component:d="div",disabled:f=!1,error:u=!1,focused:h,fullWidth:g=!1,hiddenLabel:y=!1,margin:_="none",required:S=!1,size:E="medium",variant:x="outlined"}=n,T=Ve(n,Bue),I=z({},n,{color:s,component:d,disabled:f,error:u,fullWidth:g,hiddenLabel:y,margin:_,required:S,size:E,variant:x}),R=zue(I),[P,C]=p.useState(()=>{let q=!1;return a&&p.Children.forEach(a,V=>{if(!c1(V,["Input","Select"]))return;const G=c1(V,["Select"])?V.props.input:V;G&&Xie(G.props)&&(q=!0)}),q}),[O,j]=p.useState(()=>{let q=!1;return a&&p.Children.forEach(a,V=>{c1(V,["Input","Select"])&&(J1(V.props,!0)||J1(V.props.inputProps,!0))&&(q=!0)}),q}),[k,M]=p.useState(!1);f&&k&&M(!1);const $=h!==void 0&&!f?h:k;let N;const B=p.useMemo(()=>({adornedStart:P,setAdornedStart:C,color:s,disabled:f,error:u,filled:O,focused:$,fullWidth:g,hiddenLabel:y,size:E,onBlur:()=>{M(!1)},onEmpty:()=>{j(!1)},onFilled:()=>{j(!0)},onFocus:()=>{M(!0)},registerEffect:N,required:S,variant:x}),[P,s,f,u,O,$,g,y,N,S,E,x]);return A.jsx(Aw.Provider,{value:B,children:A.jsx(que,z({as:d,ownerState:I,className:Re(R.root,o),ref:r},T,{children:a}))})}),Pv=Une({createStyledComponent:he("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Et({props:e,name:"MuiStack"})});function Uue(e){return wt("MuiFormControlLabel",e)}const zy=Ot("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Vue=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Wue=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:o}=e,s={root:["root",r&&"disabled",`labelPlacement${Ue(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return St(s,Uue,t)},Hue=he("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${zy.label}`]:t.label},t.root,t[`labelPlacement${Ue(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>z({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${zy.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},{[`& .${zy.label}`]:{[`&.${zy.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Gue=he("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${zy.error}`]:{color:(e.vars||e).palette.error.main}})),yk=p.forwardRef(function(t,r){var n,a;const o=Et({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:d={},control:f,disabled:u,disableTypography:h,label:g,labelPlacement:y="end",required:_,slotProps:S={}}=o,E=Ve(o,Vue),x=vs(),T=(n=u??f.props.disabled)!=null?n:x==null?void 0:x.disabled,I=_??f.props.required,R={disabled:T,required:I};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof f.props[M]>"u"&&typeof o[M]<"u"&&(R[M]=o[M])});const P=du({props:o,muiFormControl:x,states:["error"]}),C=z({},o,{disabled:T,labelPlacement:y,required:I,error:P.error}),O=Wue(C),j=(a=S.typography)!=null?a:d.typography;let k=g;return k!=null&&k.type!==nr&&!h&&(k=A.jsx(nr,z({component:"span"},j,{className:Re(O.label,j==null?void 0:j.className),children:k}))),A.jsxs(Hue,z({className:Re(O.root,s),ownerState:C,ref:r},E,{children:[p.cloneElement(f,R),I?A.jsxs(Pv,{display:"block",children:[k,A.jsxs(Gue,{ownerState:C,"aria-hidden":!0,className:O.asterisk,children:[" ","*"]})]}):k]}))});function Kue(e){return wt("MuiFormGroup",e)}Ot("MuiFormGroup",["root","row","error"]);const Que=["className","row"],Xue=e=>{const{classes:t,row:r,error:n}=e;return St({root:["root",r&&"row",n&&"error"]},Kue,t)},Yue=he("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>z({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Jue=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFormGroup"}),{className:a,row:o=!1}=n,s=Ve(n,Que),d=vs(),f=du({props:n,muiFormControl:d,states:["error"]}),u=z({},n,{row:o,error:f.error}),h=Xue(u);return A.jsx(Yue,z({className:Re(h.root,a),ownerState:u,ref:r},s))});function Zue(e){return wt("MuiFormHelperText",e)}const g3=Ot("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var y3;const ece=["children","className","component","disabled","error","filled","focused","margin","required","variant"],tce=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:s,focused:d,required:f}=e,u={root:["root",a&&"disabled",o&&"error",n&&`size${Ue(n)}`,r&&"contained",d&&"focused",s&&"filled",f&&"required"]};return St(u,Zue,t)},rce=he("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Ue(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>z({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${g3.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${g3.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),bT=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:s="p"}=n,d=Ve(n,ece),f=vs(),u=du({props:n,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),h=z({},n,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),g=tce(h);return A.jsx(rce,z({as:s,ownerState:h,className:Re(g.root,o),ref:r},d,{children:a===" "?y3||(y3=A.jsx("span",{className:"notranslate",children:"​"})):a}))});function nce(e){return wt("MuiFormLabel",e)}const tb=Ot("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ace=["children","className","color","component","disabled","error","filled","focused","required"],oce=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:s,required:d}=e,f={root:["root",`color${Ue(r)}`,a&&"disabled",o&&"error",s&&"filled",n&&"focused",d&&"required"],asterisk:["asterisk",o&&"error"]};return St(f,nce,t)},ice=he("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>z({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>z({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${tb.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${tb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${tb.error}`]:{color:(e.vars||e).palette.error.main}})),sce=he("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${tb.error}`]:{color:(e.vars||e).palette.error.main}})),lce=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:s="label"}=n,d=Ve(n,ace),f=vs(),u=du({props:n,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),h=z({},n,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),g=oce(h);return A.jsxs(ice,z({as:s,ownerState:h,className:Re(g.root,o),ref:r},d,{children:[a,u.required&&A.jsxs(sce,{ownerState:h,"aria-hidden":!0,className:g.asterisk,children:[" ","*"]})]}))}),uce=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function bk(e){return`scale(${e}, ${e**2})`}const cce={entering:{opacity:1,transform:bk(1)},entered:{opacity:1,transform:"none"}},a2=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ob=p.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:s,in:d,onEnter:f,onEntered:u,onEntering:h,onExit:g,onExited:y,onExiting:_,style:S,timeout:E="auto",TransitionComponent:x=hs}=t,T=Ve(t,uce),I=Jd(),R=p.useRef(),P=ei(),C=p.useRef(null),O=fn(C,o.ref,r),j=G=>Y=>{if(G){const X=C.current;Y===void 0?G(X):G(X,Y)}},k=j(h),M=j((G,Y)=>{lT(G);const{duration:X,delay:H,easing:te}=av({style:S,timeout:E,easing:s},{mode:"enter"});let ne;E==="auto"?(ne=P.transitions.getAutoHeightDuration(G.clientHeight),R.current=ne):ne=X,G.style.transition=[P.transitions.create("opacity",{duration:ne,delay:H}),P.transitions.create("transform",{duration:a2?ne:ne*.666,delay:H,easing:te})].join(","),f&&f(G,Y)}),$=j(u),N=j(_),B=j(G=>{const{duration:Y,delay:X,easing:H}=av({style:S,timeout:E,easing:s},{mode:"exit"});let te;E==="auto"?(te=P.transitions.getAutoHeightDuration(G.clientHeight),R.current=te):te=Y,G.style.transition=[P.transitions.create("opacity",{duration:te,delay:X}),P.transitions.create("transform",{duration:a2?te:te*.666,delay:a2?X:X||te*.333,easing:H})].join(","),G.style.opacity=0,G.style.transform=bk(.75),g&&g(G)}),q=j(y),V=G=>{E==="auto"&&I.start(R.current||0,G),n&&n(C.current,G)};return A.jsx(x,z({appear:a,in:d,nodeRef:C,onEnter:M,onEntered:$,onEntering:k,onExit:B,onExited:q,onExiting:N,addEndListener:V,timeout:E==="auto"?null:E},T,{children:(G,Y)=>p.cloneElement(o,z({style:z({opacity:0,transform:bk(.75),visibility:G==="exited"&&!d?"hidden":void 0},cce[G],S,o.props.style),ref:O},Y))}))});Ob.muiSupportAuto=!0;const dce=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],fce=e=>{const{classes:t,disableUnderline:r}=e,a=St({root:["root",!r&&"underline"],input:["input"]},tse,t);return z({},t,a)},pce=he($w,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Mw(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})`),z({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"},[`&.${sg.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${sg.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(.${sg.disabled}, .${sg.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${sg.disabled}:before`]:{borderBottomStyle:"dotted"}})}),hce=he(Lw,{name:"MuiInput",slot:"Input",overridesResolver:Fw})({}),zw=p.forwardRef(function(t,r){var n,a,o,s;const d=Et({props:t,name:"MuiInput"}),{disableUnderline:f,components:u={},componentsProps:h,fullWidth:g=!1,inputComponent:y="input",multiline:_=!1,slotProps:S,slots:E={},type:x="text"}=d,T=Ve(d,dce),I=fce(d),P={root:{ownerState:{disableUnderline:f}}},C=S??h?ro(S??h,P):P,O=(n=(a=E.root)!=null?a:u.Root)!=null?n:pce,j=(o=(s=E.input)!=null?s:u.Input)!=null?o:hce;return A.jsx(Dw,z({slots:{root:O,input:j},slotProps:C,fullWidth:g,inputComponent:y,multiline:_,ref:r,type:x},T,{classes:I}))});zw.muiName="Input";function vce(e){return wt("MuiInputAdornment",e)}const b3=Ot("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var _3;const mce=["children","className","component","disablePointerEvents","disableTypography","position","variant"],gce=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Ue(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},yce=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:s}=e,d={root:["root",r&&"disablePointerEvents",a&&`position${Ue(a)}`,s,n&&"hiddenLabel",o&&`size${Ue(o)}`]};return St(d,vce,t)},bce=he("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:gce})(({theme:e,ownerState:t})=>z({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${b3.positionStart}&:not(.${b3.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Oh=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:s="div",disablePointerEvents:d=!1,disableTypography:f=!1,position:u,variant:h}=n,g=Ve(n,mce),y=vs()||{};let _=h;h&&y.variant,y&&!_&&(_=y.variant);const S=z({},n,{hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:d,position:u,variant:_}),E=yce(S);return A.jsx(Aw.Provider,{value:null,children:A.jsx(bce,z({as:s,ownerState:S,className:Re(E.root,o),ref:r},g,{children:typeof a=="string"&&!f?A.jsx(nr,{color:"text.secondary",children:a}):A.jsxs(p.Fragment,{children:[u==="start"?_3||(_3=A.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})});function _ce(e){return wt("MuiInputLabel",e)}Ot("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const xce=["disableAnimation","margin","shrink","variant","className"],wce=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:s,required:d}=e,f={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${Ue(n)}`,s],asterisk:[d&&"asterisk"]},u=St(f,_ce,t);return z({},t,u)},Sce=he(lce,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${tb.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})=>z({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"&&z({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&&z({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"&&z({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)"}))),cU=p.forwardRef(function(t,r){const n=Et({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:s}=n,d=Ve(n,xce),f=vs();let u=o;typeof u>"u"&&f&&(u=f.filled||f.focused||f.adornedStart);const h=du({props:n,muiFormControl:f,states:["size","variant","required","focused"]}),g=z({},n,{disableAnimation:a,formControl:f,shrink:u,size:h.size,variant:h.variant,required:h.required,focused:h.focused}),y=wce(g);return A.jsx(Sce,z({"data-shrink":u,ownerState:g,ref:r,className:Re(y.root,s)},d,{classes:y}))});function Ece(e){return wt("MuiLinearProgress",e)}Ot("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Cce=["className","color","value","valueBuffer","variant"];let Rv=e=>e,x3,w3,S3,E3,C3,O3;const _k=4,Oce=uu(x3||(x3=Rv` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`)),Pce=uu(w3||(w3=Rv` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`)),Rce=uu(S3||(S3=Rv` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`)),kce=e=>{const{classes:t,variant:r,color:n}=e,a={root:["root",`color${Ue(n)}`,r],dashed:["dashed",`dashedColor${Ue(n)}`],bar1:["bar",`barColor${Ue(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${Ue(n)}`,r==="buffer"&&`color${Ue(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return St(a,Ece,t)},_T=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?ir.lighten(e.palette[t].main,.62):ir.darken(e.palette[t].main,.5),Ice=he("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Ue(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>z({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:_T(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)"})),jce=he("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${Ue(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=_T(t,e.color);return z({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"})},Pf(E3||(E3=Rv` - animation: ${0} 3s infinite linear; - `),Rce)),Tce=he("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Ue(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>z({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 .${_k}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${_k}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Pf(C3||(C3=Rv` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),Oce)),Ace=he("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Ue(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>z({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:_T(t,e.color),transition:`transform .${_k}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Pf(O3||(O3=Rv` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),Pce)),Mce=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiLinearProgress"}),{className:a,color:o="primary",value:s,valueBuffer:d,variant:f="indeterminate"}=n,u=Ve(n,Cce),h=z({},n,{color:o,variant:f}),g=kce(h),y=Bc(),_={},S={bar1:{},bar2:{}};if((f==="determinate"||f==="buffer")&&s!==void 0){_["aria-valuenow"]=Math.round(s),_["aria-valuemin"]=0,_["aria-valuemax"]=100;let E=s-100;y&&(E=-E),S.bar1.transform=`translateX(${E}%)`}if(f==="buffer"&&d!==void 0){let E=(d||0)-100;y&&(E=-E),S.bar2.transform=`translateX(${E}%)`}return A.jsxs(Ice,z({className:Re(g.root,a),ownerState:h,role:"progressbar"},_,{ref:r},u,{children:[f==="buffer"?A.jsx(jce,{className:g.dashed,ownerState:h}):null,A.jsx(Tce,{className:g.bar1,ownerState:h,style:S.bar1}),f==="determinate"?null:A.jsx(Ace,{className:g.bar2,ownerState:h,style:S.bar2})]}))});function Fce(e){return wt("MuiLink",e)}const $ce=Ot("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),dU={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Lce=e=>dU[e]||e,Dce=({theme:e,ownerState:t})=>{const r=Lce(t.color),n=tv(e,`palette.${r}`,!1)||t.color,a=tv(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:ir.alpha(n,.4)},Nce=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Bce=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${Ue(a)}`,r==="button"&&"button",n&&"focusVisible"]};return St(o,Fce,t)},zce=he(nr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ue(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>z({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&z({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Dce({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"},[`&.${$ce.focusVisible}`]:{outline:"auto"}})),qce=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:s="a",onBlur:d,onFocus:f,TypographyClasses:u,underline:h="always",variant:g="inherit",sx:y}=n,_=Ve(n,Nce),{isFocusVisibleRef:S,onBlur:E,onFocus:x,ref:T}=kw(),[I,R]=p.useState(!1),P=fn(r,T),C=M=>{E(M),S.current===!1&&R(!1),d&&d(M)},O=M=>{x(M),S.current===!0&&R(!0),f&&f(M)},j=z({},n,{color:o,component:s,focusVisible:I,underline:h,variant:g}),k=Bce(j);return A.jsx(zce,z({color:o,className:Re(k.root,a),classes:u,component:s,onBlur:C,onFocus:O,ref:P,ownerState:j,variant:g,sx:[...Object.keys(dU).includes(o)?[]:[{color:o}],...Array.isArray(y)?y:[y]]},_))}),Pb=p.createContext({});function Uce(e){return wt("MuiList",e)}Ot("MuiList",["root","padding","dense","subheader"]);const Vce=["children","className","component","dense","disablePadding","subheader"],Wce=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return St({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},Uce,t)},Hce=he("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})=>z({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Gce=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiList"}),{children:a,className:o,component:s="ul",dense:d=!1,disablePadding:f=!1,subheader:u}=n,h=Ve(n,Vce),g=p.useMemo(()=>({dense:d}),[d]),y=z({},n,{component:s,dense:d,disablePadding:f}),_=Wce(y);return A.jsx(Pb.Provider,{value:g,children:A.jsxs(Hce,z({as:s,className:Re(_.root,o),ref:r,ownerState:y},h,{children:[u,a]}))})});function Kce(e){return wt("MuiListItemIcon",e)}const P3=Ot("MuiListItemIcon",["root","alignItemsFlexStart"]),Qce=["className"],Xce=e=>{const{alignItems:t,classes:r}=e;return St({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Kce,r)},Yce=he("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})=>z({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),ef=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Ve(n,Qce),s=p.useContext(Pb),d=z({},n,{alignItems:s.alignItems}),f=Xce(d);return A.jsx(Yce,z({className:Re(f.root,a),ownerState:d,ref:r},o))});function Jce(e){return wt("MuiListItemText",e)}const Z1=Ot("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Zce=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],ede=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return St({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},Jce,t)},tde=he("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Z1.primary}`]:t.primary},{[`& .${Z1.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>z({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),xh=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:s=!1,inset:d=!1,primary:f,primaryTypographyProps:u,secondary:h,secondaryTypographyProps:g}=n,y=Ve(n,Zce),{dense:_}=p.useContext(Pb);let S=f??a,E=h;const x=z({},n,{disableTypography:s,inset:d,primary:!!S,secondary:!!E,dense:_}),T=ede(x);return S!=null&&S.type!==nr&&!s&&(S=A.jsx(nr,z({variant:_?"body2":"body1",className:T.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:S}))),E!=null&&E.type!==nr&&!s&&(E=A.jsx(nr,z({variant:"body2",className:T.secondary,color:"text.secondary",display:"block"},g,{children:E}))),A.jsxs(tde,z({className:Re(T.root,o),ownerState:x,ref:r},y,{children:[S,E]}))}),rde=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function o2(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function R3(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function fU(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 lg(e,t,r,n,a,o){let s=!1,d=a(e,t,t?r:!1);for(;d;){if(d===e.firstChild){if(s)return!1;s=!0}const f=n?!1:d.disabled||d.getAttribute("aria-disabled")==="true";if(!d.hasAttribute("tabindex")||!fU(d,o)||f)d=a(e,d,r);else return d.focus(),!0}return!1}const pU=p.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:s,className:d,disabledItemsFocusable:f=!1,disableListWrap:u=!1,onKeyDown:h,variant:g="selectedMenu"}=t,y=Ve(t,rde),_=p.useRef(null),S=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Yo(()=>{a&&_.current.focus()},[a]),p.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(R,{direction:P})=>{const C=!_.current.style.width;if(R.clientHeight<_.current.clientHeight&&C){const O=`${k6(Dn(R))}px`;_.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=O,_.current.style.width=`calc(100% + ${O})`}return _.current}}),[]);const E=R=>{const P=_.current,C=R.key,O=Dn(P).activeElement;if(C==="ArrowDown")R.preventDefault(),lg(P,O,u,f,o2);else if(C==="ArrowUp")R.preventDefault(),lg(P,O,u,f,R3);else if(C==="Home")R.preventDefault(),lg(P,null,u,f,o2);else if(C==="End")R.preventDefault(),lg(P,null,u,f,R3);else if(C.length===1){const j=S.current,k=C.toLowerCase(),M=performance.now();j.keys.length>0&&(M-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&k!==j.keys[0]&&(j.repeating=!1)),j.lastTime=M,j.keys.push(k);const $=O&&!j.repeating&&fU(O,j);j.previousKeyMatched&&($||lg(P,O,!1,f,o2,j))?R.preventDefault():j.previousKeyMatched=!1}h&&h(R)},x=fn(_,r);let T=-1;p.Children.forEach(s,(R,P)=>{if(!p.isValidElement(R)){T===P&&(T+=1,T>=s.length&&(T=-1));return}R.props.disabled||(g==="selectedMenu"&&R.props.selected||T===-1)&&(T=P),T===P&&(R.props.disabled||R.props.muiSkipListHighlight||R.type.muiSkipListHighlight)&&(T+=1,T>=s.length&&(T=-1))});const I=p.Children.map(s,(R,P)=>{if(P===T){const C={};return o&&(C.autoFocus=!0),R.props.tabIndex===void 0&&g==="selectedMenu"&&(C.tabIndex=0),p.cloneElement(R,C)}return R});return A.jsx(Gce,z({role:"menu",ref:x,className:d,onKeyDown:E,tabIndex:a?0:-1},y,{children:I}))});function nde(e){return wt("MuiPopover",e)}Ot("MuiPopover",["root","paper"]);const ade=["onEntering"],ode=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ide=["slotProps"];function k3(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function I3(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function j3(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function i2(e){return typeof e=="function"?e():e}const sde=e=>{const{classes:t}=e;return St({root:["root"],paper:["paper"]},nde,t)},lde=he(mT,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hU=he(zc,{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}),xT=p.forwardRef(function(t,r){var n,a,o;const s=Et({props:t,name:"MuiPopover"}),{action:d,anchorEl:f,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:g="anchorEl",children:y,className:_,container:S,elevation:E=8,marginThreshold:x=16,open:T,PaperProps:I={},slots:R,slotProps:P,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:O=Ob,transitionDuration:j="auto",TransitionProps:{onEntering:k}={},disableScrollLock:M=!1}=s,$=Ve(s.TransitionProps,ade),N=Ve(s,ode),B=(n=P==null?void 0:P.paper)!=null?n:I,q=p.useRef(),V=fn(q,B.ref),G=z({},s,{anchorOrigin:u,anchorReference:g,elevation:E,marginThreshold:x,externalPaperSlotProps:B,transformOrigin:C,TransitionComponent:O,transitionDuration:j,TransitionProps:$}),Y=sde(G),X=p.useCallback(()=>{if(g==="anchorPosition")return h;const Te=i2(f),Le=(Te&&Te.nodeType===1?Te:Dn(q.current).body).getBoundingClientRect();return{top:Le.top+k3(Le,u.vertical),left:Le.left+I3(Le,u.horizontal)}},[f,u.horizontal,u.vertical,h,g]),H=p.useCallback(Te=>({vertical:k3(Te,C.vertical),horizontal:I3(Te,C.horizontal)}),[C.horizontal,C.vertical]),te=p.useCallback(Te=>{const Be={width:Te.offsetWidth,height:Te.offsetHeight},Le=H(Be);if(g==="none")return{top:null,left:null,transformOrigin:j3(Le)};const dt=X();let He=dt.top-Le.vertical,Z=dt.left-Le.horizontal;const ae=He+Be.height,fe=Z+Be.width,ve=Ti(i2(f)),be=ve.innerHeight-x,_e=ve.innerWidth-x;if(x!==null&&Hebe){const De=ae-be;He-=De,Le.vertical+=De}if(x!==null&&Z_e){const De=fe-_e;Z-=De,Le.horizontal+=De}return{top:`${Math.round(He)}px`,left:`${Math.round(Z)}px`,transformOrigin:j3(Le)}},[f,g,X,H,x]),[ne,K]=p.useState(T),ee=p.useCallback(()=>{const Te=q.current;if(!Te)return;const Be=te(Te);Be.top!==null&&(Te.style.top=Be.top),Be.left!==null&&(Te.style.left=Be.left),Te.style.transformOrigin=Be.transformOrigin,K(!0)},[te]);p.useEffect(()=>(M&&window.addEventListener("scroll",ee),()=>window.removeEventListener("scroll",ee)),[f,M,ee]);const Ce=(Te,Be)=>{k&&k(Te,Be),ee()},se=()=>{K(!1)};p.useEffect(()=>{T&&ee()}),p.useImperativeHandle(d,()=>T?{updatePosition:()=>{ee()}}:null,[T,ee]),p.useEffect(()=>{if(!T)return;const Te=Cv(()=>{ee()}),Be=Ti(f);return Be.addEventListener("resize",Te),()=>{Te.clear(),Be.removeEventListener("resize",Te)}},[f,T,ee]);let Se=j;j==="auto"&&!O.muiSupportAuto&&(Se=void 0);const me=S||(f?Dn(i2(f)).body:void 0),we=(a=R==null?void 0:R.root)!=null?a:lde,Oe=(o=R==null?void 0:R.paper)!=null?o:hU,ie=Ai({elementType:Oe,externalSlotProps:z({},B,{style:ne?B.style:z({},B.style,{opacity:0})}),additionalProps:{elevation:E,ref:V},ownerState:G,className:Re(Y.paper,B==null?void 0:B.className)}),Fe=Ai({elementType:we,externalSlotProps:(P==null?void 0:P.root)||{},externalForwardedProps:N,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:me,open:T},ownerState:G,className:Re(Y.root,_)}),{slotProps:ke}=Fe,$e=Ve(Fe,ide);return A.jsx(we,z({},$e,!xb(we)&&{slotProps:ke,disableScrollLock:M},{children:A.jsx(O,z({appear:!0,in:T,onEntering:Ce,onExited:se,timeout:Se},$,{children:A.jsx(Oe,z({},ie,{children:y}))}))}))});function ude(e){return wt("MuiMenu",e)}Ot("MuiMenu",["root","paper","list"]);const cde=["onEntering"],dde=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],fde={vertical:"top",horizontal:"right"},pde={vertical:"top",horizontal:"left"},hde=e=>{const{classes:t}=e;return St({root:["root"],paper:["paper"],list:["list"]},ude,t)},vde=he(xT,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mde=he(hU,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gde=he(pU,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),qw=p.forwardRef(function(t,r){var n,a;const o=Et({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:d,className:f,disableAutoFocusItem:u=!1,MenuListProps:h={},onClose:g,open:y,PaperProps:_={},PopoverClasses:S,transitionDuration:E="auto",TransitionProps:{onEntering:x}={},variant:T="selectedMenu",slots:I={},slotProps:R={}}=o,P=Ve(o.TransitionProps,cde),C=Ve(o,dde),O=Bc(),j=z({},o,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:h,onEntering:x,PaperProps:_,transitionDuration:E,TransitionProps:P,variant:T}),k=hde(j),M=s&&!u&&y,$=p.useRef(null),N=(H,te)=>{$.current&&$.current.adjustStyleForScrollbar(H,{direction:O?"rtl":"ltr"}),x&&x(H,te)},B=H=>{H.key==="Tab"&&(H.preventDefault(),g&&g(H,"tabKeyDown"))};let q=-1;p.Children.map(d,(H,te)=>{p.isValidElement(H)&&(H.props.disabled||(T==="selectedMenu"&&H.props.selected||q===-1)&&(q=te))});const V=(n=I.paper)!=null?n:mde,G=(a=R.paper)!=null?a:_,Y=Ai({elementType:I.root,externalSlotProps:R.root,ownerState:j,className:[k.root,f]}),X=Ai({elementType:V,externalSlotProps:G,ownerState:j,className:k.paper});return A.jsx(vde,z({onClose:g,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?fde:pde,slots:{paper:V,root:I.root},slotProps:{root:Y,paper:X},open:y,ref:r,transitionDuration:E,TransitionProps:z({onEntering:N},P),ownerState:j},C,{classes:S,children:A.jsx(gde,z({onKeyDown:B,actions:$,autoFocus:s&&(q===-1||u),autoFocusItem:M,variant:T},h,{className:Re(k.list,h.className),children:d}))}))});function yde(e){return wt("MuiMenuItem",e)}const ug=Ot("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),bde=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],_de=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},xde=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:s}=e,f=St({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},yde,s);return z({},s,f)},wde=he(cu,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:_de})(({theme:e,ownerState:t})=>z({},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"}},[`&.${ug.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ir.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ug.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ir.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ug.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ir.alpha(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})`:ir.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ug.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ug.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${h3.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${h3.inset}`]:{marginLeft:52},[`& .${Z1.root}`]:{marginTop:0,marginBottom:0},[`& .${Z1.inset}`]:{paddingLeft:36},[`& .${P3.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&z({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${P3.root} svg`]:{fontSize:"1.25rem"}}))),Ko=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:s=!1,divider:d=!1,disableGutters:f=!1,focusVisibleClassName:u,role:h="menuitem",tabIndex:g,className:y}=n,_=Ve(n,bde),S=p.useContext(Pb),E=p.useMemo(()=>({dense:s||S.dense||!1,disableGutters:f}),[S.dense,s,f]),x=p.useRef(null);Yo(()=>{a&&x.current&&x.current.focus()},[a]);const T=z({},n,{dense:E.dense,divider:d,disableGutters:f}),I=xde(n),R=fn(x,r);let P;return n.disabled||(P=g!==void 0?g:-1),A.jsx(Pb.Provider,{value:E,children:A.jsx(wde,z({ref:R,role:h,tabIndex:P,component:o,focusVisibleClassName:Re(I.focusVisible,u),className:Re(I.root,y)},_,{ownerState:T,classes:I}))})});function vU(e){return wt("MuiNativeSelect",e)}const wT=Ot("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Sde=["className","disabled","error","IconComponent","inputRef","variant"],Ede=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:s}=e,d={select:["select",r,n&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${Ue(r)}`,o&&"iconOpen",n&&"disabled"]};return St(d,vU,t)},mU=({ownerState:e,theme:t})=>z({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":z({},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"},[`&.${wT.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}}),Cde=he("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wa,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${wT.multiple}`]:t.multiple}]}})(mU),gU=({ownerState:e,theme:t})=>z({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${wT.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Ode=he("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ue(r.variant)}`],r.open&&t.iconOpen]}})(gU),yU=p.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:s,inputRef:d,variant:f="standard"}=t,u=Ve(t,Sde),h=z({},t,{disabled:a,variant:f,error:o}),g=Ede(h);return A.jsxs(p.Fragment,{children:[A.jsx(Cde,z({ownerState:h,className:Re(g.select,n),disabled:a,ref:d||r},u)),t.multiple?null:A.jsx(Ode,{as:s,ownerState:h,className:g.icon})]})}),Pde=["className","children","classes","IconComponent","input","inputProps","variant"],Rde=["root"],kde=e=>{const{classes:t}=e;return St({root:["root"]},vU,t)},Ide=A.jsx(zw,{}),xk=p.forwardRef(function(t,r){const n=Et({name:"MuiNativeSelect",props:t}),{className:a,children:o,classes:s={},IconComponent:d=Z6,input:f=Ide,inputProps:u}=n,h=Ve(n,Pde),g=vs(),y=du({props:n,muiFormControl:g,states:["variant"]}),_=z({},n,{classes:s}),S=kde(_),E=Ve(s,Rde);return A.jsx(p.Fragment,{children:p.cloneElement(f,z({inputComponent:yU,inputProps:z({children:o,classes:E,IconComponent:d,variant:y.variant,type:void 0},u,f?f.props.inputProps:{}),ref:r},h,{className:Re(S.root,f.props.className,a)}))})});xk.muiName="Select";var T3;const jde=["children","classes","className","label","notched"],Tde=he("fieldset",{shouldForwardProp:wa})({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%"}),Ade=he("legend",{shouldForwardProp:wa})(({ownerState:e,theme:t})=>z({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&&z({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 Mde(e){const{className:t,label:r,notched:n}=e,a=Ve(e,jde),o=r!=null&&r!=="",s=z({},e,{notched:n,withLabel:o});return A.jsx(Tde,z({"aria-hidden":!0,className:t,ownerState:s},a,{children:A.jsx(Ade,{ownerState:s,children:o?A.jsx("span",{children:r}):T3||(T3=A.jsx("span",{className:"notranslate",children:"​"}))})}))}const Fde=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],$de=e=>{const{classes:t}=e,n=St({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rse,t);return z({},t,n)},Lde=he($w,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Mw})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return z({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Xu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Xu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Xu.focused} .${Xu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Xu.error} .${Xu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Xu.disabled} .${Xu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&z({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Dde=he(Mde,{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}}),Nde=he(Lw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Fw})(({theme:e,ownerState:t})=>z({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})),ST=p.forwardRef(function(t,r){var n,a,o,s,d;const f=Et({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:h=!1,inputComponent:g="input",label:y,multiline:_=!1,notched:S,slots:E={},type:x="text"}=f,T=Ve(f,Fde),I=$de(f),R=vs(),P=du({props:f,muiFormControl:R,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=z({},f,{color:P.color||"primary",disabled:P.disabled,error:P.error,focused:P.focused,formControl:R,fullWidth:h,hiddenLabel:P.hiddenLabel,multiline:_,size:P.size,type:x}),O=(n=(a=E.root)!=null?a:u.Root)!=null?n:Lde,j=(o=(s=E.input)!=null?s:u.Input)!=null?o:Nde;return A.jsx(Dw,z({slots:{root:O,input:j},renderSuffix:k=>A.jsx(Dde,{ownerState:C,className:I.notchedOutline,label:y!=null&&y!==""&&P.required?d||(d=A.jsxs(p.Fragment,{children:[y," ","*"]})):y,notched:typeof S<"u"?S:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:h,inputComponent:g,multiline:_,ref:r,type:x},T,{classes:z({},I,{notchedOutline:null})}))});ST.muiName="Input";function Bde(e){return wt("MuiPagination",e)}Ot("MuiPagination",["root","ul","outlined","text"]);const zde=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function qde(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:s=!1,hidePrevButton:d=!1,onChange:f,page:u,showFirstButton:h=!1,showLastButton:g=!1,siblingCount:y=1}=e,_=Ve(e,zde),[S,E]=nv({controlled:u,default:a,name:r,state:"page"}),x=(M,$)=>{u||E($),f&&f(M,$)},T=(M,$)=>{const N=$-M+1;return Array.from({length:N},(B,q)=>M+q)},I=T(1,Math.min(t,n)),R=T(Math.max(n-t+1,t+1),n),P=Math.max(Math.min(S-y,n-t-y*2-1),t+2),C=Math.min(Math.max(S+y,t+y*2+2),R.length>0?R[0]-2:n-1),O=[...h?["first"]:[],...d?[]:["previous"],...I,...P>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...R,...s?[]:["next"],...g?["last"]:[]],j=M=>{switch(M){case"first":return 1;case"previous":return S-1;case"next":return S+1;case"last":return n;default:return null}},k=O.map(M=>typeof M=="number"?{onClick:$=>{x($,M)},type:"page",page:M,selected:M===S,disabled:o,"aria-current":M===S?"true":void 0}:{onClick:$=>{x($,j(M))},type:M,page:j(M),selected:!1,disabled:o||M.indexOf("ellipsis")===-1&&(M==="next"||M==="last"?S>=n:S<=1)});return z({items:k},_)}function Ude(e){return wt("MuiPaginationItem",e)}const _i=Ot("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),wk=ti(A.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Sk=ti(A.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),A3=ti(A.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),M3=ti(A.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Vde=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],bU=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ue(r.size)}`],r.variant==="text"&&t[`text${Ue(r.color)}`],r.variant==="outlined"&&t[`outlined${Ue(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]},Wde=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:s,type:d,variant:f}=e,u={root:["root",`size${Ue(o)}`,f,s,r!=="standard"&&`color${Ue(r)}`,r!=="standard"&&`${f}${Ue(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[d]],icon:["icon"]};return St(u,Ude,t)},Hde=he("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:bU})(({theme:e,ownerState:t})=>z({},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",[`&.${_i.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)})),Gde=he(cu,{name:"MuiPaginationItem",slot:"Root",overridesResolver:bU})(({theme:e,ownerState:t})=>z({},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,[`&.${_i.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_i.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"}},[`&.${_i.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}))`:ir.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${_i.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ir.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${_i.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})=>z({},t.variant==="text"&&{[`&.${_i.selected}`]:z({},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}},[`&.${_i.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${_i.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)"}`,[`&.${_i.selected}`]:z({},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)`:ir.alpha(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:ir.alpha(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}))`:ir.alpha(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_i.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ir.alpha(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${_i.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Kde=he("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>z({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Qde=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:s,components:d={},disabled:f=!1,page:u,selected:h=!1,shape:g="circular",size:y="medium",slots:_={},type:S="page",variant:E="text"}=n,x=Ve(n,Vde),T=z({},n,{color:o,disabled:f,selected:h,shape:g,size:y,type:S,variant:E}),I=Bc(),R=Wde(T),C=(I?{previous:_.next||d.next||M3,next:_.previous||d.previous||A3,last:_.first||d.first||wk,first:_.last||d.last||Sk}:{previous:_.previous||d.previous||A3,next:_.next||d.next||M3,first:_.first||d.first||wk,last:_.last||d.last||Sk})[S];return S==="start-ellipsis"||S==="end-ellipsis"?A.jsx(Hde,{ref:r,ownerState:T,className:Re(R.root,a),children:"…"}):A.jsxs(Gde,z({ref:r,ownerState:T,component:s,disabled:f,className:Re(R.root,a)},x,{children:[S==="page"&&u,C?A.jsx(Kde,{as:C,ownerState:T,className:R.icon}):null]}))}),Xde=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Yde=e=>{const{classes:t,variant:r}=e;return St({root:["root",r],ul:["ul"]},Bde,t)},Jde=he("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Zde=he("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function efe(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const tfe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:s="standard",count:d=1,defaultPage:f=1,disabled:u=!1,getItemAriaLabel:h=efe,hideNextButton:g=!1,hidePrevButton:y=!1,renderItem:_=k=>A.jsx(Qde,z({},k)),shape:S="circular",showFirstButton:E=!1,showLastButton:x=!1,siblingCount:T=1,size:I="medium",variant:R="text"}=n,P=Ve(n,Xde),{items:C}=qde(z({},n,{componentName:"Pagination"})),O=z({},n,{boundaryCount:a,color:s,count:d,defaultPage:f,disabled:u,getItemAriaLabel:h,hideNextButton:g,hidePrevButton:y,renderItem:_,shape:S,showFirstButton:E,showLastButton:x,siblingCount:T,size:I,variant:R}),j=Yde(O);return A.jsx(Jde,z({"aria-label":"pagination navigation",className:Re(j.root,o),ownerState:O,ref:r},P,{children:A.jsx(Zde,{className:j.ul,ownerState:O,children:C.map((k,M)=>A.jsx("li",{children:_(z({},k,{color:s,"aria-label":h(k.type,k.page,k.selected),shape:S,size:I,variant:R}))},M))})}))});function rfe(e){return wt("MuiSelect",e)}const cg=Ot("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var F3;const nfe=["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"],afe=he("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${cg.select}`]:t.select},{[`&.${cg.select}`]:t[r.variant]},{[`&.${cg.error}`]:t.error},{[`&.${cg.multiple}`]:t.multiple}]}})(mU,{[`&.${cg.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ofe=he("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ue(r.variant)}`],r.open&&t.iconOpen]}})(gU),ife=he("input",{shouldForwardProp:e=>N6(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 $3(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function sfe(e){return e==null||typeof e=="string"&&!e.trim()}const lfe=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:s}=e,d={select:["select",r,n&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${Ue(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return St(d,rfe,t)},ufe=p.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:s,autoWidth:d,children:f,className:u,defaultOpen:h,defaultValue:g,disabled:y,displayEmpty:_,error:S=!1,IconComponent:E,inputRef:x,labelId:T,MenuProps:I={},multiple:R,name:P,onBlur:C,onChange:O,onClose:j,onFocus:k,onOpen:M,open:$,readOnly:N,renderValue:B,SelectDisplayProps:q={},tabIndex:V,value:G,variant:Y="standard"}=t,X=Ve(t,nfe),[H,te]=nv({controlled:G,default:g,name:"Select"}),[ne,K]=nv({controlled:$,default:h,name:"Select"}),ee=p.useRef(null),Ce=p.useRef(null),[se,Se]=p.useState(null),{current:me}=p.useRef($!=null),[we,Oe]=p.useState(),ie=fn(r,x),Fe=p.useCallback(nt=>{Ce.current=nt,nt&&Se(nt)},[]),ke=se==null?void 0:se.parentNode;p.useImperativeHandle(ie,()=>({focus:()=>{Ce.current.focus()},node:ee.current,value:H}),[H]),p.useEffect(()=>{h&&ne&&se&&!me&&(Oe(d?null:ke.clientWidth),Ce.current.focus())},[se,d]),p.useEffect(()=>{s&&Ce.current.focus()},[s]),p.useEffect(()=>{if(!T)return;const nt=Dn(Ce.current).getElementById(T);if(nt){const Pt=()=>{getSelection().isCollapsed&&Ce.current.focus()};return nt.addEventListener("click",Pt),()=>{nt.removeEventListener("click",Pt)}}},[T]);const $e=(nt,Pt)=>{nt?M&&M(Pt):j&&j(Pt),me||(Oe(d?null:ke.clientWidth),K(nt))},Te=nt=>{nt.button===0&&(nt.preventDefault(),Ce.current.focus(),$e(!0,nt))},Be=nt=>{$e(!1,nt)},Le=p.Children.toArray(f),dt=nt=>{const Pt=Le.find(Je=>Je.props.value===nt.target.value);Pt!==void 0&&(te(Pt.props.value),O&&O(nt,Pt))},He=nt=>Pt=>{let Je;if(Pt.currentTarget.hasAttribute("tabindex")){if(R){Je=Array.isArray(H)?H.slice():[];const ut=H.indexOf(nt.props.value);ut===-1?Je.push(nt.props.value):Je.splice(ut,1)}else Je=nt.props.value;if(nt.props.onClick&&nt.props.onClick(Pt),H!==Je&&(te(Je),O)){const ut=Pt.nativeEvent||Pt,Ht=new ut.constructor(ut.type,ut);Object.defineProperty(Ht,"target",{writable:!0,value:{value:Je,name:P}}),O(Ht,nt)}R||$e(!1,Pt)}},Z=nt=>{N||[" ","ArrowUp","ArrowDown","Enter"].indexOf(nt.key)!==-1&&(nt.preventDefault(),$e(!0,nt))},ae=se!==null&&ne,fe=nt=>{!ae&&C&&(Object.defineProperty(nt,"target",{writable:!0,value:{value:H,name:P}}),C(nt))};delete X["aria-invalid"];let ve,be;const _e=[];let De=!1;(J1({value:H})||_)&&(B?ve=B(H):De=!0);const Ge=Le.map(nt=>{if(!p.isValidElement(nt))return null;let Pt;if(R){if(!Array.isArray(H))throw new Error(nu(2));Pt=H.some(Je=>$3(Je,nt.props.value)),Pt&&De&&_e.push(nt.props.children)}else Pt=$3(H,nt.props.value),Pt&&De&&(be=nt.props.children);return p.cloneElement(nt,{"aria-selected":Pt?"true":"false",onClick:He(nt),onKeyUp:Je=>{Je.key===" "&&Je.preventDefault(),nt.props.onKeyUp&&nt.props.onKeyUp(Je)},role:"option",selected:Pt,value:void 0,"data-value":nt.props.value})});De&&(R?_e.length===0?ve=null:ve=_e.reduce((nt,Pt,Je)=>(nt.push(Pt),Je<_e.length-1&&nt.push(", "),nt),[]):ve=be);let Mt=we;!d&&me&&se&&(Mt=ke.clientWidth);let et;typeof V<"u"?et=V:et=y?null:0;const ot=q.id||(P?`mui-component-select-${P}`:void 0),it=z({},t,{variant:Y,value:H,open:ae,error:S}),Dt=lfe(it),Zt=z({},I.PaperProps,(n=I.slotProps)==null?void 0:n.paper),Kt=xf();return A.jsxs(p.Fragment,{children:[A.jsx(afe,z({ref:Fe,tabIndex:et,role:"combobox","aria-controls":Kt,"aria-disabled":y?"true":void 0,"aria-expanded":ae?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[T,ot].filter(Boolean).join(" ")||void 0,"aria-describedby":a,onKeyDown:Z,onMouseDown:y||N?null:Te,onBlur:fe,onFocus:k},q,{ownerState:it,className:Re(q.className,Dt.select,u),id:ot,children:sfe(ve)?F3||(F3=A.jsx("span",{className:"notranslate",children:"​"})):ve})),A.jsx(ife,z({"aria-invalid":S,value:Array.isArray(H)?H.join(","):H,name:P,ref:ee,"aria-hidden":!0,onChange:dt,tabIndex:-1,disabled:y,className:Dt.nativeInput,autoFocus:s,ownerState:it},X)),A.jsx(ofe,{as:E,className:Dt.icon,ownerState:it}),A.jsx(qw,z({id:`menu-${P||""}`,anchorEl:ke,open:ae,onClose:Be,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},I,{MenuListProps:z({"aria-labelledby":T,role:"listbox","aria-multiselectable":R?"true":void 0,disableListWrap:!0,id:Kt},I.MenuListProps),slotProps:z({},I.slotProps,{paper:z({},Zt,{style:z({minWidth:Mt},Zt!=null?Zt.style:null)})}),children:Ge}))]})}),cfe=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],dfe=["root"],ffe=e=>{const{classes:t}=e;return t},ET={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wa(e)&&e!=="variant",slot:"Root"},pfe=he(zw,ET)(""),hfe=he(ST,ET)(""),vfe=he(yT,ET)(""),Uw=p.forwardRef(function(t,r){const n=Et({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:s={},className:d,defaultOpen:f=!1,displayEmpty:u=!1,IconComponent:h=Z6,id:g,input:y,inputProps:_,label:S,labelId:E,MenuProps:x,multiple:T=!1,native:I=!1,onClose:R,onOpen:P,open:C,renderValue:O,SelectDisplayProps:j,variant:k="outlined"}=n,M=Ve(n,cfe),$=I?yU:ufe,N=vs(),B=du({props:n,muiFormControl:N,states:["variant","error"]}),q=B.variant||k,V=z({},n,{variant:q,classes:s}),G=ffe(V),Y=Ve(G,dfe),X=y||{standard:A.jsx(pfe,{ownerState:V}),outlined:A.jsx(hfe,{label:S,ownerState:V}),filled:A.jsx(vfe,{ownerState:V})}[q],H=fn(r,X.ref);return A.jsx(p.Fragment,{children:p.cloneElement(X,z({inputComponent:$,inputProps:z({children:o,error:B.error,IconComponent:h,variant:q,type:void 0,multiple:T},I?{id:g}:{autoWidth:a,defaultOpen:f,displayEmpty:u,labelId:E,MenuProps:x,onClose:R,onOpen:P,open:C,renderValue:O,SelectDisplayProps:z({id:g},j)},_,{classes:_?ro(Y,_.classes):Y},y?y.props.inputProps:{})},(T&&I||u)&&q==="outlined"?{notched:!0}:{},{ref:H,className:Re(X.props.className,d,G.root)},!y&&{variant:q},M))})});Uw.muiName="Select";function mfe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,s=Jd();p.useEffect(()=>{if(!a)return;function T(I){I.defaultPrevented||(I.key==="Escape"||I.key==="Esc")&&(n==null||n(I,"escapeKeyDown"))}return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[a,n]);const d=to((T,I)=>{n==null||n(T,I)}),f=to(T=>{!n||T==null||s.start(T,()=>{d(null,"timeout")})});p.useEffect(()=>(a&&f(t),s.clear),[a,t,f,s]);const u=T=>{n==null||n(T,"clickaway")},h=s.clear,g=p.useCallback(()=>{t!=null&&f(o??t*.5)},[t,o,f]),y=T=>I=>{const R=T.onBlur;R==null||R(I),g()},_=T=>I=>{const R=T.onFocus;R==null||R(I),h()},S=T=>I=>{const R=T.onMouseEnter;R==null||R(I),h()},E=T=>I=>{const R=T.onMouseLeave;R==null||R(I),g()};return p.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",g),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",h)}},[r,a,g,h]),{getRootProps:(T={})=>{const I=z({},K1(e),K1(T));return z({role:"presentation"},T,I,{onBlur:y(I),onFocus:_(I),onMouseEnter:S(I),onMouseLeave:E(I)})},onClickAway:u}}function gfe(e){return wt("MuiSnackbarContent",e)}Ot("MuiSnackbarContent",["root","message","action"]);const yfe=["action","className","message","role"],bfe=e=>{const{classes:t}=e;return St({root:["root"],action:["action"],message:["message"]},gfe,t)},_fe=he(zc,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=ir.emphasize(e.palette.background.default,t);return z({},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}})}),xfe=he("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),wfe=he("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Sfe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:s,role:d="alert"}=n,f=Ve(n,yfe),u=n,h=bfe(u);return A.jsxs(_fe,z({role:d,square:!0,elevation:6,className:Re(h.root,o),ownerState:u,ref:r},f,{children:[A.jsx(xfe,{className:h.message,ownerState:u,children:s}),a?A.jsx(wfe,{className:h.action,ownerState:u,children:a}):null]}))});function Efe(e){return wt("MuiSnackbar",e)}Ot("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Cfe=["onEnter","onExited"],Ofe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Pfe=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${Ue(r.vertical)}${Ue(r.horizontal)}`]};return St(n,Efe,t)},L3=he("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${Ue(r.anchorOrigin.vertical)}${Ue(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return z({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")]:z({},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"})})}),Rfe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiSnackbar"}),a=ei(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:d,horizontal:f}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:h,className:g,ClickAwayListenerProps:y,ContentProps:_,disableWindowBlurListener:S=!1,message:E,open:x,TransitionComponent:T=Ob,transitionDuration:I=o,TransitionProps:{onEnter:R,onExited:P}={}}=n,C=Ve(n.TransitionProps,Cfe),O=Ve(n,Ofe),j=z({},n,{anchorOrigin:{vertical:d,horizontal:f},autoHideDuration:u,disableWindowBlurListener:S,TransitionComponent:T,transitionDuration:I}),k=Pfe(j),{getRootProps:M,onClickAway:$}=mfe(z({},j)),[N,B]=p.useState(!0),q=Ai({elementType:L3,getSlotProps:M,externalForwardedProps:O,ownerState:j,additionalProps:{ref:r},className:[k.root,g]}),V=Y=>{B(!0),P&&P(Y)},G=(Y,X)=>{B(!1),R&&R(Y,X)};return!x&&N?null:A.jsx(gle,z({onClickAway:$},y,{children:A.jsx(L3,z({},q,{children:A.jsx(T,z({appear:!0,in:x,timeout:I,direction:d==="top"?"down":"up",onEnter:G,onExited:V},C,{children:h||A.jsx(Sfe,z({message:E,action:s},_))}))}))}))});function kfe(e){return wt("MuiTooltip",e)}const _c=Ot("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ife=["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 jfe(e){return Math.round(e*1e5)/1e5}const Tfe=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,s={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Ue(o.split("-")[0])}`],arrow:["arrow"]};return St(s,kfe,t)},Afe=he(Y6,{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})=>z({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${_c.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_c.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_c.arrow}`]:z({},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"] .${_c.arrow}`]:z({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Mfe=he("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${Ue(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>z({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ir.alpha(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:`${jfe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_c.popper}[data-popper-placement*="left"] &`]:z({transformOrigin:"right center"},t.isRtl?z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):z({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${_c.popper}[data-popper-placement*="right"] &`]:z({transformOrigin:"left center"},t.isRtl?z({marginRight:"14px"},t.touch&&{marginRight:"24px"}):z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${_c.popper}[data-popper-placement*="top"] &`]:z({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_c.popper}[data-popper-placement*="bottom"] &`]:z({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Ffe=he("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:ir.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let V_=!1;const D3=new e0;let dg={x:0,y:0};function W_(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const xa=p.forwardRef(function(t,r){var n,a,o,s,d,f,u,h,g,y,_,S,E,x,T,I,R,P,C;const O=Et({props:t,name:"MuiTooltip"}),{arrow:j=!1,children:k,components:M={},componentsProps:$={},describeChild:N=!1,disableFocusListener:B=!1,disableHoverListener:q=!1,disableInteractive:V=!1,disableTouchListener:G=!1,enterDelay:Y=100,enterNextDelay:X=0,enterTouchDelay:H=700,followCursor:te=!1,id:ne,leaveDelay:K=0,leaveTouchDelay:ee=1500,onClose:Ce,onOpen:se,open:Se,placement:me="bottom",PopperComponent:we,PopperProps:Oe={},slotProps:ie={},slots:Fe={},title:ke,TransitionComponent:$e=Ob,TransitionProps:Te}=O,Be=Ve(O,Ife),Le=p.isValidElement(k)?k:A.jsx("span",{children:k}),dt=ei(),He=Bc(),[Z,ae]=p.useState(),[fe,ve]=p.useState(null),be=p.useRef(!1),_e=V||te,De=Jd(),Ge=Jd(),Mt=Jd(),et=Jd(),[ot,it]=nv({controlled:Se,default:!1,name:"Tooltip",state:"open"});let Dt=ot;const Zt=xf(ne),Kt=p.useRef(),nt=to(()=>{Kt.current!==void 0&&(document.body.style.WebkitUserSelect=Kt.current,Kt.current=void 0),et.clear()});p.useEffect(()=>nt,[nt]);const Pt=It=>{D3.clear(),V_=!0,it(!0),se&&!Dt&&se(It)},Je=to(It=>{D3.start(800+K,()=>{V_=!1}),it(!1),Ce&&Dt&&Ce(It),De.start(dt.transitions.duration.shortest,()=>{be.current=!1})}),ut=It=>{be.current&&It.type!=="touchstart"||(Z&&Z.removeAttribute("title"),Ge.clear(),Mt.clear(),Y||V_&&X?Ge.start(V_?X:Y,()=>{Pt(It)}):Pt(It))},Ht=It=>{Ge.clear(),Mt.start(K,()=>{Je(It)})},{isFocusVisibleRef:Qt,onBlur:Or,onFocus:Ur,ref:Gr}=kw(),[,kn]=p.useState(!1),zn=It=>{Or(It),Qt.current===!1&&(kn(!1),Ht(It))},Io=It=>{Z||ae(It.currentTarget),Ur(It),Qt.current===!0&&(kn(!0),ut(It))},ms=It=>{be.current=!0;const Zr=Le.props;Zr.onTouchStart&&Zr.onTouchStart(It)},Bi=It=>{ms(It),Mt.clear(),De.clear(),nt(),Kt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",et.start(H,()=>{document.body.style.WebkitUserSelect=Kt.current,ut(It)})},ri=It=>{Le.props.onTouchEnd&&Le.props.onTouchEnd(It),nt(),Mt.start(ee,()=>{Je(It)})};p.useEffect(()=>{if(!Dt)return;function It(Zr){(Zr.key==="Escape"||Zr.key==="Esc")&&Je(Zr)}return document.addEventListener("keydown",It),()=>{document.removeEventListener("keydown",It)}},[Je,Dt]);const fl=fn(Le.ref,Gr,ae,r);!ke&&ke!==0&&(Dt=!1);const gs=p.useRef(),le=It=>{const Zr=Le.props;Zr.onMouseMove&&Zr.onMouseMove(It),dg={x:It.clientX,y:It.clientY},gs.current&&gs.current.update()},ye={},je=typeof ke=="string";N?(ye.title=!Dt&&je&&!q?ke:null,ye["aria-describedby"]=Dt?Zt:null):(ye["aria-label"]=je?ke:null,ye["aria-labelledby"]=Dt&&!je?Zt:null);const Ne=z({},ye,Be,Le.props,{className:Re(Be.className,Le.props.className),onTouchStart:ms,ref:fl},te?{onMouseMove:le}:{}),lt={};G||(Ne.onTouchStart=Bi,Ne.onTouchEnd=ri),q||(Ne.onMouseOver=W_(ut,Ne.onMouseOver),Ne.onMouseLeave=W_(Ht,Ne.onMouseLeave),_e||(lt.onMouseOver=ut,lt.onMouseLeave=Ht)),B||(Ne.onFocus=W_(Io,Ne.onFocus),Ne.onBlur=W_(zn,Ne.onBlur),_e||(lt.onFocus=Io,lt.onBlur=zn));const kt=p.useMemo(()=>{var It;let Zr=[{name:"arrow",enabled:!!fe,options:{element:fe,padding:4}}];return(It=Oe.popperOptions)!=null&&It.modifiers&&(Zr=Zr.concat(Oe.popperOptions.modifiers)),z({},Oe.popperOptions,{modifiers:Zr})},[fe,Oe]),Ft=z({},O,{isRtl:He,arrow:j,disableInteractive:_e,placement:me,PopperComponentProp:we,touch:be.current}),ft=Tfe(Ft),_t=(n=(a=Fe.popper)!=null?a:M.Popper)!=null?n:Afe,mt=(o=(s=(d=Fe.transition)!=null?d:M.Transition)!=null?s:$e)!=null?o:Ob,jt=(f=(u=Fe.tooltip)!=null?u:M.Tooltip)!=null?f:Mfe,Wt=(h=(g=Fe.arrow)!=null?g:M.Arrow)!=null?h:Ffe,er=_h(_t,z({},Oe,(y=ie.popper)!=null?y:$.popper,{className:Re(ft.popper,Oe==null?void 0:Oe.className,(_=(S=ie.popper)!=null?S:$.popper)==null?void 0:_.className)}),Ft),rn=_h(mt,z({},Te,(E=ie.transition)!=null?E:$.transition),Ft),Er=_h(jt,z({},(x=ie.tooltip)!=null?x:$.tooltip,{className:Re(ft.tooltip,(T=(I=ie.tooltip)!=null?I:$.tooltip)==null?void 0:T.className)}),Ft),sr=_h(Wt,z({},(R=ie.arrow)!=null?R:$.arrow,{className:Re(ft.arrow,(P=(C=ie.arrow)!=null?C:$.arrow)==null?void 0:P.className)}),Ft);return A.jsxs(p.Fragment,{children:[p.cloneElement(Le,Ne),A.jsx(_t,z({as:we??Y6,placement:me,anchorEl:te?{getBoundingClientRect:()=>({top:dg.y,left:dg.x,right:dg.x,bottom:dg.y,width:0,height:0})}:Z,popperRef:gs,open:Z?Dt:!1,id:Zt,transition:!0},lt,er,{popperOptions:kt,children:({TransitionProps:It})=>A.jsx(mt,z({timeout:dt.transitions.duration.shorter},It,rn,{children:A.jsxs(jt,z({},Er,{children:[ke,j?A.jsx(Wt,z({},sr,{ref:ve})):null]}))}))}))]})});function $fe(e){return wt("MuiSwitch",e)}const Ka=Ot("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Lfe=["className","color","edge","size","sx"],Dfe=e=>{const{classes:t,edge:r,size:n,color:a,checked:o,disabled:s}=e,d={root:["root",r&&`edge${Ue(r)}`,`size${Ue(n)}`],switchBase:["switchBase",`color${Ue(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},f=St(d,$fe,t);return z({},t,f)},Nfe=he("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Ue(r.edge)}`],t[`size${Ue(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,[`& .${Ka.thumb}`]:{width:16,height:16},[`& .${Ka.switchBase}`]:{padding:4,[`&.${Ka.checked}`]:{transform:"translateX(16px)"}}}}]}),Bfe=he(aU,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Ka.input}`]:t.input},r.color!=="default"&&t[`color${Ue(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}),[`&.${Ka.checked}`]:{transform:"translateX(20px)"},[`&.${Ka.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Ka.checked} + .${Ka.track}`]:{opacity:.5},[`&.${Ka.disabled} + .${Ka.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Ka.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ir.alpha(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:{[`&.${Ka.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ir.alpha(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ka.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?ir.lighten(e.palette[t].main,.62):ir.darken(e.palette[t].main,.55)}`}},[`&.${Ka.checked} + .${Ka.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),zfe=he("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}`})),qfe=he("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%"})),_U=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:d="medium",sx:f}=n,u=Ve(n,Lfe),h=z({},n,{color:o,edge:s,size:d}),g=Dfe(h),y=A.jsx(qfe,{className:g.thumb,ownerState:h});return A.jsxs(Nfe,{className:Re(g.root,a),sx:f,ownerState:h,children:[A.jsx(Bfe,z({type:"checkbox",icon:y,checkedIcon:y,ref:r,ownerState:h},u,{classes:z({},g,{root:g.switchBase})})),A.jsx(zfe,{className:g.track,ownerState:h})]})});function Ufe(e){return wt("MuiTab",e)}const Ju=Ot("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Vfe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Wfe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:o,label:s,selected:d,disabled:f}=e,u={root:["root",o&&s&&"labelIcon",`textColor${Ue(r)}`,n&&"fullWidth",a&&"wrapped",d&&"selected",f&&"disabled"],iconWrapper:["iconWrapper"]};return St(u,Ufe,t)},Hfe=he(cu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Ue(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Ju.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>z({},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,[`& > .${Ju.iconWrapper}`]:z({},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,[`&.${Ju.selected}`]:{opacity:1},[`&.${Ju.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ju.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ju.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ju.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ju.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)})),xU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:d,icon:f,iconPosition:u="top",indicator:h,label:g,onChange:y,onClick:_,onFocus:S,selected:E,selectionFollowsFocus:x,textColor:T="inherit",value:I,wrapped:R=!1}=n,P=Ve(n,Vfe),C=z({},n,{disabled:o,disableFocusRipple:s,selected:E,icon:!!f,iconPosition:u,label:!!g,fullWidth:d,textColor:T,wrapped:R}),O=Wfe(C),j=f&&g&&p.isValidElement(f)?p.cloneElement(f,{className:Re(O.iconWrapper,f.props.className)}):f,k=$=>{!E&&y&&y($,I),_&&_($)},M=$=>{x&&!E&&y&&y($,I),S&&S($)};return A.jsxs(Hfe,z({focusRipple:!s,className:Re(O.root,a),ref:r,role:"tab","aria-selected":E,disabled:o,onClick:k,onFocus:M,ownerState:C,tabIndex:E?0:-1},P,{children:[u==="top"||u==="start"?A.jsxs(p.Fragment,{children:[j,g]}):A.jsxs(p.Fragment,{children:[g,j]}),h]}))}),wU=p.createContext();function Gfe(e){return wt("MuiTable",e)}Ot("MuiTable",["root","stickyHeader"]);const Kfe=["className","component","padding","size","stickyHeader"],Qfe=e=>{const{classes:t,stickyHeader:r}=e;return St({root:["root",r&&"stickyHeader"]},Gfe,t)},Xfe=he("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>z({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":z({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),N3="table",SU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTable"}),{className:a,component:o=N3,padding:s="normal",size:d="medium",stickyHeader:f=!1}=n,u=Ve(n,Kfe),h=z({},n,{component:o,padding:s,size:d,stickyHeader:f}),g=Qfe(h),y=p.useMemo(()=>({padding:s,size:d,stickyHeader:f}),[s,d,f]);return A.jsx(wU.Provider,{value:y,children:A.jsx(Xfe,z({as:o,role:o===N3?null:"table",ref:r,className:Re(g.root,a),ownerState:h},u))})}),Vw=p.createContext();function Yfe(e){return wt("MuiTableBody",e)}Ot("MuiTableBody",["root"]);const Jfe=["className","component"],Zfe=e=>{const{classes:t}=e;return St({root:["root"]},Yfe,t)},epe=he("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),tpe={variant:"body"},B3="tbody",EU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableBody"}),{className:a,component:o=B3}=n,s=Ve(n,Jfe),d=z({},n,{component:o}),f=Zfe(d);return A.jsx(Vw.Provider,{value:tpe,children:A.jsx(epe,z({className:Re(f.root,a),as:o,ref:r,role:o===B3?null:"rowgroup",ownerState:d},s))})});function rpe(e){return wt("MuiTableCell",e)}const npe=Ot("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ape=["align","className","component","padding","scope","size","sortDirection","variant"],ope=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:s}=e,d={root:["root",r,s&&"stickyHeader",n!=="inherit"&&`align${Ue(n)}`,a!=="normal"&&`padding${Ue(a)}`,`size${Ue(o)}`]};return St(d,rpe,t)},ipe=he("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ue(r.size)}`],r.padding!=="normal"&&t[`padding${Ue(r.padding)}`],r.align!=="inherit"&&t[`align${Ue(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>z({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?ir.lighten(ir.alpha(e.palette.divider,1),.88):ir.darken(ir.alpha(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",[`&.${npe.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})),Ma=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:s,padding:d,scope:f,size:u,sortDirection:h,variant:g}=n,y=Ve(n,ape),_=p.useContext(wU),S=p.useContext(Vw),E=S&&S.variant==="head";let x;s?x=s:x=E?"th":"td";let T=f;x==="td"?T=void 0:!T&&E&&(T="col");const I=g||S&&S.variant,R=z({},n,{align:a,component:x,padding:d||(_&&_.padding?_.padding:"normal"),size:u||(_&&_.size?_.size:"medium"),sortDirection:h,stickyHeader:I==="head"&&_&&_.stickyHeader,variant:I}),P=ope(R);let C=null;return h&&(C=h==="asc"?"ascending":"descending"),A.jsx(ipe,z({as:x,ref:r,className:Re(P.root,o),"aria-sort":C,scope:T,ownerState:R},y))});function spe(e){return wt("MuiTableHead",e)}Ot("MuiTableHead",["root"]);const lpe=["className","component"],upe=e=>{const{classes:t}=e;return St({root:["root"]},spe,t)},cpe=he("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),dpe={variant:"head"},z3="thead",CU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableHead"}),{className:a,component:o=z3}=n,s=Ve(n,lpe),d=z({},n,{component:o}),f=upe(d);return A.jsx(Vw.Provider,{value:dpe,children:A.jsx(cpe,z({as:o,className:Re(f.root,a),ref:r,role:o===z3?null:"rowgroup",ownerState:d},s))})});function fpe(e){return wt("MuiToolbar",e)}Ot("MuiToolbar",["root","gutters","regular","dense"]);const ppe=["className","component","disableGutters","variant"],hpe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return St({root:["root",!r&&"gutters",n]},fpe,t)},vpe=he("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})=>z({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),kv=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:s=!1,variant:d="regular"}=n,f=Ve(n,ppe),u=z({},n,{component:o,disableGutters:s,variant:d}),h=hpe(u);return A.jsx(vpe,z({as:o,className:Re(h.root,a),ref:r,ownerState:u},f))}),OU=ti(A.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),PU=ti(A.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),mpe=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],gpe=p.forwardRef(function(t,r){var n,a,o,s,d,f,u,h;const{backIconButtonProps:g,count:y,disabled:_=!1,getItemAriaLabel:S,nextIconButtonProps:E,onPageChange:x,page:T,rowsPerPage:I,showFirstButton:R,showLastButton:P,slots:C={},slotProps:O={}}=t,j=Ve(t,mpe),k=Bc(),M=ie=>{x(ie,0)},$=ie=>{x(ie,T-1)},N=ie=>{x(ie,T+1)},B=ie=>{x(ie,Math.max(0,Math.ceil(y/I)-1))},q=(n=C.firstButton)!=null?n:_n,V=(a=C.lastButton)!=null?a:_n,G=(o=C.nextButton)!=null?o:_n,Y=(s=C.previousButton)!=null?s:_n,X=(d=C.firstButtonIcon)!=null?d:wk,H=(f=C.lastButtonIcon)!=null?f:Sk,te=(u=C.nextButtonIcon)!=null?u:PU,ne=(h=C.previousButtonIcon)!=null?h:OU,K=k?V:q,ee=k?G:Y,Ce=k?Y:G,se=k?q:V,Se=k?O.lastButton:O.firstButton,me=k?O.nextButton:O.previousButton,we=k?O.previousButton:O.nextButton,Oe=k?O.firstButton:O.lastButton;return A.jsxs("div",z({ref:r},j,{children:[R&&A.jsx(K,z({onClick:M,disabled:_||T===0,"aria-label":S("first",T),title:S("first",T)},Se,{children:k?A.jsx(H,z({},O.lastButtonIcon)):A.jsx(X,z({},O.firstButtonIcon))})),A.jsx(ee,z({onClick:$,disabled:_||T===0,color:"inherit","aria-label":S("previous",T),title:S("previous",T)},me??g,{children:k?A.jsx(te,z({},O.nextButtonIcon)):A.jsx(ne,z({},O.previousButtonIcon))})),A.jsx(Ce,z({onClick:N,disabled:_||(y!==-1?T>=Math.ceil(y/I)-1:!1),color:"inherit","aria-label":S("next",T),title:S("next",T)},we??E,{children:k?A.jsx(ne,z({},O.previousButtonIcon)):A.jsx(te,z({},O.nextButtonIcon))})),P&&A.jsx(se,z({onClick:B,disabled:_||T>=Math.ceil(y/I)-1,"aria-label":S("last",T),title:S("last",T)},Oe,{children:k?A.jsx(X,z({},O.firstButtonIcon)):A.jsx(H,z({},O.lastButtonIcon))}))]}))});function ype(e){return wt("MuiTablePagination",e)}const rb=Ot("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var q3;const bpe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],_pe=he(Ma,{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}})),xpe=he(kv,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>z({[`& .${rb.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},[`& .${rb.actions}`]:{flexShrink:0,marginLeft:20}})),wpe=he("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Spe=he("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>z({},e.typography.body2,{flexShrink:0})),Epe=he(Uw,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>z({[`& .${rb.selectIcon}`]:t.selectIcon,[`& .${rb.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${rb.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Cpe=he(Ko,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Ope=he("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>z({},e.typography.body2,{flexShrink:0}));function Ppe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function Rpe(e){return`Go to ${e} page`}const kpe=e=>{const{classes:t}=e;return St({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},ype,t)},U3=p.forwardRef(function(t,r){var n;const a=Et({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=gpe,backIconButtonProps:s,className:d,colSpan:f,component:u=Ma,count:h,disabled:g=!1,getItemAriaLabel:y=Rpe,labelDisplayedRows:_=Ppe,labelRowsPerPage:S="Rows per page:",nextIconButtonProps:E,onPageChange:x,onRowsPerPageChange:T,page:I,rowsPerPage:R,rowsPerPageOptions:P=[10,25,50,100],SelectProps:C={},showFirstButton:O=!1,showLastButton:j=!1,slotProps:k={},slots:M={}}=a,$=Ve(a,bpe),N=a,B=kpe(N),q=(n=k==null?void 0:k.select)!=null?n:C,V=q.native?"option":Cpe;let G;(u===Ma||u==="td")&&(G=f||1e3);const Y=xf(q.id),X=xf(q.labelId),H=()=>h===-1?(I+1)*R:R===-1?h:Math.min(h,(I+1)*R);return A.jsx(_pe,z({colSpan:G,ref:r,as:u,ownerState:N,className:Re(B.root,d)},$,{children:A.jsxs(xpe,{className:B.toolbar,children:[A.jsx(wpe,{className:B.spacer}),P.length>1&&A.jsx(Spe,{className:B.selectLabel,id:X,children:S}),P.length>1&&A.jsx(Epe,z({variant:"standard"},!q.variant&&{input:q3||(q3=A.jsx(Dw,{}))},{value:R,onChange:T,id:Y,labelId:X},q,{classes:z({},q.classes,{root:Re(B.input,B.selectRoot,(q.classes||{}).root),select:Re(B.select,(q.classes||{}).select),icon:Re(B.selectIcon,(q.classes||{}).icon)}),disabled:g,children:P.map(te=>p.createElement(V,z({},!xb(V)&&{ownerState:N},{className:B.menuItem,key:te.label?te.label:te,value:te.value?te.value:te}),te.label?te.label:te))})),A.jsx(Ope,{className:B.displayedRows,children:_({from:h===0?0:I*R+1,to:H(),count:h===-1?-1:h,page:I})}),A.jsx(o,{className:B.actions,backIconButtonProps:s,count:h,nextIconButtonProps:E,onPageChange:x,page:I,rowsPerPage:R,showFirstButton:O,showLastButton:j,slotProps:k.actions,slots:M.actions,getItemAriaLabel:y,disabled:g})]})}))});function Ipe(e){return wt("MuiTableRow",e)}const V3=Ot("MuiTableRow",["root","selected","hover","head","footer"]),jpe=["className","component","hover","selected"],Tpe=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return St({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},Ipe,t)},Ape=he("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,[`&.${V3.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V3.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ir.alpha(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}))`:ir.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),W3="tr",Rb=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableRow"}),{className:a,component:o=W3,hover:s=!1,selected:d=!1}=n,f=Ve(n,jpe),u=p.useContext(Vw),h=z({},n,{component:o,hover:s,selected:d,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),g=Tpe(h);return A.jsx(Ape,z({as:o,ref:r,className:Re(g.root,a),role:o===W3?null:"row",ownerState:h},f))}),Mpe=ti(A.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function Fpe(e){return wt("MuiTableSortLabel",e)}const s2=Ot("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),$pe=["active","children","className","direction","hideSortIcon","IconComponent"],Lpe=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${Ue(r)}`]};return St(a,Fpe,t)},Dpe=he(cu,{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,[`& .${s2.icon}`]:{opacity:.5}},[`&.${s2.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${s2.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),Npe=he("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${Ue(r.direction)}`]]}})(({theme:e,ownerState:t})=>z({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)"})),Bpe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:s,direction:d="asc",hideSortIcon:f=!1,IconComponent:u=Mpe}=n,h=Ve(n,$pe),g=z({},n,{active:a,direction:d,hideSortIcon:f,IconComponent:u}),y=Lpe(g);return A.jsxs(Dpe,z({className:Re(y.root,s),component:"span",disableRipple:!0,ownerState:g,ref:r},h,{children:[o,f&&!a?null:A.jsx(Npe,{as:u,className:Re(y.icon),ownerState:g})]}))});function zpe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function qpe(e,t,r,n={},a=()=>{}){const{ease:o=zpe,duration:s=300}=n;let d=null;const f=t[e];let u=!1;const h=()=>{u=!0},g=y=>{if(u){a(new Error("Animation cancelled"));return}d===null&&(d=y);const _=Math.min(1,(y-d)/s);if(t[e]=o(_)*(r-f)+f,_>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(g)};return f===r?(a(new Error("Element already at target position")),h):(requestAnimationFrame(g),h)}const Upe=["onChange"],Vpe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Wpe(e){const{onChange:t}=e,r=Ve(e,Upe),n=p.useRef(),a=p.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return Yo(()=>{const s=Cv(()=>{const f=n.current;o(),f!==n.current&&t(n.current)}),d=Ti(a.current);return d.addEventListener("resize",s),()=>{s.clear(),d.removeEventListener("resize",s)}},[t]),p.useEffect(()=>{o(),t(n.current)},[t]),A.jsx("div",z({style:Vpe,ref:a},r))}function Hpe(e){return wt("MuiTabScrollButton",e)}const Gpe=Ot("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Kpe=["className","slots","slotProps","direction","orientation","disabled"],Qpe=e=>{const{classes:t,orientation:r,disabled:n}=e;return St({root:["root",r,n&&"disabled"]},Hpe,t)},Xpe=he(cu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>z({width:40,flexShrink:0,opacity:.8,[`&.${Gpe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Ype=p.forwardRef(function(t,r){var n,a;const o=Et({props:t,name:"MuiTabScrollButton"}),{className:s,slots:d={},slotProps:f={},direction:u}=o,h=Ve(o,Kpe),g=Bc(),y=z({isRtl:g},o),_=Qpe(y),S=(n=d.StartScrollButtonIcon)!=null?n:OU,E=(a=d.EndScrollButtonIcon)!=null?a:PU,x=Ai({elementType:S,externalSlotProps:f.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y}),T=Ai({elementType:E,externalSlotProps:f.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y});return A.jsx(Xpe,z({component:"div",className:Re(_.root,s),ref:r,role:null,ownerState:y,tabIndex:null},h,{children:u==="left"?A.jsx(S,z({},x)):A.jsx(E,z({},T))}))});function Jpe(e){return wt("MuiTabs",e)}const l2=Ot("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Zpe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],H3=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,G3=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,H_=(e,t,r)=>{let n=!1,a=r(e,t);for(;a;){if(a===e.firstChild){if(n)return;n=!0}const o=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||o)a=r(e,a);else{a.focus();return}}},ehe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:s,scrollButtonsHideMobile:d,classes:f}=e;return St({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",d&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Jpe,f)},the=he("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${l2.scrollButtons}`]:t.scrollButtons},{[`& .${l2.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>z({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${l2.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),rhe=he("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})=>z({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"})),nhe=he("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})=>z({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),ahe=he("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>z({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})),ohe=he(Wpe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),K3={},RU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTabs"}),a=ei(),o=Bc(),{"aria-label":s,"aria-labelledby":d,action:f,centered:u=!1,children:h,className:g,component:y="div",allowScrollButtonsMobile:_=!1,indicatorColor:S="primary",onChange:E,orientation:x="horizontal",ScrollButtonComponent:T=Ype,scrollButtons:I="auto",selectionFollowsFocus:R,slots:P={},slotProps:C={},TabIndicatorProps:O={},TabScrollButtonProps:j={},textColor:k="primary",value:M,variant:$="standard",visibleScrollbar:N=!1}=n,B=Ve(n,Zpe),q=$==="scrollable",V=x==="vertical",G=V?"scrollTop":"scrollLeft",Y=V?"top":"left",X=V?"bottom":"right",H=V?"clientHeight":"clientWidth",te=V?"height":"width",ne=z({},n,{component:y,allowScrollButtonsMobile:_,indicatorColor:S,orientation:x,vertical:V,scrollButtons:I,textColor:k,variant:$,visibleScrollbar:N,fixed:!q,hideScrollbar:q&&!N,scrollableX:q&&!V,scrollableY:q&&V,centered:u&&!q,scrollButtonsHideMobile:!_}),K=ehe(ne),ee=Ai({elementType:P.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:ne}),Ce=Ai({elementType:P.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:ne}),[se,Se]=p.useState(!1),[me,we]=p.useState(K3),[Oe,ie]=p.useState(!1),[Fe,ke]=p.useState(!1),[$e,Te]=p.useState(!1),[Be,Le]=p.useState({overflow:"hidden",scrollbarWidth:0}),dt=new Map,He=p.useRef(null),Z=p.useRef(null),ae=()=>{const Je=He.current;let ut;if(Je){const Qt=Je.getBoundingClientRect();ut={clientWidth:Je.clientWidth,scrollLeft:Je.scrollLeft,scrollTop:Je.scrollTop,scrollLeftNormalized:yne(Je,o?"rtl":"ltr"),scrollWidth:Je.scrollWidth,top:Qt.top,bottom:Qt.bottom,left:Qt.left,right:Qt.right}}let Ht;if(Je&&M!==!1){const Qt=Z.current.children;if(Qt.length>0){const Or=Qt[dt.get(M)];Ht=Or?Or.getBoundingClientRect():null}}return{tabsMeta:ut,tabMeta:Ht}},fe=to(()=>{const{tabsMeta:Je,tabMeta:ut}=ae();let Ht=0,Qt;if(V)Qt="top",ut&&Je&&(Ht=ut.top-Je.top+Je.scrollTop);else if(Qt=o?"right":"left",ut&&Je){const Ur=o?Je.scrollLeftNormalized+Je.clientWidth-Je.scrollWidth:Je.scrollLeft;Ht=(o?-1:1)*(ut[Qt]-Je[Qt]+Ur)}const Or={[Qt]:Ht,[te]:ut?ut[te]:0};if(isNaN(me[Qt])||isNaN(me[te]))we(Or);else{const Ur=Math.abs(me[Qt]-Or[Qt]),Gr=Math.abs(me[te]-Or[te]);(Ur>=1||Gr>=1)&&we(Or)}}),ve=(Je,{animation:ut=!0}={})=>{ut?qpe(G,He.current,Je,{duration:a.transitions.duration.standard}):He.current[G]=Je},be=Je=>{let ut=He.current[G];V?ut+=Je:(ut+=Je*(o?-1:1),ut*=o&&I6()==="reverse"?-1:1),ve(ut)},_e=()=>{const Je=He.current[H];let ut=0;const Ht=Array.from(Z.current.children);for(let Qt=0;QtJe){Qt===0&&(ut=Je);break}ut+=Or[H]}return ut},De=()=>{be(-1*_e())},Ge=()=>{be(_e())},Mt=p.useCallback(Je=>{Le({overflow:null,scrollbarWidth:Je})},[]),et=()=>{const Je={};Je.scrollbarSizeListener=q?A.jsx(ohe,{onChange:Mt,className:Re(K.scrollableX,K.hideScrollbar)}):null;const Ht=q&&(I==="auto"&&(Oe||Fe)||I===!0);return Je.scrollButtonStart=Ht?A.jsx(T,z({slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ee},orientation:x,direction:o?"right":"left",onClick:De,disabled:!Oe},j,{className:Re(K.scrollButtons,j.className)})):null,Je.scrollButtonEnd=Ht?A.jsx(T,z({slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ce},orientation:x,direction:o?"left":"right",onClick:Ge,disabled:!Fe},j,{className:Re(K.scrollButtons,j.className)})):null,Je},ot=to(Je=>{const{tabsMeta:ut,tabMeta:Ht}=ae();if(!(!Ht||!ut)){if(Ht[Y]ut[X]){const Qt=ut[G]+(Ht[X]-ut[X]);ve(Qt,{animation:Je})}}}),it=to(()=>{q&&I!==!1&&Te(!$e)});p.useEffect(()=>{const Je=Cv(()=>{He.current&&fe()});let ut;const Ht=Ur=>{Ur.forEach(Gr=>{Gr.removedNodes.forEach(kn=>{var zn;(zn=ut)==null||zn.unobserve(kn)}),Gr.addedNodes.forEach(kn=>{var zn;(zn=ut)==null||zn.observe(kn)})}),Je(),it()},Qt=Ti(He.current);Qt.addEventListener("resize",Je);let Or;return typeof ResizeObserver<"u"&&(ut=new ResizeObserver(Je),Array.from(Z.current.children).forEach(Ur=>{ut.observe(Ur)})),typeof MutationObserver<"u"&&(Or=new MutationObserver(Ht),Or.observe(Z.current,{childList:!0})),()=>{var Ur,Gr;Je.clear(),Qt.removeEventListener("resize",Je),(Ur=Or)==null||Ur.disconnect(),(Gr=ut)==null||Gr.disconnect()}},[fe,it]),p.useEffect(()=>{const Je=Array.from(Z.current.children),ut=Je.length;if(typeof IntersectionObserver<"u"&&ut>0&&q&&I!==!1){const Ht=Je[0],Qt=Je[ut-1],Or={root:He.current,threshold:.99},Ur=Io=>{ie(!Io[0].isIntersecting)},Gr=new IntersectionObserver(Ur,Or);Gr.observe(Ht);const kn=Io=>{ke(!Io[0].isIntersecting)},zn=new IntersectionObserver(kn,Or);return zn.observe(Qt),()=>{Gr.disconnect(),zn.disconnect()}}},[q,I,$e,h==null?void 0:h.length]),p.useEffect(()=>{Se(!0)},[]),p.useEffect(()=>{fe()}),p.useEffect(()=>{ot(K3!==me)},[ot,me]),p.useImperativeHandle(f,()=>({updateIndicator:fe,updateScrollButtons:it}),[fe,it]);const Dt=A.jsx(ahe,z({},O,{className:Re(K.indicator,O.className),ownerState:ne,style:z({},me,O.style)}));let Zt=0;const Kt=p.Children.map(h,Je=>{if(!p.isValidElement(Je))return null;const ut=Je.props.value===void 0?Zt:Je.props.value;dt.set(ut,Zt);const Ht=ut===M;return Zt+=1,p.cloneElement(Je,z({fullWidth:$==="fullWidth",indicator:Ht&&!se&&Dt,selected:Ht,selectionFollowsFocus:R,onChange:E,textColor:k,value:ut},Zt===1&&M===!1&&!Je.props.tabIndex?{tabIndex:0}:{}))}),nt=Je=>{const ut=Z.current,Ht=Dn(ut).activeElement;if(Ht.getAttribute("role")!=="tab")return;let Or=x==="horizontal"?"ArrowLeft":"ArrowUp",Ur=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&o&&(Or="ArrowRight",Ur="ArrowLeft"),Je.key){case Or:Je.preventDefault(),H_(ut,Ht,G3);break;case Ur:Je.preventDefault(),H_(ut,Ht,H3);break;case"Home":Je.preventDefault(),H_(ut,null,H3);break;case"End":Je.preventDefault(),H_(ut,null,G3);break}},Pt=et();return A.jsxs(the,z({className:Re(K.root,g),ownerState:ne,ref:r,as:y},B,{children:[Pt.scrollButtonStart,Pt.scrollbarSizeListener,A.jsxs(rhe,{className:K.scroller,ownerState:ne,style:{overflow:Be.overflow,[V?`margin${o?"Left":"Right"}`:"marginBottom"]:N?void 0:-Be.scrollbarWidth},ref:He,children:[A.jsx(nhe,{"aria-label":s,"aria-labelledby":d,"aria-orientation":x==="vertical"?"vertical":null,className:K.flexContainer,ownerState:ne,onKeyDown:nt,ref:Z,role:"tablist",children:Kt}),se&&Dt]}),Pt.scrollButtonEnd]}))});function ihe(e){return wt("MuiTextField",e)}Ot("MuiTextField",["root"]);const she=["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"],lhe={standard:zw,filled:yT,outlined:ST},uhe=e=>{const{classes:t}=e;return St({root:["root"]},ihe,t)},che=he(uU,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),i0=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:s,className:d,color:f="primary",defaultValue:u,disabled:h=!1,error:g=!1,FormHelperTextProps:y,fullWidth:_=!1,helperText:S,id:E,InputLabelProps:x,inputProps:T,InputProps:I,inputRef:R,label:P,maxRows:C,minRows:O,multiline:j=!1,name:k,onBlur:M,onChange:$,onFocus:N,placeholder:B,required:q=!1,rows:V,select:G=!1,SelectProps:Y,type:X,value:H,variant:te="outlined"}=n,ne=Ve(n,she),K=z({},n,{autoFocus:o,color:f,disabled:h,error:g,fullWidth:_,multiline:j,required:q,select:G,variant:te}),ee=uhe(K),Ce={};te==="outlined"&&(x&&typeof x.shrink<"u"&&(Ce.notched=x.shrink),Ce.label=P),G&&((!Y||!Y.native)&&(Ce.id=void 0),Ce["aria-describedby"]=void 0);const se=xf(E),Se=S&&se?`${se}-helper-text`:void 0,me=P&&se?`${se}-label`:void 0,we=lhe[te],Oe=A.jsx(we,z({"aria-describedby":Se,autoComplete:a,autoFocus:o,defaultValue:u,fullWidth:_,multiline:j,name:k,rows:V,maxRows:C,minRows:O,type:X,value:H,id:se,inputRef:R,onBlur:M,onChange:$,onFocus:N,placeholder:B,inputProps:T},Ce,I));return A.jsxs(che,z({className:Re(ee.root,d),disabled:h,error:g,fullWidth:_,ref:r,required:q,color:f,variant:te,ownerState:K},ne,{children:[P!=null&&P!==""&&A.jsx(cU,z({htmlFor:se,id:me},x,{children:P})),G?A.jsx(Uw,z({"aria-describedby":Se,id:se,labelId:me,value:H,input:Oe},Y,{children:s})):Oe,S&&A.jsx(bT,z({id:Se},y,{children:S}))]}))}),dhe=["getTrigger","target"];function fhe(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.currentn}const phe=typeof window<"u"?window:null;function kU(e={}){const{getTrigger:t=fhe,target:r=phe}=e,n=Ve(e,dhe),a=p.useRef(),[o,s]=p.useState(()=>t(a,n));return p.useEffect(()=>{const d=()=>{s(t(a,z({target:r},n)))};return d(),r.addEventListener("scroll",d,{passive:!0}),()=>{r.removeEventListener("scroll",d,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var fg={},u2={};const hhe=ou(Aae);var Q3;function yt(){return Q3||(Q3=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=hhe}(u2)),u2}var X3;function vhe(){if(X3)return fg;X3=1;var e=vt();Object.defineProperty(fg,"__esModule",{value:!0}),fg.default=void 0;var t=e(yt()),r=gt();return fg.default=(0,t.default)((0,r.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"),fg}var mhe=vhe();const Ww=tt(mhe);var nb=function(){return nb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{t[r]=LU(e[r])}),t}function OT(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return ph(e)&&ph(t)&&Object.keys(t).forEach(a=>{ph(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&ph(e[a])?n[a]=OT(e[a],t[a],r):r.clone?n[a]=ph(t[a])?LU(t[a]):t[a]:n[a]=t[a]}),n}var DU={typography:{h6:{fontWeight:400}},sidebar:{width:240,closedWidth:50},components:{MuiAutocomplete:{defaultProps:{fullWidth:!0},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiTextField:{defaultProps:{variant:"filled",margin:"dense",size:"small",fullWidth:!0},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiFormControl:{defaultProps:{variant:"filled",margin:"dense",size:"small",fullWidth:!0}},RaSimpleFormIterator:{defaultProps:{fullWidth:!0}},RaTranslatableInputs:{defaultProps:{fullWidth:!0}}}},yve=OT(DU,{palette:{background:{default:"#fafafb"},secondary:{light:"#6ec6ff",main:"#2196f3",dark:"#0069c0",contrastText:"#fff"}},components:{MuiFilledInput:{styleOverrides:{root:{backgroundColor:"rgba(0, 0, 0, 0.04)","&$disabled":{backgroundColor:"rgba(0, 0, 0, 0.04)"}}}}}}),bve=OT(DU,{palette:{mode:"dark",primary:{main:"#90caf9"},background:{default:"#313131"}}}),_ve=function(){var e=rt(),t=Kw(),r=t.darkTheme,n=t.defaultTheme,a=no("(prefers-color-scheme: dark)",{noSsr:!0}),o=$U(n||(a&&r?"dark":"light")),s=o[0],d=o[1],f=function(){d(s==="dark"?"light":"dark")},u=e("ra.action.toggle_theme",{_:"Toggle Theme"});return Ke.createElement(xa,{title:u,enterDelay:300},Ke.createElement(_n,{color:"inherit",onClick:f,"aria-label":u},s==="dark"?Ke.createElement(mve,null):Ke.createElement(pve,null)))},jk=function(){return jk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?p.createElement(kge,null):null,t&&p.createElement(_ve,null),p.createElement(Hhe,null))},Eve=p.createElement(Sve,null),Cve=p.createElement(MU,null),qy="RaAppBar",tf={appBar:"".concat(qy,"-appBar"),toolbar:"".concat(qy,"-toolbar"),menuButton:"".concat(qy,"-menuButton"),title:"".concat(qy,"-title")},Ove=he(Eoe,{name:qy,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(tf.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(tf.menuButton)]={marginRight:"0.2em"},t["& .".concat(tf.title)]={},t}),xg={},o4;function Pve(){if(o4)return xg;o4=1;var e=vt();Object.defineProperty(xg,"__esModule",{value:!0}),xg.default=void 0;var t=e(yt()),r=gt();return xg.default=(0,t.default)((0,r.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"),xg}var Rve=Pve();const kve=tt(Rve);var wg={},i4;function Ive(){if(i4)return wg;i4=1;var e=vt();Object.defineProperty(wg,"__esModule",{value:!0}),wg.default=void 0;var t=e(yt()),r=gt();return wg.default=(0,t.default)((0,r.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"),wg}var jve=Ive();const Tve=tt(jve);var ob=function(){return ob=Object.assign||function(e){for(var t,r=1,n=arguments.length;rC.getBoundingClientRect().bottom?P=I.lastChild:P=I.firstChild}P&&I===P.closest("ul")?a(T.dataset.index,f.current):(x.preventDefault(),x.stopPropagation()),T.classList.remove("drag-active"),document.removeEventListener("dragover",g)},E=function(x){x.preventDefault(),x.dataTransfer.dropEffect="move"};return p.createElement(nme,{key:o,draggable:a?"true":void 0,onDrag:a?_:void 0,onDragStart:a?y:void 0,onDragEnd:a?S:void 0,onDragOver:a?E:void 0,"data-index":s},p.createElement("label",{htmlFor:"switch_".concat(s)},p.createElement(_U,{checked:t,onChange:n,name:s,id:"switch_".concat(s),size:"small",sx:{mr:.5,ml:-.5}}),p.createElement(nr,{variant:"body2",component:"span"},p.createElement(ji,{label:r,source:o,resource:d}))),a&&p.createElement(rme,{className:"dragIcon",color:"disabled",fontSize:"small"}))},nme=he("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"}}}}),Zu=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nP?C=Zu(Zu(Zu(Zu([],d.slice(0,P),!0),[d[R]],!1),d.slice(P,R),!0),d.slice(R+1),!0):C=Zu(Zu(Zu(Zu([],d.slice(0,R),!0),d.slice(R+1,P+1),!0),[d[R]],!1),d.slice(P+1),!0),f(C),y(function(O){return C.filter(function(j){return O.includes(j.index)}).map(function(j){return j.index})})}},E=function(){y([])},x=function(){y(d.map(function(T){return T.index}))};return p.createElement(eo,{pt:.5},p.createElement(eo,{component:"ul",sx:{paddingInlineStart:0,m:0}},d.map(function(T){return p.createElement(UU,{key:T.index,source:T.source,label:T.label,index:T.index,selected:g.includes(T.index),onToggle:_,onMove:S})})),p.createElement(eo,{onDrop:function(T){return T.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},p.createElement(Bn,{size:"small",onClick:E},o("ra.inspector.hideAll",{_:"Hide All"})),p.createElement(Bn,{size:"small",onClick:x},o("ra.inspector.showAll",{_:"Show All"}))))},kg={},p4;function ome(){if(p4)return kg;p4=1;var e=vt();Object.defineProperty(kg,"__esModule",{value:!0}),kg.default=void 0;var t=e(yt()),r=gt();return kg.default=(0,t.default)((0,r.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"),kg}var ime=ome();const sme=tt(ime);var Ig={},h4;function lme(){if(h4)return Ig;h4=1;var e=vt();Object.defineProperty(Ig,"__esModule",{value:!0}),Ig.default=void 0;var t=e(yt()),r=gt();return Ig.default=(0,t.default)((0,r.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"),Ig}var ume=lme();const cme=tt(ume);var dme=function(){var e=rt();return Kq("ra.configurable.inspector.title",{_:"Inspector"}),p.createElement(nr,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},VU=function(){var e=Wj(),t=e.isEnabled,r=e.disable,n=e.title,a=e.titleOptions,o=e.editor,s=e.preferenceKey,d=p.useRef(!1),f=oee(s),u=ei(),h=rt(),g=p.useState(0),y=g[0],_=g[1],S=_a("ra.inspector.position",{x:(document==null?void 0:document.body.clientWidth)-u.breakpoints.values.sm/2-8,y:8}),E=S[0],x=S[1],T=p.useState(),I=T[0],R=T[1],P=function(j){var k=document==null?void 0:document.elementFromPoint(j.clientX,j.clientY);(k==null?void 0:k.id)==="inspector-dialog-title"&&(d.current=!0,j.dataTransfer.effectAllowed="move",j.dataTransfer.setData("inspector",""),setTimeout(function(){j.target.classList.add("hide")},0),R({x:j.clientX-E.x,y:j.clientY-E.y}))},C=function(j){d.current&&I&&(x({x:j.clientX-I.x,y:j.clientY-I.y}),j.target.classList.remove("hide"),d.current=!1)};p.useEffect(function(){if(t){var j=function(k){k.dataTransfer.types.includes("inspector")&&k.preventDefault()};return document==null||document.addEventListener("dragover",j),function(){document==null||document.removeEventListener("dragover",j)}}},[t]),p.useEffect(function(){if(t){var j=function(){window==null||window.requestAnimationFrame(function(){x(function(k){return{x:Math.min(k.x,(document==null?void 0:document.body.clientWidth)-u.breakpoints.values.sm/2-8),y:Math.min(k.y,(window==null?void 0:window.innerHeight)-50)}})})};return j(),window==null||window.addEventListener("resize",j),function(){window==null||window.removeEventListener("resize",j)}}},[t,x,u.breakpoints.values.sm]);var O=function(){f(),_(function(j){return j+1})};return t?p.createElement(fme,{className:ib.modal,elevation:3,draggable:!0,onDragStart:P,onDragEnd:C,sx:{left:E.x,top:E.y}},p.createElement("div",{className:ib.title},p.createElement(nr,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},n&&h(n,a)),p.createElement("span",{id:"inspector-toolbar"}),s&&p.createElement(_n,{"aria-label":h("ra.action.remove"),onClick:O,size:"small"},p.createElement(cme,{fontSize:"inherit"})),p.createElement(_n,{"aria-label":h("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},p.createElement(sme,{fontSize:"inherit"}))),p.createElement("div",{className:ib.content,key:y},p.createElement(Gq,{value:s},o||p.createElement(dme,null)))):null},h1="RaInspector",ib={modal:"".concat(h1,"-modal"),title:"".concat(h1,"-title"),content:"".concat(h1,"-content")},fme=he(zc,{name:h1,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(ib.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(ib.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});VU.displayName="Inspector";var xc=function(){return xc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var f=n===!1?p.createElement(zU,ix({title:r,defaultTitle:t},a)):p.createElement(hme,ix({title:r,defaultTitle:t,preferenceKey:n},a));return p.createElement(p.Fragment,null,zx.createPortal(f,s))},Fk=function(){return Fk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0,$=Xge(x===!1||x===void 0?void 0:!x,u||!M||j||k);Vj(g==="submit"&&(f&&(f.onSuccess||f.onError)||y),'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 N=p.useCallback(function(V){return O4(void 0,void 0,void 0,function(){var G;return P4(this,function(Y){switch(Y.label){case 0:return P!=null&&P.save?[4,P.save(V,lb(lb({},f),{transform:y}))]:[3,2];case 1:G=Y.sent(),Y.label=2;case 2:return G!=null&&bq(G,R.setError),[2]}})})},[R.setError,P,f,y]),B=p.useCallback(function(V){return O4(void 0,void 0,void 0,function(){return P4(this,function(G){switch(G.label){case 0:return d&&d(V),V.defaultPrevented?[2]:g!=="button"?[3,2]:(V.stopPropagation(),[4,R.handleSubmit(N)(V)]);case 1:G.sent(),G.label=2;case 2:return[2]}})})},[d,g,R,N]),q=s&&I(s,{_:s});return p.createElement(Qge,lb({variant:S,type:g,color:r,"aria-label":q,disabled:$,onClick:B},T),k?p.createElement(Ov,{sx:Hge,size:14,thickness:3,color:"inherit"}):a,q)},Hge={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},Gge=p.createElement(Vge,null),Kge="RaSaveButton",Qge=he(Bn,{name:Kge,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}),Xge=function(e,t){return typeof e>"u"?t:e},Yge=function(){return Ke.createElement(Zge,{onClick:eye,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},Jge="RaSkipNavigationButton",Zge=he(qr,{name:Jge,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})}}}),eye=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Jk=function(){return Jk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=a-1,color:"primary"},p.createElement(Sye,{fontSize:"small"})))},Cye=p.forwardRef(function(e,t){var r=e.children,n=e.disabled,a=e.disableReordering,o=e.disableRemove,s=e.getItemLabel,d=e.index,f=e.inline,u=e.record,h=e.removeButton,g=h===void 0?p.createElement(gye,null):h,y=e.reOrderButtons,_=y===void 0?p.createElement(Eye,null):y,S=vr(e);if(!S)throw new Error("SimpleFormIteratorItem must be used in a ResourceContextProvider or be passed a resource prop.");var E=Jw(),x=E.total,T=E.reOrder,I=E.remove,R=function(k){return typeof o=="boolean"?o:o&&o(k)},P=p.useMemo(function(){return{index:d,total:x,reOrder:function(k){return T(d,k)},remove:function(){return I(d)}}},[d,x,T,I]),C=typeof s=="function"?s(d):s,O=Uj(),j=p.useMemo(function(){return{getSource:function(k){return k?O.getSource("".concat(d,".").concat(k)):O.getSource("".concat(d))},getLabel:function(k){return O.getLabel(k)}}},[d,O]);return p.createElement(s9.Provider,{value:P},p.createElement("li",{className:Qn.line,ref:t},C!=null&&C!==!1&&p.createElement(nr,{variant:"body2",className:Qn.index},C),p.createElement(vw,{value:j},p.createElement(Mc,{value:u},p.createElement(Pv,{className:Re(Qn.form),direction:f?{xs:"column",sm:"row"}:"column",gap:f?2:0},r))),!n&&p.createElement("span",{className:Qn.action},!a&&_,!R(u)&&g)))}),qg={},j4;function Oye(){if(j4)return qg;j4=1;var e=vt();Object.defineProperty(qg,"__esModule",{value:!0}),qg.default=void 0;var t=e(yt()),r=gt();return qg.default=(0,t.default)((0,r.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline"),qg}var Pye=Oye();const Rye=tt(Pye);var aI=function(){return aI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){var Ce=N[0];Ce.id;var se=Fye(Ce,["id"]);K.current=se;for(var Se in K.current)K.current[Se]=null}var me=p.useCallback(function(ke){ke===void 0&&(ke=void 0);var $e=ke;ke==null&&($e=K.current,p.Children.count(s)===1&&p.isValidElement(p.Children.only(s))&&!p.Children.only(s).props.source&&!p.Children.only(s).type!==Q2?$e="":($e=$e||{},p.Children.forEach(s,function(Te){var Be;p.isValidElement(Te)&&Te.type!==Q2&&Te.props.source&&($e[Te.props.source]=(Be=Te.props.defaultValue)!==null&&Be!==void 0?Be:null)}))),$($e),Y("".concat(C,".").concat(N.length),{defaultValue:$e})},[$,s,Y,C,N.length]),we=p.useCallback(function(ke,$e){B(ke,$e)},[B]),Oe=p.useCallback(function(){V([]),k(!1)},[V]),ie=xr(ne,C),Fe=p.useMemo(function(){return{total:N.length,add:me,remove:ee,reOrder:we,source:C}},[me,N.length,we,ee,C]);return N?p.createElement(i9.Provider,{value:Fe},p.createElement($ye,{className:Re(d,R&&"fullwidth",u&&"disabled"),sx:P},p.createElement("ul",{className:Qn.list},N.map(function(ke,$e){return p.createElement(Cye,{key:ke.id,disabled:u,disableRemove:S,disableReordering:E,fields:N,getItemLabel:I,index:$e,onRemoveField:ee,onReorder:we,record:ie&&ie[$e]||{},removeButton:a,reOrderButtons:o,resource:f,inline:x},s)})),!u&&!(g&&(y||S))&&p.createElement("div",{className:Qn.buttons},!g&&p.createElement("div",{className:Qn.add},n),N.length>0&&!y&&!S&&p.createElement("div",{className:Qn.clear},p.createElement(PT,{isOpen:j,title:te("ra.action.clear_array_input"),content:te("ra.message.clear_array_input"),onConfirm:Oe,onClose:function(){return k(!1)}}),p.createElement(Mye,{onClick:function(){return k(!0)}}))))):null},$ye=he("div",{name:Vs,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n,a=e.theme;return t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}},t["& .".concat(Qn.line)]=(r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(a.palette.divider)},r[a.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(Qn.index)]=(n={display:"flex",alignItems:"top",marginRight:a.spacing(1),marginTop:a.spacing(1)},n[a.breakpoints.down("md")]={display:"none"},n),t["& .".concat(Qn.form)]={},t["&.fullwidth > ul > li > .".concat(Qn.form)]={flex:2},t["& .".concat(Qn.inline)]={flexDirection:"row",columnGap:"1em"},t["& .".concat(Qn.action)]={marginTop:a.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(Qn.buttons)]={display:"flex"},t["& .".concat(Qn.add)]={borderBottom:"none"},t["& .".concat(Qn.clear)]={borderBottom:"none"},t["& .".concat(Qn.line,":hover > .").concat(Qn.action)]={visibility:"visible"},t}),Lye=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function d(h){try{u(n.next(h))}catch(g){s(g)}}function f(h){try{u(n.throw(h))}catch(g){s(g)}}function u(h){h.done?o(h.value):a(h.value).then(d,f)}u((n=n.apply(e,t||[])).next())})},Dye=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,s;return s={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function d(u){return function(h){return f([u,h])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(r=0)),r;)try{if(n=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]"u")throw new Error("DatagridRow expects an id prop");var P=d9(),C=rt(),O=Sr(e);if(!O)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var j=vr(e),k=lu(e),M=k.hasShow||k.hasEdit;if(!j)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var $=(!P||!P.isRowExpandable||P.isRowExpandable(O))&&s,N=eJ(j,g,P&&P.expandSingle),B=N[0],q=N[1],V=p.useState(function(){return A4($,a,f)}),G=V[0],Y=V[1];p.useEffect(function(){var ee=A4($,a,f);ee!==G&&Y(ee)},[$,G,a,f]);var X=ul(),H=p.useCallback(function(ee){q(),ee.stopPropagation()},[q]),te=p.useCallback(function(ee){!I||!y||(y(g,ee),ee.stopPropagation())},[g,y,I]),ne=Pq(),K=p.useCallback(function(ee){return Qye(void 0,void 0,void 0,function(){var Ce;return Xye(this,function(se){switch(se.label){case 0:return ee.persist(),[4,ne({record:O,resource:j,link:typeof _=="function"?function(Se,me){return _(Se.id,me,Se)}:_})];case 1:return Ce=se.sent(),_==="expand"?(H(ee),[2]):_==="toggleSelection"?(te(ee),[2]):Ce===!1||Ce==null?[2]:(X(Ce,{state:{_scrollToTop:!0}}),[2])}})})},[O,j,_,X,H,te,ne]);return Ke.createElement(Ke.Fragment,null,Ke.createElement(Rb,lI({ref:t,className:Re(o,(r={},r[zt.expandable]=$,r[zt.selectable]=I,r[zt.clickableRow]=_??M,r)),key:g,style:x,hover:h,onClick:K},R),s&&Ke.createElement(Ma,{padding:"none",className:zt.expandIconCell},$&&Ke.createElement(Kye,{className:Re(zt.expandIcon,(n={},n[zt.expanded]=B,n)),expanded:B,onClick:H,expandContentId:"".concat(g,"-expand")})),f&&Ke.createElement(Ma,{padding:"checkbox"},Ke.createElement(cv,{"aria-label":C("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(zt.checkbox),checked:I&&E,onClick:te,disabled:!I})),Ke.Children.map(a,function(ee,Ce){return p.isValidElement(ee)?Ke.createElement(c9,{key:"".concat(g,"-").concat(ee.props.source||Ce),className:Re("column-".concat(ee.props.source),zt.rowCell),record:O,field:ee,resource:j}):null})),$&&B&&Ke.createElement(Rb,{key:"".concat(g,"-expand"),id:"".concat(g,"-expand"),className:zt.expandedPanel},Ke.createElement(Ma,{colSpan:G},p.isValidElement(s)?s:p.createElement(s))))}),Yye=function(e,t){e.children,e.expand;var r=uI(e,["children","expand"]);t.children,t.expand;var n=uI(t,["children","expand"]);return xz(r,n)},p9=p.memo(f9,Yye);p9.displayName="PureDatagridRow";var _x=function(){return _x=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=s&&(_=o,S=!1,u=new e(u));e:for(;++y0&&R.length>0&&R.every(function(P){return _.includes(P)}),onChange:I,onClick:function(P){return P.stopPropagation()}})),p.Children.map(t,function(P,C){return p.isValidElement(P)?p.createElement(nbe,{className:Re(zt.headerCell,"column-".concat(P.props.source)),sort:h,field:P,isSorting:(h==null?void 0:h.field)===(P.props.sortBy||P.props.source),key:P.props.source||C,updateSort:T||void 0}):null})))};m9.displayName="DatagridHeader";var mbe=function(e){var t=e.children,r=e.value;return Ke.createElement(TT.Provider,{value:r},t)},Vg={},L4;function gbe(){if(L4)return Vg;L4=1;var e=vt();Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.default=void 0;var t=e(yt()),r=gt();return Vg.default=(0,t.default)((0,r.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"),Vg}var ybe=gbe();const bbe=tt(ybe);var dI=function(){return dI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?p.createElement(p.Fragment,null,e("ra.navigation.no_filtered_results",{resource:t,_:"No results found with the current filters."})," ",p.createElement(qr,{onClick:function(){return a({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,_:"No results found."})))},jb=function(){return jb=Object.assign||function(e){for(var t,r=1,n=arguments.length;rk?M=ec(ec(ec(ec([],f.slice(0,k),!0),[f[j]],!1),f.slice(k,j),!0),f.slice(j+1),!0):M=ec(ec(ec(ec([],f.slice(0,j),!0),f.slice(j+1,k+1),!0),[f[j]],!1),f.slice(k+1),!0),u(M),_(function($){return M.filter(function(N){return $.includes(N.index)}).map(function(N){return N.index})})}};return p.createElement(p.Fragment,null,E?p.createElement(xa,{title:x},p.createElement(_n,wx({"aria-label":x,color:"primary",onClick:T,size:"large"},q4(e)),p.createElement(z4,null))):p.createElement(Abe,wx({size:"small",onClick:T,startIcon:p.createElement(z4,null)},q4(e)),x),p.createElement(xT,{open:!!o,anchorEl:o,onClose:I,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},p.createElement(eo,{component:"ul",p:1,my:0},f.map(function(C){return p.createElement(UU,{key:C.index,source:C.source,label:C.label,index:C.index,selected:y.includes(C.index),onToggle:R,onMove:P})}))))},Abe=he(Bn,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),q4=function(e){e.resource,e.preferenceKey;var t=Tbe(e,["resource","preferenceKey"]);return t},Mbe=function(e){var t,r=e.filterElement,n=e.handleHide,a=e.className,o=vr(e),s=rt();return p.createElement(Fbe,{"data-source":r.props.source,className:Re("filter-field",a)},p.cloneElement(r,{resource:o,record:$be,size:(t=r.props.size)!==null&&t!==void 0?t:"small",helperText:!1,defaultValue:void 0}),!r.props.alwaysOn&&p.createElement(_n,{className:Re("hide-filter",Sx.hideButton),onClick:n,"data-key":r.props.source,title:s("ra.action.remove_filter"),size:"small"},p.createElement(l9,null)),p.createElement("div",{className:Sx.spacer}," "))},fI="RaFilterFormInput",Sx={spacer:"".concat(fI,"-spacer"),hideButton:"".concat(fI,"-hideButton")},Fbe=he("div",{name:fI,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",alignItems:"flex-end",pointerEvents:"auto"},t[r.breakpoints.down("sm")]={width:"100%"},t["& .".concat(Sx.spacer)]={width:r.spacing(2)},t["& .".concat(Sx.hideButton)]={marginBottom:r.spacing(1)},t}),$be={},Zw=p.createContext(void 0),Oc=function(){return Oc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1] element instead.")})},[r]);var h=function(){if(!r)return[];var _=o.getValues();return r.filter(function(S){var E=xr(_,S.props.source);return S.props.alwaysOn||f[S.props.source]||!x9(E)})},g=p.useCallback(function(_){return u(_.currentTarget.dataset.key)},[u]),y=p.useMemo(function(){return{getSource:function(_){return _},getLabel:function(_){return"resources.".concat(a,".fields.").concat(_)}}},[a]);return p.createElement(vw,{value:y},p.createElement(Wbe,Oc({className:t},qbe(n),{onSubmit:zbe}),h().map(function(_){return p.createElement(Mbe,{key:_.key||_.props.source,filterElement:_,handleHide:g,resource:a,className:Ex.filterFormInput})}),p.createElement("div",{className:Ex.clearFix})))},zbe=function(e){return e.preventDefault(),!1},qbe=function(e){e.hasCreate,e.resource;var t=MT(e,["hasCreate","resource"]);return t},Ube=function(e,t){return Oc(Oc({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return ew(Oc({},r),n.props.source,n.props.defaultValue)},{})),e)},Vbe=function(e){return e.preventDefault(),e.stopPropagation(),!1},pI="RaFilterForm",Ex={clearFix:"".concat(pI,"-clearFix"),filterFormInput:"".concat(pI,"-filterFormInput")},Wbe=he("form",{name:pI,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(Ex.clearFix)]={clear:"right"},t["& .".concat(Ex.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),Hbe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=_9(e,a,t),n},(r=bz(t))!==null&&r!==void 0?r:{})},_9=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return xr(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var s,d=_9(e[t],o,(s=(r||{})[t])!==null&&s!==void 0?s:{});return a[o]=d,a},{});return Object.keys(n).length?n:""}return xr(r,t,"")},x9=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return x9(e[t])}):!1},Hg={},U4;function Gbe(){if(U4)return Hg;U4=1;var e=vt();Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.default=void 0;var t=e(yt()),r=gt();return Hg.default=(0,t.default)((0,r.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),Hg}var Kbe=Gbe();const dv=tt(Kbe);var Gg={},V4;function Qbe(){if(V4)return Gg;V4=1;var e=vt();Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.default=void 0;var t=e(yt()),r=gt();return Gg.default=(0,t.default)((0,r.jsx)("path",{d:"M21 7h-2v2h-2V7h-2V5h2V3h2v2h2zm-2 14-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1z"}),"BookmarkAdd"),Gg}var Xbe=Qbe();const Ybe=tt(Xbe);var Kg={},W4;function Jbe(){if(W4)return Kg;W4=1;var e=vt();Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.default=void 0;var t=e(yt()),r=gt();return Kg.default=(0,t.default)((0,r.jsx)("path",{d:"M21 7h-6V5h6zm-2 3.9c-.32.07-.66.1-1 .1-2.76 0-5-2.24-5-5 0-1.13.37-2.16 1-3H7c-1.1 0-2 .9-2 2v16l7-3 7 3z"}),"BookmarkRemove"),Kg}var Zbe=Jbe();const e0e=tt(Zbe);var Qg={},H4;function t0e(){if(H4)return Qg;H4=1;var e=vt();Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.default=void 0;var t=e(yt()),r=gt();return Qg.default=(0,t.default)((0,r.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),Qg}var r0e=t0e();const n0e=tt(r0e);var Xg={},G4;function a0e(){if(G4)return Xg;G4=1;var e=vt();Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.default=void 0;var t=e(yt()),r=gt();return Xg.default=(0,t.default)((0,r.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),Xg}var o0e=a0e();const i0e=tt(o0e);var Yg={},K4;function s0e(){if(K4)return Yg;K4=1;var e=vt();Object.defineProperty(Yg,"__esModule",{value:!0}),Yg.default=void 0;var t=e(yt()),r=gt();return Yg.default=(0,t.default)((0,r.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank"),Yg}var l0e=s0e();const u0e=tt(l0e);var Jg={},Q4;function c0e(){if(Q4)return Jg;Q4=1;var e=vt();Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.default=void 0;var t=e(yt()),r=gt();return Jg.default=(0,t.default)((0,r.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),Jg}var d0e=c0e();const f0e=tt(d0e);var p0e=p.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.onHide,o=e.autoFocus,s=e.displayed,d=vr(e),f=p.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),u=p.useCallback(function(){a({source:r.props.source})},[r.props.source,a]);return p.createElement(Ko,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:s?u:f,autoFocus:o,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":s},p.createElement(ef,null,s?p.createElement(f0e,{fontSize:"small"}):p.createElement(u0e,{fontSize:"small"})),p.createElement(xh,null,p.createElement(ji,{label:r.props.label,source:r.props.source,resource:d})))}),FT=function(e){return _a("".concat(e,".savedQueries"),[])},$T=function(e){return Array.isArray(e)?e.filter(function(t){return h0e(t)}):[]},h0e=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")},v0e=function(e){var t=e.open,r=e.onClose,n=rt(),a=La(),o=a.resource,s=a.filterValues,d=a.displayedFilters,f=a.sort,u=a.perPage,h=FT(o),g=h[0],y=h[1],_=p.useState(""),S=_[0],E=_[1],x=function(R){E(R.target.value)},T=function(R){R.preventDefault(),I()},I=function(){var R={label:S,value:{filter:s,sort:f,perPage:u,displayedFilters:d}},P=$T(g);y(P.concat(R)),E(""),r()};return p.createElement(n0,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},p.createElement(o0,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),p.createElement(a0,null,p.createElement("form",{onSubmit:T},p.createElement(i0,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:S,onChange:x}))),p.createElement(gT,null,p.createElement(Bn,{onClick:r},n("ra.action.cancel")),p.createElement(Bn,{onClick:I,color:"primary"},n("ra.action.save"))))},X4=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var h=FT(f||"")[0],g=ul(),y=La(),_=y.displayedFilters,S=_===void 0?{}:_,E=y.filterValues,x=y.perPage,T=y.setFilters,I=y.showFilter,R=y.hideFilter,P=y.sort,C=!ki(E,{}),O=$T(h),j=O.some(function(we){return ki(we.value,{filter:E,sort:P,perPage:x,displayedFilters:S})}),k=p.useState(!1),M=k[0],$=k[1],N=p.useRef();if(d===void 0)throw new Error("The component requires the prop to be set");var B=d.filter(function(we){return!we.props.alwaysOn}),q=p.useCallback(function(we){we.preventDefault(),$(!0),N.current=we.currentTarget},[N,$]),V=p.useCallback(function(){$(!1)},[$]),G=p.useCallback(function(we){var Oe=we.source,ie=we.defaultValue;I(Oe,ie===""?void 0:ie),setTimeout(function(){var Fe=document.querySelector("input[name='".concat(Oe,"']"));Fe&&Fe.focus()},50),$(!1)},[I,$]),Y=p.useCallback(function(we){var Oe=we.source;R(Oe),$(!1)},[R,$]),X=p.useState(!1),H=X[0],te=X[1],ne=function(){te(!1)},K=function(){$(!1),te(!0)},ee=p.useState(!1),Ce=ee[0],se=ee[1],Se=function(){se(!1)},me=function(){$(!1),se(!0)};return B.length===0&&O.length===0&&!C?null:p.createElement(_0e,hI({className:r},y0e(s)),p.createElement(qr,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:q,variant:o,size:a},p.createElement(i0e,null)),p.createElement(qw,{open:M,anchorEl:N.current,onClose:V},B.map(function(we,Oe){return p.createElement(p0e,{key:we.props.source,filter:we,displayed:!!S[we.props.source],resource:f,onShow:G,onHide:Y,autoFocus:Oe===0})}),(C||O.length>0)&&p.createElement(Cb,null),O.map(function(we,Oe){return ki(we.value,{filter:E,sort:P,perPage:x,displayedFilters:S})?p.createElement(Ko,{onClick:me,key:Oe},p.createElement(ef,null,p.createElement(e0e,{fontSize:"small"})),p.createElement(xh,null,u("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:we.label}))):p.createElement(Ko,{onClick:function(){var ie,Fe;g({search:Zh.stringify({filter:JSON.stringify(we.value.filter),sort:(ie=we.value.sort)===null||ie===void 0?void 0:ie.field,order:(Fe=we.value.sort)===null||Fe===void 0?void 0:Fe.order,page:1,perPage:we.value.perPage,displayedFilters:JSON.stringify(we.value.displayedFilters)})}),$(!1)},key:Oe},p.createElement(ef,null,p.createElement(n0e,{fontSize:"small"})),p.createElement(xh,null,we.label))}),C&&!j&&!n&&p.createElement(Ko,{onClick:K},p.createElement(ef,null,p.createElement(Ybe,{fontSize:"small"})),p.createElement(xh,null,u("ra.saved_queries.new_label",{_:"Save current query..."}))),C&&p.createElement(Ko,{onClick:function(){T({},{}),$(!1)}},p.createElement(ef,null,p.createElement(dv,{fontSize:"small"})),p.createElement(xh,null,u("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&p.createElement(p.Fragment,null,p.createElement(v0e,{open:H,onClose:ne}),p.createElement(m0e,{open:Ce,onClose:Se})))},y0e=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=w9(e,["displayedFilters","filterValues","showFilter"]);return t},b0e="RaFilterButton",_0e=he("div",{name:b0e,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),Zg={},Y4;function x0e(){if(Y4)return Zg;Y4=1;var e=vt();Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.default=void 0;var t=e(yt()),r=gt();return Zg.default=(0,t.default)((0,r.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"),Zg}var w0e=x0e();const S0e=tt(w0e);var vI=function(){return vI=Object.assign||function(e){for(var t,r=1,n=arguments.length;rE-1)throw new Error(_("ra.navigation.page_out_of_boundaries",{page:O+1}));g(O+1)},[E,g,_]),T=p.useCallback(function(C){y(C.target.value)},[y]),I=p.useCallback(function(C){var O=C.from,j=C.to,k=C.count;return k===-1&&d?_("ra.navigation.partial_page_range_info",{offsetBegin:O,offsetEnd:j,_:"%{from}-%{to} of more than %{to}"}):_("ra.navigation.page_range_info",{offsetBegin:O,offsetEnd:j,total:k===-1?j:k,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[_,d]),R=p.useCallback(function(C){return _("ra.navigation.".concat(C),{_:"Go to ".concat(C," page")})},[_]);if(s)return p.createElement(kv,{variant:"dense"});if(h===0||f<1||h!=null&&f>E)return null;if(S)return p.createElement(U3,Cx({count:h??-1,rowsPerPage:u,page:f-1,onPageChange:x,rowsPerPageOptions:k0e,component:"span",labelDisplayedRows:I},vb(a)));var P=n||(!s&&h!=null?E0e:void 0);return p.createElement(U3,Cx({count:h??-1,rowsPerPage:u,page:f-1,onPageChange:x,onRowsPerPageChange:T,ActionsComponent:P,nextIconButtonProps:{disabled:!d},component:"span",labelRowsPerPage:_("ra.navigation.page_rows_per_page"),labelDisplayedRows:I,getItemAriaLabel:R,rowsPerPageOptions:r},vb(a)))}),R0e=[5,10,25,50],k0e=[],Ox=function(){return Ox=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof me.target.value>"u")){var we=me.target,Oe=we.valueAsDate!==void 0&&we.valueAsDate!==null&&!isNaN(new Date(we.valueAsDate).getTime())?S?S(we.valueAsDate):we.valueAsDate:S?S(we.value):Y_(we.value);Oe!==""&&Oe!=null&&(C.onChange(Oe),B.current=!0)}},H=function(me){h&&h(me),Y.current=!0},te=function(){if(Y.current=!1,!!q.current){var me=q.current.valueAsDate!==void 0&&q.current.valueAsDate!==null&&!isNaN(new Date(q.current.valueAsDate).getTime())?S?S(q.current.valueAsDate):Y_(q.current.valueAsDate):S?S(q.current.value):Y_(q.current.value);me!==C.value&&C.onChange(me??""),G&&G()}},ne=O.error,K=O.invalid,ee=s!==!1||K,Ce=C.ref,se=C.name,Se=ree([Ce,q]);return p.createElement(i0,Ox({id:j,inputRef:Se,name:se,defaultValue:a(V.current),key:$,type:"datetime-local",onChange:X,onFocus:H,onBlur:te,className:Re("ra-input","ra-input-".concat(g),t),size:"small",variant:x,margin:d,error:K,disabled:T||I,readOnly:I,helperText:ee?p.createElement(Sf,{error:ne==null?void 0:ne.message,helperText:s}):null,label:p.createElement(ji,{label:o,source:g,resource:y,isRequired:k}),InputLabelProps:M0e},Tv(R)))},E9=function(e){return e===void 0&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},T0e=E9(4),X_=E9(2),Z4=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=T0e(e.getFullYear()),r=X_(e.getMonth()+1),n=X_(e.getDate()),a=X_(e.getHours()),o=X_(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(a,":").concat(o)},A0e=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,M0e={shrink:!0},Y_=function(e){return e==null||e===""?"":e instanceof Date?Z4(e):A0e.test(e)?e:Z4(new Date(e))},Px=function(){return Px=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof Oe.target.value>"u")){var ie=Oe.target;ne(ie.value);var Fe=ie.valueAsNumber!==void 0&&ie.valueAsNumber!==null&&!isNaN(ie.valueAsNumber)?y?y(ie.valueAsNumber):ie.valueAsNumber:y?y(ie.value):B0e(ie.value);$.onChange(Fe)}},Ce=function(Oe){g&&g(Oe),K.current=!0},se=function(){Y&&Y(),K.current=!1;var Oe=o($.value);ne(function(ie){return ie!==Oe?Oe:ie})},Se=s!==!1||q,me=$.ref,we=tB($,["ref"]);return p.createElement(i0,oc({id:V},we,{inputRef:me,value:te,onChange:ee,onFocus:Ce,onBlur:se,className:Re("ra-input","ra-input-".concat(S),t),type:"number",size:"small",variant:P,error:q,disabled:O||j,readOnly:j,helperText:Se?p.createElement(Sf,{error:B==null?void 0:B.message,helperText:s}):null,label:p.createElement(ji,{label:d,source:S,resource:_,isRequired:G}),margin:f,inputProps:oc(oc({},X),{readOnly:j})},Tv(k)))},B0e=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},z0e=function(e){return e==null||isNaN(e)?"":e.toString()},ey={},rB;function q0e(){if(rB)return ey;rB=1;var e=vt();Object.defineProperty(ey,"__esModule",{value:!0}),ey.default=void 0;var t=e(yt()),r=gt();return ey.default=(0,t.default)((0,r.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"),ey}var U0e=q0e();const O9=tt(U0e);var ty={},nB;function V0e(){if(nB)return ty;nB=1;var e=vt();Object.defineProperty(ty,"__esModule",{value:!0}),ty.default=void 0;var t=e(yt()),r=gt();return ty.default=(0,t.default)((0,r.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"),ty}var W0e=V0e();const H0e=tt(W0e);var Rx=function(){return Rx=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 p.createElement(Y0e,gI({hiddenLabel:!0,label:"",resettable:!0,placeholder:n("ra.action.search"),InputProps:{endAdornment:p.createElement(Oh,{position:"end"},p.createElement(S0e,{color:"disabled"}))},size:"small"},r))},X0e="RaSearchInput",Y0e=he(Xn,{name:X0e,overridesResolver:function(e,t){return t.root}})({marginTop:0}),fv=function(){return fv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]"u"||!g.message?"ra.auth.sign_in_error":g.message,{type:"error",messageArgs:{_:typeof g=="string"?g:g&&g.message?g.message:void 0}})})};return p.createElement(a_e,{onSubmit:u,mode:"onChange",noValidate:!0,className:r},p.createElement(Ei,{className:jh.content},p.createElement(Xn,{autoFocus:!0,source:"username",label:d("ra.auth.username"),autoComplete:"username",validate:Qo()}),p.createElement(Xn,{source:"password",label:d("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Qo()}),p.createElement(Bn,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:jh.button},a?p.createElement(Ov,{className:jh.icon,size:19,thickness:3}):d("ra.auth.sign_in"))))},g1="RaLoginForm",jh={content:"".concat(g1,"-content"),button:"".concat(g1,"-button"),icon:"".concat(g1,"-icon")},a_e=he(pw,{name:g1,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(jh.content)]={width:300},t["& .".concat(jh.button)]={marginTop:r.spacing(2)},t["& .".concat(jh.icon)]={margin:r.spacing(.3)},t}),yI=function(){return yI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&h?y_e:r;return a?p.createElement(__e,wI({className:Re("edit-page",o)},u),f!==!1&&p.createElement(kf,{title:f,defaultTitle:_,preferenceKey:"".concat(y,".edit.title")}),E,p.createElement("div",{className:Re(Mh.main,(t={},t[Mh.noActions]=!E,t))},p.createElement(d,{className:Mh.card},S?a:p.createElement(Ei,null," ")),n)):null},_1="RaEdit",Mh={main:"".concat(_1,"-main"),noActions:"".concat(_1,"-noActions"),card:"".concat(_1,"-card")},__e=he("div",{name:_1,overridesResolver:function(e,t){return t.root}})((ry={},ry["& .".concat(Mh.main)]={display:"flex",alignItems:"flex-start"},ry["& .".concat(Mh.noActions)]={marginTop:"1em"},ry["& .".concat(Mh.card)]={flex:"1 1 auto"},ry)),SI=function(){return SI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t.toString():""},OI=function(){return OI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")throw new Error("the value prop is required at runtime");var _=function(){return p.createElement(F_e,Ix({label:f,count:a,value:g,icon:s,className:r,syncWithLocation:h,onChange:u},L_e(y)))},S=function(){return p.createElement(aZ,{name:g.toString()},p.createElement(Pv,Ix({alignItems:"flex-start",style:o?$_e:void 0,className:n,id:"tabpanel-".concat(g),"aria-labelledby":"tabheader-".concat(g),"aria-hidden":o||void 0},y),t))};return d==="header"?_():S()};Ws.displayName="FormTab";var $_e={display:"none"},L_e=function(e){e.classes,e.ref,e.margin;var t=M9(e,["classes","ref","margin"]);return t},jx=function(){return jx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&x?K_e:r;return!a||!E&&u?null:p.createElement(X_e,RI({className:Re("show-page",o)},g),h!==!1&&p.createElement(kf,{title:h,defaultTitle:S,preferenceKey:"".concat(_,".show.title")}),T!==!1&&T,p.createElement("div",{className:Re($h.main,(t={},t[$h.noActions]=!T,t))},p.createElement(d,{className:$h.card},a),n))},w1="RaShow",$h={main:"".concat(w1,"-main"),noActions:"".concat(w1,"-noActions"),card:"".concat(w1,"-card")},X_e=he("div",{name:w1,overridesResolver:function(e,t){return t.root}})((ny={},ny["& .".concat($h.main)]={display:"flex"},ny["& .".concat($h.noActions)]={marginTop:"1em"},ny["& .".concat($h.card)]={flex:"1 1 auto"},ny)),kI=function(){return kI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var _=Nc(e);if(_==null||_==="")return r?p.createElement(nr,Fx({component:"span",variant:"body2",className:t},il(g)),r&&y(r,{_:r})):null;var S=h(_),E="";if(S)if(s&&f)E=v2?S.toLocaleString(n,a):S.toLocaleString();else if(f){var x=a??(typeof _=="string"&&_.length<=10?{timeZone:"UTC"}:void 0);E=v2?S.toLocaleDateString(n,x):S.toLocaleDateString()}else s&&(E=v2?S.toLocaleTimeString(n,a):S.toLocaleTimeString());return p.createElement(nr,Fx({component:"span",variant:"body2",className:t},il(g)),E)};N9.displayName="DateFieldImpl";var ba=jf(N9),s1e=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},v2=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),jI=function(){return jI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),wc=function(e){var t=e.children,r=e.debounce,n=e.filter,a=n===void 0?x1e:n,o=e.page,s=o===void 0?1:o,d=e.pagination,f=d===void 0?null:d,u=e.perPage,h=u===void 0?25:u,g=e.reference,y=e.resource,_=e.sort,S=_===void 0?w1e:_,E=e.source,x=E===void 0?"id":E,T=e.storeKey,I=e.target,R=e.queryOptions,P=Sr(e),C=lJ({debounce:r,filter:a,page:s,perPage:h,record:P,reference:g,resource:y,sort:S,source:x,storeKey:T,target:I,queryOptions:R});return Ke.createElement(Dc,{value:g},Ke.createElement(Mj,{value:C},t,f))},x1e={},w1e={field:"id",order:"DESC"},Dx=function(){return Dx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")},cb=function(){return cb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=this._config.preview;if(o)n.postMessage({results:q,workerId:f.WORKER_ID,finished:G});else if(j(this._config.chunk)&&!$){if(this._config.chunk(q,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);q=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(q.data),this._completeResults.errors=this._completeResults.errors.concat(q.errors),this._completeResults.meta=q.meta),this._completed||!G||!j(this._config.complete)||q&&q.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),G||q&&q.meta.paused||this._nextChunk(),q}this._halted=!0},this._sendError=function(M){j(this._config.error)?this._config.error(M):o&&this._config.error&&n.postMessage({workerId:f.WORKER_ID,error:M,finished:!1})}}function g(k){var M;(k=k||{}).chunkSize||(k.chunkSize=f.RemoteChunkSize),h.call(this,k),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function($){this._input=$,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(M=new XMLHttpRequest,this._config.withCredentials&&(M.withCredentials=this._config.withCredentials),a||(M.onload=O(this._chunkLoaded,this),M.onerror=O(this._chunkError,this)),M.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var $=this._config.downloadRequestHeaders;for(var N in $)M.setRequestHeader(N,$[N])}if(this._config.chunkSize){var B=this._start+this._config.chunkSize-1;M.setRequestHeader("Range","bytes="+this._start+"-"+B)}try{M.send(this._config.downloadRequestBody)}catch(q){this._chunkError(q.message)}a&&M.status===0&&this._chunkError()}},this._chunkLoaded=function(){M.readyState===4&&(M.status<200||400<=M.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:M.responseText.length,this._finished=!this._config.chunkSize||this._start>=function($){var N=$.getResponseHeader("Content-Range");return N===null?-1:parseInt(N.substring(N.lastIndexOf("/")+1))}(M),this.parseChunk(M.responseText)))},this._chunkError=function($){var N=M.statusText||$;this._sendError(new Error(N))}}function y(k){var M,$;(k=k||{}).chunkSize||(k.chunkSize=f.LocalChunkSize),h.call(this,k);var N=typeof FileReader<"u";this.stream=function(B){this._input=B,$=B.slice||B.webkitSlice||B.mozSlice,N?((M=new FileReader).onload=O(this._chunkLoaded,this),M.onerror=O(this._chunkError,this)):M=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(B.target.result)},this._chunkError=function(){this._sendError(M.error)}}function _(k){var M;h.call(this,k=k||{}),this.stream=function($){return M=$,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var $,N=this._config.chunkSize;return N?($=M.substring(0,N),M=M.substring(N)):($=M,M=""),this._finished=!M,this.parseChunk($)}}}function S(k){h.call(this,k=k||{});var M=[],$=!0,N=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(B){this._input=B,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){N&&M.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),M.length?this.parseChunk(M.shift()):$=!0},this._streamData=O(function(B){try{M.push(typeof B=="string"?B:B.toString(this._config.encoding)),$&&($=!1,this._checkIsFinished(),this.parseChunk(M.shift()))}catch(q){this._streamError(q)}},this),this._streamError=O(function(B){this._streamCleanUp(),this._sendError(B)},this),this._streamEnd=O(function(){this._streamCleanUp(),N=!0,this._streamData("")},this),this._streamCleanUp=O(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function E(k){var M,$,N,B=Math.pow(2,53),q=-B,V=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,G=/^((\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)))$/,Y=this,X=0,H=0,te=!1,ne=!1,K=[],ee={data:[],errors:[],meta:{}};if(j(k.step)){var Ce=k.step;k.step=function(ie){if(ee=ie,me())Se();else{if(Se(),ee.data.length===0)return;X+=ie.data.length,k.preview&&X>k.preview?$.abort():(ee.data=ee.data[0],Ce(ee,Y))}}}function se(ie){return k.skipEmptyLines==="greedy"?ie.join("").trim()==="":ie.length===1&&ie[0].length===0}function Se(){return ee&&N&&(Oe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+f.DefaultDelimiter+"'"),N=!1),k.skipEmptyLines&&(ee.data=ee.data.filter(function(ie){return!se(ie)})),me()&&function(){if(!ee)return;function ie(ke,$e){j(k.transformHeader)&&(ke=k.transformHeader(ke,$e)),K.push(ke)}if(Array.isArray(ee.data[0])){for(var Fe=0;me()&&Fe=K.length?"__parsed_extra":K[Te]),k.transform&&(dt=k.transform(dt,Le)),dt=we(Le,dt),Le==="__parsed_extra"?(Be[Le]=Be[Le]||[],Be[Le].push(dt)):Be[Le]=dt}return k.header&&(Te>K.length?Oe("FieldMismatch","TooManyFields","Too many fields: expected "+K.length+" fields but parsed "+Te,H+$e):Te=Z.length/2?`\r -`:"\r"}(ie,$e)),N=!1,k.delimiter)j(k.delimiter)&&(k.delimiter=k.delimiter(ie),ee.meta.delimiter=k.delimiter);else{var Te=function(Le,dt,He,Z,ae){var fe,ve,be,_e;ae=ae||[","," ","|",";",f.RECORD_SEP,f.UNIT_SEP];for(var De=0;De=V)return Kt(!0)}else for(Ge=X,X++;;){if((Ge=te.indexOf(M,Ge+1))===-1)return K||Oe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:we.length,index:X}),Dt();if(Ge===ee-1)return Dt(te.substring(X,Ge).replace(De,M));if(M!==Y||te[Ge+1]!==Y){if(M===Y||Ge===0||te[Ge-1]!==Y){be!==-1&&be=V)return Kt(!0);break}Oe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:we.length,index:X}),Ge++}}else Ge++}return Dt();function ot(Pt){we.push(Pt),Fe=X}function it(Pt){var Je=0;if(Pt!==-1){var ut=te.substring(Ge+1,Pt);ut&&ut.trim()===""&&(Je=ut.length)}return Je}function Dt(Pt){return K||(Pt===void 0&&(Pt=te.substring(X)),ie.push(Pt),X=ee,ot(ie),me&&nt()),Kt()}function Zt(Pt){X=Pt,ot(ie),ie=[],_e=te.indexOf(N,X)}function Kt(Pt){return{data:we,errors:Oe,meta:{delimiter:$,linebreak:N,aborted:H,truncated:!!Pt,cursor:Fe+(ne||0)}}}function nt(){q(Kt()),we=[],Oe=[]}},this.abort=function(){H=!0},this.getCharIndex=function(){return X}}function I(k){var M=k.data,$=s[M.workerId],N=!1;if(M.error)$.userError(M.error,M.file);else if(M.results&&M.results.data){var B={abort:function(){N=!0,R(M.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:P,resume:P};if(j($.userStep)){for(var q=0;q{var r;return(r=/^@(?[a-zA-Z0-9._=\-/]+):(?[a-zA-Z0-9\-.]+\.[a-zA-Z]+)$/.exec(e))==null?void 0:r.groups},sxe=e=>/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e),lxe=async e=>{const t=`https://${e}/.well-known/matrix/client`;try{return(await yf(t,{method:"GET"})).json["m.homeserver"].base_url}catch{return`https://${e}`}},uxe=async e=>{const t=`${e}/_synapse/admin/v1/server_version`;return(await yf(t,{method:"GET"})).json.server_version},cxe=async e=>{const t=`${e}/_matrix/client/versions`;return(await yf(t,{method:"GET"})).json},dxe=async e=>{const t=`${e}/_matrix/client/r0/login`;return(await yf(t,{method:"GET"})).json.flows},fxe=e=>`${hr.getItem("base_url")}/_matrix/media/v1/download/${e}?allow_redirect=true`;function dB(){const e=hr.getItem("home_server"),t="0123456789abcdefghijklmnopqrstuvwxyz";return`@${Array.from(crypto.getRandomValues(new Uint32Array(8))).map(n=>t[n%t.length]).join("")}:${e}`}function pxe(e=20){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(r=>t[r%t.length]).join("")}const g2=!0,hxe=["id","displayname"].sort();function Z_({value:e,text:t}){const r=rt();return A.jsx("option",{value:e,children:r(t)})}const vxe=()=>{const[e,t]=p.useState([]),[r,n]=p.useState(null),[a,o]=p.useState(null),[s,d]=p.useState(!0),[f,u]=p.useState(null),[h,g]=p.useState(null),[y,_]=p.useState(""),[S,E]=p.useState("stop"),[x,T]=p.useState(!0),[I,R]=p.useState("ignore"),P=rt(),C=Jr(),O=Zo(),j=async se=>{if(f!==null)return;t([]),n(null),o(null),g(null);const Se=se.target.files?se.target.files[0]:null;if(Se){if(Se.size>1e8){const me=P("import_users.errors.unreasonably_big",{size:(Se.size/1048576).toFixed(2)});C(me),n(me);return}try{cB.parse(Se,{header:!0,skipEmptyLines:!0,complete:me=>{me.errors&&n(me.errors.map(we=>we.toString())),k(me,{setValues:t,setStats:o,setError:n})}})}catch{return n("Unknown error"),null}}},k=({data:se,meta:Se,errors:me},{setValues:we,setStats:Oe,setError:ie})=>{const Fe=hxe.filter(Te=>{var Be;return!((Be=Se.fields)!=null&&Be.includes(Te))});if(Fe.length>0)return ie(P("import_users.error.required_field",{field:Fe[0]})),!1;const ke={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:se.length},$e=me.map(Te=>Te.message);return se.forEach((Te,Be)=>{var Le,dt,He;Te.user_type===void 0||Te.user_type===""?ke.user_types.default++:ke.user_types[Te.user_type]+=1,(Le=Se.fields)!=null&&Le.includes("name")&&delete Te.name,(dt=Se.fields)!=null&&dt.includes("user_type")&&delete Te.user_type,(He=Se.fields)!=null&&He.includes("is_admin")&&delete Te.is_admin,["is_guest","admin","deactivated"].forEach(Z=>{Te[Z]==="true"?(ke[Z]++,Te[Z]=!0):(Te[Z]!=="false"&&Te[Z]!==""&&$e.push(P("import_users.error.invalid_value",{field:Z,row:Be})),Te[Z]=!1)}),Te.password!==void 0&&Te.password!==""&&ke.password++,Te.avatar_url!==void 0&&Te.avatar_url!==""&&ke.avatar_url++,Te.id!==void 0&&Te.id!==""&&ke.id++}),$e.length>0&&ie($e),Oe(ke),we(se),!0},M=async()=>{if(f!==null){C("import_users.errors.already_in_progress");return}const se=await $(O,e,S,x,I,s,u,n);g(se),_(cB.unparse(se.skippedRecords)),console.log("Skipped records:"),console.log(y)},$=async(se,Se,me,we,Oe,ie,Fe,ke)=>{const $e=[],Te=[],Be=[],Le={total:0,id:0,is_guest:0,admin:0,password:0};let dt=0;const He=Se.length;try{Fe({done:dt,limit:He});for(const Z of Se){const ae={...Z};(Oe==="ignore"||ae.id===void 0)&&(ae.id=dB()),(we===!1||Z.password===void 0)&&(ae.password=pxe()),g2&&console.log("will check for existence of record "+JSON.stringify(ae));let fe=0;const ve=be=>se.getOne("users",{id:be.id}).then(async()=>{if(g2&&console.log("already existed"),Oe==="update"||me==="skip")$e.push(be);else{if(me==="stop")throw new Error(P("import_users.error.id_exits",{id:be.id}));{const _e=Object.assign({},be,{id:dB()});fe++,fe>512?(console.warn("retry loop got stuck? pathological situation?"),$e.push(be)):await ve(_e)}}},async()=>{g2&&console.log("OK to create record "+be.id+" ("+be.displayname+")."),ie||await se.create("users",{data:be}),Be.push(be)});await ve(ae),dt++,Fe({done:dt,limit:Se.length})}Fe(null)}catch(Z){ke(P("import_users.error.at_entry",{entry:dt+1,message:Z instanceof Error?Z.message:String(Z)})),Fe(null)}return{skippedRecords:$e,erroredRecords:Te,succeededRecords:Be,totalRecordCount:He,changeStats:Le,wasDryRun:ie}},N=()=>{const se=document.createElement("a");console.log(y);const Se=new Blob([y],{type:"text/comma-separated-values"});se.href=URL.createObjectURL(Se),se.download="skippedRecords.csv",document.body.appendChild(se),se.click()},B=async se=>{if(f!==null)return;const Se=se.target.value;E(Se)},q=se=>{f===null&&T(se.target.checked)},V=async se=>{if(f!==null)return;const Se=se.target.value;R(Se)},G=se=>{f===null&&d(se.target.checked)},Y=a&&!h&&[A.jsxs(ch,{children:[A.jsx(Ld,{title:P("import_users.cards.importstats.header")}),A.jsxs(Ei,{children:[A.jsx("div",{children:P("import_users.cards.importstats.users_total",a.total)}),A.jsx("div",{children:P("import_users.cards.importstats.guest_count",a.is_guest)}),A.jsx("div",{children:P("import_users.cards.importstats.admin_count",a.admin)})]})]}),A.jsxs(ch,{children:[A.jsx(Ld,{title:P("import_users.cards.ids.header")}),A.jsxs(Ei,{children:[A.jsx("div",{children:a.id===a.total?P("import_users.cards.ids.all_ids_present"):P("import_users.cards.ids.count_ids_present",a.id)}),a.id>0?A.jsx("div",{children:A.jsxs(xk,{onChange:V,value:I,disabled:f!==null,children:[A.jsx(Z_,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),A.jsx(Z_,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),A.jsxs(ch,{children:[A.jsx(Ld,{title:P("import_users.cards.passwords.header")}),A.jsxs(Ei,{children:[A.jsx("div",{children:a.password===a.total?P("import_users.cards.passwords.all_passwords_present"):P("import_users.cards.passwords.count_passwords_present",a.password)}),a.password>0?A.jsx("div",{children:A.jsx(yk,{control:A.jsx(cv,{checked:x,disabled:f!==null,onChange:q}),label:P("import_users.cards.passwords.use_passwords")})}):""]})]})],X=a&&!h&&A.jsxs(ch,{children:[A.jsx(Ld,{title:P("import_users.cards.conflicts.header")}),A.jsx(Ei,{children:A.jsx("div",{children:A.jsxs(xk,{onChange:B,value:S,disabled:f!==null,children:[A.jsx(Z_,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),A.jsx(Z_,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),H=r&&A.jsxs(ch,{children:[A.jsx(Ld,{title:P("import_users.error.error")}),A.jsx(Ei,{children:(Array.isArray(r)?r:[r]).map(se=>A.jsx("div",{children:se}))})]}),te=!h&&A.jsxs(ch,{children:[A.jsx(Ld,{title:P("import_users.cards.upload.header")}),A.jsxs(Ei,{children:[P("import_users.cards.upload.explanation"),A.jsx("a",{href:"./data/example.csv",children:"example.csv"}),A.jsx("br",{}),A.jsx("br",{}),A.jsx("input",{type:"file",onChange:j,disabled:f!==null})]})]}),ne=h&&A.jsxs(Ei,{children:[A.jsx(Ld,{title:P("import_users.cards.results.header")}),A.jsxs("div",{children:[P("import_users.cards.results.total",h.totalRecordCount),A.jsx("br",{}),P("import_users.cards.results.successful",h.succeededRecords.length),A.jsx("br",{}),h.skippedRecords.length?[P("import_users.cards.results.skipped",h.skippedRecords.length),A.jsx("div",{children:A.jsx("button",{onClick:N,children:P("import_users.cards.results.download_skipped")})}),A.jsx("br",{})]:"",h.erroredRecords.length?[P("import_users.cards.results.skipped",h.erroredRecords.length),A.jsx("br",{})]:"",A.jsx("br",{}),h.wasDryRun&&[P("import_users.cards.results.simulated_only"),A.jsx("br",{})]]})]}),K=!e||e.length===0||h?void 0:A.jsxs(nU,{children:[A.jsx(yk,{control:A.jsx(cv,{checked:s,onChange:G,disabled:f!==null}),label:P("import_users.cards.startImport.simulate_only")}),A.jsx(Bn,{size:"large",onClick:M,disabled:f!==null,children:P("import_users.cards.startImport.run_import")}),f!==null?A.jsxs("div",{children:[f.done," of ",f.limit," done"]}):null]}),ee=[];te&&ee.push(te),H&&ee.push(H),X&&ee.push(X),Y&&ee.push(...Y),K&&ee.push(K),ne&&ee.push(ne);const Ce=A.jsx(Rf,{children:ee});return[A.jsx(kf,{defaultTitle:P("import_users.title")}),Ce]},mxe=vxe,C1={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"}}}},gxe={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"}}}};xj(C1,gxe);const yxe={...C1,ra:{...C1.ra,navigation:{...C1.ra.navigation,no_filtered_results:"Keine Ergebnisse",clear_filters:"Alle Filter entfernen"}},synapseadmin:{auth:{base_url:"Heimserver URL",welcome:"Willkommen bei Synapse-admin",server_version:"Synapse Version",supports_specs:"unterstützt Matrix-Specs",username_error:"Bitte vollständigen Nutzernamen angeben: '@user:domain'",protocol_error:"Die URL muss mit 'http://' oder 'https://' beginnen",url_error:"Keine gültige Matrix Server URL",sso_sign_in:"Anmeldung mit SSO"},users:{invalid_user_id:"Lokaler Anteil der Matrix Benutzer-ID ohne Homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Raumdetails",tabs:{basic:"Allgemein",members:"Mitglieder",detail:"Details",permission:"Berechtigungen"}},reports:{tabs:{basic:"Allgemein",detail:"Details"}}},import_users:{error:{at_entry:"Bei Eintrag %{entry}: %{message}",error:"Fehler",required_field:"Pflichtfeld '%{field}' fehlt",invalid_value:"Ungültiger Wert in Zeile %{row}. Feld '%{field}' darf nur die Werte 'true' oder 'false' enthalten",unreasonably_big:"Datei ist zu groß für den Import (%{size} Megabytes)",already_in_progress:"Es läuft bereits ein Import",id_exits:"ID %{id} existiert bereits"},title:"Benutzer aus CSV importieren",goToPdf:"Gehe zum PDF",cards:{importstats:{header:"Benutzer importieren",users_total:"%{smart_count} Benutzer in der CSV Datei |||| %{smart_count} Benutzer in der CSV Datei",guest_count:"%{smart_count} Gast |||| %{smart_count} Gäste",admin_count:"%{smart_count} Server Administrator |||| %{smart_count} Server Administratoren"},conflicts:{header:"Konfliktstrategie",mode:{stop:"Stoppe bei Fehlern",skip:"Zeige Fehler und überspringe fehlerhafte Einträge"}},ids:{header:"IDs",all_ids_present:"IDs in jedem Eintrag vorhanden",count_ids_present:"%{smart_count} Eintrag mit ID |||| %{smart_count} Einträge mit IDs",mode:{ignore:"Ignoriere IDs der CSV-Datei und erstelle neue",update:"Aktualisiere existierende Benutzer"}},passwords:{header:"Passwörter",all_passwords_present:"Passwörter in jedem Eintrag vorhanden",count_passwords_present:"%{smart_count} Eintrag mit Passwort |||| %{smart_count} Einträge mit Passwörtern",use_passwords:"Verwende Passwörter aus der CSV Datei"},upload:{header:"CSV Datei importieren",explanation:"Hier können Sie eine Datei mit kommagetrennten Daten hochladen, die verwendet werden um Benutzer anzulegen oder zu ändern. Die Datei muss mindestens die Felder 'id' und 'displayname' enthalten. Hier können Sie eine Beispieldatei herunterladen und anpassen: "},startImport:{simulate_only:"Nur simulieren",run_import:"Importieren"},results:{header:"Ergebnis",total:"%{smart_count} Eintrag insgesamt |||| %{smart_count} Einträge insgesamt",successful:"%{smart_count} Einträge erfolgreich importiert",skipped:"%{smart_count} Einträge übersprungen",download_skipped:"Übersprungene Einträge herunterladen",with_error:"%{smart_count} Eintrag mit Fehlern ||| %{smart_count} Einträge mit Fehlern",simulated_only:"Import-Vorgang war nur simuliert"}}},delete_media:{name:"Medien",fields:{before_ts:"Letzter Zugriff vor",size_gt:"Größer als (in Bytes)",keep_profiles:"Behalte Profilbilder"},action:{send:"Medien löschen",send_success:"Anfrage erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:"Diese API löscht die lokalen Medien von der Festplatte des eigenen Servers. Dies umfasst alle lokalen Miniaturbilder und Kopien von Medien. Diese API wirkt sich nicht auf Medien aus, die sich in externen Medien-Repositories befinden."}},resources:{users:{name:"Benutzer",email:"E-Mail",msisdn:"Telefon",threepid:"E-Mail / Telefon",fields:{avatar:"Avatar",id:"Benutzer-ID",name:"Name",is_guest:"Gast",admin:"Server Administrator",locked:"Gesperrt",deactivated:"Deaktiviert",erased:"Gelöscht",guests:"Zeige Gäste",show_deactivated:"Zeige deaktivierte Benutzer",user_id:"Suche Benutzer",displayname:"Anzeigename",password:"Passwort",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Adresse",creation_ts_ms:"Zeitpunkt der Erstellung",consent_version:"Zugestimmte Geschäftsbedingungen",auth_provider:"Provider",user_type:"Benutzertyp"},helper:{password:"Durch die Änderung des Passworts wird der Benutzer von allen Sitzungen abgemeldet.",deactivate:"Sie müssen ein Passwort angeben, um ein Konto wieder zu aktivieren.",erase:"DSGVO konformes Löschen der Benutzerdaten"},action:{erase:"Lösche Benutzerdaten"}},rooms:{name:"Raum |||| Räume",fields:{room_id:"Raum-ID",name:"Name",canonical_alias:"Alias",joined_members:"Mitglieder",joined_local_members:"Lokale Mitglieder",joined_local_devices:"Lokale Endgeräte",state_events:"Zustandsereignisse / Komplexität",version:"Version",is_encrypted:"Verschlüsselt",encryption:"Verschlüsselungs-Algorithmus",federatable:"Fö­de­rierbar",public:"Sichtbar im Raumverzeichnis",creator:"Ersteller",join_rules:"Beitrittsregeln",guest_access:"Gastzugriff",history_visibility:"Historie-Sichtbarkeit",topic:"Thema",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Öffentlich",knock:"Auf Anfrage",invite:"Nur auf Einladung",private:"Privat"},guest_access:{can_join:"Gäste können beitreten",forbidden:"Gäste können nicht beitreten"},history_visibility:{invited:"Ab Einladung",joined:"Ab Beitritt",shared:"Ab Setzen der Einstellung",world_readable:"Jeder"},unencrypted:"Nicht verschlüsselt"},action:{erase:{title:"Raum löschen",content:"Sind Sie sicher dass Sie den Raum löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden. Alle Nachrichten und Medien, die der Raum beinhaltet werden vom Server gelöscht!"}}},reports:{name:"Gemeldetes Ereignis |||| Gemeldete Ereignisse",fields:{id:"ID",received_ts:"Meldezeit",user_id:"Meldender",name:"Raumname",score:"Wert",reason:"Grund",event_id:"Event-ID",event_json:{origin:"Ursprungsserver",origin_server_ts:"Sendezeit",type:"Eventtyp",content:{msgtype:"Inhaltstyp",body:"Nachrichteninhalt",format:"Nachrichtenformat",formatted_body:"Formatierter Nachrichteninhalt",algorithm:"Verschlüsselungsalgorithmus",info:{mimetype:"Typ"},url:"URL"}}},action:{erase:{title:"Gemeldetes Event löschen",content:"Sind Sie sicher dass Sie das gemeldete Event löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden."}}},connections:{name:"Verbindungen",fields:{last_seen:"Datum",ip:"IP-Adresse",user_agent:"User Agent"}},devices:{name:"Gerät |||| Geräte",fields:{device_id:"Geräte-ID",display_name:"Gerätename",last_seen_ts:"Zeitstempel",last_seen_ip:"IP-Adresse"},action:{erase:{title:"Entferne %{id}",content:'Möchten Sie das Gerät "%{name}" wirklich entfernen?',success:"Gerät erfolgreich entfernt.",failure:"Beim Entfernen ist ein Fehler aufgetreten."}}},users_media:{name:"Medien",fields:{media_id:"Medien ID",media_length:"Größe",media_type:"Typ",upload_name:"Dateiname",quarantined_by:"Zur Quarantäne hinzugefügt",safe_from_quarantine:"Schutz vor Quarantäne",created_ts:"Erstellt",last_access_ts:"Letzter Zugriff"},action:{open:"Mediendatei in neuem Fenster öffnen"}},protect_media:{action:{create:"Ungeschützt, Schutz erstellen",delete:"Geschützt, Schutz aufheben",none:"In Quarantäne",send_success:"Erfolgreich den Schutz-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},quarantine_media:{action:{name:"Quarantäne",create:"Zur Quarantäne hinzufügen",delete:"In Quarantäne, Quarantäne aufheben",none:"Geschützt vor Quarantäne",send_success:"Erfolgreich den Quarantäne-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App-Anzeigename",app_id:"App ID",device_display_name:"Geräte-Anzeigename",kind:"Art",lang:"Sprache",profile_tag:"Profil-Tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Serverbenachrichtigungen",send:"Servernachricht versenden",fields:{body:"Nachricht"},action:{send:"Sende Nachricht",send_success:"Nachricht erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:'Sendet eine Serverbenachrichtigung an die ausgewählten Nutzer. Hierfür muss das Feature "Server Notices" auf dem Server aktiviert sein.'}},user_media_statistics:{name:"Dateien je Benutzer",fields:{media_count:"Anzahl der Dateien",media_length:"Größe der Dateien"}},forward_extremities:{name:"Vorderextremitäten",fields:{id:"Event-ID",received_ts:"Zeitstempel",depth:"Tiefe",state_group:"Zustandsgruppe"}},room_state:{name:"Zustandsereignisse",fields:{type:"Typ",content:"Inhalt",origin_server_ts:"Sendezeit",sender:"Absender"}},room_directory:{name:"Raumverzeichnis",fields:{world_readable:"Gastbenutzer dürfen ohne Beitritt lesen",guest_can_join:"Gastbenutzer dürfen beitreten"},action:{title:"Raum aus Verzeichnis löschen |||| %{smart_count} Räume aus Verzeichnis löschen",content:"Möchten Sie den Raum wirklich aus dem Raumverzeichnis löschen? |||| Möchten Sie die %{smart_count} Räume wirklich aus dem Raumverzeichnis löschen?",erase:"Lösche aus Verzeichnis",create:"Eintragen ins Verzeichnis",send_success:"Raum erfolgreich eingetragen.",send_failure:"Beim Entfernen ist ein Fehler aufgetreten."}},destinations:{name:"Föderation",fields:{destination:"Ziel",failure_ts:"Fehlerzeitpunkt",retry_last_ts:"Letzter Wiederholungsversuch",retry_interval:"Wiederholungsintervall",last_successful_stream_ordering:"letzte erfogreicher Stream",stream_ordering:"Stream"},action:{reconnect:"Neu verbinden"}},registration_tokens:{name:"Registrierungstoken",fields:{token:"Token",valid:"Gültige Token",uses_allowed:"Anzahl",pending:"Ausstehend",completed:"Abgeschlossen",expiry_time:"Ablaufzeit",length:"Länge"},helper:{length:"Länge des Tokens, wenn kein Token vorgegeben wird."}}}};var bxe={ra:{action:{add_filter:"Add filter",add:"Add",back:"Go Back",bulk_actions:"1 item selected |||| %{smart_count} items selected",cancel:"Cancel",clear_array_input:"Clear the list",clear_input_value:"Clear value",clone:"Clone",confirm:"Confirm",create:"Create",create_item:"Create %{item}",delete:"Delete",edit:"Edit",export:"Export",list:"List",refresh:"Refresh",remove_filter:"Remove this filter",remove_all_filters:"Remove all filters",remove:"Remove",save:"Save",search:"Search",select_all:"Select all",select_all_button:"Select all",select_row:"Select this row",show:"Show",sort:"Sort",undo:"Undo",unselect:"Unselect",expand:"Expand",close:"Close",open_menu:"Open menu",close_menu:"Close menu",update:"Update",move_up:"Move up",move_down:"Move down",open:"Open",toggle_theme:"Toggle light/dark mode",select_columns:"Columns",update_application:"Reload Application"},boolean:{true:"Yes",false:"No",null:" "},page:{create:"Create %{name}",dashboard:"Dashboard",edit:"%{name} %{recordRepresentation}",error:"Something went wrong",list:"%{name}",loading:"Loading",not_found:"Not Found",show:"%{name} %{recordRepresentation}",empty:"No %{name} yet.",invite:"Do you want to add one?",access_denied:"Access denied",authentication_error:"Authentication error"},input:{file:{upload_several:"Drop some files to upload, or click to select one.",upload_single:"Drop a file to upload, or click to select it."},image:{upload_several:"Drop some pictures to upload, or click to select one.",upload_single:"Drop a picture to upload, or click to select it."},references:{all_missing:"Unable to find references data.",many_missing:"At least one of the associated references no longer appears to be available.",single_missing:"Associated reference no longer appears to be available."},password:{toggle_visible:"Hide password",toggle_hidden:"Show password"}},message:{about:"About",access_denied:"You don't have the right permissions to access this page",are_you_sure:"Are you sure?",authentication_error:"The authentication server returned an error and your credentials could not be checked.",auth_error:"An error occurred while validating the authentication token.",bulk_delete_content:"Are you sure you want to delete this %{name}? |||| Are you sure you want to delete these %{smart_count} items?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name}",bulk_update_content:"Are you sure you want to update %{name} %{recordRepresentation}? |||| Are you sure you want to update these %{smart_count} items?",bulk_update_title:"Update %{name} %{recordRepresentation} |||| Update %{smart_count} %{name}",clear_array_input:"Are you sure you want to clear the whole list?",delete_content:"Are you sure you want to delete this %{name}?",delete_title:"Delete %{name} %{recordRepresentation}",details:"Details",error:"A client error occurred and your request couldn't be completed.",invalid_form:"The form is not valid. Please check for errors",loading:"Please wait",no:"No",not_found:"Either you typed a wrong URL, or you followed a bad link.",select_all_limit_reached:"There are too many elements to select them all. Only the first %{max} elements were selected.",unsaved_changes:"Some of your changes weren't saved. Are you sure you want to ignore them?",yes:"Yes",placeholder_data_warning:"Network issue: Data refresh failed."},navigation:{clear_filters:"Clear filters",no_filtered_results:"No %{name} found using the current filters.",no_results:"No %{name} found",no_more_results:"The page number %{page} is out of boundaries. Try the previous page.",page_out_of_boundaries:"Page number %{page} out of boundaries",page_out_from_end:"Cannot go after last page",page_out_from_begin:"Cannot go before page 1",page_range_info:"%{offsetBegin}-%{offsetEnd} of %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}",current_page:"Page %{page}",page:"Go to page %{page}",first:"Go to first page",last:"Go to last page",next:"Go to next page",previous:"Go to previous page",page_rows_per_page:"Rows per page:",skip_nav:"Skip to content"},sort:{sort_by:"Sort by %{field_lower_first} %{order}",ASC:"ascending",DESC:"descending"},auth:{auth_check_error:"Please login to continue",user_menu:"Profile",username:"Username",password:"Password",email:"Email",sign_in:"Sign in",sign_in_error:"Authentication failed, please retry",logout:"Logout"},notification:{updated:"Element updated |||| %{smart_count} elements updated",created:"Element created",deleted:"Element deleted |||| %{smart_count} elements deleted",bad_item:"Incorrect element",item_doesnt_exist:"Element does not exist",http_error:"Server communication error",data_provider_error:"dataProvider error. Check the console for details.",i18n_error:"Cannot load the translations for the specified language",canceled:"Action cancelled",logged_out:"Your session has ended, please reconnect.",not_authorized:"You're not authorized to access this resource.",application_update_available:"A new version is available."},validation:{required:"Required",minLength:"Must be %{min} characters at least",maxLength:"Must be %{max} characters or less",minValue:"Must be at least %{min}",maxValue:"Must be %{max} or less",number:"Must be a number",email:"Must be a valid email",oneOf:"Must be one of: %{options}",regex:"Must match a specific format (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Saved queries",query_name:"Query name",new_label:"Save current query...",new_dialog_title:"Save current query as",remove_label:"Remove saved query",remove_label_with_name:'Remove query "%{name}"',remove_dialog_title:"Remove saved query?",remove_message:"Are you sure you want to remove that item from your list of saved queries?",help:"Filter the list and save this query for later"},configurable:{customize:"Customize",configureMode:"Configure this page",inspector:{title:"Inspector",content:"Hover the application UI elements to configure them",reset:"Reset Settings",hideAll:"Hide All",showAll:"Show All"},Datagrid:{title:"Datagrid",unlabeled:"Unlabeled column #%{column}"},SimpleForm:{title:"Form",unlabeled:"Unlabeled input #%{input}"},SimpleList:{title:"List",primaryText:"Primary text",secondaryText:"Secondary text",tertiaryText:"Tertiary text"}}}};const _xe={...bxe,synapseadmin:{auth:{base_url:"Homeserver URL",welcome:"Welcome to Synapse-admin",server_version:"Synapse version",supports_specs:"supports Matrix specs",username_error:"Please enter fully qualified user ID: '@user:domain'",protocol_error:"URL has to start with 'http://' or 'https://'",url_error:"Not a valid Matrix server URL",sso_sign_in:"Sign in with SSO"},users:{invalid_user_id:"Localpart of a Matrix user-id without homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Room details",tabs:{basic:"Basic",members:"Members",detail:"Details",permission:"Permissions"}},reports:{tabs:{basic:"Basic",detail:"Details"}}},import_users:{error:{at_entry:"At entry %{entry}: %{message}",error:"Error",required_field:"Required field '%{field}' is not present",invalid_value:"Invalid value on line %{row}. '%{field}' field may only be 'true' or 'false'",unreasonably_big:"Refused to load unreasonably big file of %{size} megabytes",already_in_progress:"An import run is already in progress",id_exits:"ID %{id} already present"},title:"Import users via CSV",goToPdf:"Go to PDF",cards:{importstats:{header:"Import users",users_total:"%{smart_count} user in CSV file |||| %{smart_count} users in CSV file",guest_count:"%{smart_count} guest |||| %{smart_count} guests",admin_count:"%{smart_count} admin |||| %{smart_count} admins"},conflicts:{header:"Conflict strategy",mode:{stop:"Stop on conflict",skip:"Show error and skip on conflict"}},ids:{header:"IDs",all_ids_present:"IDs present on every entry",count_ids_present:"%{smart_count} entry with ID |||| %{smart_count} entries with IDs",mode:{ignore:"Ignore IDs in CSV and create new ones",update:"Update existing records"}},passwords:{header:"Passwords",all_passwords_present:"Passwords present on every entry",count_passwords_present:"%{smart_count} entry with password |||| %{smart_count} entries with passwords",use_passwords:"Use passwords from CSV"},upload:{header:"Input CSV file",explanation:"Here you can upload a file with comma separated values that is processed to create or update users. The file must include the fields 'id' and 'displayname'. You can download and adapt an example file here: "},startImport:{simulate_only:"Simulate only",run_import:"Import"},results:{header:"Import results",total:"%{smart_count} entry in total |||| %{smart_count} entries in total",successful:"%{smart_count} entries successfully imported",skipped:"%{smart_count} entries skipped",download_skipped:"Download skipped records",with_error:"%{smart_count} entry with errors |||| %{smart_count} entries with errors",simulated_only:"Run was only simulated"}}},delete_media:{name:"Media",fields:{before_ts:"last access before",size_gt:"Larger then (in bytes)",keep_profiles:"Keep profile images"},action:{send:"Delete media",send_success:"Request successfully sent.",send_failure:"An error has occurred."},helper:{send:"This API deletes the local media from the disk of your own server. This includes any local thumbnails and copies of media downloaded. This API will not affect media that has been uploaded to external media repositories."}},resources:{users:{name:"User |||| Users",email:"Email",msisdn:"Phone",threepid:"Email / Phone",fields:{avatar:"Avatar",id:"User-ID",name:"Name",is_guest:"Guest",admin:"Server Administrator",locked:"Locked",deactivated:"Deactivated",erased:"Erased",guests:"Show guests",show_deactivated:"Show deactivated users",show_locked:"Show locked users",user_id:"Search user",displayname:"Displayname",password:"Password",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Address",creation_ts_ms:"Creation timestamp",consent_version:"Consent version",auth_provider:"Provider",user_type:"User type"},helper:{password:"Changing password will log user out of all sessions.",deactivate:"You must provide a password to re-activate an account.",erase:"Mark the user as GDPR-erased"},action:{erase:"Erase user data"}},rooms:{name:"Room |||| Rooms",fields:{room_id:"Room-ID",name:"Name",canonical_alias:"Alias",joined_members:"Members",joined_local_members:"Local members",joined_local_devices:"Local devices",state_events:"State events / Complexity",version:"Version",is_encrypted:"Encrypted",encryption:"Encryption",federatable:"Federatable",public:"Visible in room directory",creator:"Creator",join_rules:"Join rules",guest_access:"Guest access",history_visibility:"History visibility",topic:"Topic",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Public",knock:"Knock",invite:"Invite",private:"Private"},guest_access:{can_join:"Guests can join",forbidden:"Guests can not join"},history_visibility:{invited:"Since invited",joined:"Since joined",shared:"Since shared",world_readable:"Anyone"},unencrypted:"Unencrypted"},action:{erase:{title:"Delete room",content:"Are you sure you want to delete the room? This cannot be undone. All messages and shared media in the room will be deleted from the server!"}}},reports:{name:"Reported event |||| Reported events",fields:{id:"ID",received_ts:"report time",user_id:"announcer",name:"name of the room",score:"score",reason:"reason",event_id:"event ID",event_json:{origin:"origin server",origin_server_ts:"time of send",type:"event type",content:{msgtype:"content type",body:"content",format:"format",formatted_body:"formatted content",algorithm:"algorithm",url:"URL",info:{mimetype:"Type"}}}},action:{erase:{title:"Delete reported event",content:"Are you sure you want to delete the reported event? This cannot be undone."}}},connections:{name:"Connections",fields:{last_seen:"Date",ip:"IP address",user_agent:"User agent"}},devices:{name:"Device |||| Devices",fields:{device_id:"Device-ID",display_name:"Device name",last_seen_ts:"Timestamp",last_seen_ip:"IP address"},action:{erase:{title:"Removing %{id}",content:'Are you sure you want to remove the device "%{name}"?',success:"Device successfully removed.",failure:"An error has occurred."}}},users_media:{name:"Media",fields:{media_id:"Media ID",media_length:"File Size (in Bytes)",media_type:"Type",upload_name:"File name",quarantined_by:"Quarantined by",safe_from_quarantine:"Safe from quarantine",created_ts:"Created",last_access_ts:"Last access"},action:{open:"Open media file in new window"}},protect_media:{action:{create:"Unprotected, create protection",delete:"Protected, remove protection",none:"In quarantine",send_success:"Successfully changed the protection status.",send_failure:"An error has occurred."}},quarantine_media:{action:{name:"Quarantine",create:"Add to quarantine",delete:"In quarantine, unquarantine",none:"Protected from quarantine",send_success:"Successfully changed the quarantine status.",send_failure:"An error has occurred."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App display name",app_id:"App ID",device_display_name:"Device display name",kind:"Kind",lang:"Language",profile_tag:"Profile tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Server Notices",send:"Send server notices",fields:{body:"Message"},action:{send:"Send note",send_success:"Server notice successfully sent.",send_failure:"An error has occurred."},helper:{send:'Sends a server notice to the selected users. The feature "Server Notices" has to be activated at the server.'}},user_media_statistics:{name:"Users' media",fields:{media_count:"Media count",media_length:"Media length"}},forward_extremities:{name:"Forward Extremities",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Depth",state_group:"State group"}},room_state:{name:"State events",fields:{type:"Type",content:"Content",origin_server_ts:"time of send",sender:"Sender"}},room_directory:{name:"Room directory",fields:{world_readable:"guest users may view without joining",guest_can_join:"guest users may join"},action:{title:"Delete room from directory |||| Delete %{smart_count} rooms from directory",content:"Are you sure you want to remove this room from directory? |||| Are you sure you want to remove these %{smart_count} rooms from directory?",erase:"Delete from room directory",create:"Publish in room directory",send_success:"Room successfully published.",send_failure:"An error has occurred."}},destinations:{name:"Federation",fields:{destination:"Destination",failure_ts:"Failure timestamp",retry_last_ts:"Last retry timestamp",retry_interval:"Retry interval",last_successful_stream_ordering:"Last successful stream",stream_ordering:"Stream"},action:{reconnect:"Reconnect"}},registration_tokens:{name:"Registration tokens",fields:{token:"Token",valid:"Valid token",uses_allowed:"Uses allowed",pending:"Pending",completed:"Completed",expiry_time:"Expiry time",length:"Length"},helper:{length:"Length of the token if no token is given."}}}};var xxe={ra:{action:{add_filter:"Ajouter un filtre",add:"Ajouter",back:"Retour",bulk_actions:"%{smart_count} sélectionné |||| %{smart_count} sélectionnés",cancel:"Annuler",clear_array_input:"Vider la liste",clear_input_value:"Vider le champ",clone:"Dupliquer",confirm:"Confirmer",create:"Créer",create_item:"Créer %{item}",delete:"Supprimer",edit:"Éditer",export:"Exporter",list:"Liste",refresh:"Actualiser",remove_filter:"Supprimer ce filtre",remove_all_filters:"Supprimer tous les filtres",remove:"Supprimer",save:"Enregistrer",select_all:"Tout sélectionner",select_row:"Sélectionner cette ligne",search:"Rechercher",show:"Afficher",sort:"Trier",undo:"Annuler",unselect:"Désélectionner",expand:"Étendre",close:"Fermer",open_menu:"Ouvrir le menu",close_menu:"Fermer le menu",update:"Modifier",move_up:"Déplacer vers le haut",move_down:"Déplacer vers le bas",open:"Ouvrir",toggle_theme:"Thème clair/sombre",select_columns:"Colonnes",update_application:"Recharger l'application"},boolean:{true:"Oui",false:"Non",null:" "},page:{create:"Créer %{name}",dashboard:"Tableau de bord",edit:"%{name} %{recordRepresentation}",error:"Un problème est survenu",list:"%{name}",loading:"Chargement",not_found:"Page manquante",show:"%{name} %{recordRepresentation}",empty:"Pas encore de %{name}.",invite:"Voulez-vous en créer un ?"},input:{file:{upload_several:"Déposez les fichiers à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez le fichier à uploader, ou cliquez pour le sélectionner."},image:{upload_several:"Déposez les images à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez l'image à uploader, ou cliquez pour la sélectionner."},references:{all_missing:"Impossible de trouver des données de références.",many_missing:"Au moins une des références associées semble ne plus être disponible.",single_missing:"La référence associée ne semble plus disponible."},password:{toggle_visible:"Cacher le mot de passe",toggle_hidden:"Montrer le mot de passe"}},message:{about:"Au sujet de",are_you_sure:"Êtes-vous sûr ?",auth_error:"Une erreur est survenue lors de la validation de votre jeton d'authentification.",bulk_delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ? |||| Êtes-vous sûr(e) de vouloir supprimer ces %{smart_count} éléments ?",bulk_delete_title:"Supprimer %{name} |||| Supprimer %{smart_count} %{name}",bulk_update_content:"Êtes-vous sûr(e) de vouloir modifier cet élément ? |||| Êtes-vous sûr(e) de vouloir modifier ces %{smart_count} éléments ?",bulk_update_title:"Modifier %{name} |||| Modifier %{smart_count} %{name}",clear_array_input:"Êtes-vous sûr(e) de vouloir supprimer tous les éléments de la liste ?",delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ?",delete_title:"Supprimer %{name} #%{id}",details:"Détails",error:"En raison d'une erreur côté navigateur, votre requête n'a pas pu aboutir.",invalid_form:"Le formulaire n'est pas valide.",loading:"La page est en cours de chargement, merci de bien vouloir patienter.",no:"Non",not_found:"L'URL saisie est incorrecte, ou vous avez suivi un mauvais lien.",yes:"Oui",unsaved_changes:"Certains changements n'ont pas été enregistrés. Êtes-vous sûr(e) de vouloir quitter cette page ?"},navigation:{clear_filters:"Effacer les filtres",no_filtered_results:"Aucun résultat trouvé avec les filtres actuels.",no_results:"Aucun résultat",no_more_results:"La page numéro %{page} est en dehors des limites. Essayez la page précédente.",page_out_of_boundaries:"La page %{page} est en dehors des limites",page_out_from_end:"Fin de la pagination",page_out_from_begin:"La page doit être supérieure à 1",page_range_info:"%{offsetBegin}-%{offsetEnd} sur %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} sur plus de %{offsetEnd}",page_rows_per_page:"Lignes par page :",current_page:"Page %{page}",page:"Aller à la page %{page}",first:"Aller à la première page",last:"Aller à la dernière page",next:"Aller à la prochaine page",previous:"Aller à la page précédente",skip_nav:"Aller au contenu"},sort:{sort_by:"Trier par %{field} %{order}",ASC:"croissant",DESC:"décroissant"},auth:{auth_check_error:"Merci de vous connecter pour continuer",user_menu:"Profil",username:"Identifiant",password:"Mot de passe",sign_in:"Connexion",sign_in_error:"Échec de l'authentification, merci de réessayer",logout:"Déconnexion"},notification:{updated:"Élément mis à jour |||| %{smart_count} éléments mis à jour",created:"Élément créé",deleted:"Élément supprimé |||| %{smart_count} éléments supprimés",bad_item:"Élément inconnu",item_doesnt_exist:"L'élément n'existe pas",http_error:"Erreur de communication avec le serveur",data_provider_error:"Erreur dans le dataProvider. Plus de détails dans la console.",i18n_error:"Erreur de chargement des traductions pour la langue sélectionnée",canceled:"Action annulée",logged_out:"Votre session a pris fin, veuillez vous reconnecter.",not_authorized:"Vous n'êtes pas autorisé(e) à accéder à cette ressource.",application_update_available:"Une mise à jour est disponible."},validation:{required:"Ce champ est requis",minLength:"Minimum %{min} caractères",maxLength:"Maximum %{max} caractères",minValue:"Minimum %{min}",maxValue:"Maximum %{max}",number:"Doit être un nombre",email:"Doit être un email",oneOf:"Doit être au choix: %{options}",regex:"Doit respecter un format spécifique (regexp): %{pattern}",unique:"Doit être unique"},saved_queries:{label:"Mes requêtes",query_name:"Nom de la requête",new_label:"Ajouter à mes requêtes...",new_dialog_title:"Ajouter la requête en cours à mes requêtes",remove_label:"Retirer de mes requêtes",remove_label_with_name:'Retirer "%{name}" des mes requêtes',remove_dialog_title:"Effacer de mes requêtes ?",remove_message:"Etes-vous sûr(e) de vouloir supprimer cette requête de votre liste de requêtes ?",help:"Filtrez la liste et ajoutez cette requête à votre liste"},configurable:{customize:"Personnaliser",configureMode:"Configurer cette page",inspector:{title:"Inspecteur",content:"Sélectionner un composant pour le configurer",reset:"Réinitialiser",hideAll:"Masquer tout",showAll:"Afficher tout"},Datagrid:{title:"Tableau",unlabeled:"Colonne #%{column}"},SimpleForm:{title:"Formulaire",unlabeled:"Champ #%{input}"},SimpleList:{title:"Liste",primaryText:"Texte principal",secondaryText:"Texte secondaire",tertiaryText:"Texte annexe"}}}};const wxe={...xxe,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 y2,fB;function Sxe(){return fB||(fB=1,y2={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}"}}}),y2}var Exe=Sxe();const Cxe=tt(Exe),Oxe={...Cxe,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."}}}},b2={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:"Третичный текст"}}}},Pxe={...b2,ra:{...b2.ra,navigation:{...b2.ra.navigation,no_filtered_results:"Нет результатов",clear_filters:"Все фильтры сбросить"}},synapseadmin:{auth:{base_url:"Адрес домашнего сервера",welcome:"Добро пожаловать в Synapse-admin",server_version:"Версия Synapse",supports_specs:"поддерживает спецификации Matrix",username_error:"Пожалуйста, укажите полный ID пользователя: '@user:domain'",protocol_error:"Адрес должен начинаться с 'http://' или 'https://'",url_error:"Неверный адрес сервера Matrix",sso_sign_in:"Вход через SSO"},users:{invalid_user_id:"Локальная часть ID пользователя Matrix без адреса домашнего сервера.",tabs:{sso:"SSO"}},rooms:{details:"Данные комнаты",tabs:{basic:"Основные",members:"Участники",detail:"Подробности",permission:"Права доступа"}},reports:{tabs:{basic:"Основные",detail:"Подробности"}}},import_users:{error:{at_entry:"В записи %{entry}: %{message}",error:"Ошибка",required_field:"Отсутствует обязательное поле '%{field}'",invalid_value:"Неверное значение в строке %{row}. Поле '%{field}' может быть либо 'true', либо 'false'",unreasonably_big:"Отказано в загрузке слишком большого файла размером %{size} мегабайт",already_in_progress:"Импорт уже в процессе",id_exits:"ID %{id} уже существует"},title:"Импорт пользователей из CSV",goToPdf:"Перейти к PDF",cards:{importstats:{header:"Импорт пользователей",users_total:"%{smart_count} пользователь в CSV файле |||| %{smart_count} пользователя в CSV файле |||| %{smart_count} пользователей в CSV файле",guest_count:"%{smart_count} гость |||| %{smart_count} гостя |||| %{smart_count} гостей",admin_count:"%{smart_count} администратор |||| %{smart_count} администратора |||| %{smart_count} администраторов"},conflicts:{header:"Стратегия разрешения конфликтов",mode:{stop:"Остановка при конфликте",skip:"Показать ошибку и пропустить при конфликте"}},ids:{header:"Идентификаторы",all_ids_present:"Идентификаторы присутствуют в каждой записи",count_ids_present:"%{smart_count} запись с ID |||| %{smart_count} записи с ID |||| %{smart_count} записей с ID",mode:{ignore:"Игнорировать идентификаторы в CSV и создать новые",update:"Обновить существующие записи"}},passwords:{header:"Пароли",all_passwords_present:"Пароли присутствуют в каждой записи",count_passwords_present:"%{smart_count} запись с паролем |||| %{smart_count} записи с паролями |||| %{smart_count} записей с паролями",use_passwords:"Использовать пароли из CSV"},upload:{header:"Загрузить CSV файл",explanation:"Здесь вы можете загрузить файл со значениями, разделёнными запятыми, которые будут использованы для создания или обновления данных пользователей. В файле должны быть поля 'id' и 'displayname'. Вы можете скачать и изменить файл-образец отсюда: "},startImport:{simulate_only:"Только симулировать",run_import:"Импорт"},results:{header:"Результаты импорта",total:"%{smart_count} запись всего |||| %{smart_count} записи всего |||| %{smart_count} записей всего",successful:"%{smart_count} запись успешно импортирована |||| %{smart_count} записи успешно импортированы |||| %{smart_count} записей успешно импортированы",skipped:"%{smart_count} запись пропущена |||| %{smart_count} записи пропущены |||| %{smart_count} записей пропущено",download_skipped:"Скачать пропущенные записи",with_error:"%{smart_count} запись с ошибкой |||| %{smart_count} записи с ошибками |||| %{smart_count} записей с ошибками",simulated_only:"Импорт был симулирован"}}},delete_media:{name:"Файлы",fields:{before_ts:"Последнее обращение до",size_gt:"Более чем (в байтах)",keep_profiles:"Сохранить аватары"},action:{send:"Удалить файлы",send_success:"Запрос успешно отправлен.",send_failure:"Произошла ошибка."},helper:{send:"Это API удаляет локальные файлы с вашего собственного сервера, включая локальные миниатюры и копии скачанных файлов. Данный API не затрагивает файлы, загруженные во внешние хранилища."}},resources:{users:{name:"Пользователь |||| Пользователи",email:"Почта",msisdn:"Телефон",threepid:"Почта / Телефон",fields:{avatar:"Аватар",id:"ID пользователя",name:"Имя",is_guest:"Гость",admin:"Администратор сервера",locked:"Заблокирован",deactivated:"Деактивирован",erased:"Удалён",guests:"Показывать гостей",show_deactivated:"Показывать деактивированных",user_id:"Поиск пользователя",displayname:"Отображаемое имя",password:"Пароль",avatar_url:"Адрес аватары",avatar_src:"Аватар",medium:"Тип",threepids:"3PID'ы",address:"Адрес",creation_ts_ms:"Дата создания",consent_version:"Версия соглашения",auth_provider:"Провайдер",user_type:"Тип пользователя"},helper:{password:"Смена пароля завершит все сессии пользователя.",deactivate:"Вы должны предоставить пароль для реактивации учётной записи.",erase:"Пометить пользователя как удалённого в соответствии с GDPR"},action:{erase:"Удалить данные пользователя"}},rooms:{name:"Комната |||| Комнаты",fields:{room_id:"ID комнаты",name:"Название",canonical_alias:"Псевдоним",joined_members:"Участники",joined_local_members:"Локальные участники",joined_local_devices:"Локальные устройства",state_events:"События состояния / Сложность",version:"Версия",is_encrypted:"Зашифровано",encryption:"Шифрование",federatable:"Федерация",public:"Отображается в каталоге комнат",creator:"Создатель",join_rules:"Правила входа",guest_access:"Гостевой доступ",history_visibility:"Видимость истории",topic:"Тема",avatar:"Аватар"},helper:{forward_extremities:"Оконечности — это события-листья в конце ориентированного ациклического графа (DAG) в комнате, т.е. события без дочерних элементов. Чем больше их в комнате, тем больше Synapse работает над разрешением состояния (это дорогостоящая операция). Хотя Synapse старается не допускать существования слишком большого числа таких событий в комнате, из-за ошибок они иногда снова появляются. Если в комнате >10 оконечностей, стоит найти комнату-виновника и попробовать удалить их с помощью SQL-запросов из #1760."},enums:{join_rules:{public:"Для всех",knock:"Надо постучать",invite:"По приглашению",private:"Приватная"},guest_access:{can_join:"Гости могут войти",forbidden:"Гости не могут войти"},history_visibility:{invited:"С момента приглашения",joined:"С момента входа",shared:"С момента открытия доступа",world_readable:"Для всех"},unencrypted:"Без шифрования"},action:{erase:{title:"Удалить комнату",content:"Действительно удалить эту комнату? Это действие будет невозможно отменить. Все сообщения и файлы в комнате будут удалены с сервера!"}}},reports:{name:"Жалоба |||| Жалобы",fields:{id:"ID",received_ts:"Дата и время жалобы",user_id:"Автор жалобы",name:"Название комнаты",score:"Баллы",reason:"Причина",event_id:"ID события",event_json:{origin:"Исходнный сервер",origin_server_ts:"Дата и время отправки",type:"Тип события",content:{msgtype:"Тип содержимого",body:"Содержимое",format:"Формат",formatted_body:"Форматированное содержимое",algorithm:"Алгоритм",url:"Ссылка",info:{mimetype:"Тип"}}}},action:{erase:{title:"Удалить жалобу",content:"Действительно удалить жалобу? Это действие будет невозможно отменить."}}},connections:{name:"Подключения",fields:{last_seen:"Дата",ip:"IP адрес",user_agent:"Юзер-агент"}},devices:{name:"Устройство |||| Устройства",fields:{device_id:"ID устройства",display_name:"Название",last_seen_ts:"Дата и время",last_seen_ip:"IP адрес"},action:{erase:{title:"Удаление %{id}",content:'Действительно удалить устройство "%{name}"?',success:"Устройство успешно удалено.",failure:"Произошла ошибка."}}},users_media:{name:"Файлы",fields:{media_id:"ID файла",media_length:"Размер файла (в байтах)",media_type:"Тип",upload_name:"Имя файла",quarantined_by:"На карантине",safe_from_quarantine:"Защитить от карантина",created_ts:"Создано",last_access_ts:"Последний доступ"},action:{open:"Открыть файл в новом окне"}},protect_media:{action:{create:"Не защищён, установить защиту",delete:"Защищён, снять защиту",none:"На карантине",send_success:"Статус защиты успешно изменён.",send_failure:"Произошла ошибка."}},quarantine_media:{action:{name:"Карантин",create:"Поместить на карантин",delete:"На карантине, снять карантин",none:"Защищено от карантина",send_success:"Статус карантина успешно изменён.",send_failure:"Произошла ошибка."}},pushers:{name:"Пушер |||| Пушеры",fields:{app:"Приложение",app_display_name:"Название приложения",app_id:"ID приложения",device_display_name:"Название устройства",kind:"Вид",lang:"Язык",profile_tag:"Тег профиля",pushkey:"Ключ",data:{url:"URL"}}},servernotices:{name:"Серверные уведомления",send:"Отправить серверные уведомления",fields:{body:"Сообщение"},action:{send:"Отправить",send_success:"Серверное уведомление успешно отправлено.",send_failure:"Произошла ошибка."},helper:{send:'Отправить серверное уведомление выбранным пользователям. На сервере должна быть активна функция "Server Notices".'}},user_media_statistics:{name:"Файлы пользователей",fields:{media_count:"Количество файлов",media_length:"Размер файлов"}},forward_extremities:{name:"Оконечности",fields:{id:"ID события",received_ts:"Дата и время",depth:"Глубина",state_group:"Группа состояния"}},room_state:{name:"События состояния",fields:{type:"Тип",content:"Содержимое",origin_server_ts:"Дата отправки",sender:"Отправитель"}},room_directory:{name:"Каталог комнат",fields:{world_readable:"Гости могут просматривать без входа",guest_can_join:"Гости могут войти"},action:{title:"Удалить комнату из каталога |||| Удалить %{smart_count} комнаты из каталога |||| Удалить %{smart_count} комнат из каталога",content:"Действительно удалить комнату из каталога? |||| Действительно удалить %{smart_count} комнаты из каталога? |||| Действительно удалить %{smart_count} комнат из каталога?",erase:"Удалить из каталога комнат",create:"Опубликовать в каталоге комнат",send_success:"Комната успешно опубликована.",send_failure:"Произошла ошибка."}},destinations:{name:"Федерация",fields:{destination:"Назначение",failure_ts:"Дата и время ошибки",retry_last_ts:"Дата и время последней попытки",retry_interval:"Интервал между попытками",last_successful_stream_ordering:"Последний успешный поток",stream_ordering:"Поток"},action:{reconnect:"Переподключиться"}},registration_tokens:{name:"Токены регистрации",fields:{token:"Токен",valid:"Рабочий токен",uses_allowed:"Количество использований",pending:"Ожидает",completed:"Завершено",expiry_time:"Дата окончания",length:"Длина"},helper:{length:"Длина токена, если токен не задан."}}}};var e1={},pB;function Rxe(){if(pB)return e1;pB=1,Object.defineProperty(e1,"__esModule",{value:!0});var e={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}"}}};return e1.default=e,e1}var kxe=Rxe();const _2=tt(kxe),Ixe={..._2,ra:{..._2.ra,navigation:{..._2.ra.navigation,no_filtered_results:"没有结果",clear_filters:"清除所有过滤器"}},synapseadmin:{auth:{base_url:"服务器 URL",welcome:"欢迎来到 Synapse-admin",server_version:"Synapse 版本",username_error:"请输入完整有效的用户 ID: '@user:domain'",protocol_error:"URL 需要以'http://'或'https://'作为起始",url_error:"不是一个有效的 Matrix 服务器地址",sso_sign_in:"使用 SSO 登录"},users:{invalid_user_id:"必须要是一个有效的 Matrix 用户 ID ,例如 @user_id:homeserver",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"基本",members:"成员",detail:"细节",permission:"权限"}},reports:{tabs:{basic:"基本",detail:"细节"}}},import_users:{error:{at_entry:"在条目 %{entry}: %{message}",error:"错误",required_field:"需要的值 '%{field}' 未被设置。",invalid_value:"第 %{row} 行出现无效值。 '%{field}' 只可以是 'true' 或 'false'。",unreasonably_big:"拒绝加载过大的文件: %{size} MB",already_in_progress:"一个导入进程已经在运行中",id_exits:"ID %{id} 已经存在"},title:"通过 CSV 导入用户",goToPdf:"转到 PDF",cards:{importstats:{header:"导入用户",users_total:"%{smart_count} 用户在 CSV 文件中 |||| %{smart_count} 用户在 CSV 文件中",guest_count:"%{smart_count} 访客 |||| %{smart_count} 访客",admin_count:"%{smart_count} 管理员 |||| %{smart_count} 管理员"},conflicts:{header:"冲突处理策略",mode:{stop:"在冲突处停止",skip:"显示错误并跳过冲突"}},ids:{header:"IDs",all_ids_present:"每条记录的 ID",count_ids_present:"%{smart_count} 个含 ID 的记录 |||| %{smart_count} 个含 ID 的记录",mode:{ignore:"忽略 CSV 中的 ID 并创建新的",update:"更新已经存在的记录"}},passwords:{header:"密码",all_passwords_present:"每条记录的密码",count_passwords_present:"%{smart_count} 个含密码的记录 |||| %{smart_count} 个含密码的记录",use_passwords:"使用 CSV 中标记的密码"},upload:{header:"导入 CSV 文件",explanation:"在这里,你可以上传一个用逗号分隔的文件,用于创建或更新用户。该文件必须包括 'id' 和 'displayname' 字段。你可以在这里下载并修改一个示例文件:"},startImport:{simulate_only:"模拟模式",run_import:"导入"},results:{header:"导入结果",total:"共计 %{smart_count} 条记录 |||| 共计 %{smart_count} 条记录",successful:"%{smart_count} 条记录导入成功",skipped:"跳过 %{smart_count} 条记录",download_skipped:"下载跳过的记录",with_error:"%{smart_count} 条记录出现错误 ||| %{smart_count} 条记录出现错误",simulated_only:"只是一次模拟运行"}}},delete_media:{name:"媒体文件",fields:{before_ts:"最后访问时间",size_gt:"大于 (字节)",keep_profiles:"保留头像"},action:{send:"删除媒体",send_success:"请求发送成功。",send_failure:"出现了一个错误。"},helper:{send:"这个API会删除您硬盘上的本地媒体。包含了任何的本地缓存和下载的媒体备份。这个API不会影响上传到外部媒体存储库上的媒体文件。"}},resources:{users:{name:"用户",email:"邮箱",msisdn:"电话",threepid:"邮箱 / 电话",fields:{avatar:"邮箱",id:"用户 ID",name:"用户名",is_guest:"访客",admin:"服务器管理员",deactivated:"被禁用",guests:"显示访客",show_deactivated:"显示被禁用的账户",user_id:"搜索用户",displayname:"显示名字",password:"密码",avatar_url:"头像 URL",avatar_src:"头像",medium:"Medium",threepids:"3PIDs",address:"地址",creation_ts_ms:"创建时间戳",consent_version:"协议版本"},helper:{deactivate:"您必须提供一串密码来激活账户。",erase:"将用户标记为根据 GDPR 的要求抹除了"},action:{erase:"抹除用户信息"}},rooms:{name:"房间",fields:{room_id:"房间 ID",name:"房间名",canonical_alias:"别名",joined_members:"成员",joined_local_members:"本地成员",state_events:"状态事件",version:"版本",is_encrypted:"已经加密",encryption:"加密",federatable:"可联合的",public:"公开",creator:"创建者",join_rules:"加入规则",guest_access:"访客访问",history_visibility:"历史可见性"},enums:{join_rules:{public:"公开",knock:"申请",invite:"邀请",private:"私有"},guest_access:{can_join:"访客可以加入",forbidden:"访客不可加入"},history_visibility:{invited:"自从被邀请",joined:"自从加入",shared:"自从分享",world_readable:"任何人"},unencrypted:"未加密"}},reports:{name:"报告事件",fields:{id:"ID",received_ts:"报告时间",user_id:"报告者",name:"房间名",score:"分数",reason:"原因",event_id:"事件 ID",event_json:{origin:"原始服务器",origin_server_ts:"发送时间",type:"事件类型",content:{msgtype:"内容类型",body:"内容",format:"格式",formatted_body:"格式化的数据",algorithm:"算法"}}}},connections:{name:"连接",fields:{last_seen:"日期",ip:"IP 地址",user_agent:"用户代理 (UA)"}},devices:{name:"设备",fields:{device_id:"设备 ID",display_name:"设备名",last_seen_ts:"时间戳",last_seen_ip:"IP 地址"},action:{erase:{title:"移除 %{id}",content:'您确定要移除设备 "%{name}"?',success:"设备移除成功。",failure:"出现了一个错误。"}}},users_media:{name:"媒体文件",fields:{media_id:"媒体文件 ID",media_length:"长度",media_type:"类型",upload_name:"文件名",quarantined_by:"被隔离",safe_from_quarantine:"取消隔离",created_ts:"创建",last_access_ts:"上一次访问"}},pushers:{name:"发布者",fields:{app:"App",app_display_name:"App 名称",app_id:"App ID",device_display_name:"设备显示名",kind:"类型",lang:"语言",profile_tag:"数据标签",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"服务器提示",send:"发送服务器提示",fields:{body:"信息"},action:{send:"发送提示",send_success:"服务器提示发送成功。",send_failure:"出现了一个错误。"},helper:{send:'向选中的用户发送服务器提示。服务器配置中的 "服务器提示(Server Notices)" 选项需要被设置为启用。'}},user_media_statistics:{name:"用户的媒体文件",fields:{media_count:"媒体文件统计",media_length:"媒体文件长度"}}}},Y9=p.createContext({}),jxe=()=>p.useContext(Y9),Txe=he(eo)(({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"}})),Axe=()=>{const e=Vq(),t=Jr(),{restrictBaseUrl:r}=jxe(),n=typeof r=="string",a=Array.isArray(r),o=!(n||a),[s,d]=p.useState(!1),[f,u]=p.useState(!0),[h,g]=Sj(),y=Ej(),_=rt(),S=n?r:hr.getItem("base_url"),[E,x]=p.useState(""),T=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(T){const O=T[1];console.log("SSO token is",O),window.history.replaceState({},"",window.location.href.replace(T[0],"#").split("#")[0]);const j=hr.getItem("sso_base_url");if(hr.removeItem("sso_base_url"),j){const k={base_url:j,username:null,password:null,loginToken:O};console.log("Base URL is:",j),console.log("SSO Token is:",O),console.log("Let's try token login..."),e(k).catch(M=>{alert(typeof M=="string"?M:typeof M>"u"||!M.message?"ra.auth.sign_in_error":M.message),console.error(M)})}}const I=O=>O.match(/^(http|https):\/\//)?O.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:_("synapseadmin.auth.url_error"):_("synapseadmin.auth.protocol_error"),R=O=>{d(!0),e(O).catch(j=>{d(!1),t(typeof j=="string"?j:typeof j>"u"||!j.message?"ra.auth.sign_in_error":j.message,{type:"warning"})})},P=()=>{hr.setItem("sso_base_url",E);const O=`${E}/_matrix/client/r0/login/sso/redirect?redirectUrl=${encodeURIComponent(window.location.href)}`;window.location.href=O},C=({formData:O})=>{const j=Li(),[k,M]=p.useState(""),[$,N]=p.useState(""),B=()=>{var V;if(O.base_url||n)return;const q=(V=ixe(O.username))==null?void 0:V.domain;q&&lxe(q).then(G=>{(o||a&&r.includes(G))&&j.setValue("base_url",G)})};return p.useEffect(()=>{O.base_url===""&&a&&j.setValue("base_url",r[0]),sxe(O.base_url)&&(uxe(O.base_url).then(q=>M(`${_("synapseadmin.auth.server_version")} ${q}`)).catch(()=>M("")),cxe(O.base_url).then(q=>N(`${_("synapseadmin.auth.supports_specs")} ${q.versions.join(", ")}`)).catch(()=>N("")),dxe(O.base_url).then(q=>{const V=q.find(Y=>Y.type==="m.login.password")!==void 0,G=q.find(Y=>Y.type==="m.login.sso")!==void 0;u(V),x(G?O.base_url:"")}).catch(()=>x("")))},[O.base_url,j]),A.jsxs(A.Fragment,{children:[A.jsx(eo,{children:A.jsx(Xn,{autoFocus:!0,source:"username",label:"ra.auth.username",autoComplete:"username",disabled:s||!f,onBlur:B,resettable:!0,validate:Qo()})}),A.jsx(eo,{children:A.jsx(DT,{source:"password",label:"ra.auth.password",type:"password",autoComplete:"current-password",disabled:s||!f,resettable:!0,validate:Qo()})}),A.jsx(eo,{children:A.jsx(Xn,{source:"base_url",label:"synapseadmin.auth.base_url",select:a,autoComplete:"url",disabled:s,readOnly:n,resettable:o,validate:[Qo(),I],children:a&&r.map(q=>A.jsx(Ko,{value:q,children:q},q))})}),A.jsx(nr,{className:"serverVersion",children:k}),A.jsx(nr,{className:"matrixVersions",children:$})]})};return A.jsxs(pw,{defaultValues:{base_url:S},onSubmit:R,mode:"onTouched",children:[A.jsx(Txe,{children:A.jsxs(Rf,{className:"card",children:[A.jsx(eo,{className:"avatar",children:s?A.jsx(Ov,{size:25,thickness:2}):A.jsx(Eb,{className:"icon",children:A.jsx(Ww,{})})}),A.jsx(eo,{className:"hint",children:_("synapseadmin.auth.welcome")}),A.jsxs(eo,{className:"form",children:[A.jsx(Uw,{value:h,onChange:O=>g(O.target.value),fullWidth:!0,disabled:s,className:"select",children:y.map(O=>A.jsx(Ko,{value:O.locale,children:O.name},O.locale))}),A.jsx(Q2,{children:O=>A.jsx(C,{...O})}),A.jsxs(nU,{className:"actions",children:[A.jsx(Bn,{variant:"contained",type:"submit",color:"primary",disabled:s||!f,fullWidth:!0,children:_("ra.auth.sign_in")}),A.jsx(Bn,{variant:"contained",color:"secondary",onClick:P,disabled:s||E==="",fullWidth:!0,children:_("synapseadmin.auth.sso_sign_in")})]})]})]})}),A.jsx(JU,{})]})};var iy={},hB;function Mxe(){if(hB)return iy;hB=1;var e=vt();Object.defineProperty(iy,"__esModule",{value:!0}),iy.default=void 0;var t=e(yt()),r=gt();return iy.default=(0,t.default)((0,r.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"),iy}var Fxe=Mxe();const $xe=tt(Fxe);var sy={},vB;function Lxe(){if(vB)return sy;vB=1;var e=vt();Object.defineProperty(sy,"__esModule",{value:!0}),sy.default=void 0;var t=e(yt()),r=gt();return sy.default=(0,t.default)((0,r.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"),sy}var Dxe=Lxe();const Nxe=tt(Dxe);var ly={},mB;function Bxe(){if(mB)return ly;mB=1;var e=vt();Object.defineProperty(ly,"__esModule",{value:!0}),ly.default=void 0;var t=e(yt()),r=gt();return ly.default=(0,t.default)((0,r.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"),ly}var zxe=Bxe();const Av=tt(zxe),$a={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},BT=e=>new Date(e).getTime(),qxe=e=>{if(e==null)return"";const t=new Date(e),r="00",n=t.getFullYear().toString(),a=(r+(t.getMonth()+1).toString()).slice(-2),o=(r+t.getDate().toString()).slice(-2),s=(r+t.getHours().toString()).slice(-2),d=(r+t.getMinutes().toString()).slice(-2);return`${n}-${a}-${o}T${s}:${d}`},J9=()=>A.jsx(If,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Uxe=[A.jsx(tS,{source:"destination",alwaysOn:!0})],Z9=()=>{const e=Sr(),t=dl(),r=Jr(),[n,{isLoading:a}]=Ub();if(!e||!e.failure_ts)return null;const o=s=>{s.stopPropagation(),n("destinations",{id:e.id},{onSuccess:()=>{r("ra.notification.updated",{messageArgs:{smart_count:1}}),t()},onError:()=>{r("ra.message.error",{type:"error"})}})};return A.jsx(qr,{label:"resources.destinations.action.reconnect",onClick:o,disabled:a,children:A.jsx($xe,{})})},Vxe=()=>A.jsx(Ni,{children:A.jsx(Z9,{})}),Wxe=()=>{const e=Sr(),t=rt();return A.jsxs("span",{children:[t("resources.destinations.name",1)," ",e==null?void 0:e.destination]})},Hxe=e=>{const t=Sr(e);return e.source&&$b.get(t,e.source)===0?A.jsx(ba,{...e,record:{...t,[e.source]:null}}):A.jsx(ba,{...e})},Gxe=e=>{const{palette:{error:t,mode:r}}=ei(),n=a=>({backgroundColor:a.retry_last_ts>0?R6(t[r],.5):void 0,"& > td":r==="dark"?{color:a.retry_last_ts>0?"black":"white","& > button":{color:Nd[700]}}:void 0});return A.jsx(Tf,{...e,filters:Uxe,pagination:A.jsx(J9,{}),sort:{field:"destination",order:"ASC"},children:A.jsxs(Fa,{rowSx:n,rowClick:a=>`${a}/show/rooms`,bulkActionButtons:!1,children:[A.jsx(st,{source:"destination"}),A.jsx(ba,{source:"failure_ts",showTime:!0,options:$a}),A.jsx(Hxe,{source:"retry_last_ts",showTime:!0,options:$a}),A.jsx(st,{source:"retry_interval"}),A.jsx(st,{source:"last_successful_stream_ordering"}),A.jsx(Z9,{})]})})},Kxe=e=>{const t=rt();return A.jsx(NT,{actions:A.jsx(Vxe,{}),title:A.jsx(Wxe,{}),...e,children:A.jsxs(rS,{children:[A.jsxs(us,{label:"status",icon:A.jsx(Iv,{}),children:[A.jsx(st,{source:"destination"}),A.jsx(ba,{source:"failure_ts",showTime:!0,options:$a}),A.jsx(ba,{source:"retry_last_ts",showTime:!0,options:$a}),A.jsx(st,{source:"retry_interval"}),A.jsx(st,{source:"last_successful_stream_ordering"})]}),A.jsx(us,{label:t("resources.rooms.name",{smart_count:2}),icon:A.jsx(Av,{}),path:"rooms",children:A.jsx(wc,{reference:"destination_rooms",target:"destination",label:!1,pagination:A.jsx(J9,{}),perPage:50,children:A.jsxs(Fa,{style:{width:"100%"},rowClick:r=>`/rooms/${r}/show`,children:[A.jsx(st,{source:"room_id",label:"resources.rooms.fields.room_id"}),A.jsx(st,{source:"stream_ordering",sortable:!1}),A.jsx(tu,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:A.jsx(st,{source:"name",sortable:!1})})]})})})]})})},Qxe={name:"destinations",icon:Nxe,list:Gxe,show:Kxe};var uy={},gB;function Xxe(){if(gB)return uy;gB=1;var e=vt();Object.defineProperty(uy,"__esModule",{value:!0}),uy.default=void 0;var t=e(yt()),r=gt();return uy.default=(0,t.default)((0,r.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"),uy}var Yxe=Xxe();const Jxe=tt(Yxe),Zxe=[Bj(/^[A-Za-z0-9._~-]{0,64}$/)],eV=[wq()],ewe=[wq(),tZ(64)],twe=[A.jsx(tl,{source:"valid",alwaysOn:!0})],rwe=e=>A.jsx(Tf,{...e,filters:twe,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:A.jsxs(Fa,{rowClick:"edit",children:[A.jsx(st,{source:"token",sortable:!1}),A.jsx(al,{source:"uses_allowed",sortable:!1}),A.jsx(al,{source:"pending",sortable:!1}),A.jsx(al,{source:"completed",sortable:!1}),A.jsx(ba,{source:"expiry_time",showTime:!0,options:$a,sortable:!1})]})}),nwe=e=>A.jsx(R9,{...e,redirect:"list",children:A.jsxs(c0,{toolbar:A.jsx(u0,{children:A.jsx(Yw,{alwaysEnable:!0})}),children:[A.jsx(Xn,{source:"token",autoComplete:"off",validate:Zxe,resettable:!0}),A.jsx(Ih,{source:"length",validate:ewe,helperText:"resources.registration_tokens.helper.length",step:1}),A.jsx(Ih,{source:"uses_allowed",validate:eV,step:1}),A.jsx(LT,{source:"expiry_time",parse:BT})]})}),awe=e=>A.jsx(k9,{...e,children:A.jsxs(c0,{children:[A.jsx(Xn,{source:"token",disabled:!0}),A.jsx(Ih,{source:"pending",disabled:!0}),A.jsx(Ih,{source:"completed",disabled:!0}),A.jsx(Ih,{source:"uses_allowed",validate:eV,step:1}),A.jsx(LT,{source:"expiry_time",parse:BT,format:qxe})]})}),owe={name:"registration_tokens",icon:Jxe,list:rwe,edit:awe,create:nwe};var cy={},yB;function iwe(){if(yB)return cy;yB=1;var e=vt();Object.defineProperty(cy,"__esModule",{value:!0}),cy.default=void 0;var t=e(yt()),r=gt();return cy.default=(0,t.default)((0,r.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"),cy}var swe=iwe();const tV=tt(swe);var dy={},bB;function lwe(){if(bB)return dy;bB=1;var e=vt();Object.defineProperty(dy,"__esModule",{value:!0}),dy.default=void 0;var t=e(yt()),r=gt();return dy.default=(0,t.default)((0,r.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),dy}var uwe=lwe();const cwe=tt(uwe);var fy={},_B;function dwe(){if(_B)return fy;_B=1;var e=vt();Object.defineProperty(fy,"__esModule",{value:!0}),fy.default=void 0;var t=e(yt()),r=gt();return fy.default=(0,t.default)((0,r.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"),fy}var fwe=dwe();const xB=tt(fwe);var py={},wB;function pwe(){if(wB)return py;wB=1;var e=vt();Object.defineProperty(py,"__esModule",{value:!0}),py.default=void 0;var t=e(yt()),r=gt();return py.default=(0,t.default)((0,r.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"),py}var hwe=pwe();const rV=tt(hwe);var hy={},SB;function vwe(){if(SB)return hy;SB=1;var e=vt();Object.defineProperty(hy,"__esModule",{value:!0}),hy.default=void 0;var t=e(yt()),r=gt();return hy.default=(0,t.default)((0,r.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"),hy}var mwe=vwe();const nV=tt(mwe);var vy={},EB;function gwe(){if(EB)return vy;EB=1;var e=vt();Object.defineProperty(vy,"__esModule",{value:!0}),vy.default=void 0;var t=e(yt()),r=gt();return vy.default=(0,t.default)((0,r.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"),vy}var ywe=gwe();const bwe=tt(ywe);var my={},CB;function _we(){if(CB)return my;CB=1;var e=vt();Object.defineProperty(my,"__esModule",{value:!0}),my.default=void 0;var t=e(yt()),r=gt();return my.default=(0,t.default)((0,r.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"),my}var xwe=_we();const wwe=tt(xwe),Swe=({open:e,onClose:t,onSubmit:r})=>{const n=rt(),a=o=>A.jsxs(u0,{...o,children:[A.jsx(Yw,{label:"delete_media.action.send",icon:A.jsx(nV,{})}),A.jsx(qr,{label:"ra.action.cancel",onClick:t,children:A.jsx(rV,{})})]});return A.jsxs(n0,{open:e,onClose:t,children:[A.jsx(o0,{children:n("delete_media.action.send")}),A.jsxs(a0,{children:[A.jsx(Bw,{children:n("delete_media.helper.send")}),A.jsxs(c0,{toolbar:A.jsx(a,{}),onSubmit:r,children:[A.jsx(LT,{source:"before_ts",label:"delete_media.fields.before_ts",defaultValue:0,parse:BT}),A.jsx(Ih,{source:"size_gt",label:"delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),A.jsx(tl,{source:"keep_profiles",label:"delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},Ewe=e=>{const t=ei(),[r,n]=p.useState(!1),a=Jr(),o=Zo(),{mutate:s,isPending:d}=Ef({mutationFn:h=>o.deleteMedia(h),onSuccess:()=>{a("delete_media.action.send_success"),u()},onError:()=>{a("delete_media.action.send_failure",{type:"error"})}}),f=()=>n(!0),u=()=>n(!1);return A.jsxs(A.Fragment,{children:[A.jsx(qr,{...e,label:"delete_media.action.send",onClick:f,disabled:d,sx:{color:t.palette.error.main,"&:hover":{backgroundColor:rv(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:A.jsx(nV,{})}),A.jsx(Swe,{open:r,onClose:u,onSubmit:s})]})},Cwe=e=>{const t=Sr(),r=rt(),n=dl(),a=Jr(),[o,{isLoading:s}]=qb(),[d]=Ub();if(!t)return null;const f=()=>{o("protect_media",{data:t},{onSuccess:()=>{a("resources.protect_media.action.send_success"),n()},onError:()=>a("resources.protect_media.action.send_failure",{type:"error"})})},u=()=>{d("protect_media",{id:t.id},{onSuccess:()=>{a("resources.protect_media.action.send_success"),n()},onError:()=>a("resources.protect_media.action.send_failure",{type:"error"})})};return A.jsxs(A.Fragment,{children:[t.quarantined_by&&A.jsx(xa,{title:r("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:A.jsx("div",{children:A.jsx(qr,{...e,disabled:!0,children:A.jsx(dv,{})})})}),t.safe_from_quarantine&&A.jsx(xa,{title:r("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:A.jsx("div",{children:A.jsx(qr,{...e,onClick:u,disabled:s,children:A.jsx(Ww,{})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&A.jsx(xa,{title:r("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:A.jsx("div",{children:A.jsx(qr,{...e,onClick:f,disabled:s,children:A.jsx(wwe,{})})})})]})},Owe=e=>{const t=Sr(),r=rt(),n=dl(),a=Jr(),[o,{isLoading:s}]=qb(),[d]=Ub();if(!t)return null;const f=()=>{o("quarantine_media",{data:t},{onSuccess:()=>{a("resources.quarantine_media.action.send_success"),n()},onError:()=>a("resources.quarantine_media.action.send_failure",{type:"error"})})},u=()=>{d("quarantine_media",{id:t.id,previousData:t},{onSuccess:()=>{a("resources.quarantine_media.action.send_success"),n()},onError:()=>a("resources.quarantine_media.action.send_failure",{type:"error"})})};return A.jsxs(A.Fragment,{children:[t.safe_from_quarantine&&A.jsx(xa,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:A.jsx("div",{children:A.jsx(qr,{...e,disabled:!0,children:A.jsx(dv,{})})})}),t.quarantined_by&&A.jsx(xa,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:A.jsx("div",{children:A.jsx(qr,{...e,onClick:u,disabled:s,children:A.jsx(xB,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&A.jsx(xa,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:A.jsx("div",{children:A.jsx(qr,{...e,onClick:f,disabled:s,children:A.jsx(xB,{})})})})]})},aV=({media_id:e,label:t})=>{const r=rt(),n=fxe(e);return A.jsxs(eo,{style:{whiteSpace:"pre"},children:[A.jsx(xa,{title:r("resources.users_media.action.open"),children:A.jsx("span",{children:A.jsx(qr,{component:cs,to:n,target:"_blank",rel:"noopener",style:{minWidth:0,paddingLeft:0,paddingRight:0},children:A.jsx(bwe,{})})})}),t]})},Pwe=({source:e})=>{var a;const t=hr.getItem("home_server"),r=Sr();if(!r)return null;const n=(a=$b.get(r,e))==null?void 0:a.toString();return n?A.jsx(aV,{media_id:`${t}/${n}`,label:n}):null},Rwe=({source:e})=>{var a;const t=Sr();if(!t)return null;const r=(a=$b.get(t,e))==null?void 0:a.toString();if(!r)return null;const n=r.replace("mxc://","");return A.jsx(aV,{media_id:n,label:r})},kwe=()=>A.jsx(If,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Iwe=e=>{const t=rt();return A.jsx(NT,{...e,actions:A.jsx(jwe,{}),children:A.jsxs(rS,{children:[A.jsxs(us,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:A.jsx(Iv,{}),children:[A.jsx(ba,{source:"received_ts",showTime:!0,options:$a,sortable:!0}),A.jsx(tu,{source:"user_id",reference:"users",children:A.jsx(st,{source:"id"})}),A.jsx(al,{source:"score"}),A.jsx(st,{source:"reason"}),A.jsx(st,{source:"name"}),A.jsx(st,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),A.jsx(tu,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:A.jsx(st,{source:"id"})})]}),A.jsxs(us,{label:"synapseadmin.reports.tabs.detail",icon:A.jsx(tV,{}),path:"detail",children:[A.jsx(ba,{source:"event_json.origin_server_ts",showTime:!0,options:$a,sortable:!0}),A.jsx(tu,{source:"sender",reference:"users",children:A.jsx(st,{source:"id"})}),A.jsx(st,{source:"sender",label:"Sender (raw user ID)"}),A.jsx(st,{source:"event_id"}),A.jsx(st,{source:"event_json.origin"}),A.jsx(st,{source:"event_json.type"}),A.jsx(st,{source:"event_json.content.msgtype"}),A.jsx(st,{source:"event_json.content.body"}),A.jsx(st,{source:"event_json.content.info.mimetype"}),A.jsx(Rwe,{source:"event_json.content.url"}),A.jsx(st,{source:"event_json.content.format"}),A.jsx(st,{source:"event_json.content.formatted_body"}),A.jsx(st,{source:"event_json.content.algorithm"}),A.jsx(st,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})})},jwe=()=>{const e=Sr();return A.jsx(Ni,{children:A.jsx(jv,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},Twe=e=>A.jsx(Tf,{...e,pagination:A.jsx(kwe,{}),sort:{field:"received_ts",order:"DESC"},children:A.jsxs(Fa,{rowClick:"show",bulkActionButtons:!1,children:[A.jsx(st,{source:"id",sortable:!1}),A.jsx(ba,{source:"received_ts",showTime:!0,options:$a,sortable:!0}),A.jsx(st,{sortable:!1,source:"user_id"}),A.jsx(st,{sortable:!1,source:"name"}),A.jsx(st,{sortable:!1,source:"score"})]})}),Awe={name:"reports",icon:cwe,list:Twe,show:Iwe},zT=({source:e,...t})=>{var u;const r=Sr(t),n=(u=$b.get(r,e))==null?void 0:u.toString(),{alt:a,classes:o,sizes:s,sx:d,variant:f}=t;return A.jsx(Eb,{alt:a,classes:o,sizes:s,src:n,sx:d,variant:f})},Mwe=()=>A.jsx(If,{rowsPerPageOptions:[100,500,1e3,2e3]}),Fwe=e=>{const t=rt();return A.jsx(jv,{...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:A.jsx(Av,{})})},oV=e=>A.jsx(Xw,{...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:A.jsx(Av,{})}),$we=e=>{const{selectedIds:t}=La(),r=Jr(),n=dl(),a=Xz("rooms"),o=Zo(),{mutate:s,isPending:d}=Ef({mutationFn:()=>o.createMany("room_directory",{ids:t,data:{}}),onSuccess:()=>{r("resources.room_directory.action.send_success"),a(),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})});return A.jsx(qr,{...e,label:"resources.room_directory.action.create",onClick:s,disabled:d,children:A.jsx(Av,{})})},Lwe=e=>{const t=Sr(),r=Jr(),n=dl(),[a,{isLoading:o}]=qb();if(!t)return;const s=()=>{a("room_directory",{data:{id:t.id}},{onSuccess:()=>{r("resources.room_directory.action.send_success"),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})})};return A.jsx(qr,{...e,label:"resources.room_directory.action.create",onClick:s,disabled:o,children:A.jsx(Av,{})})},Dwe=()=>A.jsxs(Ni,{children:[A.jsx(b9,{}),A.jsx(l0,{})]}),Nwe=()=>A.jsx(Tf,{pagination:A.jsx(Mwe,{}),perPage:100,actions:A.jsx(Dwe,{}),children:A.jsxs(y9,{rowClick:e=>"/rooms/"+e+"/show",bulkActionButtons:A.jsx(oV,{}),omit:["room_id","canonical_alias","topic"],children:[A.jsx(zT,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),A.jsx(st,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),A.jsx(st,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),A.jsx(st,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),A.jsx(st,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),A.jsx(al,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),A.jsx(Ri,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),A.jsx(Ri,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})}),Bwe={name:"room_directory",icon:Av,list:Nwe};var gy={},OB;function zwe(){if(OB)return gy;OB=1;var e=vt();Object.defineProperty(gy,"__esModule",{value:!0}),gy.default=void 0;var t=e(yt()),r=gt();return gy.default=(0,t.default)((0,r.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"),gy}var qwe=zwe();const Uwe=tt(qwe);var yy={},PB;function Vwe(){if(PB)return yy;PB=1;var e=vt();Object.defineProperty(yy,"__esModule",{value:!0}),yy.default=void 0;var t=e(yt()),r=gt();return yy.default=(0,t.default)((0,r.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward"),yy}var Wwe=Vwe();const Hwe=tt(Wwe);var by={},RB;function Gwe(){if(RB)return by;RB=1;var e=vt();Object.defineProperty(by,"__esModule",{value:!0}),by.default=void 0;var t=e(yt()),r=gt();return by.default=(0,t.default)((0,r.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"),by}var Kwe=Gwe();const iV=tt(Kwe);var _y={},kB;function Qwe(){if(kB)return _y;kB=1;var e=vt();Object.defineProperty(_y,"__esModule",{value:!0}),_y.default=void 0;var t=e(yt()),r=gt();return _y.default=(0,t.default)((0,r.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"),_y}var Xwe=Qwe();const IB=tt(Xwe);var xy={},jB;function Ywe(){if(jB)return xy;jB=1;var e=vt();Object.defineProperty(xy,"__esModule",{value:!0}),xy.default=void 0;var t=e(yt()),r=gt();return xy.default=(0,t.default)((0,r.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"),xy}var Jwe=Ywe();const Zwe=tt(Jwe),eSe=()=>A.jsx(If,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),tSe=()=>{const e=Sr(),t=rt();let r="";return e&&(r=e.name!==""?e.name:e.id),A.jsxs("span",{children:[t("resources.rooms.name",1)," ",r]})},rSe=()=>{const e=Sr(),t=e!=null&&e.public?A.jsx(Fwe,{}):A.jsx(Lwe,{});return A.jsxs(Ni,{children:[t,A.jsx(jv,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},nSe=e=>{const t=rt();return A.jsx(NT,{...e,actions:A.jsx(rSe,{}),title:A.jsx(tSe,{}),children:A.jsxs(rS,{children:[A.jsxs(us,{label:"synapseadmin.rooms.tabs.basic",icon:A.jsx(Iv,{}),children:[A.jsx(st,{source:"room_id"}),A.jsx(st,{source:"name"}),A.jsx(st,{source:"topic"}),A.jsx(st,{source:"canonical_alias"}),A.jsx(tu,{source:"creator",reference:"users",children:A.jsx(st,{source:"id"})})]}),A.jsxs(us,{label:"synapseadmin.rooms.tabs.detail",icon:A.jsx(tV,{}),path:"detail",children:[A.jsx(st,{source:"joined_members"}),A.jsx(st,{source:"joined_local_members"}),A.jsx(st,{source:"joined_local_devices"}),A.jsx(st,{source:"state_events"}),A.jsx(st,{source:"version"}),A.jsx(st,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),A.jsx(us,{label:"synapseadmin.rooms.tabs.members",icon:A.jsx(iV,{}),path:"members",children:A.jsx(wc,{reference:"room_members",target:"room_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},rowClick:r=>"/users/"+r,bulkActionButtons:!1,children:[A.jsx(st,{source:"id",sortable:!1,label:"resources.users.fields.id"}),A.jsx(tu,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:A.jsx(st,{source:"displayname",sortable:!1})})]})})}),A.jsxs(us,{label:"synapseadmin.rooms.tabs.permission",icon:A.jsx(O9,{}),path:"permission",children:[A.jsx(Ri,{source:"federatable"}),A.jsx(Ri,{source:"public"}),A.jsx(m2,{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"}]}),A.jsx(m2,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),A.jsx(m2,{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"}]})]}),A.jsx(us,{label:t("resources.room_state.name",{smart_count:2}),icon:A.jsx(Uwe,{}),path:"state",children:A.jsx(wc,{reference:"room_state",target:"room_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},bulkActionButtons:!1,children:[A.jsx(st,{source:"type",sortable:!1}),A.jsx(ba,{source:"origin_server_ts",showTime:!0,options:$a,sortable:!1}),A.jsx(st,{source:"content",sortable:!1}),A.jsx(tu,{source:"sender",reference:"users",sortable:!1,children:A.jsx(st,{source:"id"})})]})})}),A.jsxs(us,{label:"resources.forward_extremities.name",icon:A.jsx(Hwe,{}),path:"forward_extremities",children:[A.jsx(eo,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),A.jsx(wc,{reference:"forward_extremities",target:"room_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},bulkActionButtons:!1,children:[A.jsx(st,{source:"id",sortable:!1}),A.jsx(ba,{source:"received_ts",showTime:!0,options:$a,sortable:!1}),A.jsx(al,{source:"depth",sortable:!1}),A.jsx(st,{source:"state_group",sortable:!1})]})})]})]})})},aSe=()=>A.jsxs(A.Fragment,{children:[A.jsx($we,{}),A.jsx(oV,{}),A.jsx(Xw,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),oSe=[A.jsx(tS,{source:"search_term",alwaysOn:!0})],iSe=()=>A.jsxs(Ni,{children:[A.jsx(b9,{}),A.jsx(l0,{})]}),sSe=e=>{const t=ei();return A.jsx(Tf,{...e,pagination:A.jsx(eSe,{}),sort:{field:"name",order:"ASC"},filters:oSe,actions:A.jsx(iSe,{}),children:A.jsxs(y9,{rowClick:"show",bulkActionButtons:A.jsx(aSe,{}),omit:["joined_local_members","state_events","version","federatable"],children:[A.jsx(Ri,{source:"is_encrypted",sortBy:"encryption",TrueIcon:IB,FalseIcon:Zwe,label:A.jsx(IB,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),A.jsx(u1e,{source:"name",render:r=>r.name||r.canonical_alias||r.id}),A.jsx(st,{source:"joined_members"}),A.jsx(st,{source:"joined_local_members"}),A.jsx(st,{source:"state_events"}),A.jsx(st,{source:"version"}),A.jsx(Ri,{source:"federatable"}),A.jsx(Ri,{source:"public"})]})})},lSe={name:"rooms",icon:Iv,list:sSe,show:nSe};var wy={},TB;function uSe(){if(TB)return wy;TB=1;var e=vt();Object.defineProperty(wy,"__esModule",{value:!0}),wy.default=void 0;var t=e(yt()),r=gt();return wy.default=(0,t.default)((0,r.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer"),wy}var cSe=uSe();const dSe=tt(cSe),fSe=()=>{const{isLoading:e,total:t}=La();return A.jsxs(Ni,{children:[A.jsx(Ewe,{}),A.jsx(l0,{disabled:e||t===0})]})},pSe=()=>A.jsx(If,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),hSe=[A.jsx(tS,{source:"search_term",alwaysOn:!0})],vSe=e=>A.jsx(Tf,{...e,actions:A.jsx(fSe,{}),filters:hSe,pagination:A.jsx(pSe,{}),sort:{field:"media_length",order:"DESC"},children:A.jsxs(Fa,{rowClick:t=>"/users/"+t+"/media",bulkActionButtons:!1,children:[A.jsx(st,{source:"user_id",label:"resources.users.fields.id"}),A.jsx(st,{source:"displayname",label:"resources.users.fields.displayname"}),A.jsx(al,{source:"media_count"}),A.jsx(al,{source:"media_length"})]})}),mSe={name:"user_media_statistics",icon:dSe,list:vSe};var Sy={},AB;function gSe(){if(AB)return Sy;AB=1;var e=vt();Object.defineProperty(Sy,"__esModule",{value:!0}),Sy.default=void 0;var t=e(yt()),r=gt();return Sy.default=(0,t.default)((0,r.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"),Sy}var ySe=gSe();const bSe=tt(ySe);var Ey={},MB;function _Se(){if(MB)return Ey;MB=1;var e=vt();Object.defineProperty(Ey,"__esModule",{value:!0}),Ey.default=void 0;var t=e(yt()),r=gt();return Ey.default=(0,t.default)((0,r.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"),Ey}var xSe=_Se();const wSe=tt(xSe);var Cy={},FB;function SSe(){if(FB)return Cy;FB=1;var e=vt();Object.defineProperty(Cy,"__esModule",{value:!0}),Cy.default=void 0;var t=e(yt()),r=gt();return Cy.default=(0,t.default)((0,r.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"),Cy}var ESe=SSe();const CSe=tt(ESe);var Oy={},$B;function OSe(){if($B)return Oy;$B=1;var e=vt();Object.defineProperty(Oy,"__esModule",{value:!0}),Oy.default=void 0;var t=e(yt()),r=gt();return Oy.default=(0,t.default)((0,r.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"),Oy}var PSe=OSe();const RSe=tt(PSe);var Py={},LB;function kSe(){if(LB)return Py;LB=1;var e=vt();Object.defineProperty(Py,"__esModule",{value:!0}),Py.default=void 0;var t=e(yt()),r=gt();return Py.default=(0,t.default)((0,r.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"),Py}var ISe=kSe();const jSe=tt(ISe);var Ry={},DB;function TSe(){if(DB)return Ry;DB=1;var e=vt();Object.defineProperty(Ry,"__esModule",{value:!0}),Ry.default=void 0;var t=e(yt()),r=gt();return Ry.default=(0,t.default)((0,r.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"),Ry}var ASe=TSe();const MSe=tt(ASe);var ky={},NB;function FSe(){if(NB)return ky;NB=1;var e=vt();Object.defineProperty(ky,"__esModule",{value:!0}),ky.default=void 0;var t=e(yt()),r=gt();return ky.default=(0,t.default)((0,r.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"),ky}var $Se=FSe();const LSe=tt($Se);var Iy={},BB;function DSe(){if(BB)return Iy;BB=1;var e=vt();Object.defineProperty(Iy,"__esModule",{value:!0}),Iy.default=void 0;var t=e(yt()),r=gt();return Iy.default=(0,t.default)((0,r.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"),Iy}var NSe=DSe();const sV=tt(NSe),lV=({open:e,onClose:t,onSubmit:r})=>{const n=rt(),a=o=>A.jsxs(u0,{...o,children:[A.jsx(Yw,{label:"resources.servernotices.action.send",disabled:o.pristine}),A.jsx(qr,{label:"ra.action.cancel",onClick:t,children:A.jsx(rV,{})})]});return A.jsxs(n0,{open:e,onClose:t,children:[A.jsx(o0,{children:n("resources.servernotices.action.send")}),A.jsxs(a0,{children:[A.jsx(Bw,{children:n("resources.servernotices.helper.send")}),A.jsx(c0,{toolbar:A.jsx(a,{}),onSubmit:r,children:A.jsx(Xn,{source:"body",label:"resources.servernotices.fields.body",multiline:!0,rows:"4",resettable:!0,validate:Qo()})})]})]})},BSe=()=>{const e=Sr(),[t,r]=p.useState(!1),n=Jr(),[a,{isLoading:o}]=qb(),s=()=>r(!0),d=()=>r(!1);if(!e)return;const f=u=>{a("servernotices",{data:{id:e.id,...u}},{onSuccess:()=>{n("resources.servernotices.action.send_success"),d()},onError:()=>n("resources.servernotices.action.send_failure",{type:"error"})})};return A.jsxs(A.Fragment,{children:[A.jsx(qr,{label:"resources.servernotices.send",onClick:s,disabled:o,children:A.jsx(sV,{})}),A.jsx(lV,{open:t,onClose:d,onSubmit:f})]})},zSe=()=>{const{selectedIds:e}=La(),[t,r]=p.useState(!1),n=()=>r(!0),a=()=>r(!1),o=Jr(),s=Xz("users"),d=Zo(),{mutate:f,isPending:u}=Ef({mutationFn:h=>d.createMany("servernotices",{ids:e,data:h}),onSuccess:()=>{o("resources.servernotices.action.send_success"),s(),a()},onError:()=>o("resources.servernotices.action.send_failure",{type:"error"})});return A.jsxs(A.Fragment,{children:[A.jsx(qr,{label:"resources.servernotices.send",onClick:n,disabled:u,children:A.jsx(sV,{})}),A.jsx(lV,{open:t,onClose:a,onSubmit:f})]})},qSe=e=>{const t=Sr();return t?A.jsx(e9,{...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},uV=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],cV=[{id:"bot",name:"bot"},{id:"support",name:"support"}],dV=()=>{const{isLoading:e,total:t}=La();return A.jsxs(Ni,{children:[A.jsx(CT,{}),A.jsx(l0,{disabled:e||t===0,maxResults:1e4}),A.jsx(qr,{component:cs,to:"/import_users",label:"CSV Import",children:A.jsx(ZU,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})};dV.defaultProps={selectedIds:[],onUnselectItems:()=>null};const fV=()=>A.jsx(If,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),USe=[A.jsx(tS,{source:"name",alwaysOn:!0}),A.jsx(tl,{source:"guests",alwaysOn:!0}),A.jsx(tl,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0}),A.jsx(tl,{label:"resources.users.fields.show_locked",source:"locked",alwaysOn:!0})],VSe=()=>A.jsxs(A.Fragment,{children:[A.jsx(zSe,{}),A.jsx(Xw,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),WSe=e=>A.jsx(Tf,{...e,filters:USe,filterDefaultValues:{guests:!0,deactivated:!1,locked:!1},sort:{field:"name",order:"ASC"},actions:A.jsx(dV,{}),pagination:A.jsx(fV,{}),children:A.jsxs(Fa,{rowClick:(t,r)=>`/${r}/${t}`,bulkActionButtons:A.jsx(VSe,{}),children:[A.jsx(zT,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),A.jsx(st,{source:"id",sortBy:"name"}),A.jsx(st,{source:"displayname"}),A.jsx(Ri,{source:"is_guest"}),A.jsx(Ri,{source:"admin"}),A.jsx(Ri,{source:"deactivated"}),A.jsx(Ri,{source:"locked"}),A.jsx(Ri,{source:"erased",sortable:!1}),A.jsx(ba,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:$a})]})}),HSe=[Qo(),U1(253),Bj(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],GSe=[Qo(),U1(255)],KSe=()=>{const e=Sr(),t=rt();return A.jsxs(Ni,{children:[!(e!=null&&e.deactivated)&&A.jsx(BSe,{}),A.jsx(jv,{label:"resources.users.action.erase",confirmTitle:t("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},QSe=e=>A.jsx(R9,{...e,redirect:(t,r)=>`${t}/${r}`,children:A.jsxs(c0,{children:[A.jsx(Xn,{source:"id",autoComplete:"off",validate:HSe}),A.jsx(Xn,{source:"displayname",validate:U1(256)}),A.jsx(DT,{source:"password",autoComplete:"new-password",validate:U1(512)}),A.jsx(kx,{source:"user_type",choices:cV,translateChoice:!1,resettable:!0}),A.jsx(tl,{source:"admin"}),A.jsx(mx,{source:"threepids",children:A.jsxs(yx,{disableReordering:!0,children:[A.jsx(kx,{source:"medium",choices:uV,validate:Qo()}),A.jsx(Xn,{source:"address",validate:GSe})]})}),A.jsx(mx,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:A.jsxs(yx,{disableReordering:!0,children:[A.jsx(Xn,{source:"auth_provider",validate:Qo()}),A.jsx(Xn,{source:"external_id",label:"resources.users.fields.id",validate:Qo()})]})})]})}),XSe=()=>{const e=Sr(),t=rt();return A.jsxs("span",{children:[t("resources.users.name",{smart_count:1})," ",e?`"${e.displayname}"`:""]})},YSe=e=>{const t=rt();return A.jsx(k9,{...e,title:A.jsx(XSe,{}),actions:A.jsx(KSe,{}),children:A.jsxs(F9,{children:[A.jsxs(Ws,{label:t("resources.users.name",{smart_count:1}),icon:A.jsx(MSe,{}),children:[A.jsx(zT,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),A.jsx(Xn,{source:"id",disabled:!0}),A.jsx(Xn,{source:"displayname"}),A.jsx(DT,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),A.jsx(kx,{source:"user_type",choices:cV,translateChoice:!1,resettable:!0}),A.jsx(tl,{source:"admin"}),A.jsx(tl,{source:"locked"}),A.jsx(tl,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),A.jsx(tl,{source:"erased",disabled:!0}),A.jsx(ba,{source:"creation_ts_ms",showTime:!0,options:$a}),A.jsx(st,{source:"consent_version"})]}),A.jsx(Ws,{label:"resources.users.threepid",icon:A.jsx(wSe,{}),path:"threepid",children:A.jsx(mx,{source:"threepids",children:A.jsxs(yx,{disableReordering:!0,children:[A.jsx(kx,{source:"medium",choices:uV}),A.jsx(Xn,{source:"address"})]})})}),A.jsx(Ws,{label:"synapseadmin.users.tabs.sso",icon:A.jsx(bSe,{}),path:"sso",children:A.jsx(mx,{source:"external_ids",label:!1,children:A.jsxs(yx,{disableReordering:!0,children:[A.jsx(Xn,{source:"auth_provider",validate:Qo()}),A.jsx(Xn,{source:"external_id",label:"resources.users.fields.id",validate:Qo()})]})})}),A.jsx(Ws,{label:t("resources.devices.name",{smart_count:2}),icon:A.jsx(CSe,{}),path:"devices",children:A.jsx(wc,{reference:"devices",target:"user_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},children:[A.jsx(st,{source:"device_id",sortable:!1}),A.jsx(st,{source:"display_name",sortable:!1}),A.jsx(st,{source:"last_seen_ip",sortable:!1}),A.jsx(ba,{source:"last_seen_ts",showTime:!0,options:$a,sortable:!1}),A.jsx(qSe,{})]})})}),A.jsx(Ws,{label:"resources.connections.name",icon:A.jsx(LSe,{}),path:"connections",children:A.jsx(tu,{reference:"connections",source:"id",label:!1,link:!1,children:A.jsx(J_e,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:A.jsxs(Fa,{style:{width:"100%"},bulkActionButtons:!1,children:[A.jsx(st,{source:"ip",sortable:!1}),A.jsx(ba,{source:"last_seen",showTime:!0,options:$a,sortable:!1}),A.jsx(st,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),A.jsx(Ws,{label:t("resources.users_media.name",{smart_count:2}),icon:A.jsx(jSe,{}),path:"media",children:A.jsx(wc,{reference:"users_media",target:"user_id",label:!1,pagination:A.jsx(fV,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:A.jsxs(Fa,{style:{width:"100%"},children:[A.jsx(Pwe,{source:"media_id"}),A.jsx(ba,{source:"created_ts",showTime:!0,options:$a}),A.jsx(ba,{source:"last_access_ts",showTime:!0,options:$a}),A.jsx(al,{source:"media_length"}),A.jsx(st,{source:"media_type"}),A.jsx(st,{source:"upload_name"}),A.jsx(st,{source:"quarantined_by"}),A.jsx(Owe,{label:"resources.quarantine_media.action.name"}),A.jsx(Cwe,{label:"resources.users_media.fields.safe_from_quarantine"}),A.jsx(jv,{mutationMode:"pessimistic",redirect:!1})]})})}),A.jsx(Ws,{label:t("resources.rooms.name",{smart_count:2}),icon:A.jsx(Iv,{}),path:"rooms",children:A.jsx(wc,{reference:"joined_rooms",target:"user_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},rowClick:r=>"/rooms/"+r+"/show",bulkActionButtons:!1,children:[A.jsx(st,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),A.jsx(tu,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:A.jsx(st,{source:"name",sortable:!1})})]})})}),A.jsx(Ws,{label:t("resources.pushers.name",{smart_count:2}),icon:A.jsx(RSe,{}),path:"pushers",children:A.jsx(wc,{reference:"pushers",target:"user_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},bulkActionButtons:!1,children:[A.jsx(st,{source:"kind",sortable:!1}),A.jsx(st,{source:"app_display_name",sortable:!1}),A.jsx(st,{source:"app_id",sortable:!1}),A.jsx(st,{source:"data.url",sortable:!1}),A.jsx(st,{source:"device_display_name",sortable:!1}),A.jsx(st,{source:"lang",sortable:!1}),A.jsx(st,{source:"profile_tag",sortable:!1}),A.jsx(st,{source:"pushkey",sortable:!1})]})})})]})})},JSe={name:"users",icon:iV,list:WSe,edit:YSe,create:QSe},ZSe={login:async({base_url:e,username:t,password:r,loginToken:n})=>{console.log("login ");const a={method:"POST",body:JSON.stringify(Object.assign({device_id:hr.getItem("device_id"),initial_device_display_name:"Synapse Admin"},n?{type:"m.login.token",token:n}:{type:"m.login.password",user:t,password:r,identifier:{type:"m.id.user",user:t}}))};e=e.replace(/\/+$/g,""),hr.setItem("base_url",e);const s=window.decodeURIComponent(e)+"/_matrix/client/r0/login",{json:d}=await yf(s,a);hr.setItem("home_server",d.home_server),hr.setItem("user_id",d.user_id),hr.setItem("access_token",d.access_token),hr.setItem("device_id",d.device_id)},logout:async()=>{console.log("logout");const e=hr.getItem("base_url")+"/_matrix/client/r0/logout",t=hr.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:`Bearer ${t}`}};typeof t=="string"&&(await yf(e,r),hr.removeItem("access_token"))},checkError:({status:e})=>(console.log("checkError "+e),e===401||e===403?Promise.reject():Promise.resolve()),checkAuth:()=>{const e=hr.getItem("access_token");return console.log("checkAuth "+e),typeof e=="string"?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},Wo=(e,t={})=>{const r=hr.getItem("access_token");return console.log("httpClient "+e),r!=null&&(t.user={authenticated:!0,token:`Bearer ${r}`}),yf(e,t)},zB=e=>{const t=hr.getItem("base_url"),n=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+n),n==null)return null;const a=n[1],o=n[2];return`${t}/_matrix/media/r0/thumbnail/${a}/${o}?width=24&height=24&method=scale`},Mn={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:e.avatar_url?zB(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)}:${hr.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/${hr.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/${hr.getItem("home_server")}/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unquarantine/${hr.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?zB(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 jy(e,t){if(!(t===null&&e!=="user_type"))return t}function qB(e){return e==="DESC"?"b":"f"}const eEe={getList:async(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:a,deactivated:o,locked:s,search_term:d,destination:f,valid:u}=t.filter,{page:h,perPage:g}=t.pagination,{field:y,order:_}=t.sort,S=(h-1)*g,E={from:S,limit:g,user_id:r,search_term:d,name:n,destination:f,guests:a,deactivated:o,locked:s,valid:u,order_by:y,dir:qB(_)},x=hr.getItem("base_url");if(!x||!(e in Mn))throw Error("Homeserver not set");const T=Mn[e],R=`${x+T.path}?${Zh.stringify(E)}`,{json:P}=await Wo(R);return{data:P[T.data].map(T.map),total:T.total(P,S,g)}},getOne:async(e,t)=>{console.log("getOne "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e],a=r+n.path,{json:o}=await Wo(`${a}/${encodeURIComponent(t.id)}`);return{data:n.map(o)}},getMany:async(e,t)=>{console.log("getMany "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homerserver not set");const n=Mn[e],a=r+n.path,o=await Promise.all(t.ids.map(s=>Wo(`${a}/${encodeURIComponent(s)}`)));return{data:o.map(({json:s})=>n.map(s)),total:o.length}},getManyReference:async(e,t)=>{console.log("getManyReference "+e);const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,s=(r-1)*n,d={from:s,limit:n,order_by:a,dir:qB(o)},f=hr.getItem("base_url");if(!f||!(e in Mn))throw Error("Homeserver not set");const u=Mn[e],h=u.reference(t.id),g=`${f}${h.endpoint}?${Zh.stringify(d)}`,{json:y}=await Wo(g);return{data:y[u.data].map(u.map),total:u.total(y,s,n)}},update:async(e,t)=>{console.log("update "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e],a=r+n.path,{json:o}=await Wo(`${a}/${encodeURIComponent(t.id)}`,{method:"PUT",body:JSON.stringify(t.data,jy)});return{data:n.map(o)}},updateMany:async(e,t)=>{console.log("updateMany "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e],a=r+n.path;return{data:(await Promise.all(t.ids.map(s=>Wo(`${a}/${encodeURIComponent(s)}`),{method:"PUT",body:JSON.stringify(t.data,jy)}))).map(({json:s})=>s)}},create:async(e,t)=>{console.log("create "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e];if(!("create"in n))return Promise.reject();const a=n.create(t.data),o=r+a.endpoint,{json:s}=await Wo(o,{method:a.method,body:JSON.stringify(a.body,jy)});return{data:n.map(s)}},createMany:async(e,t)=>{console.log("createMany "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e];if(!("create"in n))throw Error(`Create ${e} is not allowed`);return{data:(await Promise.all(t.ids.map(o=>{t.data.id=o;const s=n.create(t.data),d=r+s.endpoint;return Wo(d,{method:s.method,body:JSON.stringify(s.body,jy)})}))).map(({json:o})=>o)}},delete:async(e,t)=>{console.log("delete "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e];if("delete"in n){const a=n.delete(t),o=r+a.endpoint,{json:s}=await Wo(o,{method:"method"in a?a.method:"DELETE",body:"body"in a?JSON.stringify(a.body):null});return{data:s}}else{const a=r+n.path,{json:o}=await Wo(`${a}/${t.id}`,{method:"DELETE",body:JSON.stringify(t.previousData,jy)});return{data:o}}},deleteMany:async(e,t)=>{console.log("deleteMany "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e];if("delete"in n)return{data:(await Promise.all(t.ids.map(o=>{const s=n.delete({...t,id:o}),d=r+s.endpoint;return Wo(d,{method:"method"in s?s.method:"DELETE",body:"body"in s?JSON.stringify(s.body):null})}))).map(({json:o})=>o)};{const a=r+n.path;return{data:(await Promise.all(t.ids.map(s=>Wo(`${a}/${s}`,{method:"DELETE"})))).map(({json:s})=>s)}}},deleteMedia:async({before_ts:e,size_gt:t=0,keep_profiles:r=!0})=>{const a=`/_synapse/admin/v1/media/${hr.getItem("home_server")}/delete?before_ts=${e}&size_gt=${t}&keep_profiles=${r}`,s=hr.getItem("base_url")+a,{json:d}=await Wo(s,{method:"POST"});return d}},t1={de:yxe,en:_xe,fr:wxe,it:Oxe,ru:Pxe,zh:Ixe},tEe=d5(e=>t1[e]?$b.merge({},t1.en,t1[e]):t1.en,cQ(),[{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:"简体中文"}]),rEe=()=>A.jsxs(nxe,{disableTelemetry:!0,requireAuth:!0,loginPage:Axe,authProvider:ZSe,dataProvider:eEe,i18nProvider:tEe,children:[A.jsx(Lq,{children:A.jsx(la,{path:"/import_users",element:A.jsx(mxe,{})})}),A.jsx(Gn,{...JSe}),A.jsx(Gn,{...lSe}),A.jsx(Gn,{...mSe}),A.jsx(Gn,{...Awe}),A.jsx(Gn,{...Bwe}),A.jsx(Gn,{...Qxe}),A.jsx(Gn,{...owe}),A.jsx(Gn,{name:"connections"}),A.jsx(Gn,{name:"devices"}),A.jsx(Gn,{name:"room_members"}),A.jsx(Gn,{name:"users_media"}),A.jsx(Gn,{name:"joined_rooms"}),A.jsx(Gn,{name:"pushers"}),A.jsx(Gn,{name:"servernotices"}),A.jsx(Gn,{name:"forward_extremities"}),A.jsx(Gn,{name:"room_state"}),A.jsx(Gn,{name:"destination_rooms"})]}),nEe="/synapse-admin",aEe="config.json",oEe=`${nEe.replace(/\/$/,"")}/${aEe}`;fetch(oEe).then(e=>e.json()).then(e=>qW.createRoot(document.getElementById("root")).render(A.jsx(Ke.StrictMode,{children:A.jsx(Y9.Provider,{value:e,children:A.jsx(rEe,{})})}))); diff --git a/assets/index-JeJ57CyM.js b/assets/index-JeJ57CyM.js new file mode 100644 index 0000000..0895f5e --- /dev/null +++ b/assets/index-JeJ57CyM.js @@ -0,0 +1,324 @@ +var eH=Object.defineProperty;var Gj=e=>{throw TypeError(e)};var tH=(e,t,r)=>t in e?eH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var zg=(e,t,r)=>tH(e,typeof t!="symbol"?t+"":t,r),gC=(e,t,r)=>t.has(e)||Gj("Cannot "+r);var Y=(e,t,r)=>(gC(e,t,"read from private field"),r?r.call(e):t.get(e)),rt=(e,t,r)=>t.has(e)?Gj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),He=(e,t,r,n)=>(gC(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),jt=(e,t,r)=>(gC(e,t,"access private method"),r);var wf=(e,t,r,n)=>({set _(a){He(e,t,a,r)},get _(){return Y(e,t,n)}});function rH(e,t){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Ou=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yC={exports:{}},qg={},bC={exports:{}},ar={};/** + * @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 Qj;function nH(){if(Qj)return ar;Qj=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.iterator;function y(G){return G===null||typeof G!="object"?null:(G=v&&G[v]||G["@@iterator"],typeof G=="function"?G:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,w={};function S(G,J,de){this.props=G,this.context=J,this.refs=w,this.updater=de||b}S.prototype.isReactComponent={},S.prototype.setState=function(G,J){if(typeof G!="object"&&typeof G!="function"&&G!=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,G,J,"setState")},S.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function A(){}A.prototype=S.prototype;function R(G,J,de){this.props=G,this.context=J,this.refs=w,this.updater=de||b}var C=R.prototype=new A;C.constructor=R,_(C,S.prototype),C.isPureReactComponent=!0;var O=Array.isArray,T=Object.prototype.hasOwnProperty,E={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function j(G,J,de){var ce,ue={},be=null,Pe=null;if(J!=null)for(ce in J.ref!==void 0&&(Pe=J.ref),J.key!==void 0&&(be=""+J.key),J)T.call(J,ce)&&!L.hasOwnProperty(ce)&&(ue[ce]=J[ce]);var Ee=arguments.length-2;if(Ee===1)ue.children=de;else if(1>>1,J=K[G];if(0>>1;Ga(ue,te))bea(Pe,ue)?(K[G]=Pe,K[be]=te,G=be):(K[G]=ue,K[ce]=te,G=ce);else if(bea(Pe,te))K[G]=Pe,K[be]=te,G=be;else break e}}return X}function a(K,X){var te=K.sortIndex-X.sortIndex;return te!==0?te:K.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var d=[],l=[],h=1,v=null,y=3,b=!1,_=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(K){for(var X=r(l);X!==null;){if(X.callback===null)n(l);else if(X.startTime<=K)n(l),X.sortIndex=X.expirationTime,t(d,X);else break;X=r(l)}}function O(K){if(w=!1,C(K),!_)if(r(d)!==null)_=!0,Q(T);else{var X=r(l);X!==null&&V(O,X.startTime-K)}}function T(K,X){_=!1,w&&(w=!1,A(j),j=-1),b=!0;var te=y;try{for(C(X),v=r(d);v!==null&&(!(v.expirationTime>X)||K&&!$());){var G=v.callback;if(typeof G=="function"){v.callback=null,y=v.priorityLevel;var J=G(v.expirationTime<=X);X=e.unstable_now(),typeof J=="function"?v.callback=J:v===r(d)&&n(d),C(X)}else n(d);v=r(d)}if(v!==null)var de=!0;else{var ce=r(l);ce!==null&&V(O,ce.startTime-X),de=!1}return de}finally{v=null,y=te,b=!1}}var E=!1,L=null,j=-1,M=5,k=-1;function $(){return!(e.unstable_now()-kK||125G?(K.sortIndex=te,t(l,K),r(d)===null&&K===r(l)&&(w?(A(j),j=-1):w=!0,V(O,te-G))):(K.sortIndex=J,t(d,K),_||b||(_=!0,Q(T))),K},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(K){var X=y;return function(){var te=y;y=X;try{return K.apply(this,arguments)}finally{y=te}}}}(xC)),xC}var eM;function sH(){return eM||(eM=1,wC.exports=iH()),wC.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 tM;function lH(){if(tM)return To;tM=1;var e=dA(),t=sH();function r(s){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+s,g=1;g"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,l=/^[: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]*$/,h={},v={};function y(s){return d.call(v,s)?!0:d.call(h,s)?!1:l.test(s)?v[s]=!0:(h[s]=!0,!1)}function b(s,c,g,x){if(g!==null&&g.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return x?!1:g!==null?!g.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function _(s,c,g,x){if(c===null||typeof c>"u"||b(s,c,g,x))return!0;if(x)return!1;if(g!==null)switch(g.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function w(s,c,g,x,F,D,H){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=x,this.attributeNamespace=F,this.mustUseProperty=g,this.propertyName=s,this.type=c,this.sanitizeURL=D,this.removeEmptyString=H}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){S[s]=new w(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];S[c]=new w(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){S[s]=new w(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){S[s]=new w(s,2,!1,s,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(s){S[s]=new w(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){S[s]=new w(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){S[s]=new w(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){S[s]=new w(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){S[s]=new w(s,5,!1,s.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function R(s){return s[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(s){var c=s.replace(A,R);S[c]=new w(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(A,R);S[c]=new w(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(A,R);S[c]=new w(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){S[s]=new w(s,1,!1,s.toLowerCase(),null,!1,!1)}),S.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){S[s]=new w(s,1,!1,s.toLowerCase(),null,!0,!0)});function C(s,c,g,x){var F=S.hasOwnProperty(c)?S[c]:null;(F!==null?F.type!==0:x||!(2ae||F[H]!==D[ae]){var fe=` +`+F[H].replace(" at new "," at ");return s.displayName&&fe.includes("")&&(fe=fe.replace("",s.displayName)),fe}while(1<=H&&0<=ae);break}}}finally{de=!1,Error.prepareStackTrace=g}return(s=s?s.displayName||s.name:"")?J(s):""}function ue(s){switch(s.tag){case 5:return J(s.type);case 16:return J("Lazy");case 13:return J("Suspense");case 19:return J("SuspenseList");case 0:case 2:case 15:return s=ce(s.type,!1),s;case 11:return s=ce(s.type.render,!1),s;case 1:return s=ce(s.type,!0),s;default:return""}}function be(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case L:return"Fragment";case E:return"Portal";case M:return"Profiler";case j:return"StrictMode";case z:return"Suspense";case U:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case $:return(s.displayName||"Context")+".Consumer";case k:return(s._context.displayName||"Context")+".Provider";case B:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case W:return c=s.displayName||null,c!==null?c:be(s.type)||"Memo";case Q:c=s._payload,s=s._init;try{return be(s(c))}catch{}}return null}function Pe(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return be(c);case 8:return c===j?"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 c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function Ee(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function ge(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function xe(s){var c=ge(s)?"checked":"value",g=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),x=""+s[c];if(!s.hasOwnProperty(c)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var F=g.get,D=g.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return F.call(this)},set:function(H){x=""+H,D.call(this,H)}}),Object.defineProperty(s,c,{enumerable:g.enumerable}),{getValue:function(){return x},setValue:function(H){x=""+H},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Oe(s){s._valueTracker||(s._valueTracker=xe(s))}function Te(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var g=c.getValue(),x="";return s&&(x=ge(s)?s.checked?"true":"false":s.value),s=x,s!==g?(c.setValue(s),!0):!1}function Me(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function Fe(s,c){var g=c.checked;return te({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:g??s._wrapperState.initialChecked})}function $e(s,c){var g=c.defaultValue==null?"":c.defaultValue,x=c.checked!=null?c.checked:c.defaultChecked;g=Ee(c.value!=null?c.value:g),s._wrapperState={initialChecked:x,initialValue:g,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function et(s,c){c=c.checked,c!=null&&C(s,"checked",c,!1)}function qe(s,c){et(s,c);var g=Ee(c.value),x=c.type;if(g!=null)x==="number"?(g===0&&s.value===""||s.value!=g)&&(s.value=""+g):s.value!==""+g&&(s.value=""+g);else if(x==="submit"||x==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?oe(s,c.type,g):c.hasOwnProperty("defaultValue")&&oe(s,c.type,Ee(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function re(s,c,g){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var x=c.type;if(!(x!=="submit"&&x!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,g||c===s.value||(s.value=c),s.defaultValue=c}g=s.name,g!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,g!==""&&(s.name=g)}function oe(s,c,g){(c!=="number"||Me(s.ownerDocument)!==s)&&(g==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+g&&(s.defaultValue=""+g))}var pe=Array.isArray;function Se(s,c,g,x){if(s=s.options,c){c={};for(var F=0;F"+c.valueOf().toString()+"",c=bt.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function Tt(s,c){if(c){var g=s.firstChild;if(g&&g===s.lastChild&&g.nodeType===3){g.nodeValue=c;return}}s.textContent=c}var Je={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},Dt=["Webkit","ms","Moz","O"];Object.keys(Je).forEach(function(s){Dt.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),Je[c]=Je[s]})});function Lt(s,c,g){return c==null||typeof c=="boolean"||c===""?"":g||typeof c!="number"||c===0||Je.hasOwnProperty(s)&&Je[s]?(""+c).trim():c+"px"}function Ct(s,c){s=s.style;for(var g in c)if(c.hasOwnProperty(g)){var x=g.indexOf("--")===0,F=Lt(g,c[g],x);g==="float"&&(g="cssFloat"),x?s.setProperty(g,F):s[g]=F}}var ct=te({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 Kt(s,c){if(c){if(ct[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(r(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(r(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(r(61))}if(c.style!=null&&typeof c.style!="object")throw Error(r(62))}}function lr(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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 en=null;function Bn(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Xi=null,Pa=null,ia=null;function Yi(s){if(s=Jn(s)){if(typeof Xi!="function")throw Error(r(280));var c=s.stateNode;c&&(c=Vp(c),Xi(s.stateNode,s.type,c))}}function Bo(s){Pa?ia?ia.push(s):ia=[s]:Pa=s}function zo(){if(Pa){var s=Pa,c=ia;if(ia=Pa=null,Yi(s),c)for(s=0;s>>=0,s===0?32:31-(Rd(s)/gp|0)|0}var Bu=64,yp=4194304;function zu(s){switch(s&-s){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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function $l(s,c){var g=s.pendingLanes;if(g===0)return 0;var x=0,F=s.suspendedLanes,D=s.pingedLanes,H=g&268435455;if(H!==0){var ae=H&~F;ae!==0?x=zu(ae):(D&=H,D!==0&&(x=zu(D)))}else H=g&~F,H!==0?x=zu(H):D!==0&&(x=zu(D));if(x===0)return 0;if(c!==0&&c!==x&&(c&F)===0&&(F=x&-x,D=c&-c,F>=D||F===16&&(D&4194240)!==0))return c;if((x&4)!==0&&(x|=g&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=x;0g;g++)c.push(s);return c}function Td(s,c,g){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-Pn(c),s[c]=g}function v0(s,c){var g=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var x=s.eventTimes;for(s=s.expirationTimes;0=Zi),T0=" ",A0=!1;function I0(s,c){switch(s){case"keyup":return Wa.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function j0(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Ku=!1;function Gu(s,c){switch(s){case"compositionend":return j0(c);case"keypress":return c.which!==32?null:(A0=!0,T0);case"textInput":return s=c.data,s===T0&&A0?null:s;default:return null}}function AS(s,c){if(Ku)return s==="compositionend"||!Fd&&I0(s,c)?(s=Rv(),mi=Md=Vr=null,Ku=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:g,offset:c-s};s=x}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=Gt(g)}}function on(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?on(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function Rr(){for(var s=window,c=Me();c instanceof s.HTMLIFrameElement;){try{var g=typeof c.contentWindow.location.href=="string"}catch{g=!1}if(g)s=c.contentWindow;else break;c=Me(s.document)}return c}function Ld(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function $S(s){var c=Rr(),g=s.focusedElem,x=s.selectionRange;if(c!==g&&g&&g.ownerDocument&&on(g.ownerDocument.documentElement,g)){if(x!==null&&Ld(g)){if(c=x.start,s=x.end,s===void 0&&(s=c),"selectionStart"in g)g.selectionStart=c,g.selectionEnd=Math.min(s,g.value.length);else if(s=(c=g.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var F=g.textContent.length,D=Math.min(x.start,F);x=x.end===void 0?D:Math.min(x.end,F),!s.extend&&D>x&&(F=x,x=D,D=F),F=yr(g,D);var H=yr(g,x);F&&H&&(s.rangeCount!==1||s.anchorNode!==F.node||s.anchorOffset!==F.offset||s.focusNode!==H.node||s.focusOffset!==H.offset)&&(c=c.createRange(),c.setStart(F.node,F.offset),s.removeAllRanges(),D>x?(s.addRange(c),s.extend(H.node,H.offset)):(c.setEnd(H.node,H.offset),s.addRange(c)))}}for(c=[],s=g;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g=document.documentMode,es=null,zv=null,vi=null,Xu=!1;function $d(s,c,g){var x=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;Xu||es==null||es!==Me(x)||(x=es,"selectionStart"in x&&Ld(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),vi&&ft(vi,x)||(vi=x,x=Bp(zv,"onSelect"),0ac||(s.current=Hv[ac],Hv[ac]=null,ac--)}function Mr(s,c){ac++,Hv[ac]=s.current,s.current=c}var Hs={},Zn=Ta(Hs),Aa=Ta(!1),da=Hs;function oc(s,c){var g=s.type.contextTypes;if(!g)return Hs;var x=s.stateNode;if(x&&x.__reactInternalMemoizedUnmaskedChildContext===c)return x.__reactInternalMemoizedMaskedChildContext;var F={},D;for(D in g)F[D]=c[D];return x&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=F),F}function Ia(s){return s=s.childContextTypes,s!=null}function Wp(){Nr(Aa),Nr(Zn)}function U0(s,c,g){if(Zn.current!==Hs)throw Error(r(168));Mr(Zn,c),Mr(Aa,g)}function V0(s,c,g){var x=s.stateNode;if(c=c.childContextTypes,typeof x.getChildContext!="function")return g;x=x.getChildContext();for(var F in x)if(!(F in c))throw Error(r(108,Pe(s)||"Unknown",F));return te({},g,x)}function go(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Hs,da=Zn.current,Mr(Zn,s),Mr(Aa,Aa.current),!0}function W0(s,c,g){var x=s.stateNode;if(!x)throw Error(r(169));g?(s=V0(s,c,da),x.__reactInternalMemoizedMergedChildContext=s,Nr(Aa),Nr(Zn),Mr(Zn,s)):Nr(Aa),Mr(Aa,g)}var ns=null,Hp=!1,Kv=!1;function H0(s){ns===null?ns=[s]:ns.push(s)}function Wl(s){Hp=!0,H0(s)}function Ks(){if(!Kv&&ns!==null){Kv=!0;var s=0,c=wr;try{var g=ns;for(wr=1;s>=H,F-=H,bi=1<<32-Pn(c)+F|g<Ut?(Tn=$t,$t=null):Tn=$t.sibling;var _r=Ge(Re,$t,ke[Ut],tt);if(_r===null){$t===null&&($t=Tn);break}s&&$t&&_r.alternate===null&&c(Re,$t),ye=D(_r,ye,Ut),Nt===null?kt=_r:Nt.sibling=_r,Nt=_r,$t=Tn}if(Ut===ke.length)return g(Re,$t),Br&&Kl(Re,Ut),kt;if($t===null){for(;UtUt?(Tn=$t,$t=null):Tn=$t.sibling;var ol=Ge(Re,$t,_r.value,tt);if(ol===null){$t===null&&($t=Tn);break}s&&$t&&ol.alternate===null&&c(Re,$t),ye=D(ol,ye,Ut),Nt===null?kt=ol:Nt.sibling=ol,Nt=ol,$t=Tn}if(_r.done)return g(Re,$t),Br&&Kl(Re,Ut),kt;if($t===null){for(;!_r.done;Ut++,_r=ke.next())_r=Ze(Re,_r.value,tt),_r!==null&&(ye=D(_r,ye,Ut),Nt===null?kt=_r:Nt.sibling=_r,Nt=_r);return Br&&Kl(Re,Ut),kt}for($t=x(Re,$t);!_r.done;Ut++,_r=ke.next())_r=pt($t,Re,Ut,_r.value,tt),_r!==null&&(s&&_r.alternate!==null&&$t.delete(_r.key===null?Ut:_r.key),ye=D(_r,ye,Ut),Nt===null?kt=_r:Nt.sibling=_r,Nt=_r);return s&&$t.forEach(function(oC){return c(Re,oC)}),Br&&Kl(Re,Ut),kt}function rn(Re,ye,ke,tt){if(typeof ke=="object"&&ke!==null&&ke.type===L&&ke.key===null&&(ke=ke.props.children),typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case T:e:{for(var kt=ke.key,Nt=ye;Nt!==null;){if(Nt.key===kt){if(kt=ke.type,kt===L){if(Nt.tag===7){g(Re,Nt.sibling),ye=F(Nt,ke.props.children),ye.return=Re,Re=ye;break e}}else if(Nt.elementType===kt||typeof kt=="object"&&kt!==null&&kt.$$typeof===Q&&X0(kt)===Nt.type){g(Re,Nt.sibling),ye=F(Nt,ke.props),ye.ref=Gd(Re,Nt,ke),ye.return=Re,Re=ye;break e}g(Re,Nt);break}else c(Re,Nt);Nt=Nt.sibling}ke.type===L?(ye=iu(ke.props.children,Re.mode,tt,ke.key),ye.return=Re,Re=ye):(tt=Th(ke.type,ke.key,ke.props,null,Re.mode,tt),tt.ref=Gd(Re,ye,ke),tt.return=Re,Re=tt)}return H(Re);case E:e:{for(Nt=ke.key;ye!==null;){if(ye.key===Nt)if(ye.tag===4&&ye.stateNode.containerInfo===ke.containerInfo&&ye.stateNode.implementation===ke.implementation){g(Re,ye.sibling),ye=F(ye,ke.children||[]),ye.return=Re,Re=ye;break e}else{g(Re,ye);break}else c(Re,ye);ye=ye.sibling}ye=Lg(ke,Re.mode,tt),ye.return=Re,Re=ye}return H(Re);case Q:return Nt=ke._init,rn(Re,ye,Nt(ke._payload),tt)}if(pe(ke))return xt(Re,ye,ke,tt);if(X(ke))return Rt(Re,ye,ke,tt);Ql(Re,ke)}return typeof ke=="string"&&ke!==""||typeof ke=="number"?(ke=""+ke,ye!==null&&ye.tag===6?(g(Re,ye.sibling),ye=F(ye,ke),ye.return=Re,Re=ye):(g(Re,ye),ye=Fg(ke,Re.mode,tt),ye.return=Re,Re=ye),H(Re)):g(Re,ye)}return rn}var Jr=Qv(!0),Xp=Qv(!1),Qd=Ta(null),Qa=null,Gs=null,sc=null;function os(){sc=Gs=Qa=null}function Yp(s){var c=Qd.current;Nr(Qd),s._currentValue=c}function qn(s,c,g){for(;s!==null;){var x=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,x!==null&&(x.childLanes|=c)):x!==null&&(x.childLanes&c)!==c&&(x.childLanes|=c),s===g)break;s=s.return}}function Qs(s,c){Qa=s,sc=Gs=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&c)!==0&&(pa=!0),s.firstContext=null)}function _o(s){var c=s._currentValue;if(sc!==s)if(s={context:s,memoizedValue:c,next:null},Gs===null){if(Qa===null)throw Error(r(308));Gs=s,Qa.dependencies={lanes:0,firstContext:s}}else Gs=Gs.next=s;return c}var Xl=null;function Xv(s){Xl===null?Xl=[s]:Xl.push(s)}function Jp(s,c,g,x){var F=c.interleaved;return F===null?(g.next=g,Xv(c)):(g.next=F.next,F.next=g),c.interleaved=g,is(s,x)}function is(s,c){s.lanes|=c;var g=s.alternate;for(g!==null&&(g.lanes|=c),g=s,s=s.return;s!==null;)s.childLanes|=c,g=s.alternate,g!==null&&(g.childLanes|=c),g=s,s=s.return;return g.tag===3?g.stateNode:null}var wo=!1;function Zp(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Y0(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function ss(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function xo(s,c,g){var x=s.updateQueue;if(x===null)return null;if(x=x.shared,(pr&2)!==0){var F=x.pending;return F===null?c.next=c:(c.next=F.next,F.next=c),x.pending=c,is(s,g)}return F=x.interleaved,F===null?(c.next=c,Xv(x)):(c.next=F.next,F.next=c),x.interleaved=c,is(s,g)}function eh(s,c,g){if(c=c.updateQueue,c!==null&&(c=c.shared,(g&4194240)!==0)){var x=c.lanes;x&=s.pendingLanes,g|=x,c.lanes=g,Ad(s,g)}}function J0(s,c){var g=s.updateQueue,x=s.alternate;if(x!==null&&(x=x.updateQueue,g===x)){var F=null,D=null;if(g=g.firstBaseUpdate,g!==null){do{var H={eventTime:g.eventTime,lane:g.lane,tag:g.tag,payload:g.payload,callback:g.callback,next:null};D===null?F=D=H:D=D.next=H,g=g.next}while(g!==null);D===null?F=D=c:D=D.next=c}else F=D=c;g={baseState:x.baseState,firstBaseUpdate:F,lastBaseUpdate:D,shared:x.shared,effects:x.effects},s.updateQueue=g;return}s=g.lastBaseUpdate,s===null?g.firstBaseUpdate=c:s.next=c,g.lastBaseUpdate=c}function lc(s,c,g,x){var F=s.updateQueue;wo=!1;var D=F.firstBaseUpdate,H=F.lastBaseUpdate,ae=F.shared.pending;if(ae!==null){F.shared.pending=null;var fe=ae,je=fe.next;fe.next=null,H===null?D=je:H.next=je,H=fe;var Xe=s.alternate;Xe!==null&&(Xe=Xe.updateQueue,ae=Xe.lastBaseUpdate,ae!==H&&(ae===null?Xe.firstBaseUpdate=je:ae.next=je,Xe.lastBaseUpdate=fe))}if(D!==null){var Ze=F.baseState;H=0,Xe=je=fe=null,ae=D;do{var Ge=ae.lane,pt=ae.eventTime;if((x&Ge)===Ge){Xe!==null&&(Xe=Xe.next={eventTime:pt,lane:0,tag:ae.tag,payload:ae.payload,callback:ae.callback,next:null});e:{var xt=s,Rt=ae;switch(Ge=c,pt=g,Rt.tag){case 1:if(xt=Rt.payload,typeof xt=="function"){Ze=xt.call(pt,Ze,Ge);break e}Ze=xt;break e;case 3:xt.flags=xt.flags&-65537|128;case 0:if(xt=Rt.payload,Ge=typeof xt=="function"?xt.call(pt,Ze,Ge):xt,Ge==null)break e;Ze=te({},Ze,Ge);break e;case 2:wo=!0}}ae.callback!==null&&ae.lane!==0&&(s.flags|=64,Ge=F.effects,Ge===null?F.effects=[ae]:Ge.push(ae))}else pt={eventTime:pt,lane:Ge,tag:ae.tag,payload:ae.payload,callback:ae.callback,next:null},Xe===null?(je=Xe=pt,fe=Ze):Xe=Xe.next=pt,H|=Ge;if(ae=ae.next,ae===null){if(ae=F.shared.pending,ae===null)break;Ge=ae,ae=Ge.next,Ge.next=null,F.lastBaseUpdate=Ge,F.shared.pending=null}}while(!0);if(Xe===null&&(fe=Ze),F.baseState=fe,F.firstBaseUpdate=je,F.lastBaseUpdate=Xe,c=F.shared.interleaved,c!==null){F=c;do H|=F.lane,F=F.next;while(F!==c)}else D===null&&(F.shared.lanes=0);el|=H,s.lanes=H,s.memoizedState=Ze}}function Yv(s,c,g){if(s=c.effects,c.effects=null,s!==null)for(c=0;cg?g:4,s(!0);var x=tg.transition;tg.transition={};try{s(!1),c()}finally{wr=g,tg.transition=x}}function ug(){return So().memoizedState}function NS(s,c,g){var x=nl(s);if(g={lane:x,action:g,hasEagerState:!1,eagerState:null,next:null},cg(s))fa(c,g);else if(g=Jp(s,c,g,x),g!==null){var F=va();Xo(g,s,x,F),Wo(g,c,x)}}function a_(s,c,g){var x=nl(s),F={lane:x,action:g,hasEagerState:!1,eagerState:null,next:null};if(cg(s))fa(c,F);else{var D=s.alternate;if(s.lanes===0&&(D===null||D.lanes===0)&&(D=c.lastRenderedReducer,D!==null))try{var H=c.lastRenderedState,ae=D(H,g);if(F.hasEagerState=!0,F.eagerState=ae,Ie(ae,H)){var fe=c.interleaved;fe===null?(F.next=F,Xv(c)):(F.next=fe.next,fe.next=F),c.interleaved=F;return}}catch{}finally{}g=Jp(s,c,F,x),g!==null&&(F=va(),Xo(g,s,x,F),Wo(g,c,x))}}function cg(s){var c=s.alternate;return s===Qr||c!==null&&c===Qr}function fa(s,c){Zd=cc=!0;var g=s.pending;g===null?c.next=c:(c.next=g.next,g.next=c),s.pending=c}function Wo(s,c,g){if((g&4194240)!==0){var x=c.lanes;x&=s.pendingLanes,g|=x,c.lanes=g,Ad(s,g)}}var lh={readContext:_o,useCallback:ra,useContext:ra,useEffect:ra,useImperativeHandle:ra,useInsertionEffect:ra,useLayoutEffect:ra,useMemo:ra,useReducer:ra,useRef:ra,useState:ra,useDebugValue:ra,useDeferredValue:ra,useTransition:ra,useMutableSource:ra,useSyncExternalStore:ra,useId:ra,unstable_isNewReconciler:!1},BS={readContext:_o,useCallback:function(s,c){return Ei().memoizedState=[s,c===void 0?null:c],s},useContext:_o,useEffect:sh,useImperativeHandle:function(s,c,g){return g=g!=null?g.concat([s]):null,tf(4194308,4,sg.bind(null,c,s),g)},useLayoutEffect:function(s,c){return tf(4194308,4,s,c)},useInsertionEffect:function(s,c){return tf(4,2,s,c)},useMemo:function(s,c){var g=Ei();return c=c===void 0?null:c,s=s(),g.memoizedState=[s,c],s},useReducer:function(s,c,g){var x=Ei();return c=g!==void 0?g(c):c,x.memoizedState=x.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},x.queue=s,s=s.dispatch=NS.bind(null,Qr,s),[x.memoizedState,s]},useRef:function(s){var c=Ei();return s={current:s},c.memoizedState=s},useState:ef,useDebugValue:rf,useDeferredValue:function(s){return Ei().memoizedState=s},useTransition:function(){var s=ef(!1),c=s[0];return s=n_.bind(null,s[1]),Ei().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,g){var x=Qr,F=Ei();if(Br){if(g===void 0)throw Error(r(407));g=g()}else{if(g=c(),kn===null)throw Error(r(349));(Ys&30)!==0||og(x,c,g)}F.memoizedState=g;var D={value:g,getSnapshot:c};return F.queue=D,sh(us.bind(null,x,D,s),[s]),x.flags|=2048,fc(9,Ma.bind(null,x,D,g,c),void 0,null),g},useId:function(){var s=Ei(),c=kn.identifierPrefix;if(Br){var g=_i,x=bi;g=(x&~(1<<32-Pn(x)-1)).toString(32)+g,c=":"+c+"R"+g,g=Jl++,0<\/script>",s=s.removeChild(s.firstChild)):typeof x.is=="string"?s=H.createElement(g,{is:x.is}):(s=H.createElement(g),g==="select"&&(H=s,x.multiple?H.multiple=!0:x.size&&(H.size=x.size))):s=H.createElementNS(s,g),s[gi]=c,s[Ws]=x,Vn(s,c,!1,!1),c.stateNode=s;e:{switch(H=lr(g,x),g){case"dialog":Dr("cancel",s),Dr("close",s),F=x;break;case"iframe":case"object":case"embed":Dr("load",s),F=x;break;case"video":case"audio":for(F=0;Fru&&(c.flags|=128,x=!0,cf(D,!1),c.lanes=4194304)}else{if(!x)if(s=Yl(H),s!==null){if(c.flags|=128,x=!0,g=s.updateQueue,g!==null&&(c.updateQueue=g,c.flags|=4),cf(D,!0),D.tail===null&&D.tailMode==="hidden"&&!H.alternate&&!Br)return Wn(c),null}else 2*Sr()-D.renderingStartTime>ru&&g!==1073741824&&(c.flags|=128,x=!0,cf(D,!1),c.lanes=4194304);D.isBackwards?(H.sibling=c.child,c.child=H):(g=D.last,g!==null?g.sibling=H:c.child=H,D.last=H)}return D.tail!==null?(c=D.tail,D.rendering=c,D.tail=c.sibling,D.renderingStartTime=Sr(),c.sibling=null,g=Wr.current,Mr(Wr,x?g&1|2:g&1),c):(Wn(c),null);case 22:case 23:return jg(),x=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==x&&(c.flags|=8192),x&&(c.mode&1)!==0?(Ya&1073741824)!==0&&(Wn(c),c.subtreeFlags&6&&(c.flags|=8192)):Wn(c),null;case 24:return null;case 25:return null}throw Error(r(156,c.tag))}function qS(s,c){switch(Gl(c),c.tag){case 1:return Ia(c.type)&&Wp(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return Xs(),Nr(Aa),Nr(Zn),rh(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 5:return th(c),null;case 13:if(Nr(Wr),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));xi()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return Nr(Wr),null;case 4:return Xs(),null;case 10:return Yp(c.type._context),null;case 22:case 23:return jg(),null;case 24:return null;default:return null}}var gh=!1,Hr=!1,ha=typeof WeakSet=="function"?WeakSet:Set,vt=null;function yc(s,c){var g=s.ref;if(g!==null)if(typeof g=="function")try{g(null)}catch(x){Xr(s,c,x)}else g.current=null}function df(s,c,g){try{g()}catch(x){Xr(s,c,x)}}var d_=!1;function US(s,c){if(Ud=Sp,s=Rr(),Ld(s)){if("selectionStart"in s)var g={start:s.selectionStart,end:s.selectionEnd};else e:{g=(g=s.ownerDocument)&&g.defaultView||window;var x=g.getSelection&&g.getSelection();if(x&&x.rangeCount!==0){g=x.anchorNode;var F=x.anchorOffset,D=x.focusNode;x=x.focusOffset;try{g.nodeType,D.nodeType}catch{g=null;break e}var H=0,ae=-1,fe=-1,je=0,Xe=0,Ze=s,Ge=null;t:for(;;){for(var pt;Ze!==g||F!==0&&Ze.nodeType!==3||(ae=H+F),Ze!==D||x!==0&&Ze.nodeType!==3||(fe=H+x),Ze.nodeType===3&&(H+=Ze.nodeValue.length),(pt=Ze.firstChild)!==null;)Ge=Ze,Ze=pt;for(;;){if(Ze===s)break t;if(Ge===g&&++je===F&&(ae=H),Ge===D&&++Xe===x&&(fe=H),(pt=Ze.nextSibling)!==null)break;Ze=Ge,Ge=Ze.parentNode}Ze=pt}g=ae===-1||fe===-1?null:{start:ae,end:fe}}else g=null}g=g||{start:0,end:0}}else g=null;for(Vl={focusedElem:s,selectionRange:g},Sp=!1,vt=c;vt!==null;)if(c=vt,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,vt=s;else for(;vt!==null;){c=vt;try{var xt=c.alternate;if((c.flags&1024)!==0)switch(c.tag){case 0:case 11:case 15:break;case 1:if(xt!==null){var Rt=xt.memoizedProps,rn=xt.memoizedState,Re=c.stateNode,ye=Re.getSnapshotBeforeUpdate(c.elementType===c.type?Rt:Co(c.type,Rt),rn);Re.__reactInternalSnapshotBeforeUpdate=ye}break;case 3:var ke=c.stateNode.containerInfo;ke.nodeType===1?ke.textContent="":ke.nodeType===9&&ke.documentElement&&ke.removeChild(ke.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(tt){Xr(c,c.return,tt)}if(s=c.sibling,s!==null){s.return=c.return,vt=s;break}vt=c.return}return xt=d_,d_=!1,xt}function fs(s,c,g){var x=c.updateQueue;if(x=x!==null?x.lastEffect:null,x!==null){var F=x=x.next;do{if((F.tag&s)===s){var D=F.destroy;F.destroy=void 0,D!==void 0&&df(c,g,D)}F=F.next}while(F!==x)}}function ff(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var g=c=c.next;do{if((g.tag&s)===s){var x=g.create;g.destroy=x()}g=g.next}while(g!==c)}}function yh(s){var c=s.ref;if(c!==null){var g=s.stateNode;switch(s.tag){case 5:s=g;break;default:s=g}typeof c=="function"?c(s):c.current=s}}function f_(s){var c=s.alternate;c!==null&&(s.alternate=null,f_(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[gi],delete c[Ws],delete c[Up],delete c[Z],delete c[nc])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function p_(s){return s.tag===5||s.tag===3||s.tag===4}function h_(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||p_(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function xg(s,c,g){var x=s.tag;if(x===5||x===6)s=s.stateNode,c?g.nodeType===8?g.parentNode.insertBefore(s,c):g.insertBefore(s,c):(g.nodeType===8?(c=g.parentNode,c.insertBefore(s,g)):(c=g,c.appendChild(s)),g=g._reactRootContainer,g!=null||c.onclick!==null||(c.onclick=zp));else if(x!==4&&(s=s.child,s!==null))for(xg(s,c,g),s=s.sibling;s!==null;)xg(s,c,g),s=s.sibling}function bh(s,c,g){var x=s.tag;if(x===5||x===6)s=s.stateNode,c?g.insertBefore(s,c):g.appendChild(s);else if(x!==4&&(s=s.child,s!==null))for(bh(s,c,g),s=s.sibling;s!==null;)bh(s,c,g),s=s.sibling}var Rn=null,Ko=!1;function ki(s,c,g){for(g=g.child;g!==null;)Sg(s,c,g),g=g.sibling}function Sg(s,c,g){if(Ra&&typeof Ra.onCommitFiberUnmount=="function")try{Ra.onCommitFiberUnmount(Ji,g)}catch{}switch(g.tag){case 5:Hr||yc(g,c);case 6:var x=Rn,F=Ko;Rn=null,ki(s,c,g),Rn=x,Ko=F,Rn!==null&&(Ko?(s=Rn,g=g.stateNode,s.nodeType===8?s.parentNode.removeChild(g):s.removeChild(g)):Rn.removeChild(g.stateNode));break;case 18:Rn!==null&&(Ko?(s=Rn,g=g.stateNode,s.nodeType===8?Wv(s.parentNode,g):s.nodeType===1&&Wv(s,g),Cr(s)):Wv(Rn,g.stateNode));break;case 4:x=Rn,F=Ko,Rn=g.stateNode.containerInfo,Ko=!0,ki(s,c,g),Rn=x,Ko=F;break;case 0:case 11:case 14:case 15:if(!Hr&&(x=g.updateQueue,x!==null&&(x=x.lastEffect,x!==null))){F=x=x.next;do{var D=F,H=D.destroy;D=D.tag,H!==void 0&&((D&2)!==0||(D&4)!==0)&&df(g,c,H),F=F.next}while(F!==x)}ki(s,c,g);break;case 1:if(!Hr&&(yc(g,c),x=g.stateNode,typeof x.componentWillUnmount=="function"))try{x.props=g.memoizedProps,x.state=g.memoizedState,x.componentWillUnmount()}catch(ae){Xr(g,c,ae)}ki(s,c,g);break;case 21:ki(s,c,g);break;case 22:g.mode&1?(Hr=(x=Hr)||g.memoizedState!==null,ki(s,c,g),Hr=x):ki(s,c,g);break;default:ki(s,c,g)}}function bc(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var g=s.stateNode;g===null&&(g=s.stateNode=new ha),c.forEach(function(x){var F=XS.bind(null,s,x);g.has(x)||(g.add(x),x.then(F,F))})}}function Xa(s,c){var g=c.deletions;if(g!==null)for(var x=0;xF&&(F=H),x&=~D}if(x=F,x=Sr()-x,x=(120>x?120:480>x?480:1080>x?1080:1920>x?1920:3e3>x?3e3:4320>x?4320:1960*v_(x/1960))-x,10s?16:s,rl===null)var x=!1;else{if(s=rl,rl=null,ma=0,(pr&6)!==0)throw Error(r(331));var F=pr;for(pr|=4,vt=s.current;vt!==null;){var D=vt,H=D.child;if((vt.flags&16)!==0){var ae=D.deletions;if(ae!==null){for(var fe=0;feSr()-Pg?au(s,0):xh|=g),La(s,c)}function x_(s,c){c===0&&((s.mode&1)===0?c=1:(c=yp,yp<<=1,(yp&130023424)===0&&(yp=4194304)));var g=va();s=is(s,c),s!==null&&(Td(s,c,g),La(s,g))}function QS(s){var c=s.memoizedState,g=0;c!==null&&(g=c.retryLane),x_(s,g)}function XS(s,c){var g=0;switch(s.tag){case 13:var x=s.stateNode,F=s.memoizedState;F!==null&&(g=F.retryLane);break;case 19:x=s.stateNode;break;default:throw Error(r(314))}x!==null&&x.delete(c),x_(s,g)}var S_;S_=function(s,c,g){if(s!==null)if(s.memoizedProps!==c.pendingProps||Aa.current)pa=!0;else{if((s.lanes&g)===0&&(c.flags&128)===0)return pa=!1,u_(s,c,g);pa=(s.flags&131072)!==0}else pa=!1,Br&&(c.flags&1048576)!==0&&K0(c,Gp,c.index);switch(c.lanes=0,c.tag){case 2:var x=c.type;vh(s,c),s=c.pendingProps;var F=oc(c,Zn.current);Qs(c,g),F=Zl(null,c,x,s,F,g);var D=nh();return c.flags|=1,typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,Ia(x)?(D=!0,go(c)):D=!1,c.memoizedState=F.state!==null&&F.state!==void 0?F.state:null,Zp(c),F.updater=dh,c.stateNode=F,F._reactInternals=c,fg(c,x,s,g),c=bg(null,c,x,!0,D,g)):(c.tag=0,Br&&D&&Hd(c),Un(null,c,F,g),c=c.child),c;case 16:x=c.elementType;e:{switch(vh(s,c),s=c.pendingProps,F=x._init,x=F(x._payload),c.type=x,F=c.tag=JS(x),s=Co(x,s),F){case 0:c=gg(null,c,x,s,g);break e;case 1:c=yg(null,c,x,s,g);break e;case 11:c=s_(null,c,x,s,g);break e;case 14:c=hg(null,c,x,Co(x.type,s),g);break e}throw Error(r(306,x,""))}return c;case 0:return x=c.type,F=c.pendingProps,F=c.elementType===x?F:Co(x,F),gg(s,c,x,F,g);case 1:return x=c.type,F=c.pendingProps,F=c.elementType===x?F:Co(x,F),yg(s,c,x,F,g);case 3:e:{if(l_(c),s===null)throw Error(r(387));x=c.pendingProps,D=c.memoizedState,F=D.element,Y0(s,c),lc(c,x,null,g);var H=c.memoizedState;if(x=H.element,D.isDehydrated)if(D={element:x,isDehydrated:!1,cache:H.cache,pendingSuspenseBoundaries:H.pendingSuspenseBoundaries,transitions:H.transitions},c.updateQueue.baseState=D,c.memoizedState=D,c.flags&256){F=tu(Error(r(423)),c),c=Ri(s,c,x,g,F);break e}else if(x!==F){F=tu(Error(r(424)),c),c=Ri(s,c,x,g,F);break e}else for(Ga=Vs(c.stateNode.containerInfo.firstChild),ta=c,Br=!0,Vo=null,g=Xp(c,null,x,g),c.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling;else{if(xi(),x===F){c=Ho(s,c,g);break e}Un(s,c,x,g)}c=c.child}return c;case 5:return Zv(c),s===null&&ja(c),x=c.type,F=c.pendingProps,D=s!==null?s.memoizedProps:null,H=F.children,Vd(x,F)?H=null:D!==null&&Vd(x,D)&&(c.flags|=32),vg(s,c),Un(s,c,H,g),c.child;case 6:return s===null&&ja(c),null;case 13:return mh(s,c,g);case 4:return Jv(c,c.stateNode.containerInfo),x=c.pendingProps,s===null?c.child=Jr(c,null,x,g):Un(s,c,x,g),c.child;case 11:return x=c.type,F=c.pendingProps,F=c.elementType===x?F:Co(x,F),s_(s,c,x,F,g);case 7:return Un(s,c,c.pendingProps,g),c.child;case 8:return Un(s,c,c.pendingProps.children,g),c.child;case 12:return Un(s,c,c.pendingProps.children,g),c.child;case 10:e:{if(x=c.type._context,F=c.pendingProps,D=c.memoizedProps,H=F.value,Mr(Qd,x._currentValue),x._currentValue=H,D!==null)if(Ie(D.value,H)){if(D.children===F.children&&!Aa.current){c=Ho(s,c,g);break e}}else for(D=c.child,D!==null&&(D.return=c);D!==null;){var ae=D.dependencies;if(ae!==null){H=D.child;for(var fe=ae.firstContext;fe!==null;){if(fe.context===x){if(D.tag===1){fe=ss(-1,g&-g),fe.tag=2;var je=D.updateQueue;if(je!==null){je=je.shared;var Xe=je.pending;Xe===null?fe.next=fe:(fe.next=Xe.next,Xe.next=fe),je.pending=fe}}D.lanes|=g,fe=D.alternate,fe!==null&&(fe.lanes|=g),qn(D.return,g,c),ae.lanes|=g;break}fe=fe.next}}else if(D.tag===10)H=D.type===c.type?null:D.child;else if(D.tag===18){if(H=D.return,H===null)throw Error(r(341));H.lanes|=g,ae=H.alternate,ae!==null&&(ae.lanes|=g),qn(H,g,c),H=D.sibling}else H=D.child;if(H!==null)H.return=D;else for(H=D;H!==null;){if(H===c){H=null;break}if(D=H.sibling,D!==null){D.return=H.return,H=D;break}H=H.return}D=H}Un(s,c,F.children,g),c=c.child}return c;case 9:return F=c.type,x=c.pendingProps.children,Qs(c,g),F=_o(F),x=x(F),c.flags|=1,Un(s,c,x,g),c.child;case 14:return x=c.type,F=Co(x,c.pendingProps),F=Co(x.type,F),hg(s,c,x,F,g);case 15:return Pi(s,c,c.type,c.pendingProps,g);case 17:return x=c.type,F=c.pendingProps,F=c.elementType===x?F:Co(x,F),vh(s,c),c.tag=1,Ia(x)?(s=!0,go(c)):s=!1,Qs(c,g),eu(c,x,F),fg(c,x,F,g),bg(null,c,x,!0,s,g);case 19:return Js(s,c,g);case 22:return mg(s,c,g)}throw Error(r(156,c.tag))};function C_(s,c){return hi(s,c)}function YS(s,c,g,x){this.tag=s,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oo(s,c,g,x){return new YS(s,c,g,x)}function kh(s){return s=s.prototype,!(!s||!s.isReactComponent)}function JS(s){if(typeof s=="function")return kh(s)?1:0;if(s!=null){if(s=s.$$typeof,s===B)return 11;if(s===W)return 14}return 2}function Yo(s,c){var g=s.alternate;return g===null?(g=Oo(s.tag,c,s.key,s.mode),g.elementType=s.elementType,g.type=s.type,g.stateNode=s.stateNode,g.alternate=s,s.alternate=g):(g.pendingProps=c,g.type=s.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=s.flags&14680064,g.childLanes=s.childLanes,g.lanes=s.lanes,g.child=s.child,g.memoizedProps=s.memoizedProps,g.memoizedState=s.memoizedState,g.updateQueue=s.updateQueue,c=s.dependencies,g.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},g.sibling=s.sibling,g.index=s.index,g.ref=s.ref,g}function Th(s,c,g,x,F,D){var H=2;if(x=s,typeof s=="function")kh(s)&&(H=1);else if(typeof s=="string")H=5;else e:switch(s){case L:return iu(g.children,F,D,c);case j:H=8,F|=8;break;case M:return s=Oo(12,g,c,F|2),s.elementType=M,s.lanes=D,s;case z:return s=Oo(13,g,c,F),s.elementType=z,s.lanes=D,s;case U:return s=Oo(19,g,c,F),s.elementType=U,s.lanes=D,s;case V:return Ah(g,F,D,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case k:H=10;break e;case $:H=9;break e;case B:H=11;break e;case W:H=14;break e;case Q:H=16,x=null;break e}throw Error(r(130,s==null?s:typeof s,""))}return c=Oo(H,g,c,F),c.elementType=s,c.type=x,c.lanes=D,c}function iu(s,c,g,x){return s=Oo(7,s,x,c),s.lanes=g,s}function Ah(s,c,g,x){return s=Oo(22,s,x,c),s.elementType=V,s.lanes=g,s.stateNode={isHidden:!1},s}function Fg(s,c,g){return s=Oo(6,s,null,c),s.lanes=g,s}function Lg(s,c,g){return c=Oo(4,s.children!==null?s.children:[],s.key,c),c.lanes=g,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function ZS(s,c,g,x,F){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=kd(0),this.expirationTimes=kd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kd(0),this.identifierPrefix=x,this.onRecoverableError=F,this.mutableSourceEagerHydrationData=null}function $g(s,c,g,x,F,D,H,ae,fe){return s=new ZS(s,c,g,ae,fe),c===1?(c=1,D===!0&&(c|=8)):c=0,D=Oo(3,null,null,c),s.current=D,D.stateNode=s,D.memoizedState={element:x,isDehydrated:g,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zp(D),s}function eC(s,c,g){var x=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),_C.exports=lH(),_C.exports}var nM;function uH(){if(nM)return j_;nM=1;var e=$5();return j_.createRoot=e.createRoot,j_.hydrateRoot=e.hydrateRoot,j_}var cH=uH(),oy={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 + */var dH=oy.exports,aM;function fH(){return aM||(aM=1,function(e,t){(function(){var r,n="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",u="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",l=500,h="__lodash_placeholder__",v=1,y=2,b=4,_=1,w=2,S=1,A=2,R=4,C=8,O=16,T=32,E=64,L=128,j=256,M=512,k=30,$="...",B=800,z=16,U=1,W=2,Q=3,V=1/0,K=9007199254740991,X=17976931348623157e292,te=NaN,G=4294967295,J=G-1,de=G>>>1,ce=[["ary",L],["bind",S],["bindKey",A],["curry",C],["curryRight",O],["flip",M],["partial",T],["partialRight",E],["rearg",j]],ue="[object Arguments]",be="[object Array]",Pe="[object AsyncFunction]",Ee="[object Boolean]",ge="[object Date]",xe="[object DOMException]",Oe="[object Error]",Te="[object Function]",Me="[object GeneratorFunction]",Fe="[object Map]",$e="[object Number]",et="[object Null]",qe="[object Object]",re="[object Promise]",oe="[object Proxy]",pe="[object RegExp]",Se="[object Set]",ne="[object String]",we="[object Symbol]",Ne="[object Undefined]",De="[object WeakMap]",ht="[object WeakSet]",lt="[object ArrayBuffer]",bt="[object DataView]",Pt="[object Float32Array]",Tt="[object Float64Array]",Je="[object Int8Array]",Dt="[object Int16Array]",Lt="[object Int32Array]",Ct="[object Uint8Array]",ct="[object Uint8ClampedArray]",Kt="[object Uint16Array]",lr="[object Uint32Array]",en=/\b__p \+= '';/g,Bn=/\b(__p \+=) '' \+/g,Xi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pa=/&(?:amp|lt|gt|quot|#39);/g,ia=/[&<>"']/g,Yi=RegExp(Pa.source),Bo=RegExp(ia.source),zo=/<%-([\s\S]+?)%>/g,Is=/<%([\s\S]+?)%>/g,Ht=/<%=([\s\S]+?)%>/g,le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ie=/^\w*$/,me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Ke=RegExp(Le.source),at=/^\s+/,Et=/\s/,ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ot=/\{\n\/\* \[wrapped with (.+)\] \*/,At=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ft=/[()=,{}\[\]\/\s]/,Xt=/\\(\\)?/g,ur=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Gr=/\w*$/,bn=/^[-+]0x[0-9a-f]+$/i,sa=/^0b[01]+$/i,ir=/^\[object .+?Constructor\]$/,js=/^0o[0-7]+$/i,hi=/^(?:0|[1-9]\d*)$/,Ms=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zn=/($^)/,Fl=/['\n\r\u2028\u2029\\]/g,Sr="\\ud800-\\udfff",Pd="\\u0300-\\u036f",qo="\\ufe20-\\ufe2f",Ll="\\u20d0-\\u20ff",cr=Pd+qo+Ll,la="\\u2700-\\u27bf",ho="a-z\\xdf-\\xf6\\xf8-\\xff",Ji="\\xac\\xb1\\xd7\\xf7",Ra="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Yr="\\u2000-\\u206f",Pn=" \\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",Rd="A-Z\\xc0-\\xd6\\xd8-\\xde",gp="\\ufe0e\\ufe0f",h0=Ji+Ra+Yr+Pn,Bu="['’]",yp="["+Sr+"]",zu="["+h0+"]",$l="["+cr+"]",m0="\\d+",_S="["+la+"]",bp="["+ho+"]",Sv="[^"+Sr+h0+m0+la+ho+Rd+"]",kd="\\ud83c[\\udffb-\\udfff]",Td="(?:"+$l+"|"+kd+")",v0="[^"+Sr+"]",Ad="(?:\\ud83c[\\udde6-\\uddff]){2}",wr="[\\ud800-\\udbff][\\udc00-\\udfff]",Dl="["+Rd+"]",Cv="\\u200d",_p="(?:"+bp+"|"+Sv+")",g0="(?:"+Dl+"|"+Sv+")",Ev="(?:"+Bu+"(?:d|ll|m|re|s|t|ve))?",Ov="(?:"+Bu+"(?:D|LL|M|RE|S|T|VE))?",wp=Td+"?",Id="["+gp+"]?",Fs="(?:"+Cv+"(?:"+[v0,Ad,wr].join("|")+")"+Id+wp+")*",Ls="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$s="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",qu=Id+wp+Fs,jd="(?:"+[_S,Ad,wr].join("|")+")"+qu,Ds="(?:"+[v0+$l+"?",$l,Ad,wr,yp].join("|")+")",wS=RegExp(Bu,"g"),y0=RegExp($l,"g"),Nl=RegExp(kd+"(?="+kd+")|"+Ds+qu,"g"),xS=RegExp([Dl+"?"+bp+"+"+Ev+"(?="+[zu,Dl,"$"].join("|")+")",g0+"+"+Ov+"(?="+[zu,Dl+_p,"$"].join("|")+")",Dl+"?"+_p+"+"+Ev,Dl+"+"+Ov,$s,Ls,m0,jd].join("|"),"g"),b0=RegExp("["+Cv+Sr+cr+gp+"]"),xp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_0=["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"],SS=-1,Er={};Er[Pt]=Er[Tt]=Er[Je]=Er[Dt]=Er[Lt]=Er[Ct]=Er[ct]=Er[Kt]=Er[lr]=!0,Er[ue]=Er[be]=Er[lt]=Er[Ee]=Er[bt]=Er[ge]=Er[Oe]=Er[Te]=Er[Fe]=Er[$e]=Er[qe]=Er[pe]=Er[Se]=Er[ne]=Er[De]=!1;var Cr={};Cr[ue]=Cr[be]=Cr[lt]=Cr[bt]=Cr[Ee]=Cr[ge]=Cr[Pt]=Cr[Tt]=Cr[Je]=Cr[Dt]=Cr[Lt]=Cr[Fe]=Cr[$e]=Cr[qe]=Cr[pe]=Cr[Se]=Cr[ne]=Cr[we]=Cr[Ct]=Cr[ct]=Cr[Kt]=Cr[lr]=!0,Cr[Oe]=Cr[Te]=Cr[De]=!1;var Uu={À:"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"},Sp={"&":"&","<":"<",">":">",'"':""","'":"'"},CS={"&":"&","<":"<",">":">",""":'"',"'":"'"},ES={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pv=parseFloat,Cp=parseInt,Ep=typeof Ou=="object"&&Ou&&Ou.Object===Object&&Ou,w0=typeof self=="object"&&self&&self.Object===Object&&self,Vr=Ep||w0||Function("return this")(),Md=t&&!t.nodeType&&t,mi=Md&&!0&&e&&!e.nodeType&&e,Rv=mi&&mi.exports===Md,Vu=Rv&&Ep.process,ua=function(){try{var _e=mi&&mi.require&&mi.require("util").types;return _e||Vu&&Vu.binding&&Vu.binding("util")}catch{}}(),kv=ua&&ua.isArrayBuffer,ka=ua&&ua.isDate,Bl=ua&&ua.isMap,Op=ua&&ua.isRegExp,Wu=ua&&ua.isSet,x0=ua&&ua.isTypedArray;function ca(_e,Be,Ie){switch(Ie.length){case 0:return _e.call(Be);case 1:return _e.call(Be,Ie[0]);case 2:return _e.call(Be,Ie[0],Ie[1]);case 3:return _e.call(Be,Ie[0],Ie[1],Ie[2])}return _e.apply(Be,Ie)}function Tv(_e,Be,Ie,ft){for(var Gt=-1,yr=_e==null?0:_e.length;++Gt-1}function Iv(_e,Be,Ie){for(var ft=-1,Gt=_e==null?0:_e.length;++ft-1;);return Ie}function Nv(_e,Be){for(var Ie=_e.length;Ie--&&Hu(Be,_e[Ie],0)>-1;);return Ie}function T0(_e,Be){for(var Ie=_e.length,ft=0;Ie--;)_e[Ie]===Be&&++ft;return ft}var A0=Tp(Uu),I0=Tp(Sp);function j0(_e){return"\\"+ES[_e]}function Ku(_e,Be){return _e==null?r:_e[Be]}function Gu(_e){return b0.test(_e)}function AS(_e){return xp.test(_e)}function IS(_e){for(var Be,Ie=[];!(Be=_e.next()).done;)Ie.push(Be.value);return Ie}function Ap(_e){var Be=-1,Ie=Array(_e.size);return _e.forEach(function(ft,Gt){Ie[++Be]=[Gt,ft]}),Ie}function Bv(_e,Be){return function(Ie){return _e(Be(Ie))}}function mo(_e,Be){for(var Ie=-1,ft=_e.length,Gt=0,yr=[];++Ie-1}function V0(f,m){var P=this.__data__,N=ta(P,f);return N<0?(++this.size,P.push([f,m])):P[N][1]=m,this}da.prototype.clear=oc,da.prototype.delete=Ia,da.prototype.get=Wp,da.prototype.has=U0,da.prototype.set=V0;function go(f){var m=-1,P=f==null?0:f.length;for(this.clear();++m=m?f:m)),f}function ja(f,m,P,N,q,ee){var se,he=m&v,Ce=m&y,Ve=m&b;if(P&&(se=q?P(f,N,q,ee):P(f)),se!==r)return se;if(!nn(f))return f;var We=Jt(f);if(We){if(se=cf(f),!he)return fa(f,se)}else{var Ye=Vn(f),dt=Ye==Te||Ye==Me;if(xc(f))return lg(f,he);if(Ye==qe||Ye==ue||dt&&!q){if(se=Ce||dt?{}:Wn(f),!he)return Ce?BS(f,Vo(se,f)):lh(f,Br(se,f))}else{if(!Cr[Ye])return q?f:{};se=zS(f,Ye,he)}}ee||(ee=new ea);var It=ee.get(f);if(It)return It;ee.set(f,se),jj(f)?f.forEach(function(Wt){se.add(ja(Wt,m,P,Wt,f,ee))}):Aj(f)&&f.forEach(function(Wt,sr){se.set(sr,ja(Wt,m,P,sr,f,ee))});var Vt=Ve?Ce?sf:of:Ce?Ro:aa,nr=We?r:Vt(f);return Xn(nr||f,function(Wt,sr){nr&&(sr=Wt,Wt=f[sr]),Gl(se,sr,ja(Wt,m,P,sr,f,ee))}),se}function G0(f){var m=aa(f);return function(P){return Kd(P,f,m)}}function Kd(f,m,P){var N=P.length;if(f==null)return!N;for(f=Rr(f);N--;){var q=P[N],ee=m[q],se=f[q];if(se===r&&!(q in f)||!ee(se))return!1}return!0}function Gv(f,m,P){if(typeof f!="function")throw new vo(i);return bc(function(){f.apply(r,P)},m)}function xi(f,m,P,N){var q=-1,ee=Rp,se=!0,he=f.length,Ce=[],Ve=m.length;if(!he)return Ce;P&&(m=jr(m,Wa(P))),N?(ee=Iv,se=!1):m.length>=a&&(ee=Zi,se=!1,m=new Wl(m));e:for(;++qq?0:q+P),N=N===r||N>q?q:rr(N),N<0&&(N+=q),N=P>N?0:Fj(N);P0&&P(he)?m>1?Jr(he,m-1,P,N,q):Bs(q,he):N||(q[q.length]=he)}return q}var Xp=ch(),Qd=ch(!0);function Qa(f,m){return f&&Xp(f,m,aa)}function Gs(f,m){return f&&Qd(f,m,aa)}function sc(f,m){return Ns(m,function(P){return lu(f[P])})}function os(f,m){m=Oi(m,f);for(var P=0,N=m.length;f!=null&&Pm}function _o(f,m){return f!=null&&br.call(f,m)}function Xl(f,m){return f!=null&&m in Rr(f)}function Xv(f,m,P){return f>=Yn(m,P)&&f=120&&We.length>=120)?new Wl(se&&We):r}We=f[0];var Ye=-1,dt=he[0];e:for(;++Ye-1;)he!==f&&Dp.call(he,Ce,1),Dp.call(f,Ce,1);return f}function _n(f,m){for(var P=f?m.length:0,N=P-1;P--;){var q=m[P];if(P==N||q!==ee){var ee=q;Hr(q)?Dp.call(f,q,1):oh(f,q)}}return f}function cc(f,m){return f+qs(qd()*(m-f+1))}function Zd(f,m,P,N){for(var q=-1,ee=sn(Ul((m-f)/(P||1)),0),se=Ie(ee);ee--;)se[N?ee:++q]=f,f+=P;return se}function Jl(f,m){var P="";if(!f||m<1||m>K)return P;do m%2&&(P+=f),m=qs(m/2),m&&(f+=f);while(m);return P}function tr(f,m){return Xa(bh(f,m,ko),f+"")}function ra(f){return _i(Dh(f))}function rg(f,m){var P=Dh(f);return _h(P,as(m,0,P.length))}function Zl(f,m,P,N){if(!nn(f))return f;m=Oi(m,f);for(var q=-1,ee=m.length,se=ee-1,he=f;he!=null&&++qq?0:q+m),P=P>q?q:P,P<0&&(P+=q),q=m>P?0:P-m>>>0,m>>>=0;for(var ee=Ie(q);++N>>1,se=f[ee];se!==null&&!Jo(se)&&(P?se<=m:se=a){var Ve=m?null:s_(f);if(Ve)return zs(Ve);se=!1,q=Zi,Ce=new Wl}else Ce=m?[]:he;e:for(;++N=N?f:na(f,m,P)}var sg=B0||function(f){return Vr.clearTimeout(f)};function lg(f,m){if(m)return f.slice();var P=f.length,N=qv?qv(P):new f.constructor(P);return f.copy(N),N}function rf(f){var m=new f.constructor(f.byteLength);return new Bd(m).set(new Bd(f)),m}function e_(f,m){var P=m?rf(f.buffer):f.buffer;return new f.constructor(P,f.byteOffset,f.byteLength)}function t_(f){var m=new f.constructor(f.source,Gr.exec(f));return m.lastIndex=f.lastIndex,m}function r_(f){return Ka?Rr(Ka.call(f)):{}}function n_(f,m){var P=m?rf(f.buffer):f.buffer;return new f.constructor(P,f.byteOffset,f.length)}function ug(f,m){if(f!==m){var P=f!==r,N=f===null,q=f===f,ee=Jo(f),se=m!==r,he=m===null,Ce=m===m,Ve=Jo(m);if(!he&&!Ve&&!ee&&f>m||ee&&se&&Ce&&!he&&!Ve||N&&se&&Ce||!P&&Ce||!q)return 1;if(!N&&!ee&&!Ve&&f=he)return Ce;var Ve=P[N];return Ce*(Ve=="desc"?-1:1)}}return f.index-m.index}function a_(f,m,P,N){for(var q=-1,ee=f.length,se=P.length,he=-1,Ce=m.length,Ve=sn(ee-se,0),We=Ie(Ce+Ve),Ye=!N;++he1?P[q-1]:r,se=q>2?P[2]:r;for(ee=f.length>3&&typeof ee=="function"?(q--,ee):r,se&&ha(P[0],P[1],se)&&(ee=q<3?r:ee,q=1),m=Rr(m);++N-1?q[ee?m[se]:se]:r}}function fh(f){return Ri(function(m){var P=m.length,N=P,q=Jn.prototype.thru;for(f&&m.reverse();N--;){var ee=m[N];if(typeof ee!="function")throw new vo(i);if(q&&!se&&gc(ee)=="wrapper")var se=new Jn([],!0)}for(N=se?N:P;++N1&&hr.reverse(),We&&Cehe))return!1;var Ve=ee.get(f),We=ee.get(m);if(Ve&&We)return Ve==m&&We==f;var Ye=-1,dt=!0,It=P&w?new Wl:r;for(ee.set(f,m),ee.set(m,f);++Ye1?"& ":"")+m[N],m=m.join(P>2?", ":" "),f.replace(ut,`{ +/* [wrapped with `+m+`] */ +`)}function gh(f){return Jt(f)||_f(f)||!!(N0&&f&&f[N0])}function Hr(f,m){var P=typeof f;return m=m??K,!!m&&(P=="number"||P!="symbol"&&hi.test(f))&&f>-1&&f%1==0&&f0){if(++m>=B)return arguments[0]}else m=0;return f.apply(r,arguments)}}function _h(f,m){var P=-1,N=f.length,q=N-1;for(m=m===r?N:m;++P1?f[m-1]:r;return P=typeof P=="function"?(f.pop(),P):r,Xr(f,P)});function kh(f){var m=Z(f);return m.__chain__=!0,m}function JS(f,m){return m(f),f}function Yo(f,m){return m(f)}var Th=Ri(function(f){var m=f.length,P=m?f[0]:0,N=this.__wrapped__,q=function(ee){return Qp(ee,f)};return m>1||this.__actions__.length||!(N instanceof Yt)||!Hr(P)?this.thru(q):(N=N.slice(P,+P+(m?1:0)),N.__actions__.push({func:Yo,args:[q],thisArg:r}),new Jn(N,this.__chain__).thru(function(ee){return m&&!ee.length&&ee.push(r),ee}))});function iu(){return kh(this)}function Ah(){return new Jn(this.value(),this.__chain__)}function Fg(){this.__values__===r&&(this.__values__=Mj(this.value()));var f=this.__index__>=this.__values__.length,m=f?r:this.__values__[this.__index__++];return{done:f,value:m}}function Lg(){return this}function ZS(f){for(var m,P=this;P instanceof yi;){var N=v_(P);N.__index__=0,N.__values__=r,m?q.__wrapped__=N:m=N;var q=N;P=P.__wrapped__}return q.__wrapped__=f,m}function $g(){var f=this.__wrapped__;if(f instanceof Yt){var m=f;return this.__actions__.length&&(m=new Yt(this)),m=m.reverse(),m.__actions__.push({func:Yo,args:[Oh],thisArg:r}),new Jn(m,this.__chain__)}return this.thru(Oh)}function eC(){return fc(this.__wrapped__,this.__actions__)}var E_=uh(function(f,m,P){br.call(f,P)?++f[P]:wi(f,P,1)});function O_(f,m,P){var N=Jt(f)?Av:Gd;return P&&ha(f,m,P)&&(m=r),N(f,Bt(m,3))}function Ih(f,m){var P=Jt(f)?Ns:Qv;return P(f,Bt(m,3))}var jh=tu(el),P_=tu(hf);function Dg(f,m){return Jr(su(f,m),1)}function tC(f,m){return Jr(su(f,m),V)}function R_(f,m,P){return P=P===r?1:rr(P),Jr(su(f,m),P)}function Mh(f,m){var P=Jt(f)?Xn:Si;return P(f,Bt(m,3))}function yf(f,m){var P=Jt(f)?Pp:Q0;return P(f,Bt(m,3))}var Ng=uh(function(f,m,P){br.call(f,P)?f[P].push(m):wi(f,P,[m])});function Fh(f,m,P,N){f=Po(f)?f:Dh(f),P=P&&!N?rr(P):0;var q=f.length;return P<0&&(P=sn(q+P,0)),A_(f)?P<=q&&f.indexOf(m,P)>-1:!!q&&Hu(f,m,P)>-1}var k_=tr(function(f,m,P){var N=-1,q=typeof m=="function",ee=Po(f)?Ie(f.length):[];return Si(f,function(se){ee[++N]=q?ca(m,se,P):wo(se,m,P)}),ee}),rC=uh(function(f,m,P){wi(f,P,m)});function su(f,m){var P=Jt(f)?jr:Zv;return P(f,Bt(m,3))}function nC(f,m,P,N){return f==null?[]:(Jt(m)||(m=m==null?[]:[m]),P=N?r:P,Jt(P)||(P=P==null?[]:[P]),Jd(f,m,P))}var bf=uh(function(f,m,P){f[P?0:1].push(m)},function(){return[[],[]]});function aC(f,m,P){var N=Jt(f)?jv:P0,q=arguments.length<3;return N(f,Bt(m,4),P,q,Si)}function Lh(f,m,P){var N=Jt(f)?OS:P0,q=arguments.length<3;return N(f,Bt(m,4),P,q,Q0)}function s(f,m){var P=Jt(f)?Ns:Qv;return P(f,tt(Bt(m,3)))}function c(f){var m=Jt(f)?_i:ra;return m(f)}function g(f,m,P){(P?ha(f,m,P):m===r)?m=1:m=rr(m);var N=Jt(f)?Kl:rg;return N(f,m)}function x(f){var m=Jt(f)?K0:So;return m(f)}function F(f){if(f==null)return 0;if(Po(f))return A_(f)?zl(f):f.length;var m=Vn(f);return m==Fe||m==Se?f.size:ls(f).length}function D(f,m,P){var N=Jt(f)?Mv:ng;return P&&ha(f,m,P)&&(m=r),N(f,Bt(m,3))}var H=tr(function(f,m){if(f==null)return[];var P=m.length;return P>1&&ha(f,m[0],m[1])?m=[]:P>2&&ha(m[0],m[1],m[2])&&(m=[m[0]]),Jd(f,Jr(m,1),[])}),ae=Dr||function(){return Vr.Date.now()};function fe(f,m){if(typeof m!="function")throw new vo(i);return f=rr(f),function(){if(--f<1)return m.apply(this,arguments)}}function je(f,m,P){return m=P?r:m,m=f&&m==null?f.length:m,Pi(f,L,r,r,r,r,m)}function Xe(f,m){var P;if(typeof m!="function")throw new vo(i);return f=rr(f),function(){return--f>0&&(P=m.apply(this,arguments)),f<=1&&(m=r),P}}var Ze=tr(function(f,m,P){var N=S;if(P.length){var q=mo(P,ds(Ze));N|=T}return Pi(f,N,m,P,q)}),Ge=tr(function(f,m,P){var N=S|A;if(P.length){var q=mo(P,ds(Ge));N|=T}return Pi(m,N,f,P,q)});function pt(f,m,P){m=P?r:m;var N=Pi(f,C,r,r,r,r,r,m);return N.placeholder=pt.placeholder,N}function xt(f,m,P){m=P?r:m;var N=Pi(f,O,r,r,r,r,r,m);return N.placeholder=xt.placeholder,N}function Rt(f,m,P){var N,q,ee,se,he,Ce,Ve=0,We=!1,Ye=!1,dt=!0;if(typeof f!="function")throw new vo(i);m=Ti(m)||0,nn(P)&&(We=!!P.leading,Ye="maxWait"in P,ee=Ye?sn(Ti(P.maxWait)||0,m):ee,dt="trailing"in P?!!P.trailing:dt);function It(Sn){var ms=N,cu=q;return N=q=r,Ve=Sn,se=f.apply(cu,ms),se}function Vt(Sn){return Ve=Sn,he=bc(sr,m),We?It(Sn):se}function nr(Sn){var ms=Sn-Ce,cu=Sn-Ve,Kj=m-ms;return Ye?Yn(Kj,ee-cu):Kj}function Wt(Sn){var ms=Sn-Ce,cu=Sn-Ve;return Ce===r||ms>=m||ms<0||Ye&&cu>=ee}function sr(){var Sn=ae();if(Wt(Sn))return hr(Sn);he=bc(sr,nr(Sn))}function hr(Sn){return he=r,dt&&N?It(Sn):(N=q=r,se)}function Zo(){he!==r&&sg(he),Ve=0,N=Ce=q=he=r}function Ja(){return he===r?se:hr(ae())}function ei(){var Sn=ae(),ms=Wt(Sn);if(N=arguments,q=this,Ce=Sn,ms){if(he===r)return Vt(Ce);if(Ye)return sg(he),he=bc(sr,m),It(Ce)}return he===r&&(he=bc(sr,m)),se}return ei.cancel=Zo,ei.flush=Ja,ei}var rn=tr(function(f,m){return Gv(f,1,m)}),Re=tr(function(f,m,P){return Gv(f,Ti(m)||0,P)});function ye(f){return Pi(f,M)}function ke(f,m){if(typeof f!="function"||m!=null&&typeof m!="function")throw new vo(i);var P=function(){var N=arguments,q=m?m.apply(this,N):N[0],ee=P.cache;if(ee.has(q))return ee.get(q);var se=f.apply(this,N);return P.cache=ee.set(q,se)||ee,se};return P.cache=new(ke.Cache||go),P}ke.Cache=go;function tt(f){if(typeof f!="function")throw new vo(i);return function(){var m=arguments;switch(m.length){case 0:return!f.call(this);case 1:return!f.call(this,m[0]);case 2:return!f.call(this,m[0],m[1]);case 3:return!f.call(this,m[0],m[1],m[2])}return!f.apply(this,m)}}function kt(f){return Xe(2,f)}var Nt=Z0(function(f,m){m=m.length==1&&Jt(m[0])?jr(m[0],Wa(Bt())):jr(Jr(m,1),Wa(Bt()));var P=m.length;return tr(function(N){for(var q=-1,ee=Yn(N.length,P);++q=m}),_f=Zp(function(){return arguments}())?Zp:function(f){return un(f)&&br.call(f,"callee")&&!$p.call(f,"callee")},Jt=Ie.isArray,z8=kv?Wa(kv):Y0;function Po(f){return f!=null&&T_(f.length)&&!lu(f)}function xn(f){return un(f)&&Po(f)}function q8(f){return f===!0||f===!1||un(f)&&qn(f)==Ee}var xc=Vv||vC,U8=ka?Wa(ka):ss;function V8(f){return un(f)&&f.nodeType===1&&!Bg(f)}function W8(f){if(f==null)return!0;if(Po(f)&&(Jt(f)||typeof f=="string"||typeof f.splice=="function"||xc(f)||$h(f)||_f(f)))return!f.length;var m=Vn(f);if(m==Fe||m==Se)return!f.size;if(fs(f))return!ls(f).length;for(var P in f)if(br.call(f,P))return!1;return!0}function H8(f,m){return xo(f,m)}function K8(f,m,P){P=typeof P=="function"?P:r;var N=P?P(f,m):r;return N===r?xo(f,m,r,P):!!N}function iC(f){if(!un(f))return!1;var m=qn(f);return m==Oe||m==xe||typeof f.message=="string"&&typeof f.name=="string"&&!Bg(f)}function G8(f){return typeof f=="number"&&Ju(f)}function lu(f){if(!nn(f))return!1;var m=qn(f);return m==Te||m==Me||m==Pe||m==oe}function Tj(f){return typeof f=="number"&&f==rr(f)}function T_(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=K}function nn(f){var m=typeof f;return f!=null&&(m=="object"||m=="function")}function un(f){return f!=null&&typeof f=="object"}var Aj=Bl?Wa(Bl):J0;function Q8(f,m){return f===m||lc(f,m,uf(m))}function X8(f,m,P){return P=typeof P=="function"?P:r,lc(f,m,uf(m),P)}function Y8(f){return Ij(f)&&f!=+f}function J8(f){if(US(f))throw new Gt(o);return Yv(f)}function Z8(f){return f===null}function eV(f){return f==null}function Ij(f){return typeof f=="number"||un(f)&&qn(f)==$e}function Bg(f){if(!un(f)||qn(f)!=qe)return!1;var m=Uo(f);if(m===null)return!0;var P=br.call(m,"constructor")&&m.constructor;return typeof P=="function"&&P instanceof P&&$d.call(P)==Fp}var sC=Op?Wa(Op):Xd;function tV(f){return Tj(f)&&f>=-9007199254740991&&f<=K}var jj=Wu?Wa(Wu):Ci;function A_(f){return typeof f=="string"||!Jt(f)&&un(f)&&qn(f)==ne}function Jo(f){return typeof f=="symbol"||un(f)&&qn(f)==we}var $h=x0?Wa(x0):Yd;function rV(f){return f===r}function nV(f){return un(f)&&Vn(f)==De}function aV(f){return un(f)&&qn(f)==ht}var oV=hh(Xs),iV=hh(function(f,m){return f<=m});function Mj(f){if(!f)return[];if(Po(f))return A_(f)?Ha(f):fa(f);if(rs&&f[rs])return IS(f[rs]());var m=Vn(f),P=m==Fe?Ap:m==Se?zs:Dh;return P(f)}function uu(f){if(!f)return f===0?f:0;if(f=Ti(f),f===V||f===-1/0){var m=f<0?-1:1;return m*X}return f===f?f:0}function rr(f){var m=uu(f),P=m%1;return m===m?P?m-P:m:0}function Fj(f){return f?as(rr(f),0,G):0}function Ti(f){if(typeof f=="number")return f;if(Jo(f))return te;if(nn(f)){var m=typeof f.valueOf=="function"?f.valueOf():f;f=nn(m)?m+"":m}if(typeof f!="string")return f===0?f:+f;f=R0(f);var P=sa.test(f);return P||js.test(f)?Cp(f.slice(2),P?2:8):bn.test(f)?te:+f}function Lj(f){return Wo(f,Ro(f))}function sV(f){return f?as(rr(f),-9007199254740991,K):f===0?f:0}function kr(f){return f==null?"":Ma(f)}var lV=hc(function(f,m){if(fs(m)||Po(m)){Wo(m,aa(m),f);return}for(var P in m)br.call(m,P)&&Gl(f,P,m[P])}),$j=hc(function(f,m){Wo(m,Ro(m),f)}),I_=hc(function(f,m,P,N){Wo(m,Ro(m),f,N)}),uV=hc(function(f,m,P,N){Wo(m,aa(m),f,N)}),cV=Ri(Qp);function dV(f,m){var P=nc(f);return m==null?P:Br(P,m)}var fV=tr(function(f,m){f=Rr(f);var P=-1,N=m.length,q=N>2?m[2]:r;for(q&&ha(m[0],m[1],q)&&(N=1);++P1),ee}),Wo(f,sf(f),P),N&&(P=ja(P,v|y|b,gg));for(var q=m.length;q--;)oh(P,m[q]);return P});function TV(f,m){return Nj(f,tt(Bt(m)))}var AV=Ri(function(f,m){return f==null?{}:tg(f,m)});function Nj(f,m){if(f==null)return{};var P=jr(sf(f),function(N){return[N]});return m=Bt(m),Ys(f,P,function(N,q){return m(N,q[0])})}function IV(f,m,P){m=Oi(m,f);var N=-1,q=m.length;for(q||(q=1,f=r);++Nm){var N=f;f=m,m=N}if(P||f%1||m%1){var q=qd();return Yn(f+q*(m-f+Pv("1e-"+((q+"").length-1))),m)}return cc(f,m)}var UV=eu(function(f,m,P){return m=m.toLowerCase(),f+(P?qj(m):m)});function qj(f){return cC(kr(f).toLowerCase())}function Uj(f){return f=kr(f),f&&f.replace(Ms,A0).replace(y0,"")}function VV(f,m,P){f=kr(f),m=Ma(m);var N=f.length;P=P===r?N:as(rr(P),0,N);var q=P;return P-=m.length,P>=0&&f.slice(P,q)==m}function WV(f){return f=kr(f),f&&Bo.test(f)?f.replace(ia,I0):f}function HV(f){return f=kr(f),f&&Ke.test(f)?f.replace(Le,"\\$&"):f}var KV=eu(function(f,m,P){return f+(P?"-":"")+m.toLowerCase()}),GV=eu(function(f,m,P){return f+(P?" ":"")+m.toLowerCase()}),QV=dg("toLowerCase");function XV(f,m,P){f=kr(f),m=rr(m);var N=m?zl(f):0;if(!m||N>=m)return f;var q=(m-N)/2;return af(qs(q),P)+f+af(Ul(q),P)}function YV(f,m,P){f=kr(f),m=rr(m);var N=m?zl(f):0;return m&&N>>0,P?(f=kr(f),f&&(typeof m=="string"||m!=null&&!sC(m))&&(m=Ma(m),!m&&Gu(f))?cs(Ha(f),0,P):f.split(m,P)):[]}var aW=eu(function(f,m,P){return f+(P?" ":"")+cC(m)});function oW(f,m,P){return f=kr(f),P=P==null?0:as(rr(P),0,f.length),m=Ma(m),f.slice(P,P+m.length)==m}function iW(f,m,P){var N=Z.templateSettings;P&&ha(f,m,P)&&(m=r),f=kr(f),m=I_({},m,N,mg);var q=I_({},m.imports,N.imports,mg),ee=aa(q),se=Fd(q,ee),he,Ce,Ve=0,We=m.interpolate||zn,Ye="__p += '",dt=Ld((m.escape||zn).source+"|"+We.source+"|"+(We===Ht?ur:zn).source+"|"+(m.evaluate||zn).source+"|$","g"),It="//# sourceURL="+(br.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++SS+"]")+` +`;f.replace(dt,function(Wt,sr,hr,Zo,Ja,ei){return hr||(hr=Zo),Ye+=f.slice(Ve,ei).replace(Fl,j0),sr&&(he=!0,Ye+=`' + +__e(`+sr+`) + +'`),Ja&&(Ce=!0,Ye+=`'; +`+Ja+`; +__p += '`),hr&&(Ye+=`' + +((__t = (`+hr+`)) == null ? '' : __t) + +'`),Ve=ei+Wt.length,Wt}),Ye+=`'; +`;var Vt=br.call(m,"variable")&&m.variable;if(!Vt)Ye=`with (obj) { +`+Ye+` +} +`;else if(Ft.test(Vt))throw new Gt(u);Ye=(Ce?Ye.replace(en,""):Ye).replace(Bn,"$1").replace(Xi,"$1;"),Ye="function("+(Vt||"obj")+`) { +`+(Vt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(he?", __e = _.escape":"")+(Ce?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Ye+`return __p +}`;var nr=Wj(function(){return yr(ee,It+"return "+Ye).apply(r,se)});if(nr.source=Ye,iC(nr))throw nr;return nr}function sW(f){return kr(f).toLowerCase()}function lW(f){return kr(f).toUpperCase()}function uW(f,m,P){if(f=kr(f),f&&(P||m===r))return R0(f);if(!f||!(m=Ma(m)))return f;var N=Ha(f),q=Ha(m),ee=k0(N,q),se=Nv(N,q)+1;return cs(N,ee,se).join("")}function cW(f,m,P){if(f=kr(f),f&&(P||m===r))return f.slice(0,jp(f)+1);if(!f||!(m=Ma(m)))return f;var N=Ha(f),q=Nv(N,Ha(m))+1;return cs(N,0,q).join("")}function dW(f,m,P){if(f=kr(f),f&&(P||m===r))return f.replace(at,"");if(!f||!(m=Ma(m)))return f;var N=Ha(f),q=k0(N,Ha(m));return cs(N,q).join("")}function fW(f,m){var P=k,N=$;if(nn(m)){var q="separator"in m?m.separator:q;P="length"in m?rr(m.length):P,N="omission"in m?Ma(m.omission):N}f=kr(f);var ee=f.length;if(Gu(f)){var se=Ha(f);ee=se.length}if(P>=ee)return f;var he=P-zl(N);if(he<1)return N;var Ce=se?cs(se,0,he).join(""):f.slice(0,he);if(q===r)return Ce+N;if(se&&(he+=Ce.length-he),sC(q)){if(f.slice(he).search(q)){var Ve,We=Ce;for(q.global||(q=Ld(q.source,kr(Gr.exec(q))+"g")),q.lastIndex=0;Ve=q.exec(We);)var Ye=Ve.index;Ce=Ce.slice(0,Ye===r?he:Ye)}}else if(f.indexOf(Ma(q),he)!=he){var dt=Ce.lastIndexOf(q);dt>-1&&(Ce=Ce.slice(0,dt))}return Ce+N}function pW(f){return f=kr(f),f&&Yi.test(f)?f.replace(Pa,M0):f}var hW=eu(function(f,m,P){return f+(P?" ":"")+m.toUpperCase()}),cC=dg("toUpperCase");function Vj(f,m,P){return f=kr(f),m=P?r:m,m===r?AS(f)?FS(f):RS(f):f.match(m)||[]}var Wj=tr(function(f,m){try{return ca(f,r,m)}catch(P){return iC(P)?P:new Gt(P)}}),mW=Ri(function(f,m){return Xn(m,function(P){P=Qo(P),wi(f,P,Ze(f[P],f))}),f});function vW(f){var m=f==null?0:f.length,P=Bt();return f=m?jr(f,function(N){if(typeof N[1]!="function")throw new vo(i);return[P(N[0]),N[1]]}):[],tr(function(N){for(var q=-1;++qK)return[];var P=G,N=Yn(f,G);m=Bt(m),f-=G;for(var q=Dv(N,m);++P0||m<0)?new Yt(P):(f<0?P=P.takeRight(-f):f&&(P=P.drop(f)),m!==r&&(m=rr(m),P=m<0?P.dropRight(-m):P.take(m-f)),P)},Yt.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},Yt.prototype.toArray=function(){return this.take(G)},Qa(Yt.prototype,function(f,m){var P=/^(?:filter|find|map|reject)|While$/.test(m),N=/^(?:head|last)$/.test(m),q=Z[N?"take"+(m=="last"?"Right":""):m],ee=N||/^find/.test(m);q&&(Z.prototype[m]=function(){var se=this.__wrapped__,he=N?[1]:arguments,Ce=se instanceof Yt,Ve=he[0],We=Ce||Jt(se),Ye=function(sr){var hr=q.apply(Z,Bs([sr],he));return N&&dt?hr[0]:hr};We&&P&&typeof Ve=="function"&&Ve.length!=1&&(Ce=We=!1);var dt=this.__chain__,It=!!this.__actions__.length,Vt=ee&&!dt,nr=Ce&&!It;if(!ee&&We){se=nr?se:new Yt(this);var Wt=f.apply(se,he);return Wt.__actions__.push({func:Yo,args:[Ye],thisArg:r}),new Jn(Wt,dt)}return Vt&&nr?f.apply(this,he):(Wt=this.thru(Ye),Vt?N?Wt.value()[0]:Wt.value():Wt)})}),Xn(["pop","push","shift","sort","splice","unshift"],function(f){var m=es[f],P=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",N=/^(?:pop|shift)$/.test(f);Z.prototype[f]=function(){var q=arguments;if(N&&!this.__chain__){var ee=this.value();return m.apply(Jt(ee)?ee:[],q)}return this[P](function(se){return m.apply(Jt(se)?se:[],q)})}}),Qa(Yt.prototype,function(f,m){var P=Z[m];if(P){var N=P.name+"";br.call(tc,N)||(tc[N]=[]),tc[N].push({name:m,func:P})}}),tc[vc(r,A).name]=[{name:"wrapper",func:r}],Yt.prototype.clone=Vp,Yt.prototype.reverse=Hv,Yt.prototype.value=ac,Z.prototype.at=Th,Z.prototype.chain=iu,Z.prototype.commit=Ah,Z.prototype.next=Fg,Z.prototype.plant=ZS,Z.prototype.reverse=$g,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=eC,Z.prototype.first=Z.prototype.head,rs&&(Z.prototype[rs]=Lg),Z},Qu=LS();mi?((mi.exports=Qu)._=Qu,Md._=Qu):Vr._=Qu}).call(dH)}(oy,oy.exports)),oy.exports}var Ab=fH(),SC,oM;function D5(){if(oM)return SC;oM=1;var e=Object.prototype.toString;return SC=function(r){var n=e.call(r),a=n==="[object Arguments]";return a||(a=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),a},SC}var CC,iM;function pH(){if(iM)return CC;iM=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=D5(),a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(y){var b=y.constructor;return b&&b.prototype===y},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},h=function(){if(typeof window>"u")return!1;for(var y in window)try{if(!l["$"+y]&&t.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{d(window[y])}catch{return!0}}catch{return!0}return!1}(),v=function(y){if(typeof window>"u"||!h)return d(y);try{return d(y)}catch{return!1}};e=function(b){var _=b!==null&&typeof b=="object",w=r.call(b)==="[object Function]",S=n(b),A=_&&r.call(b)==="[object String]",R=[];if(!_&&!w&&!S)throw new TypeError("Object.keys called on a non-object");var C=i&&w;if(A&&b.length>0&&!t.call(b,0))for(var O=0;O0)for(var T=0;T"u"||!w?e:w(Uint8Array),R={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":b&&w?w([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":r,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":S,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":b&&w?w(w([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!b||!w?e:w(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":n,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!b||!w?e:w(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":b&&w?w(""[Symbol.iterator]()):e,"%Symbol%":b?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":y,"%TypedArray%":A,"%TypeError%":i,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};if(w)try{null.error}catch(V){var C=w(w(V));R["%Error.prototype%"]=C}var O=function V(K){var X;if(K==="%AsyncFunction%")X=l("async function () {}");else if(K==="%GeneratorFunction%")X=l("function* () {}");else if(K==="%AsyncGeneratorFunction%")X=l("async function* () {}");else if(K==="%AsyncGenerator%"){var te=V("%AsyncGeneratorFunction%");te&&(X=te.prototype)}else if(K==="%AsyncIteratorPrototype%"){var G=V("%AsyncGenerator%");G&&w&&(X=w(G.prototype))}return R[K]=X,X},T={__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"]},E=fA(),L=B5(),j=E.call(Function.call,Array.prototype.concat),M=E.call(Function.apply,Array.prototype.splice),k=E.call(Function.call,String.prototype.replace),$=E.call(Function.call,String.prototype.slice),B=E.call(Function.call,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,W=function(K){var X=$(K,0,1),te=$(K,-1);if(X==="%"&&te!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(te==="%"&&X!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var G=[];return k(K,z,function(J,de,ce,ue){G[G.length]=ce?k(ue,U,"$1"):de||J}),G},Q=function(K,X){var te=K,G;if(L(T,te)&&(G=T[te],te="%"+G[0]+"%"),L(R,te)){var J=R[te];if(J===S&&(J=O(te)),typeof J>"u"&&!X)throw new i("intrinsic "+K+" exists, but is not available. Please file an issue!");return{alias:G,name:te,value:J}}throw new o("intrinsic "+K+" does not exist!")};return NC=function(K,X){if(typeof K!="string"||K.length===0)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof X!="boolean")throw new i('"allowMissing" argument must be a boolean');if(B(/^%?[^%]*%?$/,K)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var te=W(K),G=te.length>0?te[0]:"",J=Q("%"+G+"%",X),de=J.name,ce=J.value,ue=!1,be=J.alias;be&&(G=be[0],M(te,j([0,1],be)));for(var Pe=1,Ee=!0;Pe=te.length){var Te=h(ce,ge);Ee=!!Te,Ee&&"get"in Te&&!("originalValue"in Te.get)?ce=Te.get:ce=ce[ge]}else Ee=L(ce,ge),ce=ce[ge];Ee&&!ue&&(R[de]=ce)}}return ce},NC}var BC,xM;function pA(){if(xM)return BC;xM=1;var e=jb(),t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return BC=t,BC}var zC,SM;function z5(){if(SM)return zC;SM=1;var e=jb(),t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return zC=t,zC}var qC,CM;function q5(){if(CM)return qC;CM=1;var e=pA(),t=N5(),r=Ib(),n=z5();return qC=function(o,i,u){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var d=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,v=arguments.length>6?arguments[6]:!1,y=!!n&&n(o,i);if(e)e(o,i,{configurable:h===null&&y?y.configurable:!h,enumerable:d===null&&y?y.enumerable:!d,value:u,writable:l===null&&y?y.writable:!l});else if(v||!d&&!l&&!h)o[i]=u;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},qC}var UC,EM;function U5(){if(EM)return UC;EM=1;var e=pA(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},UC=t,UC}var VC,OM;function V5(){if(OM)return VC;OM=1;var e=hH(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,a=q5(),o=function(l){return typeof l=="function"&&r.call(l)==="[object Function]"},i=U5()(),u=function(l,h,v,y){if(h in l){if(y===!0){if(l[h]===v)return}else if(!o(y)||!y())return}i?a(l,h,v,!0):a(l,h,v)},d=function(l,h){var v=arguments.length>2?arguments[2]:{},y=e(h);t&&(y=n.call(y,Object.getOwnPropertySymbols(h)));for(var b=0;b4294967295||o(d)!==d)throw new a("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],h=!0,v=!0;if("length"in u&&n){var y=n(u,"length");y&&!y.configurable&&(h=!1),y&&!y.writable&&(v=!1)}return(h||v||!l)&&(r?t(u,"length",d,!0,!0):t(u,"length",d)),u},HC}var RM;function W5(){return RM||(RM=1,function(e){var t=fA(),r=jb(),n=CH(),a=Ib(),o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),u=r("%Reflect.apply%",!0)||t.call(i,o),d=pA(),l=r("%Math.max%");e.exports=function(y){if(typeof y!="function")throw new a("a function is required");var b=u(t,i,arguments);return n(b,1+l(0,y.length-(arguments.length-1)),!0)};var h=function(){return u(t,o,arguments)};d?d(e.exports,"apply",{value:h}):e.exports.apply=h}(WC)),WC.exports}var KC,kM;function EH(){if(kM)return KC;kM=1;var e=Ib();return KC=function(r){if(r==null)throw new e(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r},KC}var GC,TM;function OH(){if(TM)return GC;TM=1;var e=jb(),t=W5(),r=t(e("String.prototype.indexOf"));return GC=function(a,o){var i=e(a,!!o);return typeof i=="function"&&r(a,".prototype.")>-1?t(i):i},GC}var QC,AM;function H5(){if(AM)return QC;AM=1;var e=EH(),t=OH(),r=t("Object.prototype.propertyIsEnumerable"),n=t("Array.prototype.push");return QC=function(o){var i=e(o),u=[];for(var d in i)r(i,d)&&n(u,[d,i[d]]);return u},QC}var XC,IM;function K5(){if(IM)return XC;IM=1;var e=H5();return XC=function(){return typeof Object.entries=="function"?Object.entries:e},XC}var YC,jM;function PH(){if(jM)return YC;jM=1;var e=K5(),t=V5();return YC=function(){var n=e();return t(Object,{entries:n},{entries:function(){return Object.entries!==n}}),n},YC}var JC,MM;function RH(){if(MM)return JC;MM=1;var e=V5(),t=W5(),r=H5(),n=K5(),a=PH(),o=t(n(),Object);return e(o,{getPolyfill:n,implementation:r,shim:a}),JC=o,JC}var ZC,FM;function kH(){if(FM)return ZC;FM=1;var e=function(){};return ZC=e,ZC}var eE,LM;function TH(){if(LM)return eE;LM=1;var e=RH(),t=kH(),r=B5(),n=function(O){t(!1,O)},a=String.prototype.replace,o=String.prototype.split,i="||||",u=function(C){var O=C%100,T=O%10;return O!==11&&T===1?0:2<=T&&T<=4&&!(O>=12&&O<=14)?1:2},d={pluralTypes:{arabic:function(C){if(C<3)return C;var O=C%100;return O>=3&&O<=10?3:O>=11?4:5},bosnian_serbian:u,chinese:function(){return 0},croatian:u,french:function(C){return C>=2?1:0},german:function(C){return C!==1?1:0},russian:u,lithuanian:function(C){return C%10===1&&C%100!==11?0:C%10>=2&&C%10<=9&&(C%100<11||C%100>19)?1:2},czech:function(C){return C===1?0:C>=2&&C<=4?1:2},polish:function(C){if(C===1)return 0;var O=C%10;return 2<=O&&O<=4&&(C%100<10||C%100>=20)?1:2},icelandic:function(C){return C%10!==1||C%100===11?1:0},slovenian:function(C){var O=C%100;return O===1?0:O===2?1:O===3||O===4?2:3},romanian:function(C){if(C===1)return 0;var O=C%100;return C===0||O>=2&&O<=19?1:2},ukrainian:u},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function l(C){for(var O={},T=e(C),E=0;E{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},np=typeof window>"u"||"Deno"in globalThis;function so(){}function IH(e,t){return typeof e=="function"?e(t):e}function B2(e){return typeof e=="number"&&e>=0&&e!==1/0}function Q5(e,t){return Math.max(e+(t||0)-Date.now(),0)}function am(e,t){return typeof e=="function"?e(t):e}function ws(e,t){return typeof e=="function"?e(t):e}function DM(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:u}=e;if(i){if(n){if(t.queryHash!==mA(i,t.options))return!1}else if(!eb(t.queryKey,i))return!1}if(r!=="all"){const d=t.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||o&&!o(t))}function NM(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(ap(t.options.mutationKey)!==ap(o))return!1}else if(!eb(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function mA(e,t){return((t==null?void 0:t.queryKeyHashFn)||ap)(e)}function ap(e){return JSON.stringify(e,(t,r)=>z2(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function eb(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>eb(e[r],t[r])):!1}function X5(e,t){if(e===t)return e;const r=BM(e)&&BM(t);if(r||z2(e)&&z2(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,u=r?[]:{};let d=0;for(let l=0;l{setTimeout(t,e)})}function q2(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?X5(e,t):t}function MH(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function FH(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var vA=Symbol();function Y5(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vA?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function J5(e,t){return typeof e=="function"?e(...t):!!e}var qf,Lc,wm,y5,LH=(y5=class extends av{constructor(){super();rt(this,qf);rt(this,Lc);rt(this,wm);He(this,wm,r=>{if(!np&&window.addEventListener){const n=()=>r();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Y(this,Lc)||this.setEventListener(Y(this,wm))}onUnsubscribe(){var r;this.hasListeners()||((r=Y(this,Lc))==null||r.call(this),He(this,Lc,void 0))}setEventListener(r){var n;He(this,wm,r),(n=Y(this,Lc))==null||n.call(this),He(this,Lc,r(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(r){Y(this,qf)!==r&&(He(this,qf,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(n=>{n(r)})}isFocused(){var r;return typeof Y(this,qf)=="boolean"?Y(this,qf):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},qf=new WeakMap,Lc=new WeakMap,wm=new WeakMap,y5),gA=new LH,xm,$c,Sm,b5,$H=(b5=class extends av{constructor(){super();rt(this,xm,!0);rt(this,$c);rt(this,Sm);He(this,Sm,r=>{if(!np&&window.addEventListener){const n=()=>r(!0),a=()=>r(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",a)}}})}onSubscribe(){Y(this,$c)||this.setEventListener(Y(this,Sm))}onUnsubscribe(){var r;this.hasListeners()||((r=Y(this,$c))==null||r.call(this),He(this,$c,void 0))}setEventListener(r){var n;He(this,Sm,r),(n=Y(this,$c))==null||n.call(this),He(this,$c,r(this.setOnline.bind(this)))}setOnline(r){Y(this,xm)!==r&&(He(this,xm,r),this.listeners.forEach(a=>{a(r)}))}isOnline(){return Y(this,xm)}},xm=new WeakMap,$c=new WeakMap,Sm=new WeakMap,b5),k1=new $H;function U2(){let e,t;const r=new Promise((a,o)=>{e=a,t=o});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}function DH(e){return Math.min(1e3*2**e,3e4)}function Z5(e){return(e??"online")==="online"?k1.isOnline():!0}var eB=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function tE(e){return e instanceof eB}function tB(e){let t=!1,r=0,n=!1,a;const o=U2(),i=w=>{var S;n||(y(new eB(w)),(S=e.abort)==null||S.call(e))},u=()=>{t=!0},d=()=>{t=!1},l=()=>gA.isFocused()&&(e.networkMode==="always"||k1.isOnline())&&e.canRun(),h=()=>Z5(e.networkMode)&&e.canRun(),v=w=>{var S;n||(n=!0,(S=e.onSuccess)==null||S.call(e,w),a==null||a(),o.resolve(w))},y=w=>{var S;n||(n=!0,(S=e.onError)==null||S.call(e,w),a==null||a(),o.reject(w))},b=()=>new Promise(w=>{var S;a=A=>{(n||l())&&w(A)},(S=e.onPause)==null||S.call(e)}).then(()=>{var w;a=void 0,n||(w=e.onContinue)==null||w.call(e)}),_=()=>{if(n)return;let w;const S=r===0?e.initialPromise:void 0;try{w=S??e.fn()}catch(A){w=Promise.reject(A)}Promise.resolve(w).then(v).catch(A=>{var E;if(n)return;const R=e.retry??(np?0:3),C=e.retryDelay??DH,O=typeof C=="function"?C(r,A):C,T=R===!0||typeof R=="number"&&rl()?void 0:b()).then(()=>{t?y(A):_()})})};return{promise:o,cancel:i,continue:()=>(a==null||a(),o),cancelRetry:u,continueRetry:d,canStart:h,start:()=>(h()?_():b().then(_),o)}}var NH=e=>setTimeout(e,0);function BH(){let e=[],t=0,r=u=>{u()},n=u=>{u()},a=NH;const o=u=>{t?e.push(u):a(()=>{r(u)})},i=()=>{const u=e;e=[],u.length&&a(()=>{n(()=>{u.forEach(d=>{r(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||i()}return d},batchCalls:u=>(...d)=>{o(()=>{u(...d)})},schedule:o,setNotifyFunction:u=>{r=u},setBatchNotifyFunction:u=>{n=u},setScheduler:u=>{a=u}}}var Cn=BH(),Uf,_5,rB=(_5=class{constructor(){rt(this,Uf)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),B2(this.gcTime)&&He(this,Uf,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(np?1/0:5*60*1e3))}clearGcTimeout(){Y(this,Uf)&&(clearTimeout(Y(this,Uf)),He(this,Uf,void 0))}},Uf=new WeakMap,_5),Cm,Em,Ii,Vf,Na,Eb,Wf,gs,vu,w5,zH=(w5=class extends rB{constructor(r){super();rt(this,gs);rt(this,Cm);rt(this,Em);rt(this,Ii);rt(this,Vf);rt(this,Na);rt(this,Eb);rt(this,Wf);He(this,Wf,!1),He(this,Eb,r.defaultOptions),this.setOptions(r.options),this.observers=[],He(this,Vf,r.client),He(this,Ii,Y(this,Vf).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,He(this,Cm,qH(this.options)),this.state=r.state??Y(this,Cm),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=Y(this,Na))==null?void 0:r.promise}setOptions(r){this.options={...Y(this,Eb),...r},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Y(this,Ii).remove(this)}setData(r,n){const a=q2(this.state.data,r,this.options);return jt(this,gs,vu).call(this,{data:a,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),a}setState(r,n){jt(this,gs,vu).call(this,{type:"setState",state:r,setStateOptions:n})}cancel(r){var a,o;const n=(a=Y(this,Na))==null?void 0:a.promise;return(o=Y(this,Na))==null||o.cancel(r),n?n.then(so).catch(so):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Y(this,Cm))}isActive(){return this.observers.some(r=>ws(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vA||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(r=0){return this.state.isInvalidated||this.state.data===void 0||!Q5(this.state.dataUpdatedAt,r)}onFocus(){var n;const r=this.observers.find(a=>a.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(n=Y(this,Na))==null||n.continue()}onOnline(){var n;const r=this.observers.find(a=>a.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(n=Y(this,Na))==null||n.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),Y(this,Ii).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(n=>n!==r),this.observers.length||(Y(this,Na)&&(Y(this,Wf)?Y(this,Na).cancel({revert:!0}):Y(this,Na).cancelRetry()),this.scheduleGc()),Y(this,Ii).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||jt(this,gs,vu).call(this,{type:"invalidate"})}fetch(r,n){var l,h,v;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Y(this,Na))return Y(this,Na).continueRetry(),Y(this,Na).promise}if(r&&this.setOptions(r),!this.options.queryFn){const y=this.observers.find(b=>b.options.queryFn);y&&this.setOptions(y.options)}const a=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(He(this,Wf,!0),a.signal)})},i=()=>{const y=Y5(this.options,n),b={client:Y(this,Vf),queryKey:this.queryKey,meta:this.meta};return o(b),He(this,Wf,!1),this.options.persister?this.options.persister(y,b,this):y(b)},u={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:Y(this,Vf),state:this.state,fetchFn:i};o(u),(l=this.options.behavior)==null||l.onFetch(u,this),He(this,Em,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=u.fetchOptions)==null?void 0:h.meta))&&jt(this,gs,vu).call(this,{type:"fetch",meta:(v=u.fetchOptions)==null?void 0:v.meta});const d=y=>{var b,_,w,S;tE(y)&&y.silent||jt(this,gs,vu).call(this,{type:"error",error:y}),tE(y)||((_=(b=Y(this,Ii).config).onError)==null||_.call(b,y,this),(S=(w=Y(this,Ii).config).onSettled)==null||S.call(w,this.state.data,y,this)),this.scheduleGc()};return He(this,Na,tB({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,abort:a.abort.bind(a),onSuccess:y=>{var b,_,w,S;if(y===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(A){d(A);return}(_=(b=Y(this,Ii).config).onSuccess)==null||_.call(b,y,this),(S=(w=Y(this,Ii).config).onSettled)==null||S.call(w,y,this.state.error,this),this.scheduleGc()},onError:d,onFail:(y,b)=>{jt(this,gs,vu).call(this,{type:"failed",failureCount:y,error:b})},onPause:()=>{jt(this,gs,vu).call(this,{type:"pause"})},onContinue:()=>{jt(this,gs,vu).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0})),Y(this,Na).start()}},Cm=new WeakMap,Em=new WeakMap,Ii=new WeakMap,Vf=new WeakMap,Na=new WeakMap,Eb=new WeakMap,Wf=new WeakMap,gs=new WeakSet,vu=function(r){const n=a=>{switch(r.type){case"failed":return{...a,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...nB(a.data,this.options),fetchMeta:r.meta??null};case"success":return{...a,data:r.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:r.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=r.error;return tE(o)&&o.revert&&Y(this,Em)?{...Y(this,Em),fetchStatus:"idle"}:{...a,error:o,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...r.state}}};this.state=n(this.state),Cn.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),Y(this,Ii).notify({query:this,type:"updated",action:r})})},w5);function nB(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Z5(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function qH(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var cl,x5,UH=(x5=class extends av{constructor(r={}){super();rt(this,cl);this.config=r,He(this,cl,new Map)}build(r,n,a){const o=n.queryKey,i=n.queryHash??mA(o,n);let u=this.get(i);return u||(u=new zH({client:r,queryKey:o,queryHash:i,options:r.defaultQueryOptions(n),state:a,defaultOptions:r.getQueryDefaults(o)}),this.add(u)),u}add(r){Y(this,cl).has(r.queryHash)||(Y(this,cl).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const n=Y(this,cl).get(r.queryHash);n&&(r.destroy(),n===r&&Y(this,cl).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){Cn.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return Y(this,cl).get(r)}getAll(){return[...Y(this,cl).values()]}find(r){const n={exact:!0,...r};return this.getAll().find(a=>DM(n,a))}findAll(r={}){const n=this.getAll();return Object.keys(r).length>0?n.filter(a=>DM(r,a)):n}notify(r){Cn.batch(()=>{this.listeners.forEach(n=>{n(r)})})}onFocus(){Cn.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Cn.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},cl=new WeakMap,x5),dl,no,Hf,fl,Pc,S5,VH=(S5=class extends rB{constructor(r){super();rt(this,fl);rt(this,dl);rt(this,no);rt(this,Hf);this.mutationId=r.mutationId,He(this,no,r.mutationCache),He(this,dl,[]),this.state=r.state||aB(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){Y(this,dl).includes(r)||(Y(this,dl).push(r),this.clearGcTimeout(),Y(this,no).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){He(this,dl,Y(this,dl).filter(n=>n!==r)),this.scheduleGc(),Y(this,no).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){Y(this,dl).length||(this.state.status==="pending"?this.scheduleGc():Y(this,no).remove(this))}continue(){var r;return((r=Y(this,Hf))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var i,u,d,l,h,v,y,b,_,w,S,A,R,C,O,T,E,L,j,M;const n=()=>{jt(this,fl,Pc).call(this,{type:"continue"})};He(this,Hf,tB({fn:()=>this.options.mutationFn?this.options.mutationFn(r):Promise.reject(new Error("No mutationFn found")),onFail:(k,$)=>{jt(this,fl,Pc).call(this,{type:"failed",failureCount:k,error:$})},onPause:()=>{jt(this,fl,Pc).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Y(this,no).canRun(this)}));const a=this.state.status==="pending",o=!Y(this,Hf).canStart();try{if(a)n();else{jt(this,fl,Pc).call(this,{type:"pending",variables:r,isPaused:o}),await((u=(i=Y(this,no).config).onMutate)==null?void 0:u.call(i,r,this));const $=await((l=(d=this.options).onMutate)==null?void 0:l.call(d,r));$!==this.state.context&&jt(this,fl,Pc).call(this,{type:"pending",context:$,variables:r,isPaused:o})}const k=await Y(this,Hf).start();return await((v=(h=Y(this,no).config).onSuccess)==null?void 0:v.call(h,k,r,this.state.context,this)),await((b=(y=this.options).onSuccess)==null?void 0:b.call(y,k,r,this.state.context)),await((w=(_=Y(this,no).config).onSettled)==null?void 0:w.call(_,k,null,this.state.variables,this.state.context,this)),await((A=(S=this.options).onSettled)==null?void 0:A.call(S,k,null,r,this.state.context)),jt(this,fl,Pc).call(this,{type:"success",data:k}),k}catch(k){try{throw await((C=(R=Y(this,no).config).onError)==null?void 0:C.call(R,k,r,this.state.context,this)),await((T=(O=this.options).onError)==null?void 0:T.call(O,k,r,this.state.context)),await((L=(E=Y(this,no).config).onSettled)==null?void 0:L.call(E,void 0,k,this.state.variables,this.state.context,this)),await((M=(j=this.options).onSettled)==null?void 0:M.call(j,void 0,k,r,this.state.context)),k}finally{jt(this,fl,Pc).call(this,{type:"error",error:k})}}finally{Y(this,no).runNext(this)}}},dl=new WeakMap,no=new WeakMap,Hf=new WeakMap,fl=new WeakSet,Pc=function(r){const n=a=>{switch(r.type){case"failed":return{...a,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...a,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:r.error,failureCount:a.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Cn.batch(()=>{Y(this,dl).forEach(a=>{a.onMutationUpdate(r)}),Y(this,no).notify({mutation:this,type:"updated",action:r})})},S5);function aB(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wu,ys,Ob,C5,WH=(C5=class extends av{constructor(r={}){super();rt(this,wu);rt(this,ys);rt(this,Ob);this.config=r,He(this,wu,new Set),He(this,ys,new Map),He(this,Ob,0)}build(r,n,a){const o=new VH({mutationCache:this,mutationId:++wf(this,Ob)._,options:r.defaultMutationOptions(n),state:a});return this.add(o),o}add(r){Y(this,wu).add(r);const n=M_(r);if(typeof n=="string"){const a=Y(this,ys).get(n);a?a.push(r):Y(this,ys).set(n,[r])}this.notify({type:"added",mutation:r})}remove(r){if(Y(this,wu).delete(r)){const n=M_(r);if(typeof n=="string"){const a=Y(this,ys).get(n);if(a)if(a.length>1){const o=a.indexOf(r);o!==-1&&a.splice(o,1)}else a[0]===r&&Y(this,ys).delete(n)}}this.notify({type:"removed",mutation:r})}canRun(r){const n=M_(r);if(typeof n=="string"){const a=Y(this,ys).get(n),o=a==null?void 0:a.find(i=>i.state.status==="pending");return!o||o===r}else return!0}runNext(r){var a;const n=M_(r);if(typeof n=="string"){const o=(a=Y(this,ys).get(n))==null?void 0:a.find(i=>i!==r&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Cn.batch(()=>{Y(this,wu).forEach(r=>{this.notify({type:"removed",mutation:r})}),Y(this,wu).clear(),Y(this,ys).clear()})}getAll(){return Array.from(Y(this,wu))}find(r){const n={exact:!0,...r};return this.getAll().find(a=>NM(n,a))}findAll(r={}){return this.getAll().filter(n=>NM(r,n))}notify(r){Cn.batch(()=>{this.listeners.forEach(n=>{n(r)})})}resumePausedMutations(){const r=this.getAll().filter(n=>n.state.isPaused);return Cn.batch(()=>Promise.all(r.map(n=>n.continue().catch(so))))}},wu=new WeakMap,ys=new WeakMap,Ob=new WeakMap,C5);function M_(e){var t;return(t=e.options.scope)==null?void 0:t.id}function qM(e){return{onFetch:(t,r)=>{var h,v,y,b,_;const n=t.options,a=(y=(v=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:v.fetchMore)==null?void 0:y.direction,o=((b=t.state.data)==null?void 0:b.pages)||[],i=((_=t.state.data)==null?void 0:_.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const l=async()=>{let w=!1;const S=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},A=Y5(t.options,t.fetchOptions),R=async(C,O,T)=>{if(w)return Promise.reject();if(O==null&&C.pages.length)return Promise.resolve(C);const E={client:t.client,queryKey:t.queryKey,pageParam:O,direction:T?"backward":"forward",meta:t.options.meta};S(E);const L=await A(E),{maxPages:j}=t.options,M=T?FH:MH;return{pages:M(C.pages,L,j),pageParams:M(C.pageParams,O,j)}};if(a&&o.length){const C=a==="backward",O=C?HH:UM,T={pages:o,pageParams:i},E=O(n,T);u=await R(T,E,C)}else{const C=e??o.length;do{const O=d===0?i[0]??n.initialPageParam:UM(n,u);if(d>0&&O==null)break;u=await R(u,O),d++}while(d{var w,S;return(S=(w=t.options).persister)==null?void 0:S.call(w,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function UM(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function HH(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var pn,Dc,Nc,Om,Pm,Bc,Rm,km,E5,KH=(E5=class{constructor(t={}){rt(this,pn);rt(this,Dc);rt(this,Nc);rt(this,Om);rt(this,Pm);rt(this,Bc);rt(this,Rm);rt(this,km);He(this,pn,t.queryCache||new UH),He(this,Dc,t.mutationCache||new WH),He(this,Nc,t.defaultOptions||{}),He(this,Om,new Map),He(this,Pm,new Map),He(this,Bc,0)}mount(){wf(this,Bc)._++,Y(this,Bc)===1&&(He(this,Rm,gA.subscribe(async t=>{t&&(await this.resumePausedMutations(),Y(this,pn).onFocus())})),He(this,km,k1.subscribe(async t=>{t&&(await this.resumePausedMutations(),Y(this,pn).onOnline())})))}unmount(){var t,r;wf(this,Bc)._--,Y(this,Bc)===0&&((t=Y(this,Rm))==null||t.call(this),He(this,Rm,void 0),(r=Y(this,km))==null||r.call(this),He(this,km,void 0))}isFetching(t){return Y(this,pn).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return Y(this,Dc).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const r=this.defaultQueryOptions({queryKey:t});return(n=Y(this,pn).get(r.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),n=Y(this,pn).build(this,r),a=n.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(am(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(a))}getQueriesData(t){return Y(this,pn).findAll(t).map(({queryKey:r,state:n})=>{const a=n.data;return[r,a]})}setQueryData(t,r,n){const a=this.defaultQueryOptions({queryKey:t}),o=Y(this,pn).get(a.queryHash),i=o==null?void 0:o.state.data,u=IH(r,i);if(u!==void 0)return Y(this,pn).build(this,a).setData(u,{...n,manual:!0})}setQueriesData(t,r,n){return Cn.batch(()=>Y(this,pn).findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,r,n)]))}getQueryState(t){var n;const r=this.defaultQueryOptions({queryKey:t});return(n=Y(this,pn).get(r.queryHash))==null?void 0:n.state}removeQueries(t){const r=Y(this,pn);Cn.batch(()=>{r.findAll(t).forEach(n=>{r.remove(n)})})}resetQueries(t,r){const n=Y(this,pn);return Cn.batch(()=>(n.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const n={revert:!0,...r},a=Cn.batch(()=>Y(this,pn).findAll(t).map(o=>o.cancel(n)));return Promise.all(a).then(so).catch(so)}invalidateQueries(t,r={}){return Cn.batch(()=>(Y(this,pn).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},r)))}refetchQueries(t,r={}){const n={...r,cancelRefetch:r.cancelRefetch??!0},a=Cn.batch(()=>Y(this,pn).findAll(t).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(so)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(a).then(so)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const n=Y(this,pn).build(this,r);return n.isStaleByTime(am(r.staleTime,n))?n.fetch(r):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(so).catch(so)}fetchInfiniteQuery(t){return t.behavior=qM(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(so).catch(so)}ensureInfiniteQueryData(t){return t.behavior=qM(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return k1.isOnline()?Y(this,Dc).resumePausedMutations():Promise.resolve()}getQueryCache(){return Y(this,pn)}getMutationCache(){return Y(this,Dc)}getDefaultOptions(){return Y(this,Nc)}setDefaultOptions(t){He(this,Nc,t)}setQueryDefaults(t,r){Y(this,Om).set(ap(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...Y(this,Om).values()],n={};return r.forEach(a=>{eb(t,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(t,r){Y(this,Pm).set(ap(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...Y(this,Pm).values()],n={};return r.forEach(a=>{eb(t,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const r={...Y(this,Nc).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=mA(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===vA&&(r.enabled=!1),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...Y(this,Nc).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){Y(this,pn).clear(),Y(this,Dc).clear()}},pn=new WeakMap,Dc=new WeakMap,Nc=new WeakMap,Om=new WeakMap,Pm=new WeakMap,Bc=new WeakMap,Rm=new WeakMap,km=new WeakMap,E5),Ao,mr,Pb,ao,Kf,Tm,zc,qc,Rb,Am,Im,Gf,Qf,Uc,jm,Ar,iy,V2,W2,H2,K2,G2,Q2,X2,oB,O5,GH=(O5=class extends av{constructor(t,r){super();rt(this,Ar);rt(this,Ao);rt(this,mr);rt(this,Pb);rt(this,ao);rt(this,Kf);rt(this,Tm);rt(this,zc);rt(this,qc);rt(this,Rb);rt(this,Am);rt(this,Im);rt(this,Gf);rt(this,Qf);rt(this,Uc);rt(this,jm,new Set);this.options=r,He(this,Ao,t),He(this,qc,null),He(this,zc,U2()),this.options.experimental_prefetchInRender||Y(this,zc).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Y(this,mr).addObserver(this),VM(Y(this,mr),this.options)?jt(this,Ar,iy).call(this):this.updateResult(),jt(this,Ar,K2).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Y2(Y(this,mr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Y2(Y(this,mr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,jt(this,Ar,G2).call(this),jt(this,Ar,Q2).call(this),Y(this,mr).removeObserver(this)}setOptions(t){const r=this.options,n=Y(this,mr);if(this.options=Y(this,Ao).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ws(this.options.enabled,Y(this,mr))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");jt(this,Ar,X2).call(this),Y(this,mr).setOptions(this.options),r._defaulted&&!R1(this.options,r)&&Y(this,Ao).getQueryCache().notify({type:"observerOptionsUpdated",query:Y(this,mr),observer:this});const a=this.hasListeners();a&&WM(Y(this,mr),n,this.options,r)&&jt(this,Ar,iy).call(this),this.updateResult(),a&&(Y(this,mr)!==n||ws(this.options.enabled,Y(this,mr))!==ws(r.enabled,Y(this,mr))||am(this.options.staleTime,Y(this,mr))!==am(r.staleTime,Y(this,mr)))&&jt(this,Ar,V2).call(this);const o=jt(this,Ar,W2).call(this);a&&(Y(this,mr)!==n||ws(this.options.enabled,Y(this,mr))!==ws(r.enabled,Y(this,mr))||o!==Y(this,Uc))&&jt(this,Ar,H2).call(this,o)}getOptimisticResult(t){const r=Y(this,Ao).getQueryCache().build(Y(this,Ao),t),n=this.createResult(r,t);return XH(this,n)&&(He(this,ao,n),He(this,Tm,this.options),He(this,Kf,Y(this,mr).state)),n}getCurrentResult(){return Y(this,ao)}trackResult(t,r){return new Proxy(t,{get:(n,a)=>(this.trackProp(a),r==null||r(a),Reflect.get(n,a))})}trackProp(t){Y(this,jm).add(t)}getCurrentQuery(){return Y(this,mr)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=Y(this,Ao).defaultQueryOptions(t),n=Y(this,Ao).getQueryCache().build(Y(this,Ao),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return jt(this,Ar,iy).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Y(this,ao)))}createResult(t,r){var M;const n=Y(this,mr),a=this.options,o=Y(this,ao),i=Y(this,Kf),u=Y(this,Tm),l=t!==n?t.state:Y(this,Pb),{state:h}=t;let v={...h},y=!1,b;if(r._optimisticResults){const k=this.hasListeners(),$=!k&&VM(t,r),B=k&&WM(t,n,r,a);($||B)&&(v={...v,...nB(h.data,t.options)}),r._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:_,errorUpdatedAt:w,status:S}=v;b=v.data;let A=!1;if(r.placeholderData!==void 0&&b===void 0&&S==="pending"){let k;o!=null&&o.isPlaceholderData&&r.placeholderData===(u==null?void 0:u.placeholderData)?(k=o.data,A=!0):k=typeof r.placeholderData=="function"?r.placeholderData((M=Y(this,Im))==null?void 0:M.state.data,Y(this,Im)):r.placeholderData,k!==void 0&&(S="success",b=q2(o==null?void 0:o.data,k,r),y=!0)}if(r.select&&b!==void 0&&!A)if(o&&b===(i==null?void 0:i.data)&&r.select===Y(this,Rb))b=Y(this,Am);else try{He(this,Rb,r.select),b=r.select(b),b=q2(o==null?void 0:o.data,b,r),He(this,Am,b),He(this,qc,null)}catch(k){He(this,qc,k)}Y(this,qc)&&(_=Y(this,qc),b=Y(this,Am),w=Date.now(),S="error");const R=v.fetchStatus==="fetching",C=S==="pending",O=S==="error",T=C&&R,E=b!==void 0,j={status:S,fetchStatus:v.fetchStatus,isPending:C,isSuccess:S==="success",isError:O,isInitialLoading:T,isLoading:T,data:b,dataUpdatedAt:v.dataUpdatedAt,error:_,errorUpdatedAt:w,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>l.dataUpdateCount||v.errorUpdateCount>l.errorUpdateCount,isFetching:R,isRefetching:R&&!C,isLoadingError:O&&!E,isPaused:v.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:O&&E,isStale:yA(t,r),refetch:this.refetch,promise:Y(this,zc)};if(this.options.experimental_prefetchInRender){const k=z=>{j.status==="error"?z.reject(j.error):j.data!==void 0&&z.resolve(j.data)},$=()=>{const z=He(this,zc,j.promise=U2());k(z)},B=Y(this,zc);switch(B.status){case"pending":t.queryHash===n.queryHash&&k(B);break;case"fulfilled":(j.status==="error"||j.data!==B.value)&&$();break;case"rejected":(j.status!=="error"||j.error!==B.reason)&&$();break}}return j}updateResult(){const t=Y(this,ao),r=this.createResult(Y(this,mr),this.options);if(He(this,Kf,Y(this,mr).state),He(this,Tm,this.options),Y(this,Kf).data!==void 0&&He(this,Im,Y(this,mr)),R1(r,t))return;He(this,ao,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!Y(this,jm).size)return!0;const i=new Set(o??Y(this,jm));return this.options.throwOnError&&i.add("error"),Object.keys(Y(this,ao)).some(u=>{const d=u;return Y(this,ao)[d]!==t[d]&&i.has(d)})};jt(this,Ar,oB).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&jt(this,Ar,K2).call(this)}},Ao=new WeakMap,mr=new WeakMap,Pb=new WeakMap,ao=new WeakMap,Kf=new WeakMap,Tm=new WeakMap,zc=new WeakMap,qc=new WeakMap,Rb=new WeakMap,Am=new WeakMap,Im=new WeakMap,Gf=new WeakMap,Qf=new WeakMap,Uc=new WeakMap,jm=new WeakMap,Ar=new WeakSet,iy=function(t){jt(this,Ar,X2).call(this);let r=Y(this,mr).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(so)),r},V2=function(){jt(this,Ar,G2).call(this);const t=am(this.options.staleTime,Y(this,mr));if(np||Y(this,ao).isStale||!B2(t))return;const n=Q5(Y(this,ao).dataUpdatedAt,t)+1;He(this,Gf,setTimeout(()=>{Y(this,ao).isStale||this.updateResult()},n))},W2=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Y(this,mr)):this.options.refetchInterval)??!1},H2=function(t){jt(this,Ar,Q2).call(this),He(this,Uc,t),!(np||ws(this.options.enabled,Y(this,mr))===!1||!B2(Y(this,Uc))||Y(this,Uc)===0)&&He(this,Qf,setInterval(()=>{(this.options.refetchIntervalInBackground||gA.isFocused())&&jt(this,Ar,iy).call(this)},Y(this,Uc)))},K2=function(){jt(this,Ar,V2).call(this),jt(this,Ar,H2).call(this,jt(this,Ar,W2).call(this))},G2=function(){Y(this,Gf)&&(clearTimeout(Y(this,Gf)),He(this,Gf,void 0))},Q2=function(){Y(this,Qf)&&(clearInterval(Y(this,Qf)),He(this,Qf,void 0))},X2=function(){const t=Y(this,Ao).getQueryCache().build(Y(this,Ao),this.options);if(t===Y(this,mr))return;const r=Y(this,mr);He(this,mr,t),He(this,Pb,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},oB=function(t){Cn.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(Y(this,ao))}),Y(this,Ao).getQueryCache().notify({query:Y(this,mr),type:"observerResultsUpdated"})})},O5);function QH(e,t){return ws(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function VM(e,t){return QH(e,t)||e.state.data!==void 0&&Y2(e,t,t.refetchOnMount)}function Y2(e,t,r){if(ws(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&yA(e,t)}return!1}function WM(e,t,r,n){return(e!==t||ws(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&yA(e,r)}function yA(e,t){return ws(t.enabled,e)!==!1&&e.isStaleByTime(am(t.staleTime,e))}function XH(e,t){return!R1(e.getCurrentResult(),t)}var Vc,Wc,Io,xu,Au,d1,J2,P5,YH=(P5=class extends av{constructor(r,n){super();rt(this,Au);rt(this,Vc);rt(this,Wc);rt(this,Io);rt(this,xu);He(this,Vc,r),this.setOptions(n),this.bindMethods(),jt(this,Au,d1).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=Y(this,Vc).defaultMutationOptions(r),R1(this.options,n)||Y(this,Vc).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Y(this,Io),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&ap(n.mutationKey)!==ap(this.options.mutationKey)?this.reset():((a=Y(this,Io))==null?void 0:a.state.status)==="pending"&&Y(this,Io).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=Y(this,Io))==null||r.removeObserver(this)}onMutationUpdate(r){jt(this,Au,d1).call(this),jt(this,Au,J2).call(this,r)}getCurrentResult(){return Y(this,Wc)}reset(){var r;(r=Y(this,Io))==null||r.removeObserver(this),He(this,Io,void 0),jt(this,Au,d1).call(this),jt(this,Au,J2).call(this)}mutate(r,n){var a;return He(this,xu,n),(a=Y(this,Io))==null||a.removeObserver(this),He(this,Io,Y(this,Vc).getMutationCache().build(Y(this,Vc),this.options)),Y(this,Io).addObserver(this),Y(this,Io).execute(r)}},Vc=new WeakMap,Wc=new WeakMap,Io=new WeakMap,xu=new WeakMap,Au=new WeakSet,d1=function(){var n;const r=((n=Y(this,Io))==null?void 0:n.state)??aB();He(this,Wc,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},J2=function(r){Cn.batch(()=>{var n,a,o,i,u,d,l,h;if(Y(this,xu)&&this.hasListeners()){const v=Y(this,Wc).variables,y=Y(this,Wc).context;(r==null?void 0:r.type)==="success"?((a=(n=Y(this,xu)).onSuccess)==null||a.call(n,r.data,v,y),(i=(o=Y(this,xu)).onSettled)==null||i.call(o,r.data,null,v,y)):(r==null?void 0:r.type)==="error"&&((d=(u=Y(this,xu)).onError)==null||d.call(u,r.error,v,y),(h=(l=Y(this,xu)).onSettled)==null||h.call(l,void 0,r.error,v,y))}this.listeners.forEach(v=>{v(Y(this,Wc))})})},P5),iB=p.createContext(void 0),Ea=e=>{const t=p.useContext(iB);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},JH=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),I.jsx(iB.Provider,{value:e,children:t})),sB=p.createContext(!1),ZH=()=>p.useContext(sB);sB.Provider;function e7(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var t7=p.createContext(e7()),r7=()=>p.useContext(t7),n7=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},a7=e=>{p.useEffect(()=>{e.clearReset()},[e])},o7=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&e.data===void 0||J5(r,[e.error,n])),i7=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...r)=>Math.max(t(...r),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},s7=(e,t)=>e.isLoading&&e.isFetching&&!t,l7=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,HM=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function u7(e,t,r){var v,y,b,_,w;const n=Ea(),a=ZH(),o=r7(),i=n.defaultQueryOptions(e);(y=(v=n.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||y.call(v,i),i._optimisticResults=a?"isRestoring":"optimistic",i7(i),n7(i,o),a7(o);const u=!n.getQueryCache().get(i.queryHash),[d]=p.useState(()=>new t(n,i)),l=d.getOptimisticResult(i),h=!a&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(S=>{const A=h?d.subscribe(Cn.batchCalls(S)):so;return d.updateResult(),A},[d,h]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),p.useEffect(()=>{d.setOptions(i)},[i,d]),l7(i,l))throw HM(i,d,o);if(o7({result:l,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw l.error;if((_=(b=n.getDefaultOptions().queries)==null?void 0:b._experimental_afterQuery)==null||_.call(b,i,l),i.experimental_prefetchInRender&&!np&&s7(l,a)){const S=u?HM(i,d,o):(w=n.getQueryCache().get(i.queryHash))==null?void 0:w.promise;S==null||S.catch(so).finally(()=>{d.updateResult()})}return i.notifyOnChangeProps?l:d.trackResult(l)}function Tl(e,t){return u7(e,GH)}function Mb(e,t){const r=Ea(),[n]=p.useState(()=>new YH(r,e));p.useEffect(()=>{n.setOptions(e)},[n,e]);const a=p.useSyncExternalStore(p.useCallback(i=>n.subscribe(Cn.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=p.useCallback((i,u)=>{n.mutate(i,u).catch(so)},[n]);if(a.error&&J5(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}var Ug={},KM;function c7(){if(KM)return Ug;KM=1,Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.parse=i,Ug.serialize=l;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,o=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function i(y,b){const _=new o,w=y.length;if(w<2)return _;const S=(b==null?void 0:b.decode)||h;let A=0;do{const R=y.indexOf("=",A);if(R===-1)break;const C=y.indexOf(";",A),O=C===-1?w:C;if(R>O){A=y.lastIndexOf(";",R-1)+1;continue}const T=u(y,A,R),E=d(y,R,T),L=y.slice(T,E);if(_[L]===void 0){let j=u(y,R+1,O),M=d(y,O,j);const k=S(y.slice(j,M));_[L]=k}A=O+1}while(A_;){const w=y.charCodeAt(--b);if(w!==32&&w!==9)return b+1}return _}function l(y,b,_){const w=(_==null?void 0:_.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const S=w(b);if(!t.test(S))throw new TypeError(`argument val is invalid: ${b}`);let A=y+"="+S;if(!_)return A;if(_.maxAge!==void 0){if(!Number.isInteger(_.maxAge))throw new TypeError(`option maxAge is invalid: ${_.maxAge}`);A+="; Max-Age="+_.maxAge}if(_.domain){if(!r.test(_.domain))throw new TypeError(`option domain is invalid: ${_.domain}`);A+="; Domain="+_.domain}if(_.path){if(!n.test(_.path))throw new TypeError(`option path is invalid: ${_.path}`);A+="; Path="+_.path}if(_.expires){if(!v(_.expires)||!Number.isFinite(_.expires.valueOf()))throw new TypeError(`option expires is invalid: ${_.expires}`);A+="; Expires="+_.expires.toUTCString()}if(_.httpOnly&&(A+="; HttpOnly"),_.secure&&(A+="; Secure"),_.partitioned&&(A+="; Partitioned"),_.priority)switch(typeof _.priority=="string"?_.priority.toLowerCase():void 0){case"low":A+="; Priority=Low";break;case"medium":A+="; Priority=Medium";break;case"high":A+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${_.priority}`)}if(_.sameSite)switch(typeof _.sameSite=="string"?_.sameSite.toLowerCase():_.sameSite){case!0:case"strict":A+="; SameSite=Strict";break;case"lax":A+="; SameSite=Lax";break;case"none":A+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${_.sameSite}`)}return A}function h(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function v(y){return a.call(y)==="[object Date]"}return Ug}c7();/** + * react-router v7.6.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 + */var lB=e=>{throw TypeError(e)},d7=(e,t,r)=>t.has(e)||lB("Cannot "+r),rE=(e,t,r)=>(d7(e,t,"read from private field"),r?r.call(e):t.get(e)),f7=(e,t,r)=>t.has(e)?lB("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),GM="popstate";function p7(e={}){function t(a,o){let{pathname:i="/",search:u="",hash:d=""}=Al(a.location.hash.substring(1));return!i.startsWith("/")&&!i.startsWith(".")&&(i="/"+i),tb("",{pathname:i,search:u,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(a,o){let i=a.document.querySelector("base"),u="";if(i&&i.getAttribute("href")){let d=a.location.href,l=d.indexOf("#");u=l===-1?d:d.slice(0,l)}return u+"#"+(typeof o=="string"?o:od(o))}function n(a,o){gn(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(o)})`)}return m7(t,r,n,e)}function Zt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function gn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function h7(){return Math.random().toString(36).substring(2,10)}function QM(e,t){return{usr:e.state,key:e.key,idx:t}}function tb(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Al(t):t,state:r,key:t&&t.key||n||h7()}}function od({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Al(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function m7(e,t,r,n={}){let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,u="POP",d=null,l=h();l==null&&(l=0,i.replaceState({...i.state,idx:l},""));function h(){return(i.state||{idx:null}).idx}function v(){u="POP";let S=h(),A=S==null?null:S-l;l=S,d&&d({action:u,location:w.location,delta:A})}function y(S,A){u="PUSH";let R=tb(w.location,S,A);r&&r(R,S),l=h()+1;let C=QM(R,l),O=w.createHref(R);try{i.pushState(C,"",O)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;a.location.assign(O)}o&&d&&d({action:u,location:w.location,delta:1})}function b(S,A){u="REPLACE";let R=tb(w.location,S,A);r&&r(R,S),l=h();let C=QM(R,l),O=w.createHref(R);i.replaceState(C,"",O),o&&d&&d({action:u,location:w.location,delta:0})}function _(S){return uB(S)}let w={get action(){return u},get location(){return e(a,i)},listen(S){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(GM,v),d=S,()=>{a.removeEventListener(GM,v),d=null}},createHref(S){return t(a,S)},createURL:_,encodeLocation(S){let A=_(S);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:y,replace:b,go(S){return i.go(S)}};return w}function uB(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Zt(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:od(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}var sy,XM=class{constructor(e){if(f7(this,sy,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(rE(this,sy).has(e))return rE(this,sy).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){rE(this,sy).set(e,t)}};sy=new WeakMap;var v7=new Set(["lazy","caseSensitive","path","id","index","children"]);function g7(e){return v7.has(e)}var y7=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function b7(e){return y7.has(e)}function _7(e){return e.index===!0}function T1(e,t,r=[],n={}){return e.map((a,o)=>{let i=[...r,String(o)],u=typeof a.id=="string"?a.id:i.join("-");if(Zt(a.index!==!0||!a.children,"Cannot specify children on an index route"),Zt(!n[u],`Found a route id collision on id "${u}". Route id's must be globally unique within Data Router usages`),_7(a)){let d={...a,...t(a),id:u};return n[u]=d,d}else{let d={...a,...t(a),id:u,children:void 0};return n[u]=d,a.children&&(d.children=T1(a.children,t,i,n)),d}})}function jc(e,t,r="/"){return f1(e,t,r,!1)}function f1(e,t,r,n){let a=typeof t=="string"?Al(t):t,o=Do(a.pathname||"/",r);if(o==null)return null;let i=cB(e);x7(i);let u=null;for(let d=0;u==null&&d{let d={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};d.relativePath.startsWith("/")&&(Zt(d.relativePath.startsWith(n),`Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(n.length));let l=Sl([n,d.relativePath]),h=r.concat(d);o.children&&o.children.length>0&&(Zt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),cB(o.children,t,h,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:k7(l,o.index),routesMeta:h})};return e.forEach((o,i)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))a(o,i);else for(let d of dB(o.path))a(o,i,d)}),t}function dB(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=dB(n.join("/")),u=[];return u.push(...i.map(d=>d===""?o:[o,d].join("/"))),a&&u.push(...i),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function x7(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:T7(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var S7=/^:[\w-]+$/,C7=3,E7=2,O7=1,P7=10,R7=-2,YM=e=>e==="*";function k7(e,t){let r=e.split("/"),n=r.length;return r.some(YM)&&(n+=R7),t&&(n+=E7),r.filter(a=>!YM(a)).reduce((a,o)=>a+(S7.test(o)?C7:o===""?O7:P7),n)}function T7(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function A7(e,t,r=!1){let{routesMeta:n}=e,a={},o="/",i=[];for(let u=0;u{if(h==="*"){let _=u[y]||"";i=o.slice(0,o.length-_.length).replace(/(.)\/+$/,"$1")}const b=u[y];return v&&!b?l[h]=void 0:l[h]=(b||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:i,pattern:e}}function I7(e,t=!1,r=!0){gn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,u,d)=>(n.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function fB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Do(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 j7(e,t="/"){let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Al(e):e;return{pathname:r?r.startsWith("/")?r:M7(r,t):t,search:L7(n),hash:$7(a)}}function M7(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function nE(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 pB(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function tx(e){let t=pB(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function rx(e,t,r,n=!1){let a;typeof e=="string"?a=Al(e):(a={...e},Zt(!a.pathname||!a.pathname.includes("?"),nE("?","pathname","search",a)),Zt(!a.pathname||!a.pathname.includes("#"),nE("#","pathname","hash",a)),Zt(!a.search||!a.search.includes("#"),nE("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,u;if(i==null)u=r;else{let v=t.length-1;if(!n&&i.startsWith("..")){let y=i.split("/");for(;y[0]==="..";)y.shift(),v-=1;a.pathname=y.join("/")}u=v>=0?t[v]:"/"}let d=j7(a,u),l=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(l||h)&&(d.pathname+="/"),d}var Sl=e=>e.join("/").replace(/\/\/+/g,"/"),F7=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),L7=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$7=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,A1=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function rb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var hB=["POST","PUT","PATCH","DELETE"],D7=new Set(hB),N7=["GET",...hB],B7=new Set(N7),z7=new Set([301,302,303,307,308]),q7=new Set([307,308]),aE={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},U7={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Kh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},bA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,V7=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),mB="remix-router-transitions",vB=Symbol("ResetLoaderData");function W7(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Zt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let n=e.hydrationRouteProperties||[],a=e.mapRouteProperties||V7,o={},i=T1(e.routes,a,void 0,o),u,d=e.basename||"/",l=e.dataStrategy||X7,h={unstable_middleware:!1,...e.future},v=null,y=new Set,b=null,_=null,w=null,S=e.hydrationData!=null,A=jc(i,e.history.location,d),R=!1,C=null,O;if(A==null&&!e.patchRoutesOnNavigation){let le=Mi(404,{pathname:e.history.location.pathname}),{matches:ie,route:me}=uF(i);O=!0,A=ie,C={[me.id]:le}}else if(A&&!e.hydrationData&&Bo(A,i,e.history.location.pathname).active&&(A=null),A)if(A.some(le=>le.route.lazy))O=!1;else if(!A.some(le=>le.route.loader))O=!0;else{let le=e.hydrationData?e.hydrationData.loaderData:null,ie=e.hydrationData?e.hydrationData.errors:null;if(ie){let me=A.findIndex(Le=>ie[Le.route.id]!==void 0);O=A.slice(0,me+1).every(Le=>!ek(Le.route,le,ie))}else O=A.every(me=>!ek(me.route,le,ie))}else{O=!1,A=[];let le=Bo(null,i,e.history.location.pathname);le.active&&le.matches&&(R=!0,A=le.matches)}let T,E={historyAction:e.history.action,location:e.history.location,matches:A,initialized:O,navigation:aE,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},L="POP",j=!1,M,k=!1,$=new Map,B=null,z=!1,U=!1,W=new Set,Q=new Map,V=0,K=-1,X=new Map,te=new Set,G=new Map,J=new Map,de=new Set,ce=new Map,ue,be=null;function Pe(){if(v=e.history.listen(({action:le,location:ie,delta:me})=>{if(ue){ue(),ue=void 0;return}gn(ce.size===0||me!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Le=en({currentLocation:E.location,nextLocation:ie,historyAction:le});if(Le&&me!=null){let Ke=new Promise(at=>{ue=at});e.history.go(me*-1),lr(Le,{state:"blocked",location:ie,proceed(){lr(Le,{state:"proceeding",proceed:void 0,reset:void 0,location:ie}),Ke.then(()=>e.history.go(me))},reset(){let at=new Map(E.blockers);at.set(Le,Kh),xe({blockers:at})}});return}return Fe(le,ie)}),r){sK(t,$);let le=()=>lK(t,$);t.addEventListener("pagehide",le),B=()=>t.removeEventListener("pagehide",le)}return E.initialized||Fe("POP",E.location,{initialHydration:!0}),T}function Ee(){v&&v(),B&&B(),y.clear(),M&&M.abort(),E.fetchers.forEach((le,ie)=>Pt(ie)),E.blockers.forEach((le,ie)=>Kt(ie))}function ge(le){return y.add(le),()=>y.delete(le)}function xe(le,ie={}){E={...E,...le};let me=[],Le=[];E.fetchers.forEach((Ke,at)=>{Ke.state==="idle"&&(de.has(at)?me.push(at):Le.push(at))}),de.forEach(Ke=>{!E.fetchers.has(Ke)&&!Q.has(Ke)&&me.push(Ke)}),[...y].forEach(Ke=>Ke(E,{deletedFetchers:me,viewTransitionOpts:ie.viewTransitionOpts,flushSync:ie.flushSync===!0})),me.forEach(Ke=>Pt(Ke)),Le.forEach(Ke=>E.fetchers.delete(Ke))}function Oe(le,ie,{flushSync:me}={}){var At,qt;let Le=E.actionData!=null&&E.navigation.formMethod!=null&&ni(E.navigation.formMethod)&&E.navigation.state==="loading"&&((At=le.state)==null?void 0:At._isRedirect)!==!0,Ke;ie.actionData?Object.keys(ie.actionData).length>0?Ke=ie.actionData:Ke=null:Le?Ke=E.actionData:Ke=null;let at=ie.loaderData?sF(E.loaderData,ie.loaderData,ie.matches||[],ie.errors):E.loaderData,Et=E.blockers;Et.size>0&&(Et=new Map(Et),Et.forEach((Ft,Xt)=>Et.set(Xt,Kh)));let ut=j===!0||E.navigation.formMethod!=null&&ni(E.navigation.formMethod)&&((qt=le.state)==null?void 0:qt._isRedirect)!==!0;u&&(i=u,u=void 0),z||L==="POP"||(L==="PUSH"?e.history.push(le,le.state):L==="REPLACE"&&e.history.replace(le,le.state));let Ot;if(L==="POP"){let Ft=$.get(E.location.pathname);Ft&&Ft.has(le.pathname)?Ot={currentLocation:E.location,nextLocation:le}:$.has(le.pathname)&&(Ot={currentLocation:le,nextLocation:E.location})}else if(k){let Ft=$.get(E.location.pathname);Ft?Ft.add(le.pathname):(Ft=new Set([le.pathname]),$.set(E.location.pathname,Ft)),Ot={currentLocation:E.location,nextLocation:le}}xe({...ie,actionData:Ke,loaderData:at,historyAction:L,location:le,initialized:!0,navigation:aE,revalidation:"idle",restoreScrollPosition:Yi(le,ie.matches||E.matches),preventScrollReset:ut,blockers:Et},{viewTransitionOpts:Ot,flushSync:me===!0}),L="POP",j=!1,k=!1,z=!1,U=!1,be==null||be.resolve(),be=null}async function Te(le,ie){if(typeof le=="number"){e.history.go(le);return}let me=Z2(E.location,E.matches,d,le,ie==null?void 0:ie.fromRouteId,ie==null?void 0:ie.relative),{path:Le,submission:Ke,error:at}=JM(!1,me,ie),Et=E.location,ut=tb(E.location,Le,ie&&ie.state);ut={...ut,...e.history.encodeLocation(ut)};let Ot=ie&&ie.replace!=null?ie.replace:void 0,At="PUSH";Ot===!0?At="REPLACE":Ot===!1||Ke!=null&&ni(Ke.formMethod)&&Ke.formAction===E.location.pathname+E.location.search&&(At="REPLACE");let qt=ie&&"preventScrollReset"in ie?ie.preventScrollReset===!0:void 0,Ft=(ie&&ie.flushSync)===!0,Xt=en({currentLocation:Et,nextLocation:ut,historyAction:At});if(Xt){lr(Xt,{state:"blocked",location:ut,proceed(){lr(Xt,{state:"proceeding",proceed:void 0,reset:void 0,location:ut}),Te(le,ie)},reset(){let ur=new Map(E.blockers);ur.set(Xt,Kh),xe({blockers:ur})}});return}await Fe(At,ut,{submission:Ke,pendingError:at,preventScrollReset:qt,replace:ie&&ie.replace,enableViewTransition:ie&&ie.viewTransition,flushSync:Ft})}function Me(){be||(be=uK()),De(),xe({revalidation:"loading"});let le=be.promise;return E.navigation.state==="submitting"?le:E.navigation.state==="idle"?(Fe(E.historyAction,E.location,{startUninterruptedRevalidation:!0}),le):(Fe(L||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation,enableViewTransition:k===!0}),le)}async function Fe(le,ie,me){M&&M.abort(),M=null,L=le,z=(me&&me.startUninterruptedRevalidation)===!0,ia(E.location,E.matches),j=(me&&me.preventScrollReset)===!0,k=(me&&me.enableViewTransition)===!0;let Le=u||i,Ke=me&&me.overrideNavigation,at=me!=null&&me.initialHydration&&E.matches&&E.matches.length>0&&!R?E.matches:jc(Le,ie,d),Et=(me&&me.flushSync)===!0;if(at&&E.initialized&&!U&&rK(E.location,ie)&&!(me&&me.submission&&ni(me.submission.formMethod))){Oe(ie,{matches:at},{flushSync:Et});return}let ut=Bo(at,Le,ie.pathname);if(ut.active&&ut.matches&&(at=ut.matches),!at){let{error:bn,notFoundMatches:sa,route:ir}=Bn(ie.pathname);Oe(ie,{matches:sa,loaderData:{},errors:{[ir.id]:bn}},{flushSync:Et});return}M=new AbortController;let Ot=Gh(e.history,ie,M.signal,me&&me.submission),At=new XM(e.unstable_getContext?await e.unstable_getContext():void 0),qt;if(me&&me.pendingError)qt=[kf(at).route.id,{type:"error",error:me.pendingError}];else if(me&&me.submission&&ni(me.submission.formMethod)){let bn=await $e(Ot,ie,me.submission,at,At,ut.active,me&&me.initialHydration===!0,{replace:me.replace,flushSync:Et});if(bn.shortCircuited)return;if(bn.pendingActionResult){let[sa,ir]=bn.pendingActionResult;if(ri(ir)&&rb(ir.error)&&ir.error.status===404){M=null,Oe(ie,{matches:bn.matches,loaderData:{},errors:{[sa]:ir.error}});return}}at=bn.matches||at,qt=bn.pendingActionResult,Ke=oE(ie,me.submission),Et=!1,ut.active=!1,Ot=Gh(e.history,Ot.url,Ot.signal)}let{shortCircuited:Ft,matches:Xt,loaderData:ur,errors:Gr}=await et(Ot,ie,at,At,ut.active,Ke,me&&me.submission,me&&me.fetcherSubmission,me&&me.replace,me&&me.initialHydration===!0,Et,qt);Ft||(M=null,Oe(ie,{matches:Xt||at,...lF(qt),loaderData:ur,errors:Gr}))}async function $e(le,ie,me,Le,Ke,at,Et,ut={}){De();let Ot=oK(ie,me);if(xe({navigation:Ot},{flushSync:ut.flushSync===!0}),at){let Ft=await zo(Le,ie.pathname,le.signal);if(Ft.type==="aborted")return{shortCircuited:!0};if(Ft.type==="error"){let Xt=kf(Ft.partialMatches).route.id;return{matches:Ft.partialMatches,pendingActionResult:[Xt,{type:"error",error:Ft.error}]}}else if(Ft.matches)Le=Ft.matches;else{let{notFoundMatches:Xt,error:ur,route:Gr}=Bn(ie.pathname);return{matches:Xt,pendingActionResult:[Gr.id,{type:"error",error:ur}]}}}let At,qt=ly(Le,ie);if(!qt.route.action&&!qt.route.lazy)At={type:"error",error:Mi(405,{method:le.method,pathname:ie.pathname,routeId:qt.route.id})};else{let Ft=om(a,o,le,Le,qt,Et?[]:n,Ke),Xt=await we(le,Ft,Ke,null);if(At=Xt[qt.route.id],!At){for(let ur of Le)if(Xt[ur.route.id]){At=Xt[ur.route.id];break}}if(le.signal.aborted)return{shortCircuited:!0}}if($f(At)){let Ft;return ut&&ut.replace!=null?Ft=ut.replace:Ft=aF(At.response.headers.get("Location"),new URL(le.url),d)===E.location.pathname+E.location.search,await ne(le,At,!0,{submission:me,replace:Ft}),{shortCircuited:!0}}if(ri(At)){let Ft=kf(Le,qt.route.id);return(ut&&ut.replace)!==!0&&(L="PUSH"),{matches:Le,pendingActionResult:[Ft.route.id,At,qt.route.id]}}return{matches:Le,pendingActionResult:[qt.route.id,At]}}async function et(le,ie,me,Le,Ke,at,Et,ut,Ot,At,qt,Ft){let Xt=at||oE(ie,Et),ur=Et||ut||dF(Xt),Gr=!z&&!At;if(Ke){if(Gr){let la=qe(Ft);xe({navigation:Xt,...la!==void 0?{actionData:la}:{}},{flushSync:qt})}let cr=await zo(me,ie.pathname,le.signal);if(cr.type==="aborted")return{shortCircuited:!0};if(cr.type==="error"){let la=kf(cr.partialMatches).route.id;return{matches:cr.partialMatches,loaderData:{},errors:{[la]:cr.error}}}else if(cr.matches)me=cr.matches;else{let{error:la,notFoundMatches:ho,route:Ji}=Bn(ie.pathname);return{matches:ho,loaderData:{},errors:{[Ji.id]:la}}}}let bn=u||i,{dsMatches:sa,revalidatingFetchers:ir}=ZM(le,Le,a,o,e.history,E,me,ur,ie,At?[]:n,At===!0,U,W,de,G,te,bn,d,e.patchRoutesOnNavigation!=null,Ft);if(K=++V,!e.dataStrategy&&!sa.some(cr=>cr.shouldLoad)&&ir.length===0){let cr=Lt();return Oe(ie,{matches:me,loaderData:{},errors:Ft&&ri(Ft[1])?{[Ft[0]]:Ft[1].error}:null,...lF(Ft),...cr?{fetchers:new Map(E.fetchers)}:{}},{flushSync:qt}),{shortCircuited:!0}}if(Gr){let cr={};if(!Ke){cr.navigation=Xt;let la=qe(Ft);la!==void 0&&(cr.actionData=la)}ir.length>0&&(cr.fetchers=re(ir)),xe(cr,{flushSync:qt})}ir.forEach(cr=>{Je(cr.key),cr.controller&&Q.set(cr.key,cr.controller)});let js=()=>ir.forEach(cr=>Je(cr.key));M&&M.signal.addEventListener("abort",js);let{loaderResults:hi,fetcherResults:Ms}=await Ne(sa,ir,le,Le);if(le.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",js),ir.forEach(cr=>Q.delete(cr.key));let zn=F_(hi);if(zn)return await ne(le,zn.result,!0,{replace:Ot}),{shortCircuited:!0};if(zn=F_(Ms),zn)return te.add(zn.key),await ne(le,zn.result,!0,{replace:Ot}),{shortCircuited:!0};let{loaderData:Fl,errors:Sr}=iF(E,me,hi,Ft,ir,Ms);At&&E.errors&&(Sr={...E.errors,...Sr});let Pd=Lt(),qo=Ct(K),Ll=Pd||qo||ir.length>0;return{matches:me,loaderData:Fl,errors:Sr,...Ll?{fetchers:new Map(E.fetchers)}:{}}}function qe(le){if(le&&!ri(le[1]))return{[le[0]]:le[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function re(le){return le.forEach(ie=>{let me=E.fetchers.get(ie.key),Le=Vg(void 0,me?me.data:void 0);E.fetchers.set(ie.key,Le)}),new Map(E.fetchers)}async function oe(le,ie,me,Le){Je(le);let Ke=(Le&&Le.flushSync)===!0,at=u||i,Et=Z2(E.location,E.matches,d,me,ie,Le==null?void 0:Le.relative),ut=jc(at,Et,d),Ot=Bo(ut,at,Et);if(Ot.active&&Ot.matches&&(ut=Ot.matches),!ut){lt(le,ie,Mi(404,{pathname:Et}),{flushSync:Ke});return}let{path:At,submission:qt,error:Ft}=JM(!0,Et,Le);if(Ft){lt(le,ie,Ft,{flushSync:Ke});return}let Xt=ly(ut,At),ur=new XM(e.unstable_getContext?await e.unstable_getContext():void 0),Gr=(Le&&Le.preventScrollReset)===!0;if(qt&&ni(qt.formMethod)){await pe(le,ie,At,Xt,ut,ur,Ot.active,Ke,Gr,qt);return}G.set(le,{routeId:ie,path:At}),await Se(le,ie,At,Xt,ut,ur,Ot.active,Ke,Gr,qt)}async function pe(le,ie,me,Le,Ke,at,Et,ut,Ot,At){De(),G.delete(le);function qt(Yr){if(!Yr.route.action&&!Yr.route.lazy){let Pn=Mi(405,{method:At.formMethod,pathname:me,routeId:ie});return lt(le,ie,Pn,{flushSync:ut}),!0}return!1}if(!Et&&qt(Le))return;let Ft=E.fetchers.get(le);ht(le,iK(At,Ft),{flushSync:ut});let Xt=new AbortController,ur=Gh(e.history,me,Xt.signal,At);if(Et){let Yr=await zo(Ke,me,ur.signal,le);if(Yr.type==="aborted")return;if(Yr.type==="error"){lt(le,ie,Yr.error,{flushSync:ut});return}else if(Yr.matches){if(Ke=Yr.matches,Le=ly(Ke,me),qt(Le))return}else{lt(le,ie,Mi(404,{pathname:me}),{flushSync:ut});return}}Q.set(le,Xt);let Gr=V,bn=om(a,o,ur,Ke,Le,n,at),ir=(await we(ur,bn,at,le))[Le.route.id];if(ur.signal.aborted){Q.get(le)===Xt&&Q.delete(le);return}if(de.has(le)){if($f(ir)||ri(ir)){ht(le,Rc(void 0));return}}else{if($f(ir))if(Q.delete(le),K>Gr){ht(le,Rc(void 0));return}else return te.add(le),ht(le,Vg(At)),ne(ur,ir,!1,{fetcherSubmission:At,preventScrollReset:Ot});if(ri(ir)){lt(le,ie,ir.error);return}}let js=E.navigation.location||E.location,hi=Gh(e.history,js,Xt.signal),Ms=u||i,zn=E.navigation.state!=="idle"?jc(Ms,E.navigation.location,d):E.matches;Zt(zn,"Didn't find any matches after fetcher action");let Fl=++V;X.set(le,Fl);let Sr=Vg(At,ir.data);E.fetchers.set(le,Sr);let{dsMatches:Pd,revalidatingFetchers:qo}=ZM(hi,at,a,o,e.history,E,zn,At,js,n,!1,U,W,de,G,te,Ms,d,e.patchRoutesOnNavigation!=null,[Le.route.id,ir]);qo.filter(Yr=>Yr.key!==le).forEach(Yr=>{let Pn=Yr.key,Rd=E.fetchers.get(Pn),gp=Vg(void 0,Rd?Rd.data:void 0);E.fetchers.set(Pn,gp),Je(Pn),Yr.controller&&Q.set(Pn,Yr.controller)}),xe({fetchers:new Map(E.fetchers)});let Ll=()=>qo.forEach(Yr=>Je(Yr.key));Xt.signal.addEventListener("abort",Ll);let{loaderResults:cr,fetcherResults:la}=await Ne(Pd,qo,hi,at);if(Xt.signal.aborted)return;if(Xt.signal.removeEventListener("abort",Ll),X.delete(le),Q.delete(le),qo.forEach(Yr=>Q.delete(Yr.key)),E.fetchers.has(le)){let Yr=Rc(ir.data);E.fetchers.set(le,Yr)}let ho=F_(cr);if(ho)return ne(hi,ho.result,!1,{preventScrollReset:Ot});if(ho=F_(la),ho)return te.add(ho.key),ne(hi,ho.result,!1,{preventScrollReset:Ot});let{loaderData:Ji,errors:Ra}=iF(E,zn,cr,void 0,qo,la);Ct(Fl),E.navigation.state==="loading"&&Fl>K?(Zt(L,"Expected pending action"),M&&M.abort(),Oe(E.navigation.location,{matches:zn,loaderData:Ji,errors:Ra,fetchers:new Map(E.fetchers)})):(xe({errors:Ra,loaderData:sF(E.loaderData,Ji,zn,Ra),fetchers:new Map(E.fetchers)}),U=!1)}async function Se(le,ie,me,Le,Ke,at,Et,ut,Ot,At){let qt=E.fetchers.get(le);ht(le,Vg(At,qt?qt.data:void 0),{flushSync:ut});let Ft=new AbortController,Xt=Gh(e.history,me,Ft.signal);if(Et){let ir=await zo(Ke,me,Xt.signal,le);if(ir.type==="aborted")return;if(ir.type==="error"){lt(le,ie,ir.error,{flushSync:ut});return}else if(ir.matches)Ke=ir.matches,Le=ly(Ke,me);else{lt(le,ie,Mi(404,{pathname:me}),{flushSync:ut});return}}Q.set(le,Ft);let ur=V,Gr=om(a,o,Xt,Ke,Le,n,at),sa=(await we(Xt,Gr,at,le))[Le.route.id];if(Q.get(le)===Ft&&Q.delete(le),!Xt.signal.aborted){if(de.has(le)){ht(le,Rc(void 0));return}if($f(sa))if(K>ur){ht(le,Rc(void 0));return}else{te.add(le),await ne(Xt,sa,!1,{preventScrollReset:Ot});return}if(ri(sa)){lt(le,ie,sa.error);return}ht(le,Rc(sa.data))}}async function ne(le,ie,me,{submission:Le,fetcherSubmission:Ke,preventScrollReset:at,replace:Et}={}){ie.response.headers.has("X-Remix-Revalidate")&&(U=!0);let ut=ie.response.headers.get("Location");Zt(ut,"Expected a Location header on the redirect Response"),ut=aF(ut,new URL(le.url),d);let Ot=tb(E.location,ut,{_isRedirect:!0});if(r){let Gr=!1;if(ie.response.headers.has("X-Remix-Reload-Document"))Gr=!0;else if(bA.test(ut)){const bn=uB(ut,!0);Gr=bn.origin!==t.location.origin||Do(bn.pathname,d)==null}if(Gr){Et?t.location.replace(ut):t.location.assign(ut);return}}M=null;let At=Et===!0||ie.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:qt,formAction:Ft,formEncType:Xt}=E.navigation;!Le&&!Ke&&qt&&Ft&&Xt&&(Le=dF(E.navigation));let ur=Le||Ke;if(q7.has(ie.response.status)&&ur&&ni(ur.formMethod))await Fe(At,Ot,{submission:{...ur,formAction:ut},preventScrollReset:at||j,enableViewTransition:me?k:void 0});else{let Gr=oE(Ot,Le);await Fe(At,Ot,{overrideNavigation:Gr,fetcherSubmission:Ke,preventScrollReset:at||j,enableViewTransition:me?k:void 0})}}async function we(le,ie,me,Le){let Ke,at={};try{Ke=await Y7(l,le,ie,Le,me,!1)}catch(Et){return ie.filter(ut=>ut.shouldLoad).forEach(ut=>{at[ut.route.id]={type:"error",error:Et}}),at}if(le.signal.aborted)return at;for(let[Et,ut]of Object.entries(Ke))if(nK(ut)){let Ot=ut.result;at[Et]={type:"redirect",response:eK(Ot,le,Et,ie,d)}}else at[Et]=await Z7(ut);return at}async function Ne(le,ie,me,Le){let Ke=we(me,le,Le,null),at=Promise.all(ie.map(async Ot=>{if(Ot.matches&&Ot.match&&Ot.request&&Ot.controller){let qt=(await we(Ot.request,Ot.matches,Le,Ot.key))[Ot.match.route.id];return{[Ot.key]:qt}}else return Promise.resolve({[Ot.key]:{type:"error",error:Mi(404,{pathname:Ot.path})}})})),Et=await Ke,ut=(await at).reduce((Ot,At)=>Object.assign(Ot,At),{});return{loaderResults:Et,fetcherResults:ut}}function De(){U=!0,G.forEach((le,ie)=>{Q.has(ie)&&W.add(ie),Je(ie)})}function ht(le,ie,me={}){E.fetchers.set(le,ie),xe({fetchers:new Map(E.fetchers)},{flushSync:(me&&me.flushSync)===!0})}function lt(le,ie,me,Le={}){let Ke=kf(E.matches,ie);Pt(le),xe({errors:{[Ke.route.id]:me},fetchers:new Map(E.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function bt(le){return J.set(le,(J.get(le)||0)+1),de.has(le)&&de.delete(le),E.fetchers.get(le)||U7}function Pt(le){let ie=E.fetchers.get(le);Q.has(le)&&!(ie&&ie.state==="loading"&&X.has(le))&&Je(le),G.delete(le),X.delete(le),te.delete(le),de.delete(le),W.delete(le),E.fetchers.delete(le)}function Tt(le){let ie=(J.get(le)||0)-1;ie<=0?(J.delete(le),de.add(le)):J.set(le,ie),xe({fetchers:new Map(E.fetchers)})}function Je(le){let ie=Q.get(le);ie&&(ie.abort(),Q.delete(le))}function Dt(le){for(let ie of le){let me=bt(ie),Le=Rc(me.data);E.fetchers.set(ie,Le)}}function Lt(){let le=[],ie=!1;for(let me of te){let Le=E.fetchers.get(me);Zt(Le,`Expected fetcher: ${me}`),Le.state==="loading"&&(te.delete(me),le.push(me),ie=!0)}return Dt(le),ie}function Ct(le){let ie=[];for(let[me,Le]of X)if(Le0}function ct(le,ie){let me=E.blockers.get(le)||Kh;return ce.get(le)!==ie&&ce.set(le,ie),me}function Kt(le){E.blockers.delete(le),ce.delete(le)}function lr(le,ie){let me=E.blockers.get(le)||Kh;Zt(me.state==="unblocked"&&ie.state==="blocked"||me.state==="blocked"&&ie.state==="blocked"||me.state==="blocked"&&ie.state==="proceeding"||me.state==="blocked"&&ie.state==="unblocked"||me.state==="proceeding"&&ie.state==="unblocked",`Invalid blocker state transition: ${me.state} -> ${ie.state}`);let Le=new Map(E.blockers);Le.set(le,ie),xe({blockers:Le})}function en({currentLocation:le,nextLocation:ie,historyAction:me}){if(ce.size===0)return;ce.size>1&&gn(!1,"A router only supports one blocker at a time");let Le=Array.from(ce.entries()),[Ke,at]=Le[Le.length-1],Et=E.blockers.get(Ke);if(!(Et&&Et.state==="proceeding")&&at({currentLocation:le,nextLocation:ie,historyAction:me}))return Ke}function Bn(le){let ie=Mi(404,{pathname:le}),me=u||i,{matches:Le,route:Ke}=uF(me);return{notFoundMatches:Le,route:Ke,error:ie}}function Xi(le,ie,me){if(b=le,w=ie,_=me||null,!S&&E.navigation===aE){S=!0;let Le=Yi(E.location,E.matches);Le!=null&&xe({restoreScrollPosition:Le})}return()=>{b=null,w=null,_=null}}function Pa(le,ie){return _&&_(le,ie.map(Le=>w7(Le,E.loaderData)))||le.key}function ia(le,ie){if(b&&w){let me=Pa(le,ie);b[me]=w()}}function Yi(le,ie){if(b){let me=Pa(le,ie),Le=b[me];if(typeof Le=="number")return Le}return null}function Bo(le,ie,me){if(e.patchRoutesOnNavigation)if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:f1(ie,me,d,!0)}}else return{active:!0,matches:f1(ie,me,d,!0)||[]};return{active:!1,matches:null}}async function zo(le,ie,me,Le){if(!e.patchRoutesOnNavigation)return{type:"success",matches:le};let Ke=le;for(;;){let at=u==null,Et=u||i,ut=o;try{await e.patchRoutesOnNavigation({signal:me,path:ie,matches:Ke,fetcherKey:Le,patch:(qt,Ft)=>{me.aborted||eF(qt,Ft,Et,ut,a)}})}catch(qt){return{type:"error",error:qt,partialMatches:Ke}}finally{at&&!me.aborted&&(i=[...i])}if(me.aborted)return{type:"aborted"};let Ot=jc(Et,ie,d);if(Ot)return{type:"success",matches:Ot};let At=f1(Et,ie,d,!0);if(!At||Ke.length===At.length&&Ke.every((qt,Ft)=>qt.route.id===At[Ft].route.id))return{type:"success",matches:null};Ke=At}}function Is(le){o={},u=T1(le,a,void 0,o)}function Ht(le,ie){let me=u==null;eF(le,ie,u||i,o,a),me&&(i=[...i],xe({}))}return T={get basename(){return d},get future(){return h},get state(){return E},get routes(){return i},get window(){return t},initialize:Pe,subscribe:ge,enableScrollRestoration:Xi,navigate:Te,fetch:oe,revalidate:Me,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:bt,deleteFetcher:Tt,dispose:Ee,getBlocker:ct,deleteBlocker:Kt,patchRoutes:Ht,_internalFetchControllers:Q,_internalSetRoutes:Is},T}function H7(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Z2(e,t,r,n,a,o){let i,u;if(a){i=[];for(let l of t)if(i.push(l),l.route.id===a){u=l;break}}else i=t,u=t[t.length-1];let d=rx(n||".",tx(i),Do(e.pathname,r)||e.pathname,o==="path");if(n==null&&(d.search=e.search,d.hash=e.hash),(n==null||n===""||n===".")&&u){let l=_A(d.search);if(u.route.index&&!l)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&l){let h=new URLSearchParams(d.search),v=h.getAll("index");h.delete("index"),v.filter(b=>b).forEach(b=>h.append("index",b));let y=h.toString();d.search=y?`?${y}`:""}}return r!=="/"&&(d.pathname=d.pathname==="/"?r:Sl([r,d.pathname])),od(d)}function JM(e,t,r){if(!r||!H7(r))return{path:t};if(r.formMethod&&!aK(r.formMethod))return{path:t,error:Mi(405,{method:r.formMethod})};let n=()=>({path:t,error:Mi(400,{type:"invalid-body"})}),o=(r.formMethod||"get").toUpperCase(),i=xB(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ni(o))return n();let v=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,[b,_])=>`${y}${b}=${_} +`,""):String(r.body);return{path:t,submission:{formMethod:o,formAction:i,formEncType:r.formEncType,formData:void 0,json:void 0,text:v}}}else if(r.formEncType==="application/json"){if(!ni(o))return n();try{let v=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:o,formAction:i,formEncType:r.formEncType,formData:void 0,json:v,text:void 0}}}catch{return n()}}}Zt(typeof FormData=="function","FormData is not available in this environment");let u,d;if(r.formData)u=rk(r.formData),d=r.formData;else if(r.body instanceof FormData)u=rk(r.body),d=r.body;else if(r.body instanceof URLSearchParams)u=r.body,d=oF(u);else if(r.body==null)u=new URLSearchParams,d=new FormData;else try{u=new URLSearchParams(r.body),d=oF(u)}catch{return n()}let l={formMethod:o,formAction:i,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(ni(l.formMethod))return{path:t,submission:l};let h=Al(t);return e&&h.search&&_A(h.search)&&u.append("index",""),h.search=`?${u}`,{path:od(h),submission:l}}function ZM(e,t,r,n,a,o,i,u,d,l,h,v,y,b,_,w,S,A,R,C){var z;let O=C?ri(C[1])?C[1].error:C[1].data:void 0,T=a.createURL(o.location),E=a.createURL(d),L;if(h&&o.errors){let U=Object.keys(o.errors)[0];L=i.findIndex(W=>W.route.id===U)}else if(C&&ri(C[1])){let U=C[0];L=i.findIndex(W=>W.route.id===U)-1}let j=C?C[1].statusCode:void 0,M=j&&j>=400,k={currentUrl:T,currentParams:((z=o.matches[0])==null?void 0:z.params)||{},nextUrl:E,nextParams:i[0].params,...u,actionResult:O,actionStatus:j},$=i.map((U,W)=>{let{route:Q}=U,V=null;if(L!=null&&W>L?V=!1:Q.lazy?V=!0:Q.loader==null?V=!1:h?V=ek(Q,o.loaderData,o.errors):K7(o.loaderData,o.matches[W],U)&&(V=!0),V!==null)return tk(r,n,e,U,l,t,V);let K=M?!1:v||T.pathname+T.search===E.pathname+E.search||T.search!==E.search||G7(o.matches[W],U),X={...k,defaultShouldRevalidate:K},te=I1(U,X);return tk(r,n,e,U,l,t,te,X)}),B=[];return _.forEach((U,W)=>{if(h||!i.some(de=>de.route.id===U.routeId)||b.has(W))return;let Q=o.fetchers.get(W),V=Q&&Q.state!=="idle"&&Q.data===void 0,K=jc(S,U.path,A);if(!K){if(R&&V)return;B.push({key:W,routeId:U.routeId,path:U.path,matches:null,match:null,request:null,controller:null});return}if(w.has(W))return;let X=ly(K,U.path),te=new AbortController,G=Gh(a,U.path,te.signal),J=null;if(y.has(W))y.delete(W),J=om(r,n,G,K,X,l,t);else if(V)v&&(J=om(r,n,G,K,X,l,t));else{let de={...k,defaultShouldRevalidate:M?!1:v};I1(X,de)&&(J=om(r,n,G,K,X,l,t,de))}J&&B.push({key:W,routeId:U.routeId,path:U.path,matches:J,match:X,request:G,controller:te})}),{dsMatches:$,revalidatingFetchers:B}}function ek(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&e.id in t,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function K7(e,t,r){let n=!t||r.route.id!==t.route.id,a=!e.hasOwnProperty(r.route.id);return n||a}function G7(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function I1(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function eF(e,t,r,n,a){let o;if(e){let d=n[e];Zt(d,`No route found to patch children into: routeId = ${e}`),d.children||(d.children=[]),o=d.children}else o=r;let i=t.filter(d=>!o.some(l=>gB(d,l))),u=T1(i,a,[e||"_","patch",String((o==null?void 0:o.length)||"0")],n);o.push(...u)}function gB(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(o=>gB(r,o))}):!1}var tF=new WeakMap,yB=({key:e,route:t,manifest:r,mapRouteProperties:n})=>{let a=r[t.id];if(Zt(a,"No route found in manifest"),!a.lazy||typeof a.lazy!="object")return;let o=a.lazy[e];if(!o)return;let i=tF.get(a);i||(i={},tF.set(a,i));let u=i[e];if(u)return u;let d=(async()=>{let l=g7(e),v=a[e]!==void 0&&e!=="hasErrorBoundary";if(l)gn(!l,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(v)gn(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let y=await o();y!=null&&(Object.assign(a,{[e]:y}),Object.assign(a,n(a)))}typeof a.lazy=="object"&&(a.lazy[e]=void 0,Object.values(a.lazy).every(y=>y===void 0)&&(a.lazy=void 0))})();return i[e]=d,d},rF=new WeakMap;function Q7(e,t,r,n,a){let o=r[e.id];if(Zt(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let h=rF.get(o);if(h)return{lazyRoutePromise:h,lazyHandlerPromise:h};let v=(async()=>{Zt(typeof e.lazy=="function","No lazy route function found");let y=await e.lazy(),b={};for(let _ in y){let w=y[_];if(w===void 0)continue;let S=b7(_),R=o[_]!==void 0&&_!=="hasErrorBoundary";S?gn(!S,"Route property "+_+" is not a supported property to be returned from a lazy route function. This property will be ignored."):R?gn(!R,`Route "${o.id}" has a static property "${_}" defined but its lazy function is also returning a value for this property. The lazy route property "${_}" will be ignored.`):b[_]=w}Object.assign(o,b),Object.assign(o,{...n(o),lazy:void 0})})();return rF.set(o,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let i=Object.keys(e.lazy),u=[],d;for(let h of i){if(a&&a.includes(h))continue;let v=yB({key:h,route:e,manifest:r,mapRouteProperties:n});v&&(u.push(v),h===t&&(d=v))}let l=u.length>0?Promise.all(u).then(()=>{}):void 0;return l==null||l.catch(()=>{}),d==null||d.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:d}}async function nF(e){let t=e.matches.filter(a=>a.shouldLoad),r={};return(await Promise.all(t.map(a=>a.resolve()))).forEach((a,o)=>{r[t[o].route.id]=a}),r}async function X7(e){return e.matches.some(t=>t.route.unstable_middleware)?bB(e,!1,()=>nF(e),(t,r)=>({[r]:{type:"error",result:t}})):nF(e)}async function bB(e,t,r,n){let{matches:a,request:o,params:i,context:u}=e,d={handlerResult:void 0};try{let l=a.flatMap(v=>v.route.unstable_middleware?v.route.unstable_middleware.map(y=>[v.route.id,y]):[]),h=await _B({request:o,params:i,context:u},l,t,d,r);return t?h:d.handlerResult}catch(l){if(!d.middlewareError)throw l;let h=await n(d.middlewareError.error,d.middlewareError.routeId);return d.handlerResult?Object.assign(d.handlerResult,h):h}}async function _B(e,t,r,n,a,o=0){let{request:i}=e;if(i.signal.aborted)throw i.signal.reason?i.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`);let u=t[o];if(!u)return n.handlerResult=await a(),n.handlerResult;let[d,l]=u,h=!1,v,y=async()=>{if(h)throw new Error("You may only call `next()` once per middleware");h=!0,await _B(e,t,r,n,a,o+1)};try{let b=await l({request:e.request,params:e.params,context:e.context},y);return h?b===void 0?v:b:y()}catch(b){throw n.middlewareError?n.middlewareError.error!==b&&(n.middlewareError={routeId:d,error:b}):n.middlewareError={routeId:d,error:b},b}}function wB(e,t,r,n,a){let o=yB({key:"unstable_middleware",route:n.route,manifest:t,mapRouteProperties:e}),i=Q7(n.route,ni(r.method)?"action":"loader",t,e,a);return{middleware:o,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function tk(e,t,r,n,a,o,i,u=null){let d=!1,l=wB(e,t,r,n,a);return{...n,_lazyPromises:l,shouldLoad:i,unstable_shouldRevalidateArgs:u,unstable_shouldCallHandler(h){return d=!0,u?typeof h=="boolean"?I1(n,{...u,defaultShouldRevalidate:h}):I1(n,u):i},resolve(h){return d||i||h&&r.method==="GET"&&(n.route.lazy||n.route.loader)?J7({request:r,match:n,lazyHandlerPromise:l==null?void 0:l.handler,lazyRoutePromise:l==null?void 0:l.route,handlerOverride:h,scopedContext:o}):Promise.resolve({type:"data",result:void 0})}}}function om(e,t,r,n,a,o,i,u=null){return n.map(d=>d.route.id!==a.route.id?{...d,shouldLoad:!1,unstable_shouldRevalidateArgs:u,unstable_shouldCallHandler:()=>!1,_lazyPromises:wB(e,t,r,d,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:tk(e,t,r,d,o,i,!0,u))}async function Y7(e,t,r,n,a,o){r.some(l=>{var h;return(h=l._lazyPromises)==null?void 0:h.middleware})&&await Promise.all(r.map(l=>{var h;return(h=l._lazyPromises)==null?void 0:h.middleware}));let i={request:t,params:r[0].params,context:a,matches:r},d=await e({...i,fetcherKey:n,unstable_runClientMiddleware:l=>{let h=i;return bB(h,!1,()=>l({...h,fetcherKey:n,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(v,y)=>({[y]:{type:"error",result:v}}))}});try{await Promise.all(r.flatMap(l=>{var h,v;return[(h=l._lazyPromises)==null?void 0:h.handler,(v=l._lazyPromises)==null?void 0:v.route]}))}catch{}return d}async function J7({request:e,match:t,lazyHandlerPromise:r,lazyRoutePromise:n,handlerOverride:a,scopedContext:o}){let i,u,d=ni(e.method),l=d?"action":"loader",h=v=>{let y,b=new Promise((S,A)=>y=A);u=()=>y(),e.signal.addEventListener("abort",u);let _=S=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${l}" [routeId: ${t.route.id}]`)):v({request:e,params:t.params,context:o},...S!==void 0?[S]:[]),w=(async()=>{try{return{type:"data",result:await(a?a(A=>_(A)):_())}}catch(S){return{type:"error",result:S}}})();return Promise.race([w,b])};try{let v=d?t.route.action:t.route.loader;if(r||n)if(v){let y,[b]=await Promise.all([h(v).catch(_=>{y=_}),r,n]);if(y!==void 0)throw y;i=b}else{await r;let y=d?t.route.action:t.route.loader;if(y)[i]=await Promise.all([h(y),n]);else if(l==="action"){let b=new URL(e.url),_=b.pathname+b.search;throw Mi(405,{method:e.method,pathname:_,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(v)i=await h(v);else{let y=new URL(e.url),b=y.pathname+y.search;throw Mi(404,{pathname:b})}}catch(v){return{type:"error",result:v}}finally{u&&e.signal.removeEventListener("abort",u)}return i}async function Z7(e){var n,a,o,i,u,d;let{result:t,type:r}=e;if(SB(t)){let l;try{let h=t.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?t.body==null?l=null:l=await t.json():l=await t.text()}catch(h){return{type:"error",error:h}}return r==="error"?{type:"error",error:new A1(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:"data",data:l,statusCode:t.status,headers:t.headers}}return r==="error"?cF(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(n=t.init)==null?void 0:n.status,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new A1(((o=t.init)==null?void 0:o.status)||500,void 0,t.data),statusCode:rb(t)?t.status:void 0,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:rb(t)?t.status:void 0}:cF(t)?{type:"data",data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(d=t.init)!=null&&d.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function eK(e,t,r,n,a){let o=e.headers.get("Location");if(Zt(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!bA.test(o)){let i=n.slice(0,n.findIndex(u=>u.route.id===r)+1);o=Z2(new URL(t.url),i,a,o),e.headers.set("Location",o)}return e}function aF(e,t,r){if(bA.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Do(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Gh(e,t,r,n){let a=e.createURL(xB(t)).toString(),o={signal:r};if(n&&ni(n.formMethod)){let{formMethod:i,formEncType:u}=n;o.method=i.toUpperCase(),u==="application/json"?(o.headers=new Headers({"Content-Type":u}),o.body=JSON.stringify(n.json)):u==="text/plain"?o.body=n.text:u==="application/x-www-form-urlencoded"&&n.formData?o.body=rk(n.formData):o.body=n.formData}return new Request(a,o)}function rk(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function oF(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function tK(e,t,r,n=!1,a=!1){let o={},i=null,u,d=!1,l={},h=r&&ri(r[1])?r[1].error:void 0;return e.forEach(v=>{if(!(v.route.id in t))return;let y=v.route.id,b=t[y];if(Zt(!$f(b),"Cannot handle redirect results in processLoaderData"),ri(b)){let _=b.error;if(h!==void 0&&(_=h,h=void 0),i=i||{},a)i[y]=_;else{let w=kf(e,y);i[w.route.id]==null&&(i[w.route.id]=_)}n||(o[y]=vB),d||(d=!0,u=rb(b.error)?b.error.status:500),b.headers&&(l[y]=b.headers)}else o[y]=b.data,b.statusCode&&b.statusCode!==200&&!d&&(u=b.statusCode),b.headers&&(l[y]=b.headers)}),h!==void 0&&r&&(i={[r[0]]:h},r[2]&&(o[r[2]]=void 0)),{loaderData:o,errors:i,statusCode:u||200,loaderHeaders:l}}function iF(e,t,r,n,a,o){let{loaderData:i,errors:u}=tK(t,r,n);return a.filter(d=>!d.matches||d.matches.some(l=>l.shouldLoad)).forEach(d=>{let{key:l,match:h,controller:v}=d,y=o[l];if(Zt(y,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(ri(y)){let b=kf(e.matches,h==null?void 0:h.route.id);u&&u[b.route.id]||(u={...u,[b.route.id]:y.error}),e.fetchers.delete(l)}else if($f(y))Zt(!1,"Unhandled fetcher revalidation redirect");else{let b=Rc(y.data);e.fetchers.set(l,b)}}),{loaderData:i,errors:u}}function sF(e,t,r,n){let a=Object.entries(t).filter(([,o])=>o!==vB).reduce((o,[i,u])=>(o[i]=u,o),{});for(let o of r){let i=o.route.id;if(!t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function lF(e){return e?ri(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function kf(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function uF(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Mi(e,{pathname:t,routeId:r,method:n,type:a,message:o}={}){let i="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(i="Bad Request",n&&t&&r?u=`You made a ${n} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:a==="invalid-body"&&(u="Unable to encode submission body")):e===403?(i="Forbidden",u=`Route "${r}" does not match URL "${t}"`):e===404?(i="Not Found",u=`No route matches URL "${t}"`):e===405&&(i="Method Not Allowed",n&&t&&r?u=`You made a ${n.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:n&&(u=`Invalid request method "${n.toUpperCase()}"`)),new A1(e||500,i,new Error(u),!0)}function F_(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if($f(a))return{key:n,result:a}}}function xB(e){let t=typeof e=="string"?Al(e):e;return od({...t,hash:""})}function rK(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function nK(e){return SB(e.result)&&z7.has(e.result.status)}function ri(e){return e.type==="error"}function $f(e){return(e&&e.type)==="redirect"}function cF(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function SB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function aK(e){return B7.has(e.toUpperCase())}function ni(e){return D7.has(e.toUpperCase())}function _A(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ly(e,t){let r=typeof t=="string"?Al(t).search:t.search;if(e[e.length-1].route.index&&_A(r||""))return e[e.length-1];let n=pB(e);return n[n.length-1]}function dF(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function oE(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function oK(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Vg(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function iK(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Rc(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function sK(e,t){try{let r=e.sessionStorage.getItem(mB);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function lK(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(mB,JSON.stringify(r))}catch(n){gn(!1,`Failed to save applied view transitions in sessionStorage (${n}).`)}}}function uK(){let e,t,r=new Promise((n,a)=>{e=async o=>{n(o);try{await r}catch{}},t=async o=>{a(o);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}var dd=p.createContext(null);dd.displayName="DataRouter";var ov=p.createContext(null);ov.displayName="DataRouterState";var wA=p.createContext({isTransitioning:!1});wA.displayName="ViewTransition";var CB=p.createContext(new Map);CB.displayName="Fetchers";var cK=p.createContext(null);cK.displayName="Await";var Es=p.createContext(null);Es.displayName="Navigation";var Fb=p.createContext(null);Fb.displayName="Location";var Ki=p.createContext({outlet:null,matches:[],isDataRoute:!1});Ki.displayName="Route";var xA=p.createContext(null);xA.displayName="RouteError";function dK(e,{relative:t}={}){Zt(fd(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:n}=p.useContext(Es),{hash:a,pathname:o,search:i}=$b(e,{relative:t}),u=o;return r!=="/"&&(u=o==="/"?r:Sl([r,o])),n.createHref({pathname:u,search:i,hash:a})}function fd(){return p.useContext(Fb)!=null}function an(){return Zt(fd(),"useLocation() may be used only in the context of a component."),p.useContext(Fb).location}function fK(e){Zt(fd(),"useMatch() may be used only in the context of a component.");let{pathname:t}=an();return p.useMemo(()=>id(e,fB(t)),[t,e])}var EB="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function OB(e){p.useContext(Es).static||p.useLayoutEffect(e)}function Os(){let{isDataRoute:e}=p.useContext(Ki);return e?PK():pK()}function pK(){Zt(fd(),"useNavigate() may be used only in the context of a component.");let e=p.useContext(dd),{basename:t,navigator:r}=p.useContext(Es),{matches:n}=p.useContext(Ki),{pathname:a}=an(),o=JSON.stringify(tx(n)),i=p.useRef(!1);return OB(()=>{i.current=!0}),p.useCallback((d,l={})=>{if(gn(i.current,EB),!i.current)return;if(typeof d=="number"){r.go(d);return}let h=rx(d,JSON.parse(o),a,l.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Sl([t,h.pathname])),(l.replace?r.replace:r.push)(h,l.state,l)},[t,r,o,a,e])}var hK=p.createContext(null);function mK(e){let t=p.useContext(Ki).outlet;return t&&p.createElement(hK.Provider,{value:e},t)}function Lb(){let{matches:e}=p.useContext(Ki),t=e[e.length-1];return t?t.params:{}}function $b(e,{relative:t}={}){let{matches:r}=p.useContext(Ki),{pathname:n}=an(),a=JSON.stringify(tx(r));return p.useMemo(()=>rx(e,JSON.parse(a),n,t==="path"),[e,a,n,t])}function vK(e,t){return PB(e,t)}function PB(e,t,r,n){var A;Zt(fd(),"useRoutes() may be used only in the context of a component.");let{navigator:a}=p.useContext(Es),{matches:o}=p.useContext(Ki),i=o[o.length-1],u=i?i.params:{},d=i?i.pathname:"/",l=i?i.pathnameBase:"/",h=i&&i.route;{let R=h&&h.path||"";TB(d,!h||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${d}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + +Please change the parent to .`)}let v=an(),y;if(t){let R=typeof t=="string"?Al(t):t;Zt(l==="/"||((A=R.pathname)==null?void 0:A.startsWith(l)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${R.pathname}" was given in the \`location\` prop.`),y=R}else y=v;let b=y.pathname||"/",_=b;if(l!=="/"){let R=l.replace(/^\//,"").split("/");_="/"+b.replace(/^\//,"").split("/").slice(R.length).join("/")}let w=jc(e,{pathname:_});gn(h||w!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),gn(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let S=wK(w&&w.map(R=>Object.assign({},R,{params:Object.assign({},u,R.params),pathname:Sl([l,a.encodeLocation?a.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?l:Sl([l,a.encodeLocation?a.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),o,r,n);return t&&S?p.createElement(Fb.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},S):S}function gK(){let e=CK(),t=rb(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:o},"ErrorBoundary")," or"," ",p.createElement("code",{style:o},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:a},r):null,i)}var yK=p.createElement(gK,null),bK=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?p.createElement(Ki.Provider,{value:this.props.routeContext},p.createElement(xA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function _K({routeContext:e,match:t,children:r}){let n=p.useContext(dd);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(Ki.Provider,{value:e},r)}function wK(e,t=[],r=null,n=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,o=r==null?void 0:r.errors;if(o!=null){let d=a.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id])!==void 0);Zt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let i=!1,u=-1;if(r)for(let d=0;d=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,l,h)=>{let v,y=!1,b=null,_=null;r&&(v=o&&l.route.id?o[l.route.id]:void 0,b=l.route.errorElement||yK,i&&(u<0&&h===0?(TB("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,_=null):u===h&&(y=!0,_=l.route.hydrateFallbackElement||null)));let w=t.concat(a.slice(0,h+1)),S=()=>{let A;return v?A=b:y?A=_:l.route.Component?A=p.createElement(l.route.Component,null):l.route.element?A=l.route.element:A=d,p.createElement(_K,{match:l,routeContext:{outlet:d,matches:w,isDataRoute:r!=null},children:A})};return r&&(l.route.ErrorBoundary||l.route.errorElement||h===0)?p.createElement(bK,{location:r.location,revalidation:r.revalidation,component:b,error:v,children:S(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):S()},null)}function SA(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function RB(e){let t=p.useContext(dd);return Zt(t,SA(e)),t}function kB(e){let t=p.useContext(ov);return Zt(t,SA(e)),t}function xK(e){let t=p.useContext(Ki);return Zt(t,SA(e)),t}function CA(e){let t=xK(e),r=t.matches[t.matches.length-1];return Zt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function SK(){return CA("useRouteId")}function CK(){var n;let e=p.useContext(xA),t=kB("useRouteError"),r=CA("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}var EK=0;function OK(e){let{router:t,basename:r}=RB("useBlocker"),n=kB("useBlocker"),[a,o]=p.useState(""),i=p.useCallback(u=>{if(typeof e!="function")return!!e;if(r==="/")return e(u);let{currentLocation:d,nextLocation:l,historyAction:h}=u;return e({currentLocation:{...d,pathname:Do(d.pathname,r)||d.pathname},nextLocation:{...l,pathname:Do(l.pathname,r)||l.pathname},historyAction:h})},[r,e]);return p.useEffect(()=>{let u=String(++EK);return o(u),()=>t.deleteBlocker(u)},[t]),p.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Kh}function PK(){let{router:e}=RB("useNavigate"),t=CA("useNavigate"),r=p.useRef(!1);return OB(()=>{r.current=!0}),p.useCallback(async(a,o={})=>{gn(r.current,EB),r.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var fF={};function TB(e,t,r){!t&&!fF[e]&&(fF[e]=!0,gn(!1,r))}var pF={};function hF(e,t){!e&&!pF[t]&&(pF[t]=!0,console.warn(t))}function RK(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&gn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:p.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&gn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&gn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var kK=["HydrateFallback","hydrateFallbackElement"],TK=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",t(r))}})}};function AK({router:e,flushSync:t}){let[r,n]=p.useState(e.state),[a,o]=p.useState(),[i,u]=p.useState({isTransitioning:!1}),[d,l]=p.useState(),[h,v]=p.useState(),[y,b]=p.useState(),_=p.useRef(new Map),w=p.useCallback((C,{deletedFetchers:O,flushSync:T,viewTransitionOpts:E})=>{C.fetchers.forEach((j,M)=>{j.data!==void 0&&_.current.set(M,j.data)}),O.forEach(j=>_.current.delete(j)),hF(T===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let L=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(hF(E==null||L,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!E||!L){t&&T?t(()=>n(C)):p.startTransition(()=>n(C));return}if(t&&T){t(()=>{h&&(d&&d.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:E.currentLocation,nextLocation:E.nextLocation})});let j=e.window.document.startViewTransition(()=>{t(()=>n(C))});j.finished.finally(()=>{t(()=>{l(void 0),v(void 0),o(void 0),u({isTransitioning:!1})})}),t(()=>v(j));return}h?(d&&d.resolve(),h.skipTransition(),b({state:C,currentLocation:E.currentLocation,nextLocation:E.nextLocation})):(o(C),u({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}))},[e.window,t,h,d]);p.useLayoutEffect(()=>e.subscribe(w),[e,w]),p.useEffect(()=>{i.isTransitioning&&!i.flushSync&&l(new TK)},[i]),p.useEffect(()=>{if(d&&a&&e.window){let C=a,O=d.promise,T=e.window.document.startViewTransition(async()=>{p.startTransition(()=>n(C)),await O});T.finished.finally(()=>{l(void 0),v(void 0),o(void 0),u({isTransitioning:!1})}),v(T)}},[a,d,e.window]),p.useEffect(()=>{d&&a&&r.location.key===a.location.key&&d.resolve()},[d,h,r.location,a]),p.useEffect(()=>{!i.isTransitioning&&y&&(o(y.state),u({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),b(void 0))},[i.isTransitioning,y]);let S=p.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:C=>e.navigate(C),push:(C,O,T)=>e.navigate(C,{state:O,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(C,O,T)=>e.navigate(C,{replace:!0,state:O,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[e]),A=e.basename||"/",R=p.useMemo(()=>({router:e,navigator:S,static:!1,basename:A}),[e,S,A]);return p.createElement(p.Fragment,null,p.createElement(dd.Provider,{value:R},p.createElement(ov.Provider,{value:r},p.createElement(CB.Provider,{value:_.current},p.createElement(wA.Provider,{value:i},p.createElement(LK,{basename:A,location:r.location,navigationType:r.historyAction,navigator:S},p.createElement(IK,{routes:e.routes,future:e.future,state:r})))))),null)}var IK=p.memo(jK);function jK({routes:e,future:t,state:r}){return PB(e,void 0,r,t)}function MK({to:e,replace:t,state:r,relative:n}){Zt(fd()," may be used only in the context of a component.");let{static:a}=p.useContext(Es);gn(!a," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:o}=p.useContext(Ki),{pathname:i}=an(),u=Os(),d=rx(e,tx(o),i,n==="path"),l=JSON.stringify(d);return p.useEffect(()=>{u(JSON.parse(l),{replace:t,state:r,relative:n})},[u,l,n,t,r]),null}function FK(e){return mK(e.context)}function Mn(e){Zt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function LK({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:a,static:o=!1}){Zt(!fd(),"You cannot render a inside another . You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:i,navigator:a,static:o,future:{}}),[i,a,o]);typeof r=="string"&&(r=Al(r));let{pathname:d="/",search:l="",hash:h="",state:v=null,key:y="default"}=r,b=p.useMemo(()=>{let _=Do(d,i);return _==null?null:{location:{pathname:_,search:l,hash:h,state:v,key:y},navigationType:n}},[i,d,l,h,v,y,n]);return gn(b!=null,` is not able to match the URL "${d}${l}${h}" because it does not start with the basename, so the won't render anything.`),b==null?null:p.createElement(Es.Provider,{value:u},p.createElement(Fb.Provider,{children:t,value:b}))}function Zc({children:e,location:t}){return vK(nk(e),t)}function nk(e,t=[]){let r=[];return p.Children.forEach(e,(n,a)=>{if(!p.isValidElement(n))return;let o=[...t,a];if(n.type===p.Fragment){r.push.apply(r,nk(n.props.children,o));return}Zt(n.type===Mn,`[${typeof n.type=="string"?n.type:n.type.name}] is not a component. All component children of must be a or `),Zt(!n.props.index||!n.props.children,"An index route cannot have child routes.");let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||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=nk(n.props.children,o)),r.push(i)}),r}var p1="get",h1="application/x-www-form-urlencoded";function nx(e){return e!=null&&typeof e.tagName=="string"}function $K(e){return nx(e)&&e.tagName.toLowerCase()==="button"}function DK(e){return nx(e)&&e.tagName.toLowerCase()==="form"}function NK(e){return nx(e)&&e.tagName.toLowerCase()==="input"}function BK(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zK(e,t){return e.button===0&&(!t||t==="_self")&&!BK(e)}var L_=null;function qK(){if(L_===null)try{new FormData(document.createElement("form"),0),L_=!1}catch{L_=!0}return L_}var UK=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function iE(e){return e!=null&&!UK.has(e)?(gn(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${h1}"`),null):e}function VK(e,t){let r,n,a,o,i;if(DK(e)){let u=e.getAttribute("action");n=u?Do(u,t):null,r=e.getAttribute("method")||p1,a=iE(e.getAttribute("enctype"))||h1,o=new FormData(e)}else if($K(e)||NK(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a