var dm=Object.defineProperty;var pm=(e,t,n)=>t in e?dm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Du=(e,t,n)=>pm(e,typeof t!="symbol"?t+"":t,n);import{c as Hf}from"./vendor_mui-DqRwP0O9.js";function Vf(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Rr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Wf={exports:{}},Do={},Kf={exports:{}},I={};/** * @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 ci=Symbol.for("react.element"),hm=Symbol.for("react.portal"),mm=Symbol.for("react.fragment"),gm=Symbol.for("react.strict_mode"),ym=Symbol.for("react.profiler"),vm=Symbol.for("react.provider"),wm=Symbol.for("react.context"),Sm=Symbol.for("react.forward_ref"),xm=Symbol.for("react.suspense"),km=Symbol.for("react.memo"),Em=Symbol.for("react.lazy"),zu=Symbol.iterator;function Cm(e){return e===null||typeof e!="object"?null:(e=zu&&e[zu]||e["@@iterator"],typeof e=="function"?e:null)}var Qf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gf=Object.assign,qf={};function or(e,t,n){this.props=e,this.context=t,this.refs=qf,this.updater=n||Qf}or.prototype.isReactComponent={};or.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};or.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xf(){}Xf.prototype=or.prototype;function _a(e,t,n){this.props=e,this.context=t,this.refs=qf,this.updater=n||Qf}var Ta=_a.prototype=new Xf;Ta.constructor=_a;Gf(Ta,or.prototype);Ta.isPureReactComponent=!0;var Uu=Array.isArray,Yf=Object.prototype.hasOwnProperty,Ra={current:null},Jf={key:!0,ref:!0,__self:!0,__source:!0};function Zf(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Yf.call(t,r)&&!Jf.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Hm:Bm;od.useSyncExternalStore=qn.useSyncExternalStore!==void 0?qn.useSyncExternalStore:Vm;id.exports=od;var Wm=id.exports;/** * @license React * use-sync-external-store-shim/with-selector.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 zo=b,Km=Wm;function Qm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gm=typeof Object.is=="function"?Object.is:Qm,qm=Km.useSyncExternalStore,Xm=zo.useRef,Ym=zo.useEffect,Jm=zo.useMemo,Zm=zo.useDebugValue;rd.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Xm(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Jm(function(){function a(y){if(!u){if(u=!0,f=y,y=r(y),i!==void 0&&s.hasValue){var g=s.value;if(i(g,y))return d=g}return d=y}if(g=d,Gm(f,y))return g;var v=r(y);return i!==void 0&&i(g,v)?g:(f=y,d=v)}var u=!1,f,d,c=n===void 0?null:n;return[function(){return a(t())},c===null?void 0:function(){return a(c())}]},[t,n,r,i]);var l=qm(e,o[0],o[1]);return Ym(function(){s.hasValue=!0,s.value=l},[l]),Zm(l),l};nd.exports=rd;var tx=nd.exports,sd={exports:{}},He={},ld={exports:{}},ad={};/** * @license React * scheduler.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. */(function(e){function t(E,N){var R=E.length;E.push(N);e:for(;0>>1,se=E[B];if(0>>1;Bi(Is,R))nni(wi,Is)?(E[B]=wi,E[nn]=R,B=nn):(E[B]=Is,E[Ke]=R,B=Ke);else if(nni(wi,R))E[B]=wi,E[nn]=R,B=nn;else break e}}return N}function i(E,N){var R=E.sortIndex-N.sortIndex;return R!==0?R:E.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],f=1,d=null,c=3,y=!1,g=!1,v=!1,_=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(E){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=E)r(u),N.sortIndex=N.expirationTime,t(a,N);else break;N=n(u)}}function S(E){if(v=!1,m(E),!g)if(n(a)!==null)g=!0,P(x);else{var N=n(u);N!==null&&A(S,N.startTime-E)}}function x(E,N){g=!1,v&&(v=!1,h(T),T=-1),y=!0;var R=c;try{for(m(N),d=n(a);d!==null&&(!(d.expirationTime>N)||E&&!M());){var B=d.callback;if(typeof B=="function"){d.callback=null,c=d.priorityLevel;var se=B(d.expirationTime<=N);N=e.unstable_now(),typeof se=="function"?d.callback=se:d===n(a)&&r(a),m(N)}else r(a);d=n(a)}if(d!==null)var me=!0;else{var Ke=n(u);Ke!==null&&A(S,Ke.startTime-N),me=!1}return me}finally{d=null,c=R,y=!1}}var C=!1,k=null,T=-1,j=5,$=-1;function M(){return!(e.unstable_now()-$E||125B?(E.sortIndex=R,t(u,E),n(a)===null&&E===n(u)&&(v?(h(T),T=-1):v=!0,A(S,R-B))):(E.sortIndex=se,t(a,E),g||y||(g=!0,P(x))),E},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(E){var N=c;return function(){var R=c;c=N;try{return E.apply(this,arguments)}finally{c=R}}}})(ad);ld.exports=ad;var eg=ld.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 tg=b,Be=eg;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vl=Object.prototype.hasOwnProperty,ng=/^[: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]*$/,Hu={},Vu={};function rg(e){return vl.call(Vu,e)?!0:vl.call(Hu,e)?!1:ng.test(e)?Vu[e]=!0:(Hu[e]=!0,!1)}function ig(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function og(e,t,n,r){if(t===null||typeof t>"u"||ig(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Re(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var we={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){we[e]=new Re(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];we[t]=new Re(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){we[e]=new Re(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){we[e]=new Re(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){we[e]=new Re(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){we[e]=new Re(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){we[e]=new Re(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){we[e]=new Re(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){we[e]=new Re(e,5,!1,e.toLowerCase(),null,!1,!1)});var La=/[\-:]([a-z])/g;function $a(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(La,$a);we[t]=new Re(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(La,$a);we[t]=new Re(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(La,$a);we[t]=new Re(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){we[e]=new Re(e,1,!1,e.toLowerCase(),null,!1,!1)});we.xlinkHref=new Re("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){we[e]=new Re(e,1,!1,e.toLowerCase(),null,!0,!0)});function ba(e,t,n,r){var i=we.hasOwnProperty(t)?we[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var a=` `+i[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Us=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cr(e):""}function sg(e){switch(e.tag){case 5:return Cr(e.type);case 16:return Cr("Lazy");case 13:return Cr("Suspense");case 19:return Cr("SuspenseList");case 0:case 2:case 15:return e=Bs(e.type,!1),e;case 11:return e=Bs(e.type.render,!1),e;case 1:return e=Bs(e.type,!0),e;default:return""}}function kl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nn:return"Fragment";case Rn:return"Portal";case wl:return"Profiler";case ja:return"StrictMode";case Sl:return"Suspense";case xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fd:return(e.displayName||"Context")+".Consumer";case cd:return(e._context.displayName||"Context")+".Provider";case Aa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ma:return t=e.displayName||null,t!==null?t:kl(e.type)||"Memo";case jt:t=e._payload,e=e._init;try{return kl(e(t))}catch{}}return null}function lg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return kl(t);case 8:return t===ja?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ag(e){var t=pd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ki(e){e._valueTracker||(e._valueTracker=ag(e))}function hd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function oo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function El(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ku(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=qt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function md(e,t){t=t.checked,t!=null&&ba(e,"checked",t,!1)}function Cl(e,t){md(e,t);var n=qt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Pl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pl(e,t.type,qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Pl(e,t,n){(t!=="number"||oo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pr=Array.isArray;function Un(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ei.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Br(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nr={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},ug=["Webkit","ms","Moz","O"];Object.keys(Nr).forEach(function(e){ug.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nr[t]=Nr[e]})});function wd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nr.hasOwnProperty(e)&&Nr[e]?(""+t).trim():t+"px"}function Sd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=wd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var cg=Z({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 Tl(e,t){if(t){if(cg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Rl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Nl=null;function Ia(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ll=null,Bn=null,Hn=null;function Xu(e){if(e=pi(e)){if(typeof Ll!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Wo(t),Ll(e.stateNode,e.type,t))}}function xd(e){Bn?Hn?Hn.push(e):Hn=[e]:Bn=e}function kd(){if(Bn){var e=Bn,t=Hn;if(Hn=Bn=null,Xu(e),t)for(e=0;e>>=0,e===0?32:31-(xg(e)/kg|0)|0}var Ci=64,Pi=4194304;function Or(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function uo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Or(l):(o&=s,o!==0&&(r=Or(o)))}else s=n&~i,s!==0?r=Or(s):o!==0&&(r=Or(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function fi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-at(t),e[t]=n}function Og(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=$r),oc=" ",sc=!1;function Bd(e,t){switch(e){case"keyup":return ey.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ln=!1;function ny(e,t){switch(e){case"compositionend":return Hd(t);case"keypress":return t.which!==32?null:(sc=!0,oc);case"textInput":return e=t.data,e===oc&&sc?null:e;default:return null}}function ry(e,t){if(Ln)return e==="compositionend"||!Wa&&Bd(e,t)?(e=zd(),Wi=Ba=Dt=null,Ln=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cc(n)}}function Qd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gd(){for(var e=window,t=oo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=oo(e.document)}return t}function Ka(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function dy(e){var t=Gd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qd(n.ownerDocument.documentElement,n)){if(r!==null&&Ka(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=fc(n,o);var s=fc(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,$n=null,Il=null,jr=null,Fl=!1;function dc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fl||$n==null||$n!==oo(r)||(r=$n,"selectionStart"in r&&Ka(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Gr(jr,r)||(jr=r,r=po(Il,"onSelect"),0An||(e.current=Vl[An],Vl[An]=null,An--)}function K(e,t){An++,Vl[An]=e.current,e.current=t}var Xt={},Ce=Zt(Xt),be=Zt(!1),mn=Xt;function Yn(e,t){var n=e.type.contextTypes;if(!n)return Xt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function je(e){return e=e.childContextTypes,e!=null}function mo(){q(be),q(Ce)}function wc(e,t,n){if(Ce.current!==Xt)throw Error(O(168));K(Ce,t),K(be,n)}function rp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,lg(e)||"Unknown",i));return Z({},n,r)}function go(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xt,mn=Ce.current,K(Ce,e),K(be,be.current),!0}function Sc(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=rp(e,t,mn),r.__reactInternalMemoizedMergedChildContext=e,q(be),q(Ce),K(Ce,e)):q(be),K(be,n)}var kt=null,Ko=!1,nl=!1;function ip(e){kt===null?kt=[e]:kt.push(e)}function Cy(e){Ko=!0,ip(e)}function en(){if(!nl&&kt!==null){nl=!0;var e=0,t=H;try{var n=kt;for(H=1;e>=s,i-=s,Et=1<<32-at(t)+i|n<T?(j=k,k=null):j=k.sibling;var $=c(h,k,m[T],S);if($===null){k===null&&(k=j);break}e&&k&&$.alternate===null&&t(h,k),p=o($,p,T),C===null?x=$:C.sibling=$,C=$,k=j}if(T===m.length)return n(h,k),X&&rn(h,T),x;if(k===null){for(;TT?(j=k,k=null):j=k.sibling;var M=c(h,k,$.value,S);if(M===null){k===null&&(k=j);break}e&&k&&M.alternate===null&&t(h,k),p=o(M,p,T),C===null?x=M:C.sibling=M,C=M,k=j}if($.done)return n(h,k),X&&rn(h,T),x;if(k===null){for(;!$.done;T++,$=m.next())$=d(h,$.value,S),$!==null&&(p=o($,p,T),C===null?x=$:C.sibling=$,C=$);return X&&rn(h,T),x}for(k=r(h,k);!$.done;T++,$=m.next())$=y(k,h,T,$.value,S),$!==null&&(e&&$.alternate!==null&&k.delete($.key===null?T:$.key),p=o($,p,T),C===null?x=$:C.sibling=$,C=$);return e&&k.forEach(function(U){return t(h,U)}),X&&rn(h,T),x}function _(h,p,m,S){if(typeof m=="object"&&m!==null&&m.type===Nn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case xi:e:{for(var x=m.key,C=p;C!==null;){if(C.key===x){if(x=m.type,x===Nn){if(C.tag===7){n(h,C.sibling),p=i(C,m.props.children),p.return=h,h=p;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===jt&&Ec(x)===C.type){n(h,C.sibling),p=i(C,m.props),p.ref=yr(h,C,m),p.return=h,h=p;break e}n(h,C);break}else t(h,C);C=C.sibling}m.type===Nn?(p=pn(m.props.children,h.mode,S,m.key),p.return=h,h=p):(S=Zi(m.type,m.key,m.props,null,h.mode,S),S.ref=yr(h,p,m),S.return=h,h=S)}return s(h);case Rn:e:{for(C=m.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(h,p.sibling),p=i(p,m.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=cl(m,h.mode,S),p.return=h,h=p}return s(h);case jt:return C=m._init,_(h,p,C(m._payload),S)}if(Pr(m))return g(h,p,m,S);if(dr(m))return v(h,p,m,S);$i(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,m),p.return=h,h=p):(n(h,p),p=ul(m,h.mode,S),p.return=h,h=p),s(h)):n(h,p)}return _}var Zn=ap(!0),up=ap(!1),wo=Zt(null),So=null,Fn=null,Xa=null;function Ya(){Xa=Fn=So=null}function Ja(e){var t=wo.current;q(wo),e._currentValue=t}function Ql(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Wn(e,t){So=e,Xa=Fn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function Ze(e){var t=e._currentValue;if(Xa!==e)if(e={context:e,memoizedValue:t,next:null},Fn===null){if(So===null)throw Error(O(308));Fn=e,So.dependencies={lanes:0,firstContext:e}}else Fn=Fn.next=e;return t}var un=null;function Za(e){un===null?un=[e]:un.push(e)}function cp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Za(t)):(n.next=i.next,i.next=n),t.interleaved=n,Rt(e,r)}function Rt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var At=!1;function eu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Rt(e,n)}return i=r.interleaved,i===null?(t.next=t,Za(r)):(t.next=i.next,i.next=t),r.interleaved=t,Rt(e,n)}function Qi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Da(e,n)}}function Cc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xo(e,t,n,r){var i=e.updateQueue;At=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==s&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=a))}if(o!==null){var d=i.baseState;s=0,f=u=a=null,l=o;do{var c=l.lane,y=l.eventTime;if((r&c)===c){f!==null&&(f=f.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,v=l;switch(c=t,y=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){d=g.call(y,d,c);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,c=typeof g=="function"?g.call(y,d,c):g,c==null)break e;d=Z({},d,c);break e;case 2:At=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,c=i.effects,c===null?i.effects=[l]:c.push(l))}else y={eventTime:y,lane:c,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=y,a=d):f=f.next=y,s|=c;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;c=l,l=c.next,c.next=null,i.lastBaseUpdate=c,i.shared.pending=null}}while(!0);if(f===null&&(a=d),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);vn|=s,e.lanes=s,e.memoizedState=d}}function Pc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=il.transition;il.transition={};try{e(!1),t()}finally{H=n,il.transition=r}}function Tp(){return et().memoizedState}function Ty(e,t,n){var r=Qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Rp(e))Np(t,n);else if(n=cp(e,t,n,r),n!==null){var i=_e();ut(n,e,r,i),Lp(n,t,r)}}function Ry(e,t,n){var r=Qt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rp(e))Np(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,ct(l,s)){var a=t.interleaved;a===null?(i.next=i,Za(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=cp(e,t,i,r),n!==null&&(i=_e(),ut(n,e,r,i),Lp(n,t,r))}}function Rp(e){var t=e.alternate;return e===J||t!==null&&t===J}function Np(e,t){Ar=Eo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Da(e,n)}}var Co={readContext:Ze,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useInsertionEffect:Se,useLayoutEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useMutableSource:Se,useSyncExternalStore:Se,useId:Se,unstable_isNewReconciler:!1},Ny={readContext:Ze,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:_c,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,qi(4194308,4,Ep.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qi(4194308,4,e,t)},useInsertionEffect:function(e,t){return qi(4,2,e,t)},useMemo:function(e,t){var n=dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=dt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ty.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:Oc,useDebugValue:au,useDeferredValue:function(e){return dt().memoizedState=e},useTransition:function(){var e=Oc(!1),t=e[0];return e=_y.bind(null,e[1]),dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,i=dt();if(X){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),de===null)throw Error(O(349));yn&30||mp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,_c(yp.bind(null,r,o,e),[e]),r.flags|=2048,ni(9,gp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=dt(),t=de.identifierPrefix;if(X){var n=Ct,r=Et;n=(r&~(1<<32-at(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ei++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[mt]=t,e[Yr]=r,Up(e,t,!1,!1),t.stateNode=e;e:{switch(s=Rl(n,r),n){case"dialog":G("cancel",e),G("close",e),i=r;break;case"iframe":case"object":case"embed":G("load",e),i=r;break;case"video":case"audio":for(i=0;i<_r.length;i++)G(_r[i],e);i=r;break;case"source":G("error",e),i=r;break;case"img":case"image":case"link":G("error",e),G("load",e),i=r;break;case"details":G("toggle",e),i=r;break;case"input":Ku(e,r),i=El(e,r),G("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Z({},r,{value:void 0}),G("invalid",e);break;case"textarea":Gu(e,r),i=Ol(e,r),G("invalid",e);break;default:i=r}Tl(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?Sd(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&vd(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Br(e,a):typeof a=="number"&&Br(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ur.hasOwnProperty(o)?a!=null&&o==="onScroll"&&G("scroll",e):a!=null&&ba(e,o,a,s))}switch(n){case"input":ki(e),Qu(e,r,!1);break;case"textarea":ki(e),qu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+qt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Un(e,!!r.multiple,o,!1):r.defaultValue!=null&&Un(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ho)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xe(t),null;case 6:if(e&&t.stateNode!=null)Hp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=cn(Zr.current),cn(wt.current),Li(t)){if(r=t.stateNode,n=t.memoizedProps,r[mt]=t,(o=r.nodeValue!==n)&&(e=ze,e!==null))switch(e.tag){case 3:Ni(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ni(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[mt]=t,t.stateNode=r}return xe(t),null;case 13:if(q(Y),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(X&&De!==null&&t.mode&1&&!(t.flags&128))lp(),Jn(),t.flags|=98560,o=!1;else if(o=Li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(O(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(O(317));o[mt]=t}else Jn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),o=!1}else lt!==null&&(ua(lt),lt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Y.current&1?ce===0&&(ce=3):mu())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return er(),ta(e,t),e===null&&qr(t.stateNode.containerInfo),xe(t),null;case 10:return Ja(t.type._context),xe(t),null;case 17:return je(t.type)&&mo(),xe(t),null;case 19:if(q(Y),o=t.memoizedState,o===null)return xe(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)vr(o,!1);else{if(ce!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ko(e),s!==null){for(t.flags|=128,vr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(Y,Y.current&1|2),t.child}e=e.sibling}o.tail!==null&&re()>nr&&(t.flags|=128,r=!0,vr(o,!1),t.lanes=4194304)}else{if(!r)if(e=ko(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!X)return xe(t),null}else 2*re()-o.renderingStartTime>nr&&n!==1073741824&&(t.flags|=128,r=!0,vr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=re(),t.sibling=null,n=Y.current,K(Y,r?n&1|2:n&1),t):(xe(t),null);case 22:case 23:return hu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ie&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function Fy(e,t){switch(Ga(t),t.tag){case 1:return je(t.type)&&mo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return er(),q(be),q(Ce),ru(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nu(t),null;case 13:if(q(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Y),null;case 4:return er(),null;case 10:return Ja(t.type._context),null;case 22:case 23:return hu(),null;case 24:return null;default:return null}}var ji=!1,Ee=!1,Dy=typeof WeakSet=="function"?WeakSet:Set,L=null;function Dn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ne(e,t,r)}else n.current=null}function na(e,t,n){try{n()}catch(r){ne(e,t,r)}}var Fc=!1;function zy(e,t){if(Dl=co,e=Gd(),Ka(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,f=0,d=e,c=null;t:for(;;){for(var y;d!==n||i!==0&&d.nodeType!==3||(l=s+i),d!==o||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(y=d.firstChild)!==null;)c=d,d=y;for(;;){if(d===e)break t;if(c===n&&++u===i&&(l=s),c===o&&++f===r&&(a=s),(y=d.nextSibling)!==null)break;d=c,c=d.parentNode}d=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(zl={focusedElem:e,selectionRange:n},co=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,_=g.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:ot(t.type,v),_);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(S){ne(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return g=Fc,Fc=!1,g}function Mr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&na(t,n,o)}i=i.next}while(i!==r)}}function qo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ra(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Vp(e){var t=e.alternate;t!==null&&(e.alternate=null,Vp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mt],delete t[Yr],delete t[Hl],delete t[ky],delete t[Ey])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Wp(e){return e.tag===5||e.tag===3||e.tag===4}function Dc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ia(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ho));else if(r!==4&&(e=e.child,e!==null))for(ia(e,t,n),e=e.sibling;e!==null;)ia(e,t,n),e=e.sibling}function oa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(oa(e,t,n),e=e.sibling;e!==null;)oa(e,t,n),e=e.sibling}var ge=null,st=!1;function bt(e,t,n){for(n=n.child;n!==null;)Kp(e,t,n),n=n.sibling}function Kp(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(Uo,n)}catch{}switch(n.tag){case 5:Ee||Dn(n,t);case 6:var r=ge,i=st;ge=null,bt(e,t,n),ge=r,st=i,ge!==null&&(st?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(st?(e=ge,n=n.stateNode,e.nodeType===8?tl(e.parentNode,n):e.nodeType===1&&tl(e,n),Kr(e)):tl(ge,n.stateNode));break;case 4:r=ge,i=st,ge=n.stateNode.containerInfo,st=!0,bt(e,t,n),ge=r,st=i;break;case 0:case 11:case 14:case 15:if(!Ee&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&na(n,t,s),i=i.next}while(i!==r)}bt(e,t,n);break;case 1:if(!Ee&&(Dn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ne(n,t,l)}bt(e,t,n);break;case 21:bt(e,t,n);break;case 22:n.mode&1?(Ee=(r=Ee)||n.memoizedState!==null,bt(e,t,n),Ee=r):bt(e,t,n);break;default:bt(e,t,n)}}function zc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Dy),t.forEach(function(r){var i=qy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function it(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*By(r/1960))-r,10e?16:e,zt===null)var r=!1;else{if(e=zt,zt=null,_o=0,F&6)throw Error(O(331));var i=F;for(F|=4,L=e.current;L!==null;){var o=L,s=o.child;if(L.flags&16){var l=o.deletions;if(l!==null){for(var a=0;are()-du?dn(e,0):fu|=n),Ae(e,t)}function eh(e,t){t===0&&(e.mode&1?(t=Pi,Pi<<=1,!(Pi&130023424)&&(Pi=4194304)):t=1);var n=_e();e=Rt(e,t),e!==null&&(fi(e,t,n),Ae(e,n))}function Gy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eh(e,n)}function qy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),eh(e,n)}var th;th=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,My(e,t,n);$e=!!(e.flags&131072)}else $e=!1,X&&t.flags&1048576&&op(t,vo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xi(e,t),e=t.pendingProps;var i=Yn(t,Ce.current);Wn(t,n),i=ou(null,t,r,e,i,n);var o=su();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,je(r)?(o=!0,go(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,eu(t),i.updater=Go,t.stateNode=i,i._reactInternals=t,ql(t,r,e,n),t=Jl(null,t,r,!0,o,n)):(t.tag=0,X&&o&&Qa(t),Oe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Yy(r),e=ot(r,e),i){case 0:t=Yl(null,t,r,e,n);break e;case 1:t=Ac(null,t,r,e,n);break e;case 11:t=bc(null,t,r,e,n);break e;case 14:t=jc(null,t,r,ot(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),Yl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),Ac(e,t,r,i,n);case 3:e:{if(Fp(t),e===null)throw Error(O(387));r=t.pendingProps,o=t.memoizedState,i=o.element,fp(e,t),xo(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=tr(Error(O(423)),t),t=Mc(e,t,r,n,i);break e}else if(r!==i){i=tr(Error(O(424)),t),t=Mc(e,t,r,n,i);break e}else for(De=Vt(t.stateNode.containerInfo.firstChild),ze=t,X=!0,lt=null,n=up(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jn(),r===i){t=Nt(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return dp(t),e===null&&Kl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Ul(r,i)?s=null:o!==null&&Ul(r,o)&&(t.flags|=32),Ip(e,t),Oe(e,t,s,n),t.child;case 6:return e===null&&Kl(t),null;case 13:return Dp(e,t,n);case 4:return tu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zn(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),bc(e,t,r,i,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,K(wo,r._currentValue),r._currentValue=s,o!==null)if(ct(o.value,s)){if(o.children===i.children&&!be.current){t=Nt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Pt(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ql(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(O(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ql(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Oe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Wn(t,n),i=Ze(i),r=r(i),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,i=ot(r,t.pendingProps),i=ot(r.type,i),jc(e,t,r,i,n);case 15:return Ap(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),Xi(e,t),t.tag=1,je(r)?(e=!0,go(t)):e=!1,Wn(t,n),$p(t,r,i),ql(t,r,i,n),Jl(null,t,r,!0,e,n);case 19:return zp(e,t,n);case 22:return Mp(e,t,n)}throw Error(O(156,t.tag))};function nh(e,t){return Rd(e,t)}function Xy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ye(e,t,n,r){return new Xy(e,t,n,r)}function gu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yy(e){if(typeof e=="function")return gu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Aa)return 11;if(e===Ma)return 14}return 2}function Gt(e,t){var n=e.alternate;return n===null?(n=Ye(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zi(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")gu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Nn:return pn(n.children,i,o,t);case ja:s=8,i|=8;break;case wl:return e=Ye(12,n,t,i|2),e.elementType=wl,e.lanes=o,e;case Sl:return e=Ye(13,n,t,i),e.elementType=Sl,e.lanes=o,e;case xl:return e=Ye(19,n,t,i),e.elementType=xl,e.lanes=o,e;case dd:return Yo(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cd:s=10;break e;case fd:s=9;break e;case Aa:s=11;break e;case Ma:s=14;break e;case jt:s=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=Ye(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function pn(e,t,n,r){return e=Ye(7,e,r,t),e.lanes=n,e}function Yo(e,t,n,r){return e=Ye(22,e,r,t),e.elementType=dd,e.lanes=n,e.stateNode={isHidden:!1},e}function ul(e,t,n){return e=Ye(6,e,null,t),e.lanes=n,e}function cl(e,t,n){return t=Ye(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jy(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vs(0),this.expirationTimes=Vs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function yu(e,t,n,r,i,o,s,l,a){return e=new Jy(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ye(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},eu(o),e}function Zy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sh)}catch(e){console.error(e)}}sh(),sd.exports=He;var lh=sd.exports;const Ii=Oa(lh);var Gc={},qc=lh;Gc.createRoot=qc.createRoot,Gc.hydrateRoot=qc.hydrateRoot;function ah(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{t[n]=uh(e[n])}),t}function ii(e,t,n={clone:!0}){const r=n.clone?Q({},e):e;return Ft(e)&&Ft(t)&&Object.keys(t).forEach(i=>{Ft(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Ft(e[i])?r[i]=ii(e[i],t[i],n):n.clone?r[i]=Ft(t[i])?uh(t[i]):t[i]:r[i]=t[i]}),r}const iv=Object.freeze(Object.defineProperty({__proto__:null,default:ii,isPlainObject:Ft},Symbol.toStringTag,{value:"Module"}));function ch(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function rx(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function ix(e,t){var n,r;return b.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function dv(e){return e&&e.ownerDocument||document}function ox(e){return dv(e).defaultView||window}function pv(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const hv=typeof window<"u"?b.useLayoutEffect:b.useEffect;let Jc=0;function mv(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(Jc+=1,n(`mui-${Jc}`))},[t]),r}const Zc=yl.useId;function sx(e){if(Zc!==void 0){const t=Zc();return e??t}return mv(e)}function lx({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=b.useRef(e!==void 0),[o,s]=b.useState(t),l=i?e:o,a=b.useCallback(u=>{i||s(u)},[]);return[l,a]}function ax(e){const t=b.useRef(e);return hv(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function gv(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{pv(n,t)})},e)}const ef={};function yv(e,t){const n=b.useRef(ef);return n.current===ef&&(n.current=e(t)),n}const vv=[];function wv(e){b.useEffect(e,vv)}class ds{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ds}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ux(){const e=yv(ds.create).current;return wv(e.disposeEffect),e}let ps=!0,fa=!1;const Sv=new ds,xv={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 kv(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&xv[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Ev(e){e.metaKey||e.altKey||e.ctrlKey||(ps=!0)}function fl(){ps=!1}function Cv(){this.visibilityState==="hidden"&&fa&&(ps=!0)}function Pv(e){e.addEventListener("keydown",Ev,!0),e.addEventListener("mousedown",fl,!0),e.addEventListener("pointerdown",fl,!0),e.addEventListener("touchstart",fl,!0),e.addEventListener("visibilitychange",Cv,!0)}function Ov(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ps||kv(t)}function cx(){const e=b.useCallback(i=>{i!=null&&Pv(i.ownerDocument)},[]),t=b.useRef(!1);function n(){return t.current?(fa=!0,Sv.start(100,()=>{fa=!1}),t.current=!1,!0):!1}function r(i){return Ov(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function fx(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function da(e,t){const n=Q({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Q({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=Q({},o),Object.keys(i).forEach(s=>{n[r][s]=da(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function dx(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const l=t(s);l!==""&&o.push(l),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const tf=e=>e,_v=()=>{let e=tf;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tf}}},Tv=_v(),Rv={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 Nv(e,t,n="Mui"){const r=Rv[t];return r?`${n}-${r}`:`${Tv.generate(e)}-${t}`}function px(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Nv(e,i,n)}),r}function Lv(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const $v=Object.freeze(Object.defineProperty({__proto__:null,default:Lv},Symbol.toStringTag,{value:"Module"}));function En(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function bv(e){return typeof e=="string"}function jv(e,t,n){return e===void 0||bv(e)?t:Q({},t,{ownerState:Q({},t.ownerState,n)})}function Av(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function nf(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Mv(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const y=ca(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),g=Q({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),v=Q({},n,i,r);return y.length>0&&(v.className=y),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const s=Av(Q({},i,r)),l=nf(r),a=nf(i),u=t(s),f=ca(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=Q({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),c=Q({},u,n,a,l);return f.length>0&&(c.className=f),Object.keys(d).length>0&&(c.style=d),{props:c,internalRef:u.ref}}function Iv(e,t,n){return typeof e=="function"?e(t,n):e}const Fv=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function hx(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=En(e,Fv),l=o?{}:Iv(r,i),{props:a,internalRef:u}=Mv(Q({},s,{externalSlotProps:l})),f=gv(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return jv(n,Q({},a,{ref:f}),i)}const Dv=b.createContext(void 0);function zv(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?da(i.defaultProps,r):!i.styleOverrides&&!i.variants?da(i,r):r}function mx({props:e,name:t}){const n=b.useContext(Dv);return zv({props:e,name:t,theme:{components:n}})}var mi={},mh={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(mh);var gh=mh.exports,dl={exports:{}},rf;function Uv(){return rf||(rf=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r0?ye(ur,--Me):0,rr--,le===10&&(rr=1,ms--),le}function Ue(){return le=Me2||si(le)>3?"":" "}function o1(e,t){for(;--t&&Ue()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return gi(e,eo()+(t<6&&St()==32&&Ue()==32))}function ha(e){for(;Ue();)switch(le){case e:return Me;case 34:case 39:e!==34&&e!==39&&ha(le);break;case 40:e===41&&ha(e);break;case 92:Ue();break}return Me}function s1(e,t){for(;Ue()&&e+le!==57;)if(e+le===84&&St()===47)break;return"/*"+gi(t,Me-1)+"*"+hs(e===47?e:Ue())}function l1(e){for(;!si(St());)Ue();return gi(e,Me)}function a1(e){return Eh(no("",null,null,null,[""],e=kh(e),0,[0],e))}function no(e,t,n,r,i,o,s,l,a){for(var u=0,f=0,d=s,c=0,y=0,g=0,v=1,_=1,h=1,p=0,m="",S=i,x=o,C=r,k=m;_;)switch(g=p,p=Ue()){case 40:if(g!=108&&ye(k,d-1)==58){pa(k+=z(to(p),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:k+=to(p);break;case 9:case 10:case 13:case 32:k+=i1(g);break;case 92:k+=o1(eo()-1,7);continue;case 47:switch(St()){case 42:case 47:Fi(u1(s1(Ue(),eo()),t,n),a);break;default:k+="/"}break;case 123*v:l[u++]=pt(k)*h;case 125*v:case 59:case 0:switch(p){case 0:case 125:_=0;case 59+f:h==-1&&(k=z(k,/\f/g,"")),y>0&&pt(k)-d&&Fi(y>32?lf(k+";",r,n,d-1):lf(z(k," ","")+";",r,n,d-2),a);break;case 59:k+=";";default:if(Fi(C=sf(k,t,n,u,f,i,l,m,S=[],x=[],d),o),p===123)if(f===0)no(k,t,C,C,S,o,d,l,x);else switch(c===99&&ye(k,3)===110?100:c){case 100:case 108:case 109:case 115:no(e,C,C,r&&Fi(sf(e,C,C,0,0,i,l,m,i,S=[],d),x),i,x,d,l,r?S:x);break;default:no(k,C,C,C,[""],x,0,l,x)}}u=f=y=0,v=h=1,m=k="",d=s;break;case 58:d=1+pt(k),y=g;default:if(v<1){if(p==123)--v;else if(p==125&&v++==0&&r1()==125)continue}switch(k+=hs(p),p*v){case 38:h=f>0?1:(k+="\f",-1);break;case 44:l[u++]=(pt(k)-1)*h,h=1;break;case 64:St()===45&&(k+=to(Ue())),c=St(),f=d=pt(m=k+=l1(eo())),p++;break;case 45:g===45&&pt(k)==2&&(v=0)}}return o}function sf(e,t,n,r,i,o,s,l,a,u,f){for(var d=i-1,c=i===0?o:[""],y=Ou(c),g=0,v=0,_=0;g0?c[h]+" "+p:z(p,/&\f/g,c[h])))&&(a[_++]=m);return gs(e,t,n,i===0?Cu:l,a,u,f)}function u1(e,t,n){return gs(e,t,n,vh,hs(n1()),oi(e,2,-2),0)}function lf(e,t,n,r){return gs(e,t,n,Pu,oi(e,0,r),oi(e,r+1,-1),r)}function Qn(e,t){for(var n="",r=Ou(e),i=0;i6)switch(ye(e,t+1)){case 109:if(ye(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+No+(ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~pa(e,"stretch")?Ch(z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ye(e,t+1)!==115)break;case 6444:switch(ye(e,pt(e)-3-(~pa(e,"!important")&&10))){case 107:return z(e,":",":"+D)+e;case 101:return z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(ye(e,14)===45?"inline-":"")+"box$3$1"+D+"$2$3$1"+ke+"$2box$3")+e}break;case 5936:switch(ye(e,t+11)){case 114:return D+e+ke+z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+ke+z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+ke+z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return D+e+ke+e+e}return e}var v1=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Pu:t.return=Ch(t.value,t.length);break;case wh:return Qn([Sr(t,{value:z(t.value,"@","@"+D)})],i);case Cu:if(t.length)return t1(t.props,function(o){switch(e1(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qn([Sr(t,{props:[z(o,/:(read-\w+)/,":"+No+"$1")]})],i);case"::placeholder":return Qn([Sr(t,{props:[z(o,/:(plac\w+)/,":"+D+"input-$1")]}),Sr(t,{props:[z(o,/:(plac\w+)/,":"+No+"$1")]}),Sr(t,{props:[z(o,/:(plac\w+)/,ke+"input-$1")]})],i)}return""})}},w1=[v1],Ph=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var _=v.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||w1,o={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var _=v.getAttribute("data-emotion").split(" "),h=1;h<_.length;h++)o[_[h]]=!0;l.push(v)});var a,u=[g1,y1];{var f,d=[c1,d1(function(v){f.insert(v)})],c=f1(u.concat(i,d)),y=function(_){return Qn(a1(_),c)};a=function(_,h,p,m){f=p,y(_?_+"{"+h.styles+"}":h.styles),m&&(g.inserted[h.name]=!0)}}var g={key:n,sheet:new Gv({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:a};return g.sheet.hydrate(l),g},Oh={exports:{}},W={};/** @license React v16.13.1 * 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 pe=typeof Symbol=="function"&&Symbol.for,_u=pe?Symbol.for("react.element"):60103,Tu=pe?Symbol.for("react.portal"):60106,ys=pe?Symbol.for("react.fragment"):60107,vs=pe?Symbol.for("react.strict_mode"):60108,ws=pe?Symbol.for("react.profiler"):60114,Ss=pe?Symbol.for("react.provider"):60109,xs=pe?Symbol.for("react.context"):60110,Ru=pe?Symbol.for("react.async_mode"):60111,ks=pe?Symbol.for("react.concurrent_mode"):60111,Es=pe?Symbol.for("react.forward_ref"):60112,Cs=pe?Symbol.for("react.suspense"):60113,S1=pe?Symbol.for("react.suspense_list"):60120,Ps=pe?Symbol.for("react.memo"):60115,Os=pe?Symbol.for("react.lazy"):60116,x1=pe?Symbol.for("react.block"):60121,k1=pe?Symbol.for("react.fundamental"):60117,E1=pe?Symbol.for("react.responder"):60118,C1=pe?Symbol.for("react.scope"):60119;function We(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case _u:switch(e=e.type,e){case Ru:case ks:case ys:case ws:case vs:case Cs:return e;default:switch(e=e&&e.$$typeof,e){case xs:case Es:case Os:case Ps:case Ss:return e;default:return t}}case Tu:return t}}}function _h(e){return We(e)===ks}W.AsyncMode=Ru;W.ConcurrentMode=ks;W.ContextConsumer=xs;W.ContextProvider=Ss;W.Element=_u;W.ForwardRef=Es;W.Fragment=ys;W.Lazy=Os;W.Memo=Ps;W.Portal=Tu;W.Profiler=ws;W.StrictMode=vs;W.Suspense=Cs;W.isAsyncMode=function(e){return _h(e)||We(e)===Ru};W.isConcurrentMode=_h;W.isContextConsumer=function(e){return We(e)===xs};W.isContextProvider=function(e){return We(e)===Ss};W.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_u};W.isForwardRef=function(e){return We(e)===Es};W.isFragment=function(e){return We(e)===ys};W.isLazy=function(e){return We(e)===Os};W.isMemo=function(e){return We(e)===Ps};W.isPortal=function(e){return We(e)===Tu};W.isProfiler=function(e){return We(e)===ws};W.isStrictMode=function(e){return We(e)===vs};W.isSuspense=function(e){return We(e)===Cs};W.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ys||e===ks||e===ws||e===vs||e===Cs||e===S1||typeof e=="object"&&e!==null&&(e.$$typeof===Os||e.$$typeof===Ps||e.$$typeof===Ss||e.$$typeof===xs||e.$$typeof===Es||e.$$typeof===k1||e.$$typeof===E1||e.$$typeof===C1||e.$$typeof===x1)};W.typeOf=We;Oh.exports=W;var P1=Oh.exports,Th=P1,O1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Rh={};Rh[Th.ForwardRef]=O1;Rh[Th.Memo]=_1;var T1=!0;function R1(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Nh=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||T1===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Lh=function(t,n,r){Nh(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function N1(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var L1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$1=!1,b1=/[A-Z]|^ms/g,j1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$h=function(t){return t.charCodeAt(1)===45},uf=function(t){return t!=null&&typeof t!="boolean"},hl=yh(function(e){return $h(e)?e:e.replace(b1,"-$&").toLowerCase()}),cf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(j1,function(r,i,o){return ht={name:i,styles:o,next:ht},i})}return L1[t]!==1&&!$h(t)&&typeof n=="number"&&n!==0?n+"px":n},A1="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function li(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return ht={name:i.name,styles:i.styles,next:ht},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)ht={name:s.name,styles:s.styles,next:ht},s=s.next;var l=o.styles+";";return l}return M1(e,t,n)}case"function":{if(e!==void 0){var a=ht,u=n(e);return ht=a,li(e,t,u)}break}}var f=n;if(t==null)return f;var d=t[f];return d!==void 0?d:f}function M1(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?B1:H1},hf=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},V1=!1,W1=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Nh(n,r,i),F1(function(){return Lh(n,r,i)}),null},K1=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var l=hf(t,n,r),a=l||pf(i),u=!a("as");return function(){var f=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)d.push.apply(d,f);else{d.push(f[0][0]);for(var c=f.length,y=1;yt(q1(i)?n:i):t;return sr.jsx(z1,{styles:r})}function Fh(e,t){return ma(e,t)}const X1=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Y1=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Ih,StyledEngineProvider:G1,ThemeContext:_s,css:Mh,default:Fh,internal_processStyles:X1,keyframes:U1},Symbol.toStringTag,{value:"Module"})),J1=Yt(Y1),Z1=Yt(iv),e0=Yt(fv),t0=Yt(cv),n0=["values","unit","step"],r0=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>Q({},n,{[r.key]:r.val}),{})};function Dh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=En(e,n0),o=r0(t),s=Object.keys(o);function l(c){return`@media (min-width:${typeof t[c]=="number"?t[c]:c}${n})`}function a(c){return`@media (max-width:${(typeof t[c]=="number"?t[c]:c)-r/100}${n})`}function u(c,y){const g=s.indexOf(y);return`@media (min-width:${typeof t[c]=="number"?t[c]:c}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:y)-r/100}${n})`}function f(c){return s.indexOf(c)+1`@media (min-width:${Lu[e]}px)`};function Lt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||mf;return t.reduce((s,l,a)=>(s[o.up(o.keys[a])]=n(t[a]),s),{})}if(typeof t=="object"){const o=r.breakpoints||mf;return Object.keys(t).reduce((s,l)=>{if(Object.keys(o.values||Lu).indexOf(l)!==-1){const a=o.up(l);s[a]=n(t[l],l)}else{const a=l;s[a]=t[a]}return s},{})}return n(t)}function o0(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function s0(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function l0(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function gx({values:e,breakpoints:t,base:n}){const r=n||l0(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((s,l,a)=>(Array.isArray(e)?(s[l]=e[a]!=null?e[a]:e[o],o=a):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[o],o=l):s[l]=e,s),{})}function Ts(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Lo(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Ts(e,n)||r,t&&(i=t(i,r,e)),i}function ie(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const l=s[t],a=s.theme,u=Ts(a,r)||{};return Lt(s,l,d=>{let c=Lo(u,i,d);return d===c&&typeof d=="string"&&(c=Lo(u,i,`${t}${d==="default"?"":Eu(d)}`,d)),n===!1?c:{[n]:c}})};return o.propTypes={},o.filterProps=[t],o}function a0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const u0={m:"margin",p:"padding"},c0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},f0=a0(e=>{if(e.length>2)if(gf[e])e=gf[e];else return[e];const[t,n]=e.split(""),r=u0[t],i=c0[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),$u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...$u,...bu];function yi(e,t,n,r){var i;const o=(i=Ts(e,t,!1))!=null?i:n;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 zh(e){return yi(e,"spacing",8)}function vi(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function d0(e,t){return n=>e.reduce((r,i)=>(r[i]=vi(t,n),r),{})}function p0(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=f0(n),o=d0(i,r),s=e[n];return Lt(e,s,o)}function Uh(e,t){const n=zh(e.theme);return Object.keys(e).map(r=>p0(e,t,r,n)).reduce(Dr,{})}function ee(e){return Uh(e,$u)}ee.propTypes={};ee.filterProps=$u;function te(e){return Uh(e,bu)}te.propTypes={};te.filterProps=bu;function h0(e=8){if(e.mui)return e;const t=zh({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Rs(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Dr(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Xe(e){return typeof e!="number"?e:`${e}px solid`}function rt(e,t){return ie({prop:e,themeKey:"borders",transform:t})}const m0=rt("border",Xe),g0=rt("borderTop",Xe),y0=rt("borderRight",Xe),v0=rt("borderBottom",Xe),w0=rt("borderLeft",Xe),S0=rt("borderColor"),x0=rt("borderTopColor"),k0=rt("borderRightColor"),E0=rt("borderBottomColor"),C0=rt("borderLeftColor"),P0=rt("outline",Xe),O0=rt("outlineColor"),Ns=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:vi(t,r)});return Lt(e,e.borderRadius,n)}return null};Ns.propTypes={};Ns.filterProps=["borderRadius"];Rs(m0,g0,y0,v0,w0,S0,x0,k0,E0,C0,Ns,P0,O0);const Ls=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yi(e.theme,"spacing",8),n=r=>({gap:vi(t,r)});return Lt(e,e.gap,n)}return null};Ls.propTypes={};Ls.filterProps=["gap"];const $s=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yi(e.theme,"spacing",8),n=r=>({columnGap:vi(t,r)});return Lt(e,e.columnGap,n)}return null};$s.propTypes={};$s.filterProps=["columnGap"];const bs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yi(e.theme,"spacing",8),n=r=>({rowGap:vi(t,r)});return Lt(e,e.rowGap,n)}return null};bs.propTypes={};bs.filterProps=["rowGap"];const _0=ie({prop:"gridColumn"}),T0=ie({prop:"gridRow"}),R0=ie({prop:"gridAutoFlow"}),N0=ie({prop:"gridAutoColumns"}),L0=ie({prop:"gridAutoRows"}),$0=ie({prop:"gridTemplateColumns"}),b0=ie({prop:"gridTemplateRows"}),j0=ie({prop:"gridTemplateAreas"}),A0=ie({prop:"gridArea"});Rs(Ls,$s,bs,_0,T0,R0,N0,L0,$0,b0,j0,A0);function Gn(e,t){return t==="grey"?t:e}const M0=ie({prop:"color",themeKey:"palette",transform:Gn}),I0=ie({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gn}),F0=ie({prop:"backgroundColor",themeKey:"palette",transform:Gn});Rs(M0,I0,F0);function Fe(e){return e<=1&&e!==0?`${e*100}%`:e}const D0=ie({prop:"width",transform:Fe}),ju=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Lu[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Fe(n)}};return Lt(e,e.maxWidth,t)}return null};ju.filterProps=["maxWidth"];const z0=ie({prop:"minWidth",transform:Fe}),U0=ie({prop:"height",transform:Fe}),B0=ie({prop:"maxHeight",transform:Fe}),H0=ie({prop:"minHeight",transform:Fe});ie({prop:"size",cssProperty:"width",transform:Fe});ie({prop:"size",cssProperty:"height",transform:Fe});const V0=ie({prop:"boxSizing"});Rs(D0,ju,z0,U0,B0,H0,V0);const js={border:{themeKey:"borders",transform:Xe},borderTop:{themeKey:"borders",transform:Xe},borderRight:{themeKey:"borders",transform:Xe},borderBottom:{themeKey:"borders",transform:Xe},borderLeft:{themeKey:"borders",transform:Xe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ns},color:{themeKey:"palette",transform:Gn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gn},backgroundColor:{themeKey:"palette",transform:Gn},p:{style:te},pt:{style:te},pr:{style:te},pb:{style:te},pl:{style:te},px:{style:te},py:{style:te},padding:{style:te},paddingTop:{style:te},paddingRight:{style:te},paddingBottom:{style:te},paddingLeft:{style:te},paddingX:{style:te},paddingY:{style:te},paddingInline:{style:te},paddingInlineStart:{style:te},paddingInlineEnd:{style:te},paddingBlock:{style:te},paddingBlockStart:{style:te},paddingBlockEnd:{style:te},m:{style:ee},mt:{style:ee},mr:{style:ee},mb:{style:ee},ml:{style:ee},mx:{style:ee},my:{style:ee},margin:{style:ee},marginTop:{style:ee},marginRight:{style:ee},marginBottom:{style:ee},marginLeft:{style:ee},marginX:{style:ee},marginY:{style:ee},marginInline:{style:ee},marginInlineStart:{style:ee},marginInlineEnd:{style:ee},marginBlock:{style:ee},marginBlockStart:{style:ee},marginBlockEnd:{style:ee},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:Ls},rowGap:{style:bs},columnGap:{style:$s},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fe},maxWidth:{style:ju},minWidth:{transform:Fe},height:{transform:Fe},maxHeight:{transform:Fe},minHeight:{transform:Fe},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function W0(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function K0(e,t){return typeof e=="function"?e(t):e}function Bh(){function e(n,r,i,o){const s={[n]:r,theme:i},l=o[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:f,style:d}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const c=Ts(i,u)||{};return d?d(s):Lt(s,r,g=>{let v=Lo(c,f,g);return g===v&&typeof g=="string"&&(v=Lo(c,f,`${n}${g==="default"?"":Eu(g)}`,g)),a===!1?v:{[a]:v}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:js;function l(a){let u=a;if(typeof a=="function")u=a(o);else if(typeof a!="object")return a;if(!u)return null;const f=o0(o.breakpoints),d=Object.keys(f);let c=f;return Object.keys(u).forEach(y=>{const g=K0(u[y],o);if(g!=null)if(typeof g=="object")if(s[y])c=Dr(c,e(y,g,o,s));else{const v=Lt({theme:o},g,_=>({[y]:_}));W0(v,g)?c[y]=t({sx:g,theme:o}):c=Dr(c,v)}else c=Dr(c,e(y,g,o,s))}),s0(d,c)}return Array.isArray(i)?i.map(l):l(i)}return t}const As=Bh();As.filterProps=["sx"];function Hh(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Q0=["breakpoints","palette","spacing","shape"];function Vh(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=En(e,Q0),l=Dh(n),a=h0(i);let u=ii({breakpoints:l,direction:"ltr",components:{},palette:Q({mode:"light"},r),spacing:a,shape:Q({},i0,o)},s);return u.applyStyles=Hh,u=t.reduce((f,d)=>ii(f,d),u),u.unstable_sxConfig=Q({},js,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return As({sx:d,theme:this})},u}const G0=Object.freeze(Object.defineProperty({__proto__:null,default:Vh,private_createBreakpoints:Dh,unstable_applyStyles:Hh},Symbol.toStringTag,{value:"Module"})),q0=Yt(G0),X0=["sx"],Y0=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:js;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function Wh(e){const{sx:t}=e,n=En(e,X0),{systemProps:r,otherProps:i}=Y0(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const l=t(...s);return Ft(l)?Q({},r,l):r}:o=Q({},r,t),Q({},i,{sx:o})}const J0=Object.freeze(Object.defineProperty({__proto__:null,default:As,extendSxProp:Wh,unstable_createStyleFunctionSx:Bh,unstable_defaultSxConfig:js},Symbol.toStringTag,{value:"Module"})),Z0=Yt(J0);var cr=gh;Object.defineProperty(mi,"__esModule",{value:!0});var yx=mi.default=dw;mi.shouldForwardProp=ro;mi.systemDefaultTheme=void 0;var Qe=cr(Uv()),ya=cr(Bv()),yf=sw(J1),ew=Z1;cr(e0);cr(t0);var tw=cr(q0),nw=cr(Z0);const rw=["ownerState"],iw=["variants"],ow=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Kh(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Kh=function(r){return r?n:t})(e)}function sw(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Kh(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function lw(e){return Object.keys(e).length===0}function aw(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ro(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const uw=mi.systemDefaultTheme=(0,tw.default)(),cw=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Di({defaultTheme:e,theme:t,themeId:n}){return lw(t)?e:t[n]||t}function fw(e){return e?(t,n)=>n[e]:null}function io(e,t){let{ownerState:n}=t,r=(0,ya.default)(t,rw);const i=typeof e=="function"?e((0,Qe.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>io(o,(0,Qe.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let l=(0,ya.default)(i,iw);return o.forEach(a=>{let u=!0;typeof a.props=="function"?u=a.props((0,Qe.default)({ownerState:n},r,n)):Object.keys(a.props).forEach(f=>{(n==null?void 0:n[f])!==a.props[f]&&r[f]!==a.props[f]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof a.style=="function"?a.style((0,Qe.default)({ownerState:n},r,n)):a.style))}),l}return i}function dw(e={}){const{themeId:t,defaultTheme:n=uw,rootShouldForwardProp:r=ro,slotShouldForwardProp:i=ro}=e,o=s=>(0,nw.default)((0,Qe.default)({},s,{theme:Di((0,Qe.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,l={})=>{(0,yf.internal_processStyles)(s,x=>x.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:f,skipSx:d,overridesResolver:c=fw(cw(u))}=l,y=(0,ya.default)(l,ow),g=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,v=d||!1;let _,h=ro;u==="Root"||u==="root"?h=r:u?h=i:aw(s)&&(h=void 0);const p=(0,yf.default)(s,(0,Qe.default)({shouldForwardProp:h,label:_},y)),m=x=>typeof x=="function"&&x.__emotion_real!==x||(0,ew.isPlainObject)(x)?C=>io(x,(0,Qe.default)({},C,{theme:Di({theme:C.theme,defaultTheme:n,themeId:t})})):x,S=(x,...C)=>{let k=m(x);const T=C?C.map(m):[];a&&c&&T.push(M=>{const U=Di((0,Qe.default)({},M,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[a]||!U.components[a].styleOverrides)return null;const Pe=U.components[a].styleOverrides,he={};return Object.entries(Pe).forEach(([w,P])=>{he[w]=io(P,(0,Qe.default)({},M,{theme:U}))}),c(M,he)}),a&&!g&&T.push(M=>{var U;const Pe=Di((0,Qe.default)({},M,{defaultTheme:n,themeId:t})),he=Pe==null||(U=Pe.components)==null||(U=U[a])==null?void 0:U.variants;return io({variants:he},(0,Qe.default)({},M,{theme:Pe}))}),v||T.push(o);const j=T.length-C.length;if(Array.isArray(x)&&j>0){const M=new Array(j).fill("");k=[...x,...M],k.raw=[...x.raw,...M]}const $=p(k,...T);return s.muiName&&($.muiName=s.muiName),$};return p.withConfig&&(S.withConfig=p.withConfig),S}}var oe={};const pw=Yt(ov),hw=Yt($v);var Qh=gh;Object.defineProperty(oe,"__esModule",{value:!0});var vx=oe.alpha=Yh;oe.blend=Cw;oe.colorChannel=void 0;var wx=oe.darken=Mu;oe.decomposeColor=tt;var Sx=oe.emphasize=Jh,xx=oe.getContrastRatio=ww;oe.getLuminance=$o;oe.hexToRgb=Gh;oe.hslToRgb=Xh;var kx=oe.lighten=Iu;oe.private_safeAlpha=Sw;oe.private_safeColorChannel=void 0;oe.private_safeDarken=xw;oe.private_safeEmphasize=Ew;oe.private_safeLighten=kw;oe.recomposeColor=fr;oe.rgbToHex=vw;var vf=Qh(pw),mw=Qh(hw);function Au(e,t=0,n=1){return(0,mw.default)(e,t,n)}function Gh(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function gw(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function tt(e){if(e.type)return e;if(e.charAt(0)==="#")return tt(Gh(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,vf.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,vf.default)(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const qh=e=>{const t=tt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};oe.colorChannel=qh;const yw=(e,t)=>{try{return qh(e)}catch{return e}};oe.private_safeColorChannel=yw;function fr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function vw(e){if(e.indexOf("#")===0)return e;const{values:t}=tt(e);return`#${t.map((n,r)=>gw(r===3?Math.round(255*n):n)).join("")}`}function Xh(e){e=tt(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(u,f=(u+n/30)%12)=>i-o*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),fr({type:l,values:a})}function $o(e){e=tt(e);let t=e.type==="hsl"||e.type==="hsla"?tt(Xh(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ww(e,t){const n=$o(e),r=$o(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Yh(e,t){return e=tt(e),t=Au(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,fr(e)}function Sw(e,t,n){try{return Yh(e,t)}catch{return e}}function Mu(e,t){if(e=tt(e),t=Au(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return fr(e)}function xw(e,t,n){try{return Mu(e,t)}catch{return e}}function Iu(e,t){if(e=tt(e),t=Au(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return fr(e)}function kw(e,t,n){try{return Iu(e,t)}catch{return e}}function Jh(e,t=.15){return $o(e)>.5?Mu(e,t):Iu(e,t)}function Ew(e,t,n){try{return Jh(e,t)}catch{return e}}function Cw(e,t,n,r=1){const i=(a,u)=>Math.round((a**(1/r)*(1-n)+u**(1/r)*n)**r),o=tt(e),s=tt(t),l=[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])];return fr({type:"rgb",values:l})}const Ex=Hf(sr.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle"),Cx=Hf(sr.jsx("path",{d:"m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"}),"Translate");function Pw(e){return Object.keys(e).length===0}function Ow(e=null){const t=b.useContext(_s);return!t||Pw(t)?e:t}const _w=Vh();function Zh(e=_w){return Ow(e)}function Px({styles:e,themeId:t,defaultTheme:n={}}){const r=Zh(n),i=typeof e=="function"?e(t&&r[t]||r):e;return sr.jsx(Ih,{styles:i})}const Tw=["className","component"];function Ox(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,o=Fh("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(As);return b.forwardRef(function(a,u){const f=Zh(n),d=Wh(a),{className:c,component:y="div"}=d,g=En(d,Tw);return sr.jsx(o,Q({as:y,ref:u,className:ca(c,i?i(r):r),theme:t&&f[t]||f},g))})}const Rw=b.createContext(),_x=()=>{const e=b.useContext(Rw);return e??!1};function va(e,t){return va=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},va(e,t)}function em(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,va(e,t)}const wf={disabled:!1},bo=gt.createContext(null);var Nw=function(t){return t.scrollTop},Tr="unmounted",sn="exited",ln="entering",Tn="entered",wa="exiting",tn=function(e){em(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,l=s&&!s.isMounting?r.enter:r.appear,a;return o.appearStatus=null,r.in?l?(a=sn,o.appearStatus=ln):a=Tn:r.unmountOnExit||r.mountOnEnter?a=Tr:a=sn,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Tr?{status:sn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==ln&&s!==Tn&&(o=ln):(s===ln||s===Tn)&&(o=wa)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,l;return o=s=l=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:l}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===ln){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ii.findDOMNode(this);s&&Nw(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sn&&this.setState({status:Tr})},n.performEnter=function(i){var o=this,s=this.props.enter,l=this.context?this.context.isMounting:i,a=this.props.nodeRef?[l]:[Ii.findDOMNode(this),l],u=a[0],f=a[1],d=this.getTimeouts(),c=l?d.appear:d.enter;if(!i&&!s||wf.disabled){this.safeSetState({status:Tn},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:ln},function(){o.props.onEntering(u,f),o.onTransitionEnd(c,function(){o.safeSetState({status:Tn},function(){o.props.onEntered(u,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Ii.findDOMNode(this);if(!o||wf.disabled){this.safeSetState({status:sn},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:wa},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:sn},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,o.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Ii.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=a[0],f=a[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Tr)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 l=En(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return gt.createElement(bo.Provider,{value:null},typeof s=="function"?s(i,l):gt.cloneElement(gt.Children.only(s),l))},t}(gt.Component);tn.contextType=bo;tn.propTypes={};function Pn(){}tn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pn,onEntering:Pn,onEntered:Pn,onExit:Pn,onExiting:Pn,onExited:Pn};tn.UNMOUNTED=Tr;tn.EXITED=sn;tn.ENTERING=ln;tn.ENTERED=Tn;tn.EXITING=wa;function Lw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fu(e,t){var n=function(o){return t&&b.isValidElement(o)?t(o):o},r=Object.create(null);return e&&b.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function $w(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,l={};for(var a in t){if(r[a])for(s=0;s{console!=null&&console.warn&&(hn(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},Sf={},Sa=(...e)=>{hn(e[0])&&Sf[e[0]]||(hn(e[0])&&(Sf[e[0]]=new Date),Iw(...e))},nm=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},xf=(e,t,n)=>{e.loadNamespaces(t,nm(e,n))},kf=(e,t,n,r)=>{hn(n)&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,nm(e,r))},Fw=(e,t,n={})=>!t.languages||!t.languages.length?(Sa("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,i)=>{var o;if(((o=n.bindI18n)==null?void 0:o.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,e))return!1}}),hn=e=>typeof e=="string",Dw=e=>typeof e=="object"&&e!==null,zw=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Uw={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Bw=e=>Uw[e],Hw=e=>e.replace(zw,Bw);let xa={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Hw};const Vw=(e={})=>{xa={...xa,...e}},Ww=()=>xa;let rm;const Kw=e=>{rm=e},Qw=()=>rm,Tx={type:"3rdParty",init(e){Vw(e.options.react),Kw(e)}},Gw=b.createContext();class qw{constructor(){Du(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{var r;(r=this.usedNamespaces)[n]??(r[n]=!0)})}}const Xw=(e,t)=>{const n=b.useRef();return b.useEffect(()=>{n.current=e},[e,t]),n.current},im=(e,t,n,r)=>e.getFixedT(t,n,r),Yw=(e,t,n,r)=>b.useCallback(im(e,t,n,r),[e,t,n,r]),Rx=(e,t={})=>{var S,x,C,k;const{i18n:n}=t,{i18n:r,defaultNS:i}=b.useContext(Gw)||{},o=n||r||Qw();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new qw),!o){Sa("You will need to pass in an i18next instance by using initReactI18next");const T=($,M)=>hn(M)?M:Dw(M)&&hn(M.defaultValue)?M.defaultValue:Array.isArray($)?$[$.length-1]:$,j=[T,{},!1];return j.t=T,j.i18n={},j.ready=!1,j}(S=o.options.react)!=null&&S.wait&&Sa("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...Ww(),...o.options.react,...t},{useSuspense:l,keyPrefix:a}=s;let u=i||((x=o.options)==null?void 0:x.defaultNS);u=hn(u)?[u]:u||["translation"],(k=(C=o.reportNamespaces).addUsedNamespaces)==null||k.call(C,u);const f=(o.isInitialized||o.initializedStoreOnce)&&u.every(T=>Fw(T,o,s)),d=Yw(o,t.lng||null,s.nsMode==="fallback"?u:u[0],a),c=()=>d,y=()=>im(o,t.lng||null,s.nsMode==="fallback"?u:u[0],a),[g,v]=b.useState(c);let _=u.join();t.lng&&(_=`${t.lng}${_}`);const h=Xw(_),p=b.useRef(!0);b.useEffect(()=>{const{bindI18n:T,bindI18nStore:j}=s;p.current=!0,!f&&!l&&(t.lng?kf(o,t.lng,u,()=>{p.current&&v(y)}):xf(o,u,()=>{p.current&&v(y)})),f&&h&&h!==_&&p.current&&v(y);const $=()=>{p.current&&v(y)};return T&&(o==null||o.on(T,$)),j&&(o==null||o.store.on(j,$)),()=>{p.current=!1,o&&(T==null||T.split(" ").forEach(M=>o.off(M,$))),j&&o&&j.split(" ").forEach(M=>o.store.off(M,$))}},[o,_]),b.useEffect(()=>{p.current&&f&&v(c)},[o,a,f]);const m=[g,o,f];if(m.t=g,m.i18n=o,m.ready=f,f||!f&&!l)return m;throw new Promise(T=>{t.lng?kf(o,t.lng,u,()=>T()):xf(o,u,()=>T())})},Jw={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class jo{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Jw,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[l,a]=s;for(let u=0;u{let[l,a]=s;for(let u=0;u{e=r,t=i});return n.resolve=e,n.reject=t,n}function Ef(e){return e==null?"":""+e}function Zw(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const eS=/###/g;function zr(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(eS,"."):l}function i(){return!e||typeof e=="string"}const o=typeof t!="string"?t:t.split(".");let s=0;for(;s":">",'"':""","'":"'","/":"/"};function iS(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>rS[t]):e}class oS{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const sS=[" ",",","?","!",";"],lS=new oS(20);function aS(e,t,n){t=t||"",n=n||"";const r=sS.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const i=lS.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let o=!i.test(e);if(!o){const s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o}function ka(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o-1&&a0?e.replace("_","-"):e}class Pf extends Ms{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):typeof r=="string"&&o?l.push(...r.split(o)):l.push(r)));const a=Ao(this.data,l);return!a&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),a||!s||typeof r!="string"?a:ka(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),Cf(this.data,l,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let a=Ao(this.data,l)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?om(a,r,o):a={...a,...r},Cf(this.data,l,a),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var sm={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const Of={};class Io extends Ms{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Zw(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=yt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!aS(t,r,i);if(s&&!l){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),a=l[l.length-1],u=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(f){const S=n.nsSeparator||this.options.nsSeparator;return i?{res:`${a}${S}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${S}${s}`}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(t,n);let c=d&&d.res;const y=d&&d.usedKey||s,g=d&&d.exactUsedKey||s,v=Object.prototype.toString.apply(c),_=["[object Number]","[object Function]","[object RegExp]"],h=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,p=!this.i18nFormat||this.i18nFormat.handleAsObject;if(p&&c&&(typeof c!="string"&&typeof c!="boolean"&&typeof c!="number")&&_.indexOf(v)<0&&!(typeof h=="string"&&Array.isArray(c))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,c,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(d.res=S,d.usedParams=this.getUsedParamsDetails(n),d):S}if(o){const S=Array.isArray(c),x=S?[]:{},C=S?g:y;for(const k in c)if(Object.prototype.hasOwnProperty.call(c,k)){const T=`${C}${o}${k}`;x[k]=this.translate(T,{...n,joinArrays:!1,ns:l}),x[k]===T&&(x[k]=c[k])}c=x}}else if(p&&typeof h=="string"&&Array.isArray(c))c=c.join(h),c&&(c=this.extendTranslation(c,t,n,r));else{let S=!1,x=!1;const C=n.count!==void 0&&typeof n.count!="string",k=Io.hasDefaultValue(n),T=C?this.pluralResolver.getSuffix(u,n.count,n):"",j=n.ordinal&&C?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",$=C&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),M=$&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${T}`]||n[`defaultValue${j}`]||n.defaultValue;!this.isValidLookup(c)&&k&&(S=!0,c=M),this.isValidLookup(c)||(x=!0,c=s);const Pe=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:c,he=k&&M!==c&&this.options.updateMissing;if(x||S||he){if(this.logger.log(he?"updateKey":"missingKey",u,a,s,he?M:c),o){const E=this.resolve(s,{...n,keySeparator:!1});E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let w=[];const P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(let E=0;E{const B=k&&R!==c?R:Pe;this.options.missingKeyHandler?this.options.missingKeyHandler(E,a,N,B,he,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(E,a,N,B,he,n),this.emit("missingKey",E,a,N,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?w.forEach(E=>{const N=this.pluralResolver.getSuffixes(E,n);$&&n[`defaultValue${this.options.pluralSeparator}zero`]&&N.indexOf(`${this.options.pluralSeparator}zero`)<0&&N.push(`${this.options.pluralSeparator}zero`),N.forEach(R=>{A([E],s+R,n[`defaultValue${R}`]||M)})}):A(w,s,M))}c=this.extendTranslation(c,t,n,d,r),x&&c===s&&this.options.appendNamespaceToMissingKey&&(c=`${a}:${s}`),(x||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${s}`:s,S?c:void 0):c=this.options.parseMissingKeyHandler(c))}return i?(d.res=c,d.usedParams=this.getUsedParamsDetails(n),d):c}extendTranslation(t,n,r,i,o){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(u){const c=t.match(this.interpolator.nestingRegexp);f=c&&c.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language||i.usedLng,r),u){const c=t.match(this.interpolator.nestingRegexp),y=c&&c.length;f1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,s,l;return typeof t=="string"&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(a,n),f=u.key;i=f;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const c=n.count!==void 0&&typeof n.count!="string",y=c&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),g=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",v=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(_=>{this.isValidLookup(r)||(l=_,!Of[`${v[0]}-${_}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Of[`${v[0]}-${_}`]=!0,this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(h=>{if(this.isValidLookup(r))return;s=h;const p=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(p,f,h,_,n);else{let S;c&&(S=this.pluralResolver.getSuffix(h,n.count,n));const x=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(p.push(f+S),n.ordinal&&S.indexOf(C)===0&&p.push(f+S.replace(C,this.options.pluralSeparator)),y&&p.push(f+x)),g){const k=`${f}${this.options.contextSeparator}${n.context}`;p.push(k),c&&(p.push(k+S),n.ordinal&&S.indexOf(C)===0&&p.push(k+S.replace(C,this.options.pluralSeparator)),y&&p.push(k+x))}}let m;for(;m=p.pop();)this.isValidLookup(r)||(o=m,r=this.getResource(h,_,m,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function ml(e){return e.charAt(0).toUpperCase()+e.slice(1)}class _f{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yt.create("languageUtils")}getScriptPartFromCode(t){if(t=Mo(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Mo(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ml(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ml(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=ml(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=s=>{s&&(this.isSupportedCode(s)?i.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(s=>{i.indexOf(s)<0&&o(this.formatLanguageCode(s))}),i}}let uS=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],cS={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const fS=["v1","v2","v3"],dS=["v4"],Tf={zero:0,one:1,two:2,few:3,many:4,other:5};function pS(){const e={};return uS.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:cS[t.fc]}})}),e}class hS{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=yt.create("pluralResolver"),(!this.options.compatibilityJSON||dS.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=pS()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Mo(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>Tf[i]-Tf[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!fS.includes(this.options.compatibilityJSON)}}function Rf(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=nS(e,t,n);return!o&&i&&typeof n=="string"&&(o=ka(e,n,r),o===void 0&&(o=ka(t,n,r))),o}class mS{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=yt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:s,suffix:l,suffixEscaped:a,formatSeparator:u,unescapeSuffix:f,unescapePrefix:d,nestingPrefix:c,nestingPrefixEscaped:y,nestingSuffix:g,nestingSuffixEscaped:v,nestingOptionsSeparator:_,maxReplaces:h,alwaysFormat:p}=t.interpolation;this.escape=n!==void 0?n:iS,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?On(o):s||"{{",this.suffix=l?On(l):a||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=c?On(c):y||On("$t("),this.nestingSuffix=g?On(g):v||On(")"),this.nestingOptionsSeparator=_||",",this.maxReplaces=h||1e3,this.alwaysFormat=p!==void 0?p:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,s,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(g){return g.replace(/\$/g,"$$$$")}const f=g=>{if(g.indexOf(this.formatSeparator)<0){const p=Rf(n,a,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,r,{...i,...n,interpolationkey:g}):p}const v=g.split(this.formatSeparator),_=v.shift().trim(),h=v.join(this.formatSeparator).trim();return this.format(Rf(n,a,_,this.options.keySeparator,this.options.ignoreJSONStructure),h,r,{...i,...n,interpolationkey:_})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,c=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>u(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?u(this.escape(g)):u(g)}].forEach(g=>{for(l=0;o=g.regex.exec(t);){const v=o[1].trim();if(s=f(v),s===void 0)if(typeof d=="function"){const h=d(t,o,i);s=typeof h=="string"?h:""}else if(i&&Object.prototype.hasOwnProperty.call(i,v))s="";else if(c){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=Ef(s));const _=g.safeValue(s);if(t=t.replace(o[0],_),c?(g.regex.lastIndex+=s.length,g.regex.lastIndex-=o[0].length):g.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,s;function l(a,u){const f=this.nestingOptionsSeparator;if(a.indexOf(f)<0)return a;const d=a.split(new RegExp(`${f}[ ]*{`));let c=`{${d[1]}`;a=d[0],c=this.interpolate(c,s);const y=c.match(/'/g),g=c.match(/"/g);(y&&y.length%2===0&&!g||g.length%2!==0)&&(c=c.replace(/'/g,'"'));try{s=JSON.parse(c),u&&(s={...u,...s})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,v),`${a}${f}${c}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,a}for(;i=this.nestingRegexp.exec(t);){let a=[];s={...r},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const f=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=f.shift(),a=f,u=!0}if(o=n(l.call(this,i[1].trim(),s),s),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=Ef(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),u&&(o=a.reduce((f,d)=>this.format(f,d,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}function gS(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(s=>{if(s){const[l,...a]=s.split(":"),u=a.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=u),u==="false"&&(n[f]=!1),u==="true"&&(n[f]=!0),isNaN(u)||(n[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}}function _n(e){const t={};return function(r,i,o){const s=i+JSON.stringify(o);let l=t[s];return l||(l=e(Mo(i),o),t[s]=l),l(r)}}class yS{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=yt.create("formatter"),this.options=t,this.formats={number:_n((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:_n((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:_n((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:_n((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:_n((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=_n(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,a)=>{const{formatName:u,formatOptions:f}=gS(a);if(this.formats[u]){let d=l;try{const c=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},y=c.locale||c.lng||i.locale||i.lng||r;d=this.formats[u](l,y,{...f,...i,...c})}catch(c){this.logger.warn(c)}return d}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}function vS(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class wS extends Ms{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=yt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},s={},l={},a={};return t.forEach(u=>{let f=!0;n.forEach(d=>{const c=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?s[c]===void 0&&(s[c]=!0):(this.state[c]=1,f=!1,s[c]===void 0&&(s[c]=!0),o[c]===void 0&&(o[c]=!0),a[d]===void 0&&(a[d]=!0)))}),f||(l[u]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),r&&this.store.addResourceBundle(o,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const l={};this.queue.forEach(a=>{tS(a.loaded,[o],s),vS(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(u=>{l[u]||(l[u]={});const f=a.loaded[u];f.length&&f.forEach(d=>{l[u][d]===void 0&&(l[u][d]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:s});return}this.readingCalls++;const l=(u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&f&&i{this.read.call(this,t,n,r,i+1,o*2,s)},o);return}s(u,f)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const u=a(t,n);u&&typeof u.then=="function"?u.then(f=>l(null,f)).catch(l):l(null,u)}catch(u){l(u)}return}return a(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,l),this.loaded(t,s,l)})}saveMissing(t,n,r,i,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const a={...s,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let f;u.length===5?f=u(t,n,r,i,a):f=u(t,n,r,i),f&&typeof f.then=="function"?f.then(d=>l(null,d)).catch(l):l(null,f)}catch(f){l(f)}else u(t,n,r,i,l,a)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function Nf(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Lf(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function zi(){}function SS(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class ai extends Ms{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Lf(t),this.services={},this.logger=yt,this.modules={external:[]},SS(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=Nf();this.options={...i,...this.options,...Lf(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(f){return f?typeof f=="function"?new f:f:null}if(!this.options.isClone){this.modules.logger?yt.init(o(this.modules.logger),this.options):yt.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=yS);const d=new _f(this.options);this.store=new Pf(this.options.resources,this.options);const c=this.services;c.logger=yt,c.resourceStore=this.store,c.languageUtils=d,c.pluralResolver=new hS(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(c.formatter=o(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new mS(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new wS(o(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(y){for(var g=arguments.length,v=new Array(g>1?g-1:0),_=1;_1?g-1:0),_=1;_{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=zi),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const a=xr(),u=()=>{const f=(d,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(c),r(d,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zi;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],s=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};i?s(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>s(a)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const i=xr();return t||(t=this.languages),n||(n=this.options.ns),r||(r=zi),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&sm.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=xr();this.emit("languageChanging",t);const o=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},s=(a,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},l=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=typeof a=="string"?a:this.services.languageUtils.getBestMatchFromCodes(a);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,f=>{s(f,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),i}getFixedT(t,n,r){var i=this;const o=function(s,l){let a;if(typeof l!="object"){for(var u=arguments.length,f=new Array(u>2?u-2:0),d=2;d`${a.keyPrefix}${c}${g}`):y=a.keyPrefix?`${a.keyPrefix}${c}${s}`:s,i.t(y,a)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(l,a)=>{const u=this.services.backendConnector.state[`${l}|${a}`];return u===-1||u===2};if(n.precheck){const l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!i||s(o,t)))}loadNamespaces(t,n){const r=xr();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=xr();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(s=>i.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return o.length?(this.options.preload=i.concat(o),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new _f(Nf());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new ai(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zi;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new ai(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new Pf(this.store.data,i),o.services.resourceStore=o.store),o.translator=new Io(o.services,i),o.translator.on("*",function(l){for(var a=arguments.length,u=new Array(a>1?a-1:0),f=1;f{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const $f=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,CS=(e,t,n)=>{const r=n||{};r.path=r.path||"/";const i=encodeURIComponent(t);let o=`${e}=${i}`;if(r.maxAge>0){const s=r.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(s)}`}if(r.domain){if(!$f.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!$f.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},bf={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=CS(e,encodeURIComponent(t),i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const s=i.substring(1).split("&");for(let l=0;l0&&s[l].substring(0,a)===t&&(n=s[l].substring(a+1))}}return n}};let kr=null;const jf=()=>{if(kr!==null)return kr;try{kr=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{kr=!1}return kr};var _S={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&jf())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&jf()&&window.localStorage.setItem(n,e)}};let Er=null;const Af=()=>{if(Er!==null)return Er;try{Er=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Er=!1}return Er};var TS={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&Af())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&Af()&&window.sessionStorage.setItem(n,e)}},RS={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let o=0;o0?t:void 0}},NS={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},LS={name:"path",lookup(e){var i;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(i=n[typeof t=="number"?t:0])==null?void 0:i.replace("/",""):void 0}},$S={name:"subdomain",lookup(e){var i,o;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((o=(i=window.location)==null?void 0:i.hostname)==null?void 0:o.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function bS(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class jS{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=ES(n,this.options||{},bS()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(PS),this.addDetector(OS),this.addDetector(_S),this.addDetector(TS),this.addDetector(RS),this.addDetector(NS),this.addDetector(LS),this.addDetector($S)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}jS.type="languageDetector";function Ea(e){"@babel/helpers - typeof";return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ea(e)}function lm(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Ea(XMLHttpRequest))==="object"}function AS(e){return!!e&&typeof e.then=="function"}function MS(e){return AS(e)?e:Promise.resolve(e)}function IS(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ca={exports:{}},Ui={exports:{}},Mf;function FS(){return Mf||(Mf=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Rr<"u"&&Rr,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(s){var l=typeof o<"u"&&o||typeof self<"u"&&self||typeof l<"u"&&l,a={searchParams:"URLSearchParams"in l,iterable:"Symbol"in l&&"iterator"in Symbol,blob:"FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in l,arrayBuffer:"ArrayBuffer"in l};function u(w){return w&&DataView.prototype.isPrototypeOf(w)}if(a.arrayBuffer)var f=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(w){return w&&f.indexOf(Object.prototype.toString.call(w))>-1};function c(w){if(typeof w!="string"&&(w=String(w)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(w)||w==="")throw new TypeError('Invalid character in header field name: "'+w+'"');return w.toLowerCase()}function y(w){return typeof w!="string"&&(w=String(w)),w}function g(w){var P={next:function(){var A=w.shift();return{done:A===void 0,value:A}}};return a.iterable&&(P[Symbol.iterator]=function(){return P}),P}function v(w){this.map={},w instanceof v?w.forEach(function(P,A){this.append(A,P)},this):Array.isArray(w)?w.forEach(function(P){this.append(P[0],P[1])},this):w&&Object.getOwnPropertyNames(w).forEach(function(P){this.append(P,w[P])},this)}v.prototype.append=function(w,P){w=c(w),P=y(P);var A=this.map[w];this.map[w]=A?A+", "+P:P},v.prototype.delete=function(w){delete this.map[c(w)]},v.prototype.get=function(w){return w=c(w),this.has(w)?this.map[w]:null},v.prototype.has=function(w){return this.map.hasOwnProperty(c(w))},v.prototype.set=function(w,P){this.map[c(w)]=y(P)},v.prototype.forEach=function(w,P){for(var A in this.map)this.map.hasOwnProperty(A)&&w.call(P,this.map[A],A,this)},v.prototype.keys=function(){var w=[];return this.forEach(function(P,A){w.push(A)}),g(w)},v.prototype.values=function(){var w=[];return this.forEach(function(P){w.push(P)}),g(w)},v.prototype.entries=function(){var w=[];return this.forEach(function(P,A){w.push([A,P])}),g(w)},a.iterable&&(v.prototype[Symbol.iterator]=v.prototype.entries);function _(w){if(w.bodyUsed)return Promise.reject(new TypeError("Already read"));w.bodyUsed=!0}function h(w){return new Promise(function(P,A){w.onload=function(){P(w.result)},w.onerror=function(){A(w.error)}})}function p(w){var P=new FileReader,A=h(P);return P.readAsArrayBuffer(w),A}function m(w){var P=new FileReader,A=h(P);return P.readAsText(w),A}function S(w){for(var P=new Uint8Array(w),A=new Array(P.length),E=0;E-1?P:w}function j(w,P){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');P=P||{};var A=P.body;if(w instanceof j){if(w.bodyUsed)throw new TypeError("Already read");this.url=w.url,this.credentials=w.credentials,P.headers||(this.headers=new v(w.headers)),this.method=w.method,this.mode=w.mode,this.signal=w.signal,!A&&w._bodyInit!=null&&(A=w._bodyInit,w.bodyUsed=!0)}else this.url=String(w);if(this.credentials=P.credentials||this.credentials||"same-origin",(P.headers||!this.headers)&&(this.headers=new v(P.headers)),this.method=T(P.method||this.method||"GET"),this.mode=P.mode||this.mode||null,this.signal=P.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&A)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(A),(this.method==="GET"||this.method==="HEAD")&&(P.cache==="no-store"||P.cache==="no-cache")){var E=/([?&])_=[^&]*/;if(E.test(this.url))this.url=this.url.replace(E,"$1_="+new Date().getTime());else{var N=/\?/;this.url+=(N.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}j.prototype.clone=function(){return new j(this,{body:this._bodyInit})};function $(w){var P=new FormData;return w.trim().split("&").forEach(function(A){if(A){var E=A.split("="),N=E.shift().replace(/\+/g," "),R=E.join("=").replace(/\+/g," ");P.append(decodeURIComponent(N),decodeURIComponent(R))}}),P}function M(w){var P=new v,A=w.replace(/\r?\n[\t ]+/g," ");return A.split("\r").map(function(E){return E.indexOf(` `)===0?E.substr(1,E.length):E}).forEach(function(E){var N=E.split(":"),R=N.shift().trim();if(R){var B=N.join(":").trim();P.append(R,B)}}),P}C.call(j.prototype);function U(w,P){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');P||(P={}),this.type="default",this.status=P.status===void 0?200:P.status,this.ok=this.status>=200&&this.status<300,this.statusText=P.statusText===void 0?"":""+P.statusText,this.headers=new v(P.headers),this.url=P.url||"",this._initBody(w)}C.call(U.prototype),U.prototype.clone=function(){return new U(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},U.error=function(){var w=new U(null,{status:0,statusText:""});return w.type="error",w};var Pe=[301,302,303,307,308];U.redirect=function(w,P){if(Pe.indexOf(P)===-1)throw new RangeError("Invalid status code");return new U(null,{status:P,headers:{location:w}})},s.DOMException=l.DOMException;try{new s.DOMException}catch{s.DOMException=function(P,A){this.message=P,this.name=A;var E=Error(P);this.stack=E.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function he(w,P){return new Promise(function(A,E){var N=new j(w,P);if(N.signal&&N.signal.aborted)return E(new s.DOMException("Aborted","AbortError"));var R=new XMLHttpRequest;function B(){R.abort()}R.onload=function(){var me={status:R.status,statusText:R.statusText,headers:M(R.getAllResponseHeaders()||"")};me.url="responseURL"in R?R.responseURL:me.headers.get("X-Request-URL");var Ke="response"in R?R.response:R.responseText;setTimeout(function(){A(new U(Ke,me))},0)},R.onerror=function(){setTimeout(function(){E(new TypeError("Network request failed"))},0)},R.ontimeout=function(){setTimeout(function(){E(new TypeError("Network request failed"))},0)},R.onabort=function(){setTimeout(function(){E(new s.DOMException("Aborted","AbortError"))},0)};function se(me){try{return me===""&&l.location.href?l.location.href:me}catch{return me}}R.open(N.method,se(N.url),!0),N.credentials==="include"?R.withCredentials=!0:N.credentials==="omit"&&(R.withCredentials=!1),"responseType"in R&&(a.blob?R.responseType="blob":a.arrayBuffer&&N.headers.get("Content-Type")&&N.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(R.responseType="arraybuffer")),P&&typeof P.headers=="object"&&!(P.headers instanceof v)?Object.getOwnPropertyNames(P.headers).forEach(function(me){R.setRequestHeader(me,y(P.headers[me]))}):N.headers.forEach(function(me,Ke){R.setRequestHeader(Ke,me)}),N.signal&&(N.signal.addEventListener("abort",B),R.onreadystatechange=function(){R.readyState===4&&N.signal.removeEventListener("abort",B)}),R.send(typeof N._bodyInit>"u"?null:N._bodyInit)})}return he.polyfill=!0,l.fetch||(l.fetch=he,l.Headers=v,l.Request=j,l.Response=U),s.Headers=v,s.Request=j,s.Response=U,s.fetch=he,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Ui,Ui.exports)),Ui.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Rr<"u"&&Rr.fetch?n=Rr.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof IS<"u"&&typeof window>"u"){var r=n||FS();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Ca,Ca.exports);var am=Ca.exports;const um=Oa(am),If=Vf({__proto__:null,default:um},[am]);function Ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Df(e){for(var t=1;t"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var s=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,l=Df({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},Uf?{}:s),a=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{zf(n,l,i,a)}catch(u){if(!s||Object.keys(s).length===0||!u.message||u.message.indexOf("not implemented")<0)return i(u);try{Object.keys(s).forEach(function(f){delete l[f]}),zf(n,l,i,a),Uf=!0}catch(f){i(f)}}},HS=function(t,n,r,i){r&&Sn(r)==="object"&&(r=Pa("",r).slice(1)),t.queryStringParams&&(n=Pa(n,t.queryStringParams));try{var o;ui?o=new ui:o=new Fo("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=t.customHeaders;if(s=typeof s=="function"?s():s,s)for(var l in s)o.setRequestHeader(l,s[l]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(a){console&&console.log(a)}},VS=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Ot&&n.indexOf("file:")!==0)return BS(t,n,r,i);if(lm()||typeof ActiveXObject=="function")return HS(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function ir(e){"@babel/helpers - typeof";return ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ir(e)}function Bf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gl(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};WS(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return QS(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=gl(gl(gl({},qS()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var s=setInterval(function(){return r.reload()},this.options.reloadInterval);ir(s)==="object"&&typeof s.unref=="function"&&s.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,s){var l=this,a=this.options.loadPath;typeof this.options.loadPath=="function"&&(a=this.options.loadPath(n,i)),a=MS(a),a.then(function(u){if(!u)return s(null,{});var f=l.services.interpolator.interpolate(u,{lng:n.join("+"),ns:i.join("+")});l.loadUrl(f,s,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var s=this,l=typeof i=="string"?[i]:i,a=typeof o=="string"?[o]:o,u=this.options.parseLoadPayload(l,a);this.options.request(this.options,n,u,function(f,d){if(d&&(d.status>=500&&d.status<600||!d.status))return r("failed loading "+n+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return r("failed loading "+n+"; status code: "+d.status,!1);if(!d&&f&&f.message&&f.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+f.message,!0);if(f)return r(f,!1);var c,y;try{typeof d.data=="string"?c=s.options.parse(d.data,i,o):c=d.data}catch{y="failed parsing "+n+" to json"}if(y)return r(y,!1);r(null,c)})}},{key:"create",value:function(n,r,i,o,s){var l=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var a=this.options.parsePayload(r,i,o),u=0,f=[],d=[];n.forEach(function(c){var y=l.options.addPath;typeof l.options.addPath=="function"&&(y=l.options.addPath(c,r));var g=l.services.interpolator.interpolate(y,{lng:c,ns:r});l.options.request(l.options,g,a,function(v,_){u+=1,f.push(v),d.push(_),u===n.length&&typeof s=="function"&&s(f,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,l=i.language;if(!(l&&l.toLowerCase()==="cimode")){var a=[],u=function(d){var c=o.toResolveHierarchy(d);c.forEach(function(y){a.indexOf(y)<0&&a.push(y)})};u(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(f){return u(f)}),a.forEach(function(f){n.allOptions.ns.forEach(function(d){i.read(f,d,"read",null,null,function(c,y){c&&s.warn("loading namespace ".concat(d," for language ").concat(f," failed"),c),!c&&y&&s.log("loaded namespace ".concat(d," for language ").concat(f),y),i.loaded("".concat(f,"|").concat(d),c,y)})})})}}}])}();XS.type="backend";export{_x as $,cx as A,Zh as B,vx as C,Iv as D,Mv as E,jv as F,U1 as G,ux as H,Wh as I,pv as J,lh as K,Px as L,bv as M,tn as N,Ox as O,Tv as P,da as Q,Mh as R,fx as S,tm as T,Av as U,nx as V,hx as W,gx as X,Lt as Y,Ts as Z,Q as _,En as a,sx as a0,Sx as a1,ex as a2,tx as a3,ZS as a4,Ne as a5,XS as a6,jS as a7,Tx as a8,Rx as a9,Nx as aa,Cx as ab,Ex as ac,Gc as ad,wx as b,Eu as c,ii as d,Vh as e,ch as f,xx as g,js as h,yx as i,Nv as j,px as k,kx as l,sr as m,ca as n,dx as o,rx as p,ix as q,b as r,As as s,dv as t,mx as u,ox as v,hv as w,lx as x,ax as y,gv as z};