function ane(t,e){for(var n=0;ni[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();var Ry=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ys(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var EA={exports:{}},Pg={};var V4;function sne(){if(V4)return Pg;V4=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,r,a){var s=null;if(a!==void 0&&(s=""+a),r.key!==void 0&&(s=""+r.key),"key"in r){a={};for(var o in r)o!=="key"&&(a[o]=r[o])}else a=r;return r=a.ref,{$$typeof:t,type:i,key:s,ref:r!==void 0?r:null,props:a}}return Pg.Fragment=e,Pg.jsx=n,Pg.jsxs=n,Pg}var G4;function one(){return G4||(G4=1,EA.exports=sne()),EA.exports}var h=one(),AA={exports:{}},Yt={};var W4;function lne(){if(W4)return Yt;W4=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),m=Symbol.iterator;function g(z){return z===null||typeof z!="object"?null:(z=m&&z[m]||z["@@iterator"],typeof z=="function"?z:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function x(z,V,re){this.props=z,this.context=V,this.refs=v,this.updater=re||y}x.prototype.isReactComponent={},x.prototype.setState=function(z,V){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,V,"setState")},x.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function M(){}M.prototype=x.prototype;function w(z,V,re){this.props=z,this.context=V,this.refs=v,this.updater=re||y}var C=w.prototype=new M;C.constructor=w,_(C,x.prototype),C.isPureReactComponent=!0;var T=Array.isArray;function P(){}var A={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function N(z,V,re){var le=re.ref;return{$$typeof:t,type:z,key:V,ref:le!==void 0?le:null,props:re}}function k(z,V){return N(z.type,V,z.props)}function F(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function I(z){var V={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(re){return V[re]})}var W=/\/+/g;function D(z,V){return typeof z=="object"&&z!==null&&z.key!=null?I(""+z.key):V.toString(36)}function B(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(P,P):(z.status="pending",z.then(function(V){z.status==="pending"&&(z.status="fulfilled",z.value=V)},function(V){z.status==="pending"&&(z.status="rejected",z.reason=V)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function $(z,V,re,le,ge){var ie=typeof z;(ie==="undefined"||ie==="boolean")&&(z=null);var xe=!1;if(z===null)xe=!0;else switch(ie){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(z.$$typeof){case t:case e:xe=!0;break;case u:return xe=z._init,$(xe(z._payload),V,re,le,ge)}}if(xe)return ge=ge(z),xe=le===""?"."+D(z,0):le,T(ge)?(re="",xe!=null&&(re=xe.replace(W,"$&/")+"/"),$(ge,V,re,"",function(we){return we})):ge!=null&&(F(ge)&&(ge=k(ge,re+(ge.key==null||z&&z.key===ge.key?"":(""+ge.key).replace(W,"$&/")+"/")+xe)),V.push(ge)),1;xe=0;var ke=le===""?".":le+":";if(T(z))for(var he=0;he>>1,ee=$[Y];if(0>>1;Yr(re,X))ler(ge,re)?($[Y]=ge,$[le]=X,Y=le):($[Y]=re,$[V]=X,Y=V);else if(ler(ge,X))$[Y]=ge,$[le]=X,Y=le;else break e}}return K}function r($,K){var X=$.sortIndex-K.sortIndex;return X!==0?X:$.id-K.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();t.unstable_now=function(){return s.now()-o}}var l=[],c=[],u=1,f=null,m=3,g=!1,y=!1,_=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function C($){for(var K=n(c);K!==null;){if(K.callback===null)i(c);else if(K.startTime<=$)i(c),K.sortIndex=K.expirationTime,e(l,K);else break;K=n(c)}}function T($){if(_=!1,C($),!y)if(n(l)!==null)y=!0,P||(P=!0,I());else{var K=n(c);K!==null&&B(T,K.startTime-$)}}var P=!1,A=-1,j=5,N=-1;function k(){return v?!0:!(t.unstable_now()-N$&&k());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,m=f.priorityLevel;var ee=Y(f.expirationTime<=$);if($=t.unstable_now(),typeof ee=="function"){f.callback=ee,C($),K=!0;break t}f===n(l)&&i(l),C($)}else i(l);f=n(l)}if(f!==null)K=!0;else{var z=n(c);z!==null&&B(T,z.startTime-$),K=!1}}break e}finally{f=null,m=X,g=!1}K=void 0}}finally{K?I():P=!1}}}var I;if(typeof w=="function")I=function(){w(F)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,D=W.port2;W.port1.onmessage=F,I=function(){D.postMessage(null)}}else I=function(){x(F,0)};function B($,K){A=x(function(){$(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function($){$.callback=null},t.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<$?Math.floor(1e3/$):5},t.unstable_getCurrentPriorityLevel=function(){return m},t.unstable_next=function($){switch(m){case 1:case 2:case 3:var K=3;break;default:K=m}var X=m;m=K;try{return $()}finally{m=X}},t.unstable_requestPaint=function(){v=!0},t.unstable_runWithPriority=function($,K){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var X=m;m=$;try{return K()}finally{m=X}},t.unstable_scheduleCallback=function($,K,X){var Y=t.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0Y?($.sortIndex=X,e(c,$),n(l)===null&&$===n(c)&&(_?(M(A),A=-1):_=!0,B(T,X-Y))):($.sortIndex=ee,e(l,$),y||g||(y=!0,P||(P=!0,I()))),$},t.unstable_shouldYield=k,t.unstable_wrapCallback=function($){var K=m;return function(){var X=m;m=K;try{return $.apply(this,arguments)}finally{m=X}}}})(NA)),NA}var K4;function dne(){return K4||(K4=1,CA.exports=une()),CA.exports}var RA={exports:{}},Xr={};var Y4;function fne(){if(Y4)return Xr;Y4=1;var t=xm();function e(l){var c="https://react.dev/errors/"+l;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),RA.exports=fne(),RA.exports}var Q4;function hne(){if(Q4)return kg;Q4=1;var t=dne(),e=xm(),n=sG();function i(d){var p="https://react.dev/errors/"+d;if(1ee||(d.current=Y[ee],Y[ee]=null,ee--)}function re(d,p){ee++,Y[ee]=d.current,d.current=p}var le=z(null),ge=z(null),ie=z(null),xe=z(null);function ke(d,p){switch(re(ie,p),re(ge,d),re(le,null),p.nodeType){case 9:case 11:d=(d=p.documentElement)&&(d=d.namespaceURI)?h4(d):0;break;default:if(d=p.tagName,p=p.namespaceURI)p=h4(p),d=p4(p,d);else switch(d){case"svg":d=1;break;case"math":d=2;break;default:d=0}}V(le),re(le,d)}function he(){V(le),V(ge),V(ie)}function we(d){d.memoizedState!==null&&re(xe,d);var p=le.current,b=p4(p,d.type);p!==b&&(re(ge,d),re(le,b))}function Ue(d){ge.current===d&&(V(le),V(ge)),xe.current===d&&(V(xe),Tg._currentValue=X)}var ue,lt;function H(d){if(ue===void 0)try{throw Error()}catch(b){var p=b.stack.trim().match(/\n( *(at )?)/);ue=p&&p[1]||"",lt=-1)":-1R||_e[S]!==ze[R]){var et=` `+_e[S].replace(" at new "," at ");return d.displayName&&et.includes("")&&(et=et.replace("",d.displayName)),et}while(1<=S&&0<=R);break}}}finally{q=!1,Error.prepareStackTrace=b}return(b=d?d.displayName||d.name:"")?H(b):""}function Z(d,p){switch(d.tag){case 26:case 27:case 5:return H(d.type);case 16:return H("Lazy");case 13:return d.child!==p&&p!==null?H("Suspense Fallback"):H("Suspense");case 19:return H("SuspenseList");case 0:case 15:return oe(d.type,!1);case 11:return oe(d.type.render,!1);case 1:return oe(d.type,!0);case 31:return H("Activity");default:return""}}function Q(d){try{var p="",b=null;do p+=Z(d,b),b=d,d=d.return;while(d);return p}catch(S){return` Error generating stack: `+S.message+` `+S.stack}}var se=Object.prototype.hasOwnProperty,Ce=t.unstable_scheduleCallback,Ee=t.unstable_cancelCallback,ne=t.unstable_shouldYield,U=t.unstable_requestPaint,L=t.unstable_now,J=t.unstable_getCurrentPriorityLevel,me=t.unstable_ImmediatePriority,ye=t.unstable_UserBlockingPriority,pe=t.unstable_NormalPriority,Qe=t.unstable_LowPriority,Le=t.unstable_IdlePriority,Xe=t.log,st=t.unstable_setDisableYieldValue,Ie=null,Pe=null;function pt(d){if(typeof Xe=="function"&&st(d),Pe&&typeof Pe.setStrictMode=="function")try{Pe.setStrictMode(Ie,d)}catch{}}var it=Math.clz32?Math.clz32:de,nt=Math.log,dt=Math.LN2;function de(d){return d>>>=0,d===0?32:31-(nt(d)/dt|0)|0}var rt=256,fe=262144,Oe=4194304;function Me(d){var p=d&42;if(p!==0)return p;switch(d&-d){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return d&261888;case 262144:case 524288:case 1048576:case 2097152:return d&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return d&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return d}}function ve(d,p,b){var S=d.pendingLanes;if(S===0)return 0;var R=0,O=d.suspendedLanes,G=d.pingedLanes;d=d.warmLanes;var ae=S&134217727;return ae!==0?(S=ae&~O,S!==0?R=Me(S):(G&=ae,G!==0?R=Me(G):b||(b=ae&~d,b!==0&&(R=Me(b))))):(ae=S&~O,ae!==0?R=Me(ae):G!==0?R=Me(G):b||(b=S&~d,b!==0&&(R=Me(b)))),R===0?0:p!==0&&p!==R&&(p&O)===0&&(O=R&-R,b=p&-p,O>=b||O===32&&(b&4194048)!==0)?p:R}function Be(d,p){return(d.pendingLanes&~(d.suspendedLanes&~d.pingedLanes)&p)===0}function ct(d,p){switch(d){case 1:case 2:case 4:case 8:case 64:return p+250;case 16:case 32: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 p+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bt(){var d=Oe;return Oe<<=1,(Oe&62914560)===0&&(Oe=4194304),d}function Rt(d){for(var p=[],b=0;31>b;b++)p.push(d);return p}function ln(d,p){d.pendingLanes|=p,p!==268435456&&(d.suspendedLanes=0,d.pingedLanes=0,d.warmLanes=0)}function Ot(d,p,b,S,R,O){var G=d.pendingLanes;d.pendingLanes=b,d.suspendedLanes=0,d.pingedLanes=0,d.warmLanes=0,d.expiredLanes&=b,d.entangledLanes&=b,d.errorRecoveryDisabledLanes&=b,d.shellSuspendCounter=0;var ae=d.entanglements,_e=d.expirationTimes,ze=d.hiddenUpdates;for(b=G&~b;0"u")return null;try{return d.activeElement||d.body}catch{return d.body}}var Ci=/[\n"\\]/g;function Nn(d){return d.replace(Ci,function(p){return"\\"+p.charCodeAt(0).toString(16)+" "})}function Js(d,p,b,S,R,O,G,ae){d.name="",G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"?d.type=G:d.removeAttribute("type"),p!=null?G==="number"?(p===0&&d.value===""||d.value!=p)&&(d.value=""+un(p)):d.value!==""+un(p)&&(d.value=""+un(p)):G!=="submit"&&G!=="reset"||d.removeAttribute("value"),p!=null?xr(d,G,un(p)):b!=null?xr(d,G,un(b)):S!=null&&d.removeAttribute("value"),R==null&&O!=null&&(d.defaultChecked=!!O),R!=null&&(d.checked=R&&typeof R!="function"&&typeof R!="symbol"),ae!=null&&typeof ae!="function"&&typeof ae!="symbol"&&typeof ae!="boolean"?d.name=""+un(ae):d.removeAttribute("name")}function Pn(d,p,b,S,R,O,G,ae){if(O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(d.type=O),p!=null||b!=null){if(!(O!=="submit"&&O!=="reset"||p!=null)){Kt(d);return}b=b!=null?""+un(b):"",p=p!=null?""+un(p):b,ae||p===d.value||(d.value=p),d.defaultValue=p}S=S??R,S=typeof S!="function"&&typeof S!="symbol"&&!!S,d.checked=ae?d.checked:!!S,d.defaultChecked=!!S,G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"&&(d.name=G),Kt(d)}function xr(d,p,b){p==="number"&&yi(d.ownerDocument)===d||d.defaultValue===""+b||(d.defaultValue=""+b)}function Ji(d,p,b,S){if(d=d.options,p){p={};for(var R=0;R"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),EM=!1;if(fl)try{var Gm={};Object.defineProperty(Gm,"passive",{get:function(){EM=!0}}),window.addEventListener("test",Gm,Gm),window.removeEventListener("test",Gm,Gm)}catch{EM=!1}var Lc=null,AM=null,Sv=null;function pL(){if(Sv)return Sv;var d,p=AM,b=p.length,S,R="value"in Lc?Lc.value:Lc.textContent,O=R.length;for(d=0;d=Xm),bL=" ",_L=!1;function SL(d,p){switch(d){case"keyup":return Tee.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wL(d){return d=d.detail,typeof d=="object"&&"data"in d?d.data:null}var Kf=!1;function Nee(d,p){switch(d){case"compositionend":return wL(p);case"keypress":return p.which!==32?null:(_L=!0,bL);case"textInput":return d=p.data,d===bL&&_L?null:d;default:return null}}function Ree(d,p){if(Kf)return d==="compositionend"||!PM&&SL(d,p)?(d=pL(),Sv=AM=Lc=null,Kf=!1,d):null;switch(d){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1=p)return{node:b,offset:p-d};d=S}e:{for(;b;){if(b.nextSibling){b=b.nextSibling;break e}b=b.parentNode}b=void 0}b=PL(b)}}function DL(d,p){return d&&p?d===p?!0:d&&d.nodeType===3?!1:p&&p.nodeType===3?DL(d,p.parentNode):"contains"in d?d.contains(p):d.compareDocumentPosition?!!(d.compareDocumentPosition(p)&16):!1:!1}function OL(d){d=d!=null&&d.ownerDocument!=null&&d.ownerDocument.defaultView!=null?d.ownerDocument.defaultView:window;for(var p=yi(d.document);p instanceof d.HTMLIFrameElement;){try{var b=typeof p.contentWindow.location.href=="string"}catch{b=!1}if(b)d=p.contentWindow;else break;p=yi(d.document)}return p}function OM(d){var p=d&&d.nodeName&&d.nodeName.toLowerCase();return p&&(p==="input"&&(d.type==="text"||d.type==="search"||d.type==="tel"||d.type==="url"||d.type==="password")||p==="textarea"||d.contentEditable==="true")}var Uee=fl&&"documentMode"in document&&11>=document.documentMode,Yf=null,LM=null,Qm=null,IM=!1;function LL(d,p,b){var S=b.window===b?b.document:b.nodeType===9?b:b.ownerDocument;IM||Yf==null||Yf!==yi(S)||(S=Yf,"selectionStart"in S&&OM(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),Qm&&Zm(Qm,S)||(Qm=S,S=my(LM,"onSelect"),0>=G,R-=G,Ro=1<<32-it(p)+R|b<en?(xn=kt,kt=null):xn=kt.sibling;var Mn=Ve(De,kt,Fe[en],at);if(Mn===null){kt===null&&(kt=xn);break}d&&kt&&Mn.alternate===null&&p(De,kt),Ae=O(Mn,Ae,en),wn===null?jt=Mn:wn.sibling=Mn,wn=Mn,kt=xn}if(en===Fe.length)return b(De,kt),yn&&pl(De,en),jt;if(kt===null){for(;enen?(xn=kt,kt=null):xn=kt.sibling;var iu=Ve(De,kt,Mn.value,at);if(iu===null){kt===null&&(kt=xn);break}d&&kt&&iu.alternate===null&&p(De,kt),Ae=O(iu,Ae,en),wn===null?jt=iu:wn.sibling=iu,wn=iu,kt=xn}if(Mn.done)return b(De,kt),yn&&pl(De,en),jt;if(kt===null){for(;!Mn.done;en++,Mn=Fe.next())Mn=ot(De,Mn.value,at),Mn!==null&&(Ae=O(Mn,Ae,en),wn===null?jt=Mn:wn.sibling=Mn,wn=Mn);return yn&&pl(De,en),jt}for(kt=S(kt);!Mn.done;en++,Mn=Fe.next())Mn=Ze(kt,De,en,Mn.value,at),Mn!==null&&(d&&Mn.alternate!==null&&kt.delete(Mn.key===null?en:Mn.key),Ae=O(Mn,Ae,en),wn===null?jt=Mn:wn.sibling=Mn,wn=Mn);return d&&kt.forEach(function(rne){return p(De,rne)}),yn&&pl(De,en),jt}function Fn(De,Ae,Fe,at){if(typeof Fe=="object"&&Fe!==null&&Fe.type===_&&Fe.key===null&&(Fe=Fe.props.children),typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case g:e:{for(var jt=Fe.key;Ae!==null;){if(Ae.key===jt){if(jt=Fe.type,jt===_){if(Ae.tag===7){b(De,Ae.sibling),at=R(Ae,Fe.props.children),at.return=De,De=at;break e}}else if(Ae.elementType===jt||typeof jt=="object"&&jt!==null&&jt.$$typeof===j&&bd(jt)===Ae.type){b(De,Ae.sibling),at=R(Ae,Fe.props),rg(at,Fe),at.return=De,De=at;break e}b(De,Ae);break}else p(De,Ae);Ae=Ae.sibling}Fe.type===_?(at=md(Fe.props.children,De.mode,at,Fe.key),at.return=De,De=at):(at=kv(Fe.type,Fe.key,Fe.props,null,De.mode,at),rg(at,Fe),at.return=De,De=at)}return G(De);case y:e:{for(jt=Fe.key;Ae!==null;){if(Ae.key===jt)if(Ae.tag===4&&Ae.stateNode.containerInfo===Fe.containerInfo&&Ae.stateNode.implementation===Fe.implementation){b(De,Ae.sibling),at=R(Ae,Fe.children||[]),at.return=De,De=at;break e}else{b(De,Ae);break}else p(De,Ae);Ae=Ae.sibling}at=$M(Fe,De.mode,at),at.return=De,De=at}return G(De);case j:return Fe=bd(Fe),Fn(De,Ae,Fe,at)}if(B(Fe))return Ct(De,Ae,Fe,at);if(I(Fe)){if(jt=I(Fe),typeof jt!="function")throw Error(i(150));return Fe=jt.call(Fe),Bt(De,Ae,Fe,at)}if(typeof Fe.then=="function")return Fn(De,Ae,Fv(Fe),at);if(Fe.$$typeof===w)return Fn(De,Ae,Lv(De,Fe),at);zv(De,Fe)}return typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint"?(Fe=""+Fe,Ae!==null&&Ae.tag===6?(b(De,Ae.sibling),at=R(Ae,Fe),at.return=De,De=at):(b(De,Ae),at=HM(Fe,De.mode,at),at.return=De,De=at),G(De)):b(De,Ae)}return function(De,Ae,Fe,at){try{ig=0;var jt=Fn(De,Ae,Fe,at);return oh=null,jt}catch(kt){if(kt===sh||kt===jv)throw kt;var wn=qa(29,kt,null,De.mode);return wn.lanes=at,wn.return=De,wn}finally{}}}var Sd=rI(!0),aI=rI(!1),zc=!1;function tE(d){d.updateQueue={baseState:d.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nE(d,p){d=d.updateQueue,p.updateQueue===d&&(p.updateQueue={baseState:d.baseState,firstBaseUpdate:d.firstBaseUpdate,lastBaseUpdate:d.lastBaseUpdate,shared:d.shared,callbacks:null})}function Bc(d){return{lane:d,tag:0,payload:null,callback:null,next:null}}function Hc(d,p,b){var S=d.updateQueue;if(S===null)return null;if(S=S.shared,(Cn&2)!==0){var R=S.pending;return R===null?p.next=p:(p.next=R.next,R.next=p),S.pending=p,p=Pv(d),HL(d,null,b),p}return Rv(d,S,p,b),Pv(d)}function ag(d,p,b){if(p=p.updateQueue,p!==null&&(p=p.shared,(b&4194048)!==0)){var S=p.lanes;S&=d.pendingLanes,b|=S,p.lanes=b,qn(d,b)}}function iE(d,p){var b=d.updateQueue,S=d.alternate;if(S!==null&&(S=S.updateQueue,b===S)){var R=null,O=null;if(b=b.firstBaseUpdate,b!==null){do{var G={lane:b.lane,tag:b.tag,payload:b.payload,callback:null,next:null};O===null?R=O=G:O=O.next=G,b=b.next}while(b!==null);O===null?R=O=p:O=O.next=p}else R=O=p;b={baseState:S.baseState,firstBaseUpdate:R,lastBaseUpdate:O,shared:S.shared,callbacks:S.callbacks},d.updateQueue=b;return}d=b.lastBaseUpdate,d===null?b.firstBaseUpdate=p:d.next=p,b.lastBaseUpdate=p}var rE=!1;function sg(){if(rE){var d=ah;if(d!==null)throw d}}function og(d,p,b,S){rE=!1;var R=d.updateQueue;zc=!1;var O=R.firstBaseUpdate,G=R.lastBaseUpdate,ae=R.shared.pending;if(ae!==null){R.shared.pending=null;var _e=ae,ze=_e.next;_e.next=null,G===null?O=ze:G.next=ze,G=_e;var et=d.alternate;et!==null&&(et=et.updateQueue,ae=et.lastBaseUpdate,ae!==G&&(ae===null?et.firstBaseUpdate=ze:ae.next=ze,et.lastBaseUpdate=_e))}if(O!==null){var ot=R.baseState;G=0,et=ze=_e=null,ae=O;do{var Ve=ae.lane&-536870913,Ze=Ve!==ae.lane;if(Ze?(gn&Ve)===Ve:(S&Ve)===Ve){Ve!==0&&Ve===rh&&(rE=!0),et!==null&&(et=et.next={lane:0,tag:ae.tag,payload:ae.payload,callback:null,next:null});e:{var Ct=d,Bt=ae;Ve=p;var Fn=b;switch(Bt.tag){case 1:if(Ct=Bt.payload,typeof Ct=="function"){ot=Ct.call(Fn,ot,Ve);break e}ot=Ct;break e;case 3:Ct.flags=Ct.flags&-65537|128;case 0:if(Ct=Bt.payload,Ve=typeof Ct=="function"?Ct.call(Fn,ot,Ve):Ct,Ve==null)break e;ot=f({},ot,Ve);break e;case 2:zc=!0}}Ve=ae.callback,Ve!==null&&(d.flags|=64,Ze&&(d.flags|=8192),Ze=R.callbacks,Ze===null?R.callbacks=[Ve]:Ze.push(Ve))}else Ze={lane:Ve,tag:ae.tag,payload:ae.payload,callback:ae.callback,next:null},et===null?(ze=et=Ze,_e=ot):et=et.next=Ze,G|=Ve;if(ae=ae.next,ae===null){if(ae=R.shared.pending,ae===null)break;Ze=ae,ae=Ze.next,Ze.next=null,R.lastBaseUpdate=Ze,R.shared.pending=null}}while(!0);et===null&&(_e=ot),R.baseState=_e,R.firstBaseUpdate=ze,R.lastBaseUpdate=et,O===null&&(R.shared.lanes=0),qc|=G,d.lanes=G,d.memoizedState=ot}}function sI(d,p){if(typeof d!="function")throw Error(i(191,d));d.call(p)}function oI(d,p){var b=d.callbacks;if(b!==null)for(d.callbacks=null,d=0;dO?O:8;var G=$.T,ae={};$.T=ae,wE(d,!1,p,b);try{var _e=R(),ze=$.S;if(ze!==null&&ze(ae,_e),_e!==null&&typeof _e=="object"&&typeof _e.then=="function"){var et=qee(_e,S);ug(d,p,et,Qa(d))}else ug(d,p,S,Qa(d))}catch(ot){ug(d,p,{then:function(){},status:"rejected",reason:ot},Qa())}finally{K.p=O,G!==null&&ae.types!==null&&(G.types=ae.types),$.T=G}}function Jee(){}function _E(d,p,b,S){if(d.tag!==5)throw Error(i(476));var R=FI(d).queue;UI(d,R,p,X,b===null?Jee:function(){return zI(d),b(S)})}function FI(d){var p=d.memoizedState;if(p!==null)return p;p={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vl,lastRenderedState:X},next:null};var b={};return p.next={memoizedState:b,baseState:b,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vl,lastRenderedState:b},next:null},d.memoizedState=p,d=d.alternate,d!==null&&(d.memoizedState=p),p}function zI(d){var p=FI(d);p.next===null&&(p=d.alternate.memoizedState),ug(d,p.next.queue,{},Qa())}function SE(){return Or(Tg)}function BI(){return Ri().memoizedState}function HI(){return Ri().memoizedState}function ete(d){for(var p=d.return;p!==null;){switch(p.tag){case 24:case 3:var b=Qa();d=Bc(b);var S=Hc(p,d,b);S!==null&&(Na(S,p,b),ag(S,p,b)),p={cache:ZM()},d.payload=p;return}p=p.return}}function tte(d,p,b){var S=Qa();b={lane:S,revertLane:0,gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null},Yv(d)?VI(p,b):(b=zM(d,p,b,S),b!==null&&(Na(b,d,S),GI(b,p,S)))}function $I(d,p,b){var S=Qa();ug(d,p,b,S)}function ug(d,p,b,S){var R={lane:S,revertLane:0,gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null};if(Yv(d))VI(p,R);else{var O=d.alternate;if(d.lanes===0&&(O===null||O.lanes===0)&&(O=p.lastRenderedReducer,O!==null))try{var G=p.lastRenderedState,ae=O(G,b);if(R.hasEagerState=!0,R.eagerState=ae,Wa(ae,G))return Rv(d,p,R,0),Xn===null&&Nv(),!1}catch{}finally{}if(b=zM(d,p,R,S),b!==null)return Na(b,d,S),GI(b,p,S),!0}return!1}function wE(d,p,b,S){if(S={lane:2,revertLane:tA(),gesture:null,action:S,hasEagerState:!1,eagerState:null,next:null},Yv(d)){if(p)throw Error(i(479))}else p=zM(d,b,S,2),p!==null&&Na(p,d,2)}function Yv(d){var p=d.alternate;return d===Jt||p!==null&&p===Jt}function VI(d,p){ch=$v=!0;var b=d.pending;b===null?p.next=p:(p.next=b.next,b.next=p),d.pending=p}function GI(d,p,b){if((b&4194048)!==0){var S=p.lanes;S&=d.pendingLanes,b|=S,p.lanes=b,qn(d,b)}}var dg={readContext:Or,use:Wv,useCallback:bi,useContext:bi,useEffect:bi,useImperativeHandle:bi,useLayoutEffect:bi,useInsertionEffect:bi,useMemo:bi,useReducer:bi,useRef:bi,useState:bi,useDebugValue:bi,useDeferredValue:bi,useTransition:bi,useSyncExternalStore:bi,useId:bi,useHostTransitionStatus:bi,useFormState:bi,useActionState:bi,useOptimistic:bi,useMemoCache:bi,useCacheRefresh:bi};dg.useEffectEvent=bi;var WI={readContext:Or,use:Wv,useCallback:function(d,p){return la().memoizedState=[d,p===void 0?null:p],d},useContext:Or,useEffect:NI,useImperativeHandle:function(d,p,b){b=b!=null?b.concat([d]):null,Xv(4194308,4,DI.bind(null,p,d),b)},useLayoutEffect:function(d,p){return Xv(4194308,4,d,p)},useInsertionEffect:function(d,p){Xv(4,2,d,p)},useMemo:function(d,p){var b=la();p=p===void 0?null:p;var S=d();if(wd){pt(!0);try{d()}finally{pt(!1)}}return b.memoizedState=[S,p],S},useReducer:function(d,p,b){var S=la();if(b!==void 0){var R=b(p);if(wd){pt(!0);try{b(p)}finally{pt(!1)}}}else R=p;return S.memoizedState=S.baseState=R,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:d,lastRenderedState:R},S.queue=d,d=d.dispatch=tte.bind(null,Jt,d),[S.memoizedState,d]},useRef:function(d){var p=la();return d={current:d},p.memoizedState=d},useState:function(d){d=gE(d);var p=d.queue,b=$I.bind(null,Jt,p);return p.dispatch=b,[d.memoizedState,b]},useDebugValue:yE,useDeferredValue:function(d,p){var b=la();return bE(b,d,p)},useTransition:function(){var d=gE(!1);return d=UI.bind(null,Jt,d.queue,!0,!1),la().memoizedState=d,[!1,d]},useSyncExternalStore:function(d,p,b){var S=Jt,R=la();if(yn){if(b===void 0)throw Error(i(407));b=b()}else{if(b=p(),Xn===null)throw Error(i(349));(gn&127)!==0||hI(S,p,b)}R.memoizedState=b;var O={value:b,getSnapshot:p};return R.queue=O,NI(mI.bind(null,S,O,d),[d]),S.flags|=2048,dh(9,{destroy:void 0},pI.bind(null,S,O,b,p),null),b},useId:function(){var d=la(),p=Xn.identifierPrefix;if(yn){var b=Po,S=Ro;b=(S&~(1<<32-it(S)-1)).toString(32)+b,p="_"+p+"R_"+b,b=Vv++,0<\/script>",O=O.removeChild(O.firstChild);break;case"select":O=typeof S.is=="string"?G.createElement("select",{is:S.is}):G.createElement("select"),S.multiple?O.multiple=!0:S.size&&(O.size=S.size);break;default:O=typeof S.is=="string"?G.createElement(R,{is:S.is}):G.createElement(R)}}O[hi]=p,O[Ti]=S;e:for(G=p.child;G!==null;){if(G.tag===5||G.tag===6)O.appendChild(G.stateNode);else if(G.tag!==4&&G.tag!==27&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===p)break e;for(;G.sibling===null;){if(G.return===null||G.return===p)break e;G=G.return}G.sibling.return=G.return,G=G.sibling}p.stateNode=O;e:switch(Ir(O,R,S),R){case"button":case"input":case"select":case"textarea":S=!!S.autoFocus;break e;case"img":S=!0;break e;default:S=!1}S&&bl(p)}}return ni(p),jE(p,p.type,d===null?null:d.memoizedProps,p.pendingProps,b),null;case 6:if(d&&p.stateNode!=null)d.memoizedProps!==S&&bl(p);else{if(typeof S!="string"&&p.stateNode===null)throw Error(i(166));if(d=ie.current,nh(p)){if(d=p.stateNode,b=p.memoizedProps,S=null,R=Dr,R!==null)switch(R.tag){case 27:case 5:S=R.memoizedProps}d[hi]=p,d=!!(d.nodeValue===b||S!==null&&S.suppressHydrationWarning===!0||d4(d.nodeValue,b)),d||Uc(p,!0)}else d=gy(d).createTextNode(S),d[hi]=p,p.stateNode=d}return ni(p),null;case 31:if(b=p.memoizedState,d===null||d.memoizedState!==null){if(S=nh(p),b!==null){if(d===null){if(!S)throw Error(i(318));if(d=p.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(557));d[hi]=p}else gd(),(p.flags&128)===0&&(p.memoizedState=null),p.flags|=4;ni(p),d=!1}else b=qM(),d!==null&&d.memoizedState!==null&&(d.memoizedState.hydrationErrors=b),d=!0;if(!d)return p.flags&256?(Ka(p),p):(Ka(p),null);if((p.flags&128)!==0)throw Error(i(558))}return ni(p),null;case 13:if(S=p.memoizedState,d===null||d.memoizedState!==null&&d.memoizedState.dehydrated!==null){if(R=nh(p),S!==null&&S.dehydrated!==null){if(d===null){if(!R)throw Error(i(318));if(R=p.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error(i(317));R[hi]=p}else gd(),(p.flags&128)===0&&(p.memoizedState=null),p.flags|=4;ni(p),R=!1}else R=qM(),d!==null&&d.memoizedState!==null&&(d.memoizedState.hydrationErrors=R),R=!0;if(!R)return p.flags&256?(Ka(p),p):(Ka(p),null)}return Ka(p),(p.flags&128)!==0?(p.lanes=b,p):(b=S!==null,d=d!==null&&d.memoizedState!==null,b&&(S=p.child,R=null,S.alternate!==null&&S.alternate.memoizedState!==null&&S.alternate.memoizedState.cachePool!==null&&(R=S.alternate.memoizedState.cachePool.pool),O=null,S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(O=S.memoizedState.cachePool.pool),O!==R&&(S.flags|=2048)),b!==d&&b&&(p.child.flags|=8192),ty(p,p.updateQueue),ni(p),null);case 4:return he(),d===null&&aA(p.stateNode.containerInfo),ni(p),null;case 10:return gl(p.type),ni(p),null;case 19:if(V(Ni),S=p.memoizedState,S===null)return ni(p),null;if(R=(p.flags&128)!==0,O=S.rendering,O===null)if(R)hg(S,!1);else{if(_i!==0||d!==null&&(d.flags&128)!==0)for(d=p.child;d!==null;){if(O=Hv(d),O!==null){for(p.flags|=128,hg(S,!1),d=O.updateQueue,p.updateQueue=d,ty(p,d),p.subtreeFlags=0,d=b,b=p.child;b!==null;)$L(b,d),b=b.sibling;return re(Ni,Ni.current&1|2),yn&&pl(p,S.treeForkCount),p.child}d=d.sibling}S.tail!==null&&L()>sy&&(p.flags|=128,R=!0,hg(S,!1),p.lanes=4194304)}else{if(!R)if(d=Hv(O),d!==null){if(p.flags|=128,R=!0,d=d.updateQueue,p.updateQueue=d,ty(p,d),hg(S,!0),S.tail===null&&S.tailMode==="hidden"&&!O.alternate&&!yn)return ni(p),null}else 2*L()-S.renderingStartTime>sy&&b!==536870912&&(p.flags|=128,R=!0,hg(S,!1),p.lanes=4194304);S.isBackwards?(O.sibling=p.child,p.child=O):(d=S.last,d!==null?d.sibling=O:p.child=O,S.last=O)}return S.tail!==null?(d=S.tail,S.rendering=d,S.tail=d.sibling,S.renderingStartTime=L(),d.sibling=null,b=Ni.current,re(Ni,R?b&1|2:b&1),yn&&pl(p,S.treeForkCount),d):(ni(p),null);case 22:case 23:return Ka(p),sE(),S=p.memoizedState!==null,d!==null?d.memoizedState!==null!==S&&(p.flags|=8192):S&&(p.flags|=8192),S?(b&536870912)!==0&&(p.flags&128)===0&&(ni(p),p.subtreeFlags&6&&(p.flags|=8192)):ni(p),b=p.updateQueue,b!==null&&ty(p,b.retryQueue),b=null,d!==null&&d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(b=d.memoizedState.cachePool.pool),S=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(S=p.memoizedState.cachePool.pool),S!==b&&(p.flags|=2048),d!==null&&V(yd),null;case 24:return b=null,d!==null&&(b=d.memoizedState.cache),p.memoizedState.cache!==b&&(p.flags|=2048),gl(ji),ni(p),null;case 25:return null;case 30:return null}throw Error(i(156,p.tag))}function ste(d,p){switch(GM(p),p.tag){case 1:return d=p.flags,d&65536?(p.flags=d&-65537|128,p):null;case 3:return gl(ji),he(),d=p.flags,(d&65536)!==0&&(d&128)===0?(p.flags=d&-65537|128,p):null;case 26:case 27:case 5:return Ue(p),null;case 31:if(p.memoizedState!==null){if(Ka(p),p.alternate===null)throw Error(i(340));gd()}return d=p.flags,d&65536?(p.flags=d&-65537|128,p):null;case 13:if(Ka(p),d=p.memoizedState,d!==null&&d.dehydrated!==null){if(p.alternate===null)throw Error(i(340));gd()}return d=p.flags,d&65536?(p.flags=d&-65537|128,p):null;case 19:return V(Ni),null;case 4:return he(),null;case 10:return gl(p.type),null;case 22:case 23:return Ka(p),sE(),d!==null&&V(yd),d=p.flags,d&65536?(p.flags=d&-65537|128,p):null;case 24:return gl(ji),null;case 25:return null;default:return null}}function gj(d,p){switch(GM(p),p.tag){case 3:gl(ji),he();break;case 26:case 27:case 5:Ue(p);break;case 4:he();break;case 31:p.memoizedState!==null&&Ka(p);break;case 13:Ka(p);break;case 19:V(Ni);break;case 10:gl(p.type);break;case 22:case 23:Ka(p),sE(),d!==null&&V(yd);break;case 24:gl(ji)}}function pg(d,p){try{var b=p.updateQueue,S=b!==null?b.lastEffect:null;if(S!==null){var R=S.next;b=R;do{if((b.tag&d)===d){S=void 0;var O=b.create,G=b.inst;S=O(),G.destroy=S}b=b.next}while(b!==R)}}catch(ae){Dn(p,p.return,ae)}}function Gc(d,p,b){try{var S=p.updateQueue,R=S!==null?S.lastEffect:null;if(R!==null){var O=R.next;S=O;do{if((S.tag&d)===d){var G=S.inst,ae=G.destroy;if(ae!==void 0){G.destroy=void 0,R=p;var _e=b,ze=ae;try{ze()}catch(et){Dn(R,_e,et)}}}S=S.next}while(S!==O)}}catch(et){Dn(p,p.return,et)}}function xj(d){var p=d.updateQueue;if(p!==null){var b=d.stateNode;try{oI(p,b)}catch(S){Dn(d,d.return,S)}}}function vj(d,p,b){b.props=Md(d.type,d.memoizedProps),b.state=d.memoizedState;try{b.componentWillUnmount()}catch(S){Dn(d,p,S)}}function mg(d,p){try{var b=d.ref;if(b!==null){switch(d.tag){case 26:case 27:case 5:var S=d.stateNode;break;case 30:S=d.stateNode;break;default:S=d.stateNode}typeof b=="function"?d.refCleanup=b(S):b.current=S}}catch(R){Dn(d,p,R)}}function ko(d,p){var b=d.ref,S=d.refCleanup;if(b!==null)if(typeof S=="function")try{S()}catch(R){Dn(d,p,R)}finally{d.refCleanup=null,d=d.alternate,d!=null&&(d.refCleanup=null)}else if(typeof b=="function")try{b(null)}catch(R){Dn(d,p,R)}else b.current=null}function yj(d){var p=d.type,b=d.memoizedProps,S=d.stateNode;try{e:switch(p){case"button":case"input":case"select":case"textarea":b.autoFocus&&S.focus();break e;case"img":b.src?S.src=b.src:b.srcSet&&(S.srcset=b.srcSet)}}catch(R){Dn(d,d.return,R)}}function UE(d,p,b){try{var S=d.stateNode;Cte(S,d.type,b,p),S[Ti]=p}catch(R){Dn(d,d.return,R)}}function bj(d){return d.tag===5||d.tag===3||d.tag===26||d.tag===27&&Qc(d.type)||d.tag===4}function FE(d){e:for(;;){for(;d.sibling===null;){if(d.return===null||bj(d.return))return null;d=d.return}for(d.sibling.return=d.return,d=d.sibling;d.tag!==5&&d.tag!==6&&d.tag!==18;){if(d.tag===27&&Qc(d.type)||d.flags&2||d.child===null||d.tag===4)continue e;d.child.return=d,d=d.child}if(!(d.flags&2))return d.stateNode}}function zE(d,p,b){var S=d.tag;if(S===5||S===6)d=d.stateNode,p?(b.nodeType===9?b.body:b.nodeName==="HTML"?b.ownerDocument.body:b).insertBefore(d,p):(p=b.nodeType===9?b.body:b.nodeName==="HTML"?b.ownerDocument.body:b,p.appendChild(d),b=b._reactRootContainer,b!=null||p.onclick!==null||(p.onclick=dl));else if(S!==4&&(S===27&&Qc(d.type)&&(b=d.stateNode,p=null),d=d.child,d!==null))for(zE(d,p,b),d=d.sibling;d!==null;)zE(d,p,b),d=d.sibling}function ny(d,p,b){var S=d.tag;if(S===5||S===6)d=d.stateNode,p?b.insertBefore(d,p):b.appendChild(d);else if(S!==4&&(S===27&&Qc(d.type)&&(b=d.stateNode),d=d.child,d!==null))for(ny(d,p,b),d=d.sibling;d!==null;)ny(d,p,b),d=d.sibling}function _j(d){var p=d.stateNode,b=d.memoizedProps;try{for(var S=d.type,R=p.attributes;R.length;)p.removeAttributeNode(R[0]);Ir(p,S,b),p[hi]=d,p[Ti]=b}catch(O){Dn(d,d.return,O)}}var _l=!1,zi=!1,BE=!1,Sj=typeof WeakSet=="function"?WeakSet:Set,yr=null;function ote(d,p){if(d=d.containerInfo,lA=wy,d=OL(d),OM(d)){if("selectionStart"in d)var b={start:d.selectionStart,end:d.selectionEnd};else e:{b=(b=d.ownerDocument)&&b.defaultView||window;var S=b.getSelection&&b.getSelection();if(S&&S.rangeCount!==0){b=S.anchorNode;var R=S.anchorOffset,O=S.focusNode;S=S.focusOffset;try{b.nodeType,O.nodeType}catch{b=null;break e}var G=0,ae=-1,_e=-1,ze=0,et=0,ot=d,Ve=null;t:for(;;){for(var Ze;ot!==b||R!==0&&ot.nodeType!==3||(ae=G+R),ot!==O||S!==0&&ot.nodeType!==3||(_e=G+S),ot.nodeType===3&&(G+=ot.nodeValue.length),(Ze=ot.firstChild)!==null;)Ve=ot,ot=Ze;for(;;){if(ot===d)break t;if(Ve===b&&++ze===R&&(ae=G),Ve===O&&++et===S&&(_e=G),(Ze=ot.nextSibling)!==null)break;ot=Ve,Ve=ot.parentNode}ot=Ze}b=ae===-1||_e===-1?null:{start:ae,end:_e}}else b=null}b=b||{start:0,end:0}}else b=null;for(cA={focusedElem:d,selectionRange:b},wy=!1,yr=p;yr!==null;)if(p=yr,d=p.child,(p.subtreeFlags&1028)!==0&&d!==null)d.return=p,yr=d;else for(;yr!==null;){switch(p=yr,O=p.alternate,d=p.flags,p.tag){case 0:if((d&4)!==0&&(d=p.updateQueue,d=d!==null?d.events:null,d!==null))for(b=0;b title"))),Ir(O,S,b),O[hi]=d,Ne(O),S=O;break e;case"link":var G=C4("link","href",R).get(S+(b.href||""));if(G){for(var ae=0;aeFn&&(G=Fn,Fn=Bt,Bt=G);var De=kL(ae,Bt),Ae=kL(ae,Fn);if(De&&Ae&&(Ze.rangeCount!==1||Ze.anchorNode!==De.node||Ze.anchorOffset!==De.offset||Ze.focusNode!==Ae.node||Ze.focusOffset!==Ae.offset)){var Fe=ot.createRange();Fe.setStart(De.node,De.offset),Ze.removeAllRanges(),Bt>Fn?(Ze.addRange(Fe),Ze.extend(Ae.node,Ae.offset)):(Fe.setEnd(Ae.node,Ae.offset),Ze.addRange(Fe))}}}}for(ot=[],Ze=ae;Ze=Ze.parentNode;)Ze.nodeType===1&&ot.push({element:Ze,left:Ze.scrollLeft,top:Ze.scrollTop});for(typeof ae.focus=="function"&&ae.focus(),ae=0;aeb?32:b,$.T=null,b=XE,XE=null;var O=Kc,G=Al;if(er=0,gh=Kc=null,Al=0,(Cn&6)!==0)throw Error(i(331));var ae=Cn;if(Cn|=4,Dj(O.current),Rj(O,O.current,G,b),Cn=ae,_g(0,!1),Pe&&typeof Pe.onPostCommitFiberRoot=="function")try{Pe.onPostCommitFiberRoot(Ie,O)}catch{}return!0}finally{K.p=R,$.T=S,Zj(d,p)}}function Jj(d,p,b){p=xs(b,p),p=TE(d.stateNode,p,2),d=Hc(d,p,2),d!==null&&(ln(d,2),Do(d))}function Dn(d,p,b){if(d.tag===3)Jj(d,d,b);else for(;p!==null;){if(p.tag===3){Jj(p,d,b);break}else if(p.tag===1){var S=p.stateNode;if(typeof p.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(Xc===null||!Xc.has(S))){d=xs(b,d),b=ej(2),S=Hc(p,b,2),S!==null&&(tj(b,S,p,d),ln(S,2),Do(S));break}}p=p.return}}function QE(d,p,b){var S=d.pingCache;if(S===null){S=d.pingCache=new ute;var R=new Set;S.set(p,R)}else R=S.get(p),R===void 0&&(R=new Set,S.set(p,R));R.has(b)||(VE=!0,R.add(b),d=mte.bind(null,d,p,b),p.then(d,d))}function mte(d,p,b){var S=d.pingCache;S!==null&&S.delete(p),d.pingedLanes|=d.suspendedLanes&b,d.warmLanes&=~b,Xn===d&&(gn&b)===b&&(_i===4||_i===3&&(gn&62914560)===gn&&300>L()-ay?(Cn&2)===0&&xh(d,0):GE|=b,mh===gn&&(mh=0)),Do(d)}function e4(d,p){p===0&&(p=bt()),d=pd(d,p),d!==null&&(ln(d,p),Do(d))}function gte(d){var p=d.memoizedState,b=0;p!==null&&(b=p.retryLane),e4(d,b)}function xte(d,p){var b=0;switch(d.tag){case 31:case 13:var S=d.stateNode,R=d.memoizedState;R!==null&&(b=R.retryLane);break;case 19:S=d.stateNode;break;case 22:S=d.stateNode._retryCache;break;default:throw Error(i(314))}S!==null&&S.delete(p),e4(d,b)}function vte(d,p){return Ce(d,p)}var fy=null,yh=null,JE=!1,hy=!1,eA=!1,Zc=0;function Do(d){d!==yh&&d.next===null&&(yh===null?fy=yh=d:yh=yh.next=d),hy=!0,JE||(JE=!0,bte())}function _g(d,p){if(!eA&&hy){eA=!0;do for(var b=!1,S=fy;S!==null;){if(d!==0){var R=S.pendingLanes;if(R===0)var O=0;else{var G=S.suspendedLanes,ae=S.pingedLanes;O=(1<<31-it(42|d)+1)-1,O&=R&~(G&~ae),O=O&201326741?O&201326741|1:O?O|2:0}O!==0&&(b=!0,r4(S,O))}else O=gn,O=ve(S,S===Xn?O:0,S.cancelPendingCommit!==null||S.timeoutHandle!==-1),(O&3)===0||Be(S,O)||(b=!0,r4(S,O));S=S.next}while(b);eA=!1}}function yte(){t4()}function t4(){hy=JE=!1;var d=0;Zc!==0&&Rte()&&(d=Zc);for(var p=L(),b=null,S=fy;S!==null;){var R=S.next,O=n4(S,p);O===0?(S.next=null,b===null?fy=R:b.next=R,R===null&&(yh=b)):(b=S,(d!==0||(O&3)!==0)&&(hy=!0)),S=R}er!==0&&er!==5||_g(d),Zc!==0&&(Zc=0)}function n4(d,p){for(var b=d.suspendedLanes,S=d.pingedLanes,R=d.expirationTimes,O=d.pendingLanes&-62914561;0ae)break;var et=_e.transferSize,ot=_e.initiatorType;et&&f4(ot)&&(_e=_e.responseEnd,G+=et*(_e"u"?null:document;function M4(d,p,b){var S=bh;if(S&&typeof p=="string"&&p){var R=Nn(p);R='link[rel="'+d+'"][href="'+R+'"]',typeof b=="string"&&(R+='[crossorigin="'+b+'"]'),w4.has(R)||(w4.add(R),d={rel:d,crossOrigin:b,href:p},S.querySelector(R)===null&&(p=S.createElement("link"),Ir(p,"link",d),Ne(p),S.head.appendChild(p)))}}function Fte(d){Tl.D(d),M4("dns-prefetch",d,null)}function zte(d,p){Tl.C(d,p),M4("preconnect",d,p)}function Bte(d,p,b){Tl.L(d,p,b);var S=bh;if(S&&d&&p){var R='link[rel="preload"][as="'+Nn(p)+'"]';p==="image"&&b&&b.imageSrcSet?(R+='[imagesrcset="'+Nn(b.imageSrcSet)+'"]',typeof b.imageSizes=="string"&&(R+='[imagesizes="'+Nn(b.imageSizes)+'"]')):R+='[href="'+Nn(d)+'"]';var O=R;switch(p){case"style":O=_h(d);break;case"script":O=Sh(d)}ws.has(O)||(d=f({rel:"preload",href:p==="image"&&b&&b.imageSrcSet?void 0:d,as:p},b),ws.set(O,d),S.querySelector(R)!==null||p==="style"&&S.querySelector(Eg(O))||p==="script"&&S.querySelector(Ag(O))||(p=S.createElement("link"),Ir(p,"link",d),Ne(p),S.head.appendChild(p)))}}function Hte(d,p){Tl.m(d,p);var b=bh;if(b&&d){var S=p&&typeof p.as=="string"?p.as:"script",R='link[rel="modulepreload"][as="'+Nn(S)+'"][href="'+Nn(d)+'"]',O=R;switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":O=Sh(d)}if(!ws.has(O)&&(d=f({rel:"modulepreload",href:d},p),ws.set(O,d),b.querySelector(R)===null)){switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(b.querySelector(Ag(O)))return}S=b.createElement("link"),Ir(S,"link",d),Ne(S),b.head.appendChild(S)}}}function $te(d,p,b){Tl.S(d,p,b);var S=bh;if(S&&d){var R=Re(S).hoistableStyles,O=_h(d);p=p||"default";var G=R.get(O);if(!G){var ae={loading:0,preload:null};if(G=S.querySelector(Eg(O)))ae.loading=5;else{d=f({rel:"stylesheet",href:d,"data-precedence":p},b),(b=ws.get(O))&&gA(d,b);var _e=G=S.createElement("link");Ne(_e),Ir(_e,"link",d),_e._p=new Promise(function(ze,et){_e.onload=ze,_e.onerror=et}),_e.addEventListener("load",function(){ae.loading|=1}),_e.addEventListener("error",function(){ae.loading|=2}),ae.loading|=4,vy(G,p,S)}G={type:"stylesheet",instance:G,count:1,state:ae},R.set(O,G)}}}function Vte(d,p){Tl.X(d,p);var b=bh;if(b&&d){var S=Re(b).hoistableScripts,R=Sh(d),O=S.get(R);O||(O=b.querySelector(Ag(R)),O||(d=f({src:d,async:!0},p),(p=ws.get(R))&&xA(d,p),O=b.createElement("script"),Ne(O),Ir(O,"link",d),b.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},S.set(R,O))}}function Gte(d,p){Tl.M(d,p);var b=bh;if(b&&d){var S=Re(b).hoistableScripts,R=Sh(d),O=S.get(R);O||(O=b.querySelector(Ag(R)),O||(d=f({src:d,async:!0,type:"module"},p),(p=ws.get(R))&&xA(d,p),O=b.createElement("script"),Ne(O),Ir(O,"link",d),b.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},S.set(R,O))}}function E4(d,p,b,S){var R=(R=ie.current)?xy(R):null;if(!R)throw Error(i(446));switch(d){case"meta":case"title":return null;case"style":return typeof b.precedence=="string"&&typeof b.href=="string"?(p=_h(b.href),b=Re(R).hoistableStyles,S=b.get(p),S||(S={type:"style",instance:null,count:0,state:null},b.set(p,S)),S):{type:"void",instance:null,count:0,state:null};case"link":if(b.rel==="stylesheet"&&typeof b.href=="string"&&typeof b.precedence=="string"){d=_h(b.href);var O=Re(R).hoistableStyles,G=O.get(d);if(G||(R=R.ownerDocument||R,G={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},O.set(d,G),(O=R.querySelector(Eg(d)))&&!O._p&&(G.instance=O,G.state.loading=5),ws.has(d)||(b={rel:"preload",as:"style",href:b.href,crossOrigin:b.crossOrigin,integrity:b.integrity,media:b.media,hrefLang:b.hrefLang,referrerPolicy:b.referrerPolicy},ws.set(d,b),O||Wte(R,d,b,G.state))),p&&S===null)throw Error(i(528,""));return G}if(p&&S!==null)throw Error(i(529,""));return null;case"script":return p=b.async,b=b.src,typeof b=="string"&&p&&typeof p!="function"&&typeof p!="symbol"?(p=Sh(b),b=Re(R).hoistableScripts,S=b.get(p),S||(S={type:"script",instance:null,count:0,state:null},b.set(p,S)),S):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,d))}}function _h(d){return'href="'+Nn(d)+'"'}function Eg(d){return'link[rel="stylesheet"]['+d+"]"}function A4(d){return f({},d,{"data-precedence":d.precedence,precedence:null})}function Wte(d,p,b,S){d.querySelector('link[rel="preload"][as="style"]['+p+"]")?S.loading=1:(p=d.createElement("link"),S.preload=p,p.addEventListener("load",function(){return S.loading|=1}),p.addEventListener("error",function(){return S.loading|=2}),Ir(p,"link",b),Ne(p),d.head.appendChild(p))}function Sh(d){return'[src="'+Nn(d)+'"]'}function Ag(d){return"script[async]"+d}function T4(d,p,b){if(p.count++,p.instance===null)switch(p.type){case"style":var S=d.querySelector('style[data-href~="'+Nn(b.href)+'"]');if(S)return p.instance=S,Ne(S),S;var R=f({},b,{"data-href":b.href,"data-precedence":b.precedence,href:null,precedence:null});return S=(d.ownerDocument||d).createElement("style"),Ne(S),Ir(S,"style",R),vy(S,b.precedence,d),p.instance=S;case"stylesheet":R=_h(b.href);var O=d.querySelector(Eg(R));if(O)return p.state.loading|=4,p.instance=O,Ne(O),O;S=A4(b),(R=ws.get(R))&&gA(S,R),O=(d.ownerDocument||d).createElement("link"),Ne(O);var G=O;return G._p=new Promise(function(ae,_e){G.onload=ae,G.onerror=_e}),Ir(O,"link",S),p.state.loading|=4,vy(O,b.precedence,d),p.instance=O;case"script":return O=Sh(b.src),(R=d.querySelector(Ag(O)))?(p.instance=R,Ne(R),R):(S=b,(R=ws.get(O))&&(S=f({},b),xA(S,R)),d=d.ownerDocument||d,R=d.createElement("script"),Ne(R),Ir(R,"link",S),d.head.appendChild(R),p.instance=R);case"void":return null;default:throw Error(i(443,p.type))}else p.type==="stylesheet"&&(p.state.loading&4)===0&&(S=p.instance,p.state.loading|=4,vy(S,b.precedence,d));return p.instance}function vy(d,p,b){for(var S=b.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),R=S.length?S[S.length-1]:null,O=R,G=0;G title"):null)}function qte(d,p,b){if(b===1||p.itemProp!=null)return!1;switch(d){case"meta":case"title":return!0;case"style":if(typeof p.precedence!="string"||typeof p.href!="string"||p.href==="")break;return!0;case"link":if(typeof p.rel!="string"||typeof p.href!="string"||p.href===""||p.onLoad||p.onError)break;switch(p.rel){case"stylesheet":return d=p.disabled,typeof p.precedence=="string"&&d==null;default:return!0}case"script":if(p.async&&typeof p.async!="function"&&typeof p.async!="symbol"&&!p.onLoad&&!p.onError&&p.src&&typeof p.src=="string")return!0}return!1}function R4(d){return!(d.type==="stylesheet"&&(d.state.loading&3)===0)}function Xte(d,p,b,S){if(b.type==="stylesheet"&&(typeof S.media!="string"||matchMedia(S.media).matches!==!1)&&(b.state.loading&4)===0){if(b.instance===null){var R=_h(S.href),O=p.querySelector(Eg(R));if(O){p=O._p,p!==null&&typeof p=="object"&&typeof p.then=="function"&&(d.count++,d=by.bind(d),p.then(d,d)),b.state.loading|=4,b.instance=O,Ne(O);return}O=p.ownerDocument||p,S=A4(S),(R=ws.get(R))&&gA(S,R),O=O.createElement("link"),Ne(O);var G=O;G._p=new Promise(function(ae,_e){G.onload=ae,G.onerror=_e}),Ir(O,"link",S),b.instance=O}d.stylesheets===null&&(d.stylesheets=new Map),d.stylesheets.set(b,p),(p=b.state.preload)&&(b.state.loading&3)===0&&(d.count++,b=by.bind(d),p.addEventListener("load",b),p.addEventListener("error",b))}}var vA=0;function Kte(d,p){return d.stylesheets&&d.count===0&&Sy(d,d.stylesheets),0vA?50:800)+p);return d.unsuspend=b,function(){d.unsuspend=null,clearTimeout(S),clearTimeout(R)}}:null}function by(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Sy(this,this.stylesheets);else if(this.unsuspend){var d=this.unsuspend;this.unsuspend=null,d()}}}var _y=null;function Sy(d,p){d.stylesheets=null,d.unsuspend!==null&&(d.count++,_y=new Map,p.forEach(Yte,d),_y=null,by.call(d))}function Yte(d,p){if(!(p.state.loading&4)){var b=_y.get(d);if(b)var S=b.get(null);else{b=new Map,_y.set(d,b);for(var R=d.querySelectorAll("link[data-precedence],style[data-precedence]"),O=0;O"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),TA.exports=hne(),TA.exports}var mne=pne();const Vt=t=>typeof t=="string",Dg=()=>{let t,e;const n=new Promise((i,r)=>{t=i,e=r});return n.resolve=t,n.reject=e,n},eU=t=>t==null?"":""+t,gne=(t,e,n)=>{t.forEach(i=>{e[i]&&(n[i]=e[i])})},xne=/###/g,tU=t=>t&&t.indexOf("###")>-1?t.replace(xne,"."):t,nU=t=>!t||Vt(t),xx=(t,e,n)=>{const i=Vt(e)?e.split("."):e;let r=0;for(;r{const{obj:i,k:r}=xx(t,e,Object);if(i!==void 0||e.length===1){i[r]=n;return}let a=e[e.length-1],s=e.slice(0,e.length-1),o=xx(t,s,Object);for(;o.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),o=xx(t,s,Object),o?.obj&&typeof o.obj[`${o.k}.${a}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${a}`]=n},vne=(t,e,n,i)=>{const{obj:r,k:a}=xx(t,e,Object);r[a]=r[a]||[],r[a].push(n)},I_=(t,e)=>{const{obj:n,k:i}=xx(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},yne=(t,e,n)=>{const i=I_(t,n);return i!==void 0?i:I_(e,n)},oG=(t,e,n)=>{for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in t?Vt(t[i])||t[i]instanceof String||Vt(e[i])||e[i]instanceof String?n&&(t[i]=e[i]):oG(t[i],e[i],n):t[i]=e[i]);return t},Mh=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var bne={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const _ne=t=>Vt(t)?t.replace(/[&<>"'\/]/g,e=>bne[e]):t;class Sne{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const wne=[" ",",","?","!",";"],Mne=new Sne(20),Ene=(t,e,n)=>{e=e||"",n=n||"";const i=wne.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;const r=Mne.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`);let a=!r.test(t);if(!a){const s=t.indexOf(n);s>0&&!r.test(t.substring(0,s))&&(a=!0)}return a},xN=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const i=e.split(n);let r=t;for(let a=0;a-1&&lt?.replace("_","-"),Ane={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class j_{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||Ane,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,i,r){return r&&!this.debug?null:(Vt(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new j_(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new j_(this.logger,e)}}var Vo=new j_;let GS=class{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([r,a])=>{for(let s=0;s{for(let s=0;s-1&&this.options.ns.splice(n,1)}getResource(e,n,i,r={}){const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,n],i&&(Array.isArray(i)?o.push(...i):Vt(i)&&a?o.push(...i.split(a)):o.push(i)));const l=I_(this.data,o);return!l&&!n&&!i&&e.indexOf(".")>-1&&(e=o[0],n=o[1],i=o.slice(2).join(".")),l||!s||!Vt(i)?l:xN(this.data?.[e]?.[n],i,a)}addResource(e,n,i,r,a={silent:!1}){const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let o=[e,n];i&&(o=o.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(o=e.split("."),r=n,n=o[1]),this.addNamespaces(n),iU(this.data,o,r),a.silent||this.emit("added",e,n,i,r)}addResources(e,n,i,r={silent:!1}){for(const a in i)(Vt(i[a])||Array.isArray(i[a]))&&this.addResource(e,n,a,i[a],{silent:!0});r.silent||this.emit("added",e,n,i)}addResourceBundle(e,n,i,r,a,s={silent:!1,skipCopy:!1}){let o=[e,n];e.indexOf(".")>-1&&(o=e.split("."),r=i,i=n,n=o[1]),this.addNamespaces(n);let l=I_(this.data,o)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?oG(l,i,a):l={...l,...i},iU(this.data,o,l),s.silent||this.emit("added",e,n,i)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var lG={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,r){return t.forEach(a=>{e=this.processors[a]?.process(e,n,i,r)??e}),e}};const cG=Symbol("i18next/PATH_KEY");function Tne(){const t=[],e=Object.create(null);let n;return e.get=(i,r)=>(n?.revoke?.(),r===cG?t:(t.push(r),n=Proxy.revocable(i,e),n.proxy)),Proxy.revocable(Object.create(null),e).proxy}function vN(t,e){const{[cG]:n}=t(Tne());return n.join(e?.keySeparator??".")}const aU={},PA=t=>!Vt(t)&&typeof t!="boolean"&&typeof t!="number";class U_ extends GS{constructor(e,n={}){super(),gne(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Vo.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const i={...n};if(e==null)return!1;const r=this.resolve(e,i);if(r?.res===void 0)return!1;const a=PA(r.res);return!(i.returnObjects===!1&&a)}extractFromKey(e,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const s=i&&e.indexOf(i)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Ene(e,i,r);if(s&&!o){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:Vt(a)?[a]:a};const c=e.split(i);(i!==r||i===r&&this.options.ns.indexOf(c[0])>-1)&&(a=c.shift()),e=c.join(r)}return{key:e,namespaces:Vt(a)?[a]:a}}translate(e,n,i){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),e==null)return"";typeof e=="function"&&(e=vN(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],r),c=l[l.length-1];let u=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const f=r.lng||this.language,m=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode")return m?a?{res:`${c}${u}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${u}${o}`:a?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:o;const g=this.resolve(e,r);let y=g?.res;const _=g?.usedKey||o,v=g?.exactUsedKey||o,x=["[object Number]","[object Function]","[object RegExp]"],M=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,C=r.count!==void 0&&!Vt(r.count),T=U_.hasDefaultValue(r),P=C?this.pluralResolver.getSuffix(f,r.count,r):"",A=r.ordinal&&C?this.pluralResolver.getSuffix(f,r.count,{ordinal:!1}):"",j=C&&!r.ordinal&&r.count===0,N=j&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${P}`]||r[`defaultValue${A}`]||r.defaultValue;let k=y;w&&!y&&T&&(k=N);const F=PA(k),I=Object.prototype.toString.apply(k);if(w&&k&&F&&x.indexOf(I)<0&&!(Vt(M)&&Array.isArray(k))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const W=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,k,{...r,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return a?(g.res=W,g.usedParams=this.getUsedParamsDetails(r),g):W}if(s){const W=Array.isArray(k),D=W?[]:{},B=W?v:_;for(const $ in k)if(Object.prototype.hasOwnProperty.call(k,$)){const K=`${B}${s}${$}`;T&&!y?D[$]=this.translate(K,{...r,defaultValue:PA(N)?N[$]:void 0,joinArrays:!1,ns:l}):D[$]=this.translate(K,{...r,joinArrays:!1,ns:l}),D[$]===K&&(D[$]=k[$])}y=D}}else if(w&&Vt(M)&&Array.isArray(y))y=y.join(M),y&&(y=this.extendTranslation(y,e,r,i));else{let W=!1,D=!1;!this.isValidLookup(y)&&T&&(W=!0,y=N),this.isValidLookup(y)||(D=!0,y=o);const $=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&D?void 0:y,K=T&&N!==y&&this.options.updateMissing;if(D||W||K){if(this.logger.log(K?"updateKey":"missingKey",f,c,o,K?N:y),s){const z=this.resolve(o,{...r,keySeparator:!1});z&&z.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 X=[];const Y=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Y&&Y[0])for(let z=0;z{const le=T&&re!==y?re:$;this.options.missingKeyHandler?this.options.missingKeyHandler(z,c,V,le,K,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(z,c,V,le,K,r),this.emit("missingKey",z,c,V,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?X.forEach(z=>{const V=this.pluralResolver.getSuffixes(z,r);j&&r[`defaultValue${this.options.pluralSeparator}zero`]&&V.indexOf(`${this.options.pluralSeparator}zero`)<0&&V.push(`${this.options.pluralSeparator}zero`),V.forEach(re=>{ee([z],o+re,r[`defaultValue${re}`]||N)})}):ee(X,o,N))}y=this.extendTranslation(y,e,r,g,i),D&&y===o&&this.options.appendNamespaceToMissingKey&&(y=`${c}${u}${o}`),(D||W)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${u}${o}`:o,W?y:void 0,r))}return a?(g.res=y,g.usedParams=this.getUsedParamsDetails(r),g):y}extendTranslation(e,n,i,r,a){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const l=Vt(e)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(l){const f=e.match(this.interpolator.nestingRegexp);c=f&&f.length}let u=i.replace&&!Vt(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,i.lng||this.language||r.usedLng,i),l){const f=e.match(this.interpolator.nestingRegexp),m=f&&f.length;ca?.[0]===f[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):this.translate(...f,n),i)),i.interpolation&&this.interpolator.reset()}const s=i.postProcess||this.options.postProcess,o=Vt(s)?[s]:s;return e!=null&&o?.length&&i.applyPostProcessor!==!1&&(e=lG.handle(o,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e,n={}){let i,r,a,s,o;return Vt(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(i))return;const c=this.extractFromKey(l,n),u=c.key;r=u;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const m=n.count!==void 0&&!Vt(n.count),g=m&&!n.ordinal&&n.count===0,y=n.context!==void 0&&(Vt(n.context)||typeof n.context=="number")&&n.context!=="",_=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(v=>{this.isValidLookup(i)||(o=v,!aU[`${_[0]}-${v}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(aU[`${_[0]}-${v}`]=!0,this.logger.warn(`key "${r}" for languages "${_.join(", ")}" won't get resolved as namespace "${o}" 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!!!")),_.forEach(x=>{if(this.isValidLookup(i))return;s=x;const M=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(M,u,x,v,n);else{let C;m&&(C=this.pluralResolver.getSuffix(x,n.count,n));const T=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(n.ordinal&&C.indexOf(P)===0&&M.push(u+C.replace(P,this.options.pluralSeparator)),M.push(u+C),g&&M.push(u+T)),y){const A=`${u}${this.options.contextSeparator||"_"}${n.context}`;M.push(A),m&&(n.ordinal&&C.indexOf(P)===0&&M.push(A+C.replace(P,this.options.pluralSeparator)),M.push(A+C),g&&M.push(A+T))}}let w;for(;w=M.pop();)this.isValidLookup(i)||(a=w,i=this.getResource(x,v,w,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,i,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,i,r):this.resourceStore.getResource(e,n,i,r)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&!Vt(e.replace);let r=i?e.replace:e;if(i&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(const a of n)delete r[a]}return r}static hasDefaultValue(e){const n="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n===i.substring(0,n.length)&&e[i]!==void 0)return!0;return!1}}class sU{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vo.create("languageUtils")}getScriptPartFromCode(e){if(e=Bx(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Bx(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Vt(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(i=>{if(n)return;const r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&e.forEach(i=>{if(n)return;const r=this.getScriptPartFromCode(i);if(this.isSupportedCode(r))return n=r;const a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),Vt(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let i=e[n];return i||(i=e[this.getScriptPartFromCode(n)]),i||(i=e[this.formatLanguageCode(n)]),i||(i=e[this.getLanguagePartFromCode(n)]),i||(i=e.default),i||[]}toResolveHierarchy(e,n){const i=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),r=[],a=s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return Vt(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):Vt(e)&&a(this.formatLanguageCode(e)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}}const oU={zero:0,one:1,two:2,few:3,many:4,other:5},lU={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Cne{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=Vo.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const i=Bx(e==="dev"?"en":e),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),lU;if(!e.match(/-|_/))return lU;const l=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(l,n)}return this.pluralRulesCache[a]=s,s}needsPlural(e,n={}){let i=this.getRule(e,n);return i||(i=this.getRule("dev",n)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,i={}){return this.getSuffixes(e,i).map(r=>`${n}${r}`)}getSuffixes(e,n={}){let i=this.getRule(e,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((r,a)=>oU[r]-oU[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(e,n,i={}){const r=this.getRule(e,i);return r?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,i))}}const cU=(t,e,n,i=".",r=!0)=>{let a=yne(t,e,n);return!a&&r&&Vt(n)&&(a=xN(t,n,i),a===void 0&&(a=xN(e,n,i))),a},kA=t=>t.replace(/\$/g,"$$$$");class Nne{constructor(e={}){this.logger=Vo.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:o,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:f,nestingPrefix:m,nestingPrefixEscaped:g,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:v,maxReplaces:x,alwaysFormat:M}=e.interpolation;this.escape=n!==void 0?n:_ne,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?Mh(a):s||"{{",this.suffix=o?Mh(o):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=m?Mh(m):g||Mh("$t("),this.nestingSuffix=y?Mh(y):_||Mh(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=x||1e3,this.alwaysFormat=M!==void 0?M:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,i)=>n?.source===i?(n.lastIndex=0,n):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,i,r){let a,s,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=g=>{if(g.indexOf(this.formatSeparator)<0){const x=cU(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,i,{...r,...n,interpolationkey:g}):x}const y=g.split(this.formatSeparator),_=y.shift().trim(),v=y.join(this.formatSeparator).trim();return this.format(cU(n,l,_,this.options.keySeparator,this.options.ignoreJSONStructure),v,i,{...r,...n,interpolationkey:_})};this.resetRegExp();const u=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>kA(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?kA(this.escape(g)):kA(g)}].forEach(g=>{for(o=0;a=g.regex.exec(e);){const y=a[1].trim();if(s=c(y),s===void 0)if(typeof u=="function"){const v=u(e,a,r);s=Vt(v)?v:""}else if(r&&Object.prototype.hasOwnProperty.call(r,y))s="";else if(f){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`),s="";else!Vt(s)&&!this.useRawValueToEscape&&(s=eU(s));const _=g.safeValue(s);if(e=e.replace(a[0],_),f?(g.regex.lastIndex+=s.length,g.regex.lastIndex-=a[0].length):g.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,n,i={}){let r,a,s;const o=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const f=l.split(new RegExp(`${u}[ ]*{`));let m=`{${f[1]}`;l=f[0],m=this.interpolate(m,s);const g=m.match(/'/g),y=m.match(/"/g);((g?.length??0)%2===0&&!y||y.length%2!==0)&&(m=m.replace(/'/g,'"'));try{s=JSON.parse(m),c&&(s={...c,...s})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,_),`${l}${u}${m}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;r=this.nestingRegexp.exec(e);){let l=[];s={...i},s=s.replace&&!Vt(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const c=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(l=r[1].slice(c).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),a=n(o.call(this,r[1].trim(),s),s),a&&r[0]===e&&!Vt(a))return a;Vt(a)||(a=eU(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),a=""),l.length&&(a=l.reduce((u,f)=>this.format(u,f,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),e=e.replace(r[0],a),this.regexp.lastIndex=0}return e}}const Rne=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){const[o,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=o.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:e,formatOptions:n}},uU=t=>{const e={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});const s=i+JSON.stringify(a);let o=e[s];return o||(o=t(Bx(i),r),e[s]=o),o(n)}},Pne=t=>(e,n,i)=>t(Bx(n),i)(e);class kne{constructor(e={}){this.logger=Vo.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const i=n.cacheInBuiltFormats?uU:Pne;this.formats={number:i((r,a)=>{const s=new Intl.NumberFormat(r,{...a});return o=>s.format(o)}),currency:i((r,a)=>{const s=new Intl.NumberFormat(r,{...a,style:"currency"});return o=>s.format(o)}),datetime:i((r,a)=>{const s=new Intl.DateTimeFormat(r,{...a});return o=>s.format(o)}),relativetime:i((r,a)=>{const s=new Intl.RelativeTimeFormat(r,{...a});return o=>s.format(o,a.range||"day")}),list:i((r,a)=>{const s=new Intl.ListFormat(r,{...a});return o=>s.format(o)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=uU(n)}format(e,n,i,r={}){const a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(o=>o.indexOf(")")>-1)){const o=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,o)].join(this.formatSeparator)}return a.reduce((o,l)=>{const{formatName:c,formatOptions:u}=Rne(l);if(this.formats[c]){let f=o;try{const m=r?.formatParams?.[r.interpolationkey]||{},g=m.locale||m.lng||r.locale||r.lng||i;f=this.formats[c](o,g,{...u,...r,...m})}catch(m){this.logger.warn(m)}return f}else this.logger.warn(`there was no format function for ${c}`);return o},e)}}const Dne=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class One extends GS{constructor(e,n,i,r={}){super(),this.backend=e,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Vo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,r.backend,r)}queueLoad(e,n,i,r){const a={},s={},o={},l={};return e.forEach(c=>{let u=!0;n.forEach(f=>{const m=`${c}|${f}`;!i.reload&&this.store.hasResourceBundle(c,f)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?s[m]===void 0&&(s[m]=!0):(this.state[m]=1,u=!1,s[m]===void 0&&(s[m]=!0),a[m]===void 0&&(a[m]=!0),l[f]===void 0&&(l[f]=!0)))}),u||(o[c]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,n,i){const r=e.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&i&&(this.state[e]=0);const o={};this.queue.forEach(l=>{vne(l.loaded,[a],s),Dne(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{o[c]||(o[c]={});const u=l.loaded[c];u.length&&u.forEach(f=>{o[c][f]===void 0&&(o[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(e,n,i,r=0,a=this.retryTimeout,s){if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;const o=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&u&&r{this.read.call(this,e,n,i,r+1,a*2,s)},a);return}s(c,u)},l=this.backend[i].bind(this.backend);if(l.length===2){try{const c=l(e,n);c&&typeof c.then=="function"?c.then(u=>o(null,u)).catch(o):o(null,c)}catch(c){o(c)}return}return l(e,n,o)}prepareLoading(e,n,i={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Vt(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Vt(n)&&(n=[n]);const a=this.queueLoad(e,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(e,n,i){this.prepareLoading(e,n,{},i)}reload(e,n,i){this.prepareLoading(e,n,{reload:!0},i)}loadOne(e,n=""){const i=e.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,o)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&o&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,o),this.loaded(e,s,o)})}saveMissing(e,n,i,r,a,s={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" 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(!(i==null||i==="")){if(this.backend?.create){const l={...s,isUpdate:a},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(e,n,i,r,l):u=c(e,n,i,r),u&&typeof u.then=="function"?u.then(f=>o(null,f)).catch(o):o(null,u)}catch(u){o(u)}else c(e,n,i,r,o,l)}!e||!e[0]||this.store.addResource(e[0],n,i,r)}}}const dU=()=>({debug:!1,initAsync:!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:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Vt(t[1])&&(e.defaultValue=t[1]),Vt(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(i=>{e[i]=n[i]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),fU=t=>(Vt(t.ns)&&(t.ns=[t.ns]),Vt(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Vt(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),Py=()=>{},Lne=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class vx extends GS{constructor(e={},n){if(super(),this.options=fU(e),this.services={},this.logger=Vo,this.modules={external:[]},Lne(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(Vt(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=dU();this.options={...i,...this.options,...fU(e)},this.options.interpolation={...i.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);const r=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Vo.init(r(this.modules.logger),this.options):Vo.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=kne;const u=new sU(this.options);this.store=new rU(this.options.resources,this.options);const f=this.services;f.logger=Vo,f.resourceStore=this.store,f.languageUtils=u,f.pluralResolver=new Cne(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(f.formatter=r(c),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Nne(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new One(r(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(g,...y)=>{this.emit(g,...y)}),this.modules.languageDetector&&(f.languageDetector=r(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=r(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new U_(this.services,this.options),this.translator.on("*",(g,...y)=>{this.emit(g,...y)}),this.modules.external.forEach(g=>{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Py),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=(...u)=>this.store[c](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...u)=>(this.store[c](...u),this)});const o=Dg(),l=()=>{const c=(u,f)=>{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),o.resolve(f),n(u,f)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),o}loadResources(e,n=Py){let i=n;const r=Vt(e)?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const a=[],s=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(c=>{c!=="cimode"&&a.indexOf(c)<0&&a.push(c)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload?.forEach?.(o=>s(o)),this.services.backendConnector.load(a,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(o)})}else i(null)}reloadResources(e,n,i){const r=Dg();return typeof e=="function"&&(i=e,e=void 0),typeof n=="function"&&(i=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),i||(i=Py),this.services.backendConnector.reload(e,n,a=>{r.resolve(),i(a)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&lG.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const i=Dg();this.emit("languageChanging",e);const r=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},a=(o,l)=>{l?this.isLanguageChangingTo===e&&(r(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,i.resolve((...c)=>this.t(...c)),n&&n(o,(...c)=>this.t(...c))},s=o=>{!e&&!o&&this.services.languageDetector&&(o=[]);const l=Vt(o)?o:o&&o[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(Vt(o)?[o]:o);c&&(this.language||r(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,u=>{a(u,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e),i}getFixedT(e,n,i){const r=(a,s,...o)=>{let l;typeof s!="object"?l=this.options.overloadTranslationOptionHandler([a,s].concat(o)):l={...s},l.lng=l.lng||r.lng,l.lngs=l.lngs||r.lngs,l.ns=l.ns||r.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||i||r.keyPrefix);const c=this.options.keySeparator||".";let u;return l.keyPrefix&&Array.isArray(a)?u=a.map(f=>(typeof f=="function"&&(f=vN(f,{...this.options,...s})),`${l.keyPrefix}${c}${f}`)):(typeof a=="function"&&(a=vN(a,{...this.options,...s})),u=l.keyPrefix?`${l.keyPrefix}${c}${a}`:a),this.t(u,l)};return Vt(e)?r.lng=e:r.lngs=e,r.ns=n,r.keyPrefix=i,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){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 i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const s=(o,l)=>{const c=this.services.backendConnector.state[`${o}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const o=n.precheck(this,s);if(o!==void 0)return o}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,e)&&(!r||s(a,e)))}loadNamespaces(e,n){const i=Dg();return this.options.ns?(Vt(e)&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(e,n){const i=Dg();Vt(e)&&(e=[e]);const r=this.options.preload||[],a=e.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const r=new Intl.Locale(e);if(r&&r.getTextInfo){const a=r.getTextInfo();if(a&&a.direction)return a.direction}}catch{}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"],i=this.services?.languageUtils||new sU(dU());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const i=new vx(e,n);return i.createInstance=vx.createInstance,i}cloneInstance(e={},n=Py){const i=e.forkResourceStore;i&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},a=new vx(r);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(o=>{a[o]=this[o]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i){const o=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((u,f)=>(u[f]={...l[c][f]},u),l[c]),l),{});a.store=new rU(o,r),a.services.resourceStore=a.store}return a.translator=new U_(a.services,r),a.translator.on("*",(o,...l)=>{a.emit(o,...l)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Sa=vx.createInstance();Sa.createInstance;Sa.dir;Sa.init;Sa.loadResources;Sa.reloadResources;Sa.use;Sa.changeLanguage;Sa.getFixedT;Sa.t;Sa.exists;Sa.setDefaultNamespace;Sa.hasLoadedNamespace;Sa.loadNamespaces;Sa.loadLanguages;const Ine=(t,e,n,i)=>{const r=[n,{code:e,...i||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(r,"warn","react-i18next::",!0);vf(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...r):console?.warn&&console.warn(...r)},hU={},uG=(t,e,n,i)=>{vf(n)&&hU[n]||(vf(n)&&(hU[n]=new Date),Ine(t,e,n,i))},dG=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},yN=(t,e,n)=>{t.loadNamespaces(e,dG(t,n))},pU=(t,e,n,i)=>{if(vf(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return yN(t,n,i);n.forEach(r=>{t.options.ns.indexOf(r)<0&&t.options.ns.push(r)}),t.loadLanguages(e,dG(t,i))},jne=(t,e,n={})=>!e.languages||!e.languages.length?(uG(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(i,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!r(i.isLanguageChangingTo,t))return!1}}),vf=t=>typeof t=="string",Une=t=>typeof t=="object"&&t!==null,Fne=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,zne={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Bne=t=>zne[t],Hne=t=>t.replace(Fne,Bne);let bN={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Hne};const $ne=(t={})=>{bN={...bN,...t}},Vne=()=>bN;let fG;const Gne=t=>{fG=t},Wne=()=>fG,qne={type:"3rdParty",init(t){$ne(t.options.react),Gne(t)}},Xne=E.createContext();class Kne{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var DA={exports:{}},OA={};var mU;function Yne(){if(mU)return OA;mU=1;var t=xm();function e(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:e,i=t.useState,r=t.useEffect,a=t.useLayoutEffect,s=t.useDebugValue;function o(f,m){var g=m(),y=i({inst:{value:g,getSnapshot:m}}),_=y[0].inst,v=y[1];return a(function(){_.value=g,_.getSnapshot=m,l(_)&&v({inst:_})},[f,g,m]),r(function(){return l(_)&&v({inst:_}),f(function(){l(_)&&v({inst:_})})},[f]),s(g),g}function l(f){var m=f.getSnapshot;f=f.value;try{var g=m();return!n(f,g)}catch{return!0}}function c(f,m){return m()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:o;return OA.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,OA}var gU;function hG(){return gU||(gU=1,DA.exports=Yne()),DA.exports}var MP=hG();const Zne=(t,e)=>vf(e)?e:Une(e)&&vf(e.defaultValue)?e.defaultValue:Array.isArray(t)?t[t.length-1]:t,Qne={t:Zne,ready:!1},Jne=()=>()=>{},EP=(t,e={})=>{const{i18n:n}=e,{i18n:i,defaultNS:r}=E.useContext(Xne)||{},a=n||i||Wne();a&&!a.reportNamespaces&&(a.reportNamespaces=new Kne),a||uG(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const s=E.useMemo(()=>({...Vne(),...a?.options?.react,...e}),[a,e]),{useSuspense:o,keyPrefix:l}=s,c=r||a?.options?.defaultNS,u=vf(c)?[c]:c||["translation"],f=E.useMemo(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(f);const m=E.useRef(0),g=E.useCallback(N=>{if(!a)return Jne;const{bindI18n:k,bindI18nStore:F}=s,I=()=>{m.current+=1,N()};return k&&a.on(k,I),F&&a.store.on(F,I),()=>{k&&k.split(" ").forEach(W=>a.off(W,I)),F&&F.split(" ").forEach(W=>a.store.off(W,I))}},[a,s]),y=E.useRef(),_=E.useCallback(()=>{if(!a)return Qne;const N=!!(a.isInitialized||a.initializedStoreOnce)&&f.every(B=>jne(B,a,s)),k=e.lng||a.language,F=m.current,I=y.current;if(I&&I.ready===N&&I.lng===k&&I.keyPrefix===l&&I.revision===F)return I;const D={t:a.getFixedT(k,s.nsMode==="fallback"?f:f[0],l),ready:N,lng:k,keyPrefix:l,revision:F};return y.current=D,D},[a,f,l,s,e.lng]),[v,x]=E.useState(0),{t:M,ready:w}=MP.useSyncExternalStore(g,_,_);E.useEffect(()=>{if(a&&!w&&!o){const N=()=>x(k=>k+1);e.lng?pU(a,e.lng,f,N):yN(a,f,N)}},[a,e.lng,f,w,o,v]);const C=a||{},T=E.useRef(null),P=E.useRef(),A=N=>{const k=Object.getOwnPropertyDescriptors(N);k.__original&&delete k.__original;const F=Object.create(Object.getPrototypeOf(N),k);if(!Object.prototype.hasOwnProperty.call(F,"__original"))try{Object.defineProperty(F,"__original",{value:N,writable:!1,enumerable:!1,configurable:!1})}catch{}return F},j=E.useMemo(()=>{const N=C,k=N?.language;let F=N;N&&(T.current&&T.current.__original===N?P.current!==k?(F=A(N),T.current=F,P.current=k):F=T.current:(F=A(N),T.current=F,P.current=k));const I=[M,F,w];return I.t=M,I.i18n=F,I.ready=w,I},[M,C,w,C.resolvedLanguage,C.language,C.languages]);if(a&&o&&!w)throw new Promise(N=>{const k=()=>N();e.lng?pU(a,e.lng,f,k):yN(a,f,k)});return j},{slice:eie,forEach:tie}=[];function nie(t){return tie.call(eie.call(arguments,1),e=>{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}function iie(t){return typeof t!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(t))}const xU=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,rie=function(t,e){const i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},r=encodeURIComponent(e);let a=`${t}=${r}`;if(i.maxAge>0){const s=i.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(s)}`}if(i.domain){if(!xU.test(i.domain))throw new TypeError("option domain is invalid");a+=`; Domain=${i.domain}`}if(i.path){if(!xU.test(i.path))throw new TypeError("option path is invalid");a+=`; Path=${i.path}`}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i.partitioned&&(a+="; Partitioned"),a},vU={create(t,e,n,i){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+n*60*1e3)),i&&(r.domain=i),document.cookie=rie(t,e,r)},read(t){const e=`${t}=`,n=document.cookie.split(";");for(let i=0;i-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const a=i.substring(1).split("&");for(let s=0;s0&&a[s].substring(0,o)===e&&(n=a[s].substring(o+1))}}return n}},oie={name:"hash",lookup(t){let{lookupHash:e,lookupFromHashIndex:n}=t,i;if(typeof window<"u"){const{hash:r}=window.location;if(r&&r.length>2){const a=r.substring(1);if(e){const s=a.split("&");for(let o=0;o0&&s[o].substring(0,l)===e&&(i=s[o].substring(l+1))}}if(i)return i;if(!i&&n>-1){const s=r.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return i}};let Eh=null;const yU=()=>{if(Eh!==null)return Eh;try{if(Eh=typeof window<"u"&&window.localStorage!==null,!Eh)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Eh=!1}return Eh};var lie={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&yU())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&yU()&&window.localStorage.setItem(n,t)}};let Ah=null;const bU=()=>{if(Ah!==null)return Ah;try{if(Ah=typeof window<"u"&&window.sessionStorage!==null,!Ah)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Ah=!1}return Ah};var cie={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&bU())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&bU()&&window.sessionStorage.setItem(n,t)}},uie={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:i,language:r}=navigator;if(n)for(let a=0;a0?e:void 0}},die={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const i=e||(typeof document<"u"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(n=i.getAttribute("lang")),n}},fie={name:"path",lookup(t){let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof e=="number"?e:0]?.replace("/",""):void 0}},hie={name:"subdomain",lookup(t){let{lookupFromSubdomainIndex:e}=t;const n=typeof e=="number"?e+1:1,i=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[n]}};let pG=!1;try{document.cookie,pG=!0}catch{}const mG=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];pG||mG.splice(1,1);const pie=()=>({order:mG,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t});class gG{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=nie(n,this.options||{},pie()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=r=>r.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(aie),this.addDetector(sie),this.addDetector(lie),this.addDetector(cie),this.addDetector(uie),this.addDetector(die),this.addDetector(fie),this.addDetector(hie),this.addDetector(oie)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return e.forEach(i=>{if(this.detectors[i]){let r=this.detectors[i].lookup(this.options);r&&typeof r=="string"&&(r=[r]),r&&(n=n.concat(r))}}),n=n.filter(i=>i!=null&&!iie(i)).map(i=>this.options.convertDetectedLanguage(i)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(i=>{this.detectors[i]&&this.detectors[i].cacheUserLanguage(e,this.options)}))}}gG.type="languageDetector";const mie={nav:{printers:"Printers",archives:"Archives",queue:"Queue",stats:"Statistics",profiles:"Profiles",maintenance:"Maintenance",settings:"Settings",collapseSidebar:"Collapse sidebar",expandSidebar:"Expand sidebar",update:"Update",updateAvailable:"Update available: v{{version}}",viewOnGithub:"View on GitHub",keyboardShortcuts:"Keyboard shortcuts (?)",switchToLight:"Switch to light mode",switchToDark:"Switch to dark mode"},common:{save:"Save",cancel:"Cancel",delete:"Delete",edit:"Edit",add:"Add",close:"Close",confirm:"Confirm",loading:"Loading...",error:"Error",success:"Success",warning:"Warning",enabled:"Enabled",disabled:"Disabled",yes:"Yes",no:"No",on:"On",off:"Off",all:"All",none:"None",search:"Search",filter:"Filter",sort:"Sort",refresh:"Refresh",download:"Download",upload:"Upload",actions:"Actions",status:"Status",name:"Name",description:"Description",date:"Date",time:"Time",hours:"hours",minutes:"minutes",seconds:"seconds",noPrinters:"No printers configured",noData:"No data available",required:"Required",optional:"Optional"},printers:{title:"Printers",addPrinter:"Add Printer",editPrinter:"Edit Printer",deletePrinter:"Delete Printer",printerName:"Printer Name",serialNumber:"Serial Number",ipAddress:"IP Address",accessCode:"Access Code",model:"Model",nozzleCount:"Nozzle Count",autoArchive:"Auto Archive",status:{idle:"Idle",printing:"Printing",paused:"Paused",offline:"Offline",error:"Error",finished:"Finished",unknown:"Unknown"},temperatures:{nozzle:"Nozzle",bed:"Bed",chamber:"Chamber"},progress:"{{percent}}% complete",timeRemaining:"{{time}} remaining",deleteConfirm:'Are you sure you want to delete "{{name}}"?',maintenanceOk:"Maintenance OK",maintenanceWarning:"{{count}} warning",maintenanceWarning_plural:"{{count}} warnings",maintenanceDue:"{{count}} due",maintenanceDue_plural:"{{count}} due"},archives:{title:"Print Archives",searchPlaceholder:"Search archives...",filterByPrinter:"Filter by printer",filterByStatus:"Filter by status",sortBy:"Sort by",sortNewest:"Newest first",sortOldest:"Oldest first",sortName:"Name",sortDuration:"Duration",noArchives:"No archives found",printTime:"Print Time",filamentUsed:"Filament Used",cost:"Cost",reprint:"Reprint",preview:"Preview",deleteArchive:"Delete Archive",deleteConfirm:"Are you sure you want to delete this archive?",favorite:"Favorite",unfavorite:"Remove from favorites",viewDetails:"View Details",status:{completed:"Completed",failed:"Failed",stopped:"Stopped"}},queue:{title:"Print Queue",addToQueue:"Add to Queue",clearQueue:"Clear Queue",emptyQueue:"Queue is empty",position:"Position",scheduledTime:"Scheduled Time",moveUp:"Move Up",moveDown:"Move Down",remove:"Remove",startNow:"Start Now",status:{pending:"Pending",printing:"Printing",completed:"Completed",failed:"Failed",cancelled:"Cancelled"}},stats:{title:"Statistics",overview:"Overview",totalPrints:"Total Prints",successRate:"Success Rate",totalPrintTime:"Total Print Time",totalFilament:"Total Filament Used",totalCost:"Total Cost",averagePrintTime:"Average Print Time",printsPerDay:"Prints per Day",byPrinter:"By Printer",byMaterial:"By Material",byMonth:"By Month",last7Days:"Last 7 Days",last30Days:"Last 30 Days",last90Days:"Last 90 Days",allTime:"All Time"},profiles:{title:"Filament Profiles",addProfile:"Add Profile",editProfile:"Edit Profile",deleteProfile:"Delete Profile",material:"Material",brand:"Brand",color:"Color",diameter:"Diameter",density:"Density",costPerKg:"Cost per kg",spoolWeight:"Spool Weight",noProfiles:"No profiles configured",deleteConfirm:"Are you sure you want to delete this profile?"},maintenance:{title:"Maintenance",overview:"Overview",allOk:"All maintenance up to date",dueCount:"{{count}} item due",dueCount_plural:"{{count}} items due",warningCount:"{{count}} warning",warningCount_plural:"{{count}} warnings",totalPrintTime:"Total Print Time",nextMaintenance:"Next Maintenance",nothingDue:"Nothing due",tasks:"Tasks",lastPerformed:"Last performed",interval:"Interval",hoursRemaining:"{{hours}}h remaining",hoursOverdue:"{{hours}}h overdue",markDone:"Mark as Done",performMaintenance:"Perform Maintenance",history:"History",noHistory:"No maintenance history",editPrintHours:"Edit Print Hours",currentHours:"Current Hours",types:{lubricateRails:"Lubricate Linear Rails",cleanNozzle:"Clean Nozzle/Hotend",checkBelts:"Check Belt Tension",cleanBuildPlate:"Clean Build Plate",checkExtruder:"Check Extruder Gears",checkCooling:"Check Cooling Fans",generalInspection:"General Inspection"}},settings:{title:"Settings",general:"General",appearance:"Appearance",notifications:"Notifications",smartPlugs:"Smart Plugs",spoolman:"Spoolman",updates:"Updates",language:"Language",languageDescription:"Select your preferred language",theme:"Theme",themeLight:"Light",themeDark:"Dark",themeSystem:"System",defaultView:"Default View",defaultViewDescription:"Page to show when opening the app",checkForUpdates:"Check for Updates",autoUpdate:"Auto Update",currentVersion:"Current Version",latestVersion:"Latest Version",upToDate:"You are up to date",updateAvailable:"Update available",notificationLanguage:"Notification Language",notificationLanguageDescription:"Language for push notifications",notificationProviders:"Notification Providers",addProvider:"Add Provider",editProvider:"Edit Provider",providerType:"Provider Type",testNotification:"Test Notification",testSuccess:"Test notification sent successfully",testFailed:"Failed to send test notification",quietHours:"Quiet Hours",quietHoursDescription:"Do not disturb during these hours",quietHoursStart:"Start",quietHoursEnd:"End",events:{title:"Notification Events",printStart:"Print Started",printComplete:"Print Completed",printFailed:"Print Failed",printStopped:"Print Stopped",printProgress:"Progress Milestones",printProgressDescription:"Notify at 25%, 50%, 75%",printerOffline:"Printer Offline",printerError:"Printer Error",filamentLow:"Low Filament",maintenanceDue:"Maintenance Due",maintenanceDueDescription:"Notify when maintenance is needed"},smartPlug:{title:"Smart Plugs",add:"Add Smart Plug",edit:"Edit Smart Plug",name:"Name",ipAddress:"IP Address",linkedPrinter:"Linked Printer",autoOn:"Auto Power On",autoOnDescription:"Turn on when print starts",autoOff:"Auto Power Off",autoOffDescription:"Turn off after print completes",offDelay:"Off Delay",offDelayMinutes:"Minutes after print",offDelayTemp:"When nozzle below temperature",currentState:"Current State",turnOn:"Turn On",turnOff:"Turn Off"},spoolmanEnabled:"Enable Spoolman Integration",spoolmanUrl:"Spoolman URL",spoolmanConnected:"Connected",spoolmanDisconnected:"Disconnected"},notification:{printStarted:{title:"Print Started",body:"{{printer}}: {{filename}} has started printing"},printCompleted:{title:"Print Completed",body:"{{printer}}: {{filename}} completed successfully"},printFailed:{title:"Print Failed",body:"{{printer}}: {{filename}} has failed"},printStopped:{title:"Print Stopped",body:"{{printer}}: {{filename}} was stopped"},printProgress:{title:"Print Progress",body:"{{printer}}: {{filename}} is {{percent}}% complete"},printerOffline:{title:"Printer Offline",body:"{{printer}} is offline"},printerError:{title:"Printer Error",body:"{{printer}}: {{error}}"},filamentLow:{title:"Low Filament",body:"{{printer}}: Filament is running low"},maintenanceDue:{title:"Maintenance Due",body:"{{printer}}: {{items}} need attention"}},errors:{generic:"Something went wrong",networkError:"Network error. Please check your connection.",notFound:"Not found",unauthorized:"Unauthorized",serverError:"Server error",validationError:"Please check your input",printerConnectionFailed:"Failed to connect to printer",saveFailed:"Failed to save changes",deleteFailed:"Failed to delete",loadFailed:"Failed to load data"},confirm:{delete:"Are you sure you want to delete this?",unsavedChanges:"You have unsaved changes. Are you sure you want to leave?",clearQueue:"Are you sure you want to clear the queue?"}},gie={nav:{printers:"Drucker",archives:"Archiv",queue:"Warteschlange",stats:"Statistiken",profiles:"Profile",maintenance:"Wartung",settings:"Einstellungen",collapseSidebar:"Seitenleiste einklappen",expandSidebar:"Seitenleiste ausklappen",update:"Update",updateAvailable:"Update verfügbar: v{{version}}",viewOnGithub:"Auf GitHub ansehen",keyboardShortcuts:"Tastaturkürzel (?)",switchToLight:"Zum hellen Modus wechseln",switchToDark:"Zum dunklen Modus wechseln"},common:{save:"Speichern",cancel:"Abbrechen",delete:"Löschen",edit:"Bearbeiten",add:"Hinzufügen",close:"Schließen",confirm:"Bestätigen",loading:"Lädt...",error:"Fehler",success:"Erfolg",warning:"Warnung",enabled:"Aktiviert",disabled:"Deaktiviert",yes:"Ja",no:"Nein",on:"An",off:"Aus",all:"Alle",none:"Keine",search:"Suchen",filter:"Filtern",sort:"Sortieren",refresh:"Aktualisieren",download:"Herunterladen",upload:"Hochladen",actions:"Aktionen",status:"Status",name:"Name",description:"Beschreibung",date:"Datum",time:"Zeit",hours:"Stunden",minutes:"Minuten",seconds:"Sekunden",noPrinters:"Keine Drucker konfiguriert",noData:"Keine Daten verfügbar",required:"Erforderlich",optional:"Optional"},printers:{title:"Drucker",addPrinter:"Drucker hinzufügen",editPrinter:"Drucker bearbeiten",deletePrinter:"Drucker löschen",printerName:"Druckername",serialNumber:"Seriennummer",ipAddress:"IP-Adresse",accessCode:"Zugangscode",model:"Modell",nozzleCount:"Düsenanzahl",autoArchive:"Automatische Archivierung",status:{idle:"Bereit",printing:"Druckt",paused:"Pausiert",offline:"Offline",error:"Fehler",finished:"Fertig",unknown:"Unbekannt"},temperatures:{nozzle:"Düse",bed:"Druckbett",chamber:"Kammer"},progress:"{{percent}}% abgeschlossen",timeRemaining:"Noch {{time}}",deleteConfirm:'Möchten Sie "{{name}}" wirklich löschen?',maintenanceOk:"Wartung OK",maintenanceWarning:"{{count}} Warnung",maintenanceWarning_plural:"{{count}} Warnungen",maintenanceDue:"{{count}} fällig",maintenanceDue_plural:"{{count}} fällig"},archives:{title:"Druckarchiv",searchPlaceholder:"Archiv durchsuchen...",filterByPrinter:"Nach Drucker filtern",filterByStatus:"Nach Status filtern",sortBy:"Sortieren nach",sortNewest:"Neueste zuerst",sortOldest:"Älteste zuerst",sortName:"Name",sortDuration:"Dauer",noArchives:"Keine Archive gefunden",printTime:"Druckzeit",filamentUsed:"Verbrauchtes Filament",cost:"Kosten",reprint:"Erneut drucken",preview:"Vorschau",deleteArchive:"Archiv löschen",deleteConfirm:"Möchten Sie dieses Archiv wirklich löschen?",favorite:"Favorit",unfavorite:"Aus Favoriten entfernen",viewDetails:"Details anzeigen",status:{completed:"Abgeschlossen",failed:"Fehlgeschlagen",stopped:"Gestoppt"}},queue:{title:"Druckwarteschlange",addToQueue:"Zur Warteschlange hinzufügen",clearQueue:"Warteschlange leeren",emptyQueue:"Warteschlange ist leer",position:"Position",scheduledTime:"Geplante Zeit",moveUp:"Nach oben",moveDown:"Nach unten",remove:"Entfernen",startNow:"Jetzt starten",status:{pending:"Ausstehend",printing:"Druckt",completed:"Abgeschlossen",failed:"Fehlgeschlagen",cancelled:"Abgebrochen"}},stats:{title:"Statistiken",overview:"Übersicht",totalPrints:"Gesamtdrucke",successRate:"Erfolgsrate",totalPrintTime:"Gesamtdruckzeit",totalFilament:"Gesamtverbrauch Filament",totalCost:"Gesamtkosten",averagePrintTime:"Durchschnittliche Druckzeit",printsPerDay:"Drucke pro Tag",byPrinter:"Nach Drucker",byMaterial:"Nach Material",byMonth:"Nach Monat",last7Days:"Letzte 7 Tage",last30Days:"Letzte 30 Tage",last90Days:"Letzte 90 Tage",allTime:"Gesamt"},profiles:{title:"Filament-Profile",addProfile:"Profil hinzufügen",editProfile:"Profil bearbeiten",deleteProfile:"Profil löschen",material:"Material",brand:"Marke",color:"Farbe",diameter:"Durchmesser",density:"Dichte",costPerKg:"Kosten pro kg",spoolWeight:"Spulengewicht",noProfiles:"Keine Profile konfiguriert",deleteConfirm:"Möchten Sie dieses Profil wirklich löschen?"},maintenance:{title:"Wartung",overview:"Übersicht",allOk:"Alle Wartungen aktuell",dueCount:"{{count}} Aufgabe fällig",dueCount_plural:"{{count}} Aufgaben fällig",warningCount:"{{count}} Warnung",warningCount_plural:"{{count}} Warnungen",totalPrintTime:"Gesamtdruckzeit",nextMaintenance:"Nächste Wartung",nothingDue:"Nichts fällig",tasks:"Aufgaben",lastPerformed:"Zuletzt durchgeführt",interval:"Intervall",hoursRemaining:"{{hours}}h verbleibend",hoursOverdue:"{{hours}}h überfällig",markDone:"Als erledigt markieren",performMaintenance:"Wartung durchführen",history:"Verlauf",noHistory:"Kein Wartungsverlauf",editPrintHours:"Druckstunden bearbeiten",currentHours:"Aktuelle Stunden",types:{lubricateRails:"Linearschienen schmieren",cleanNozzle:"Düse/Hotend reinigen",checkBelts:"Riemenspannung prüfen",cleanBuildPlate:"Druckbett reinigen",checkExtruder:"Extruderzahnräder prüfen",checkCooling:"Kühlungslüfter prüfen",generalInspection:"Allgemeine Inspektion"}},settings:{title:"Einstellungen",general:"Allgemein",appearance:"Erscheinungsbild",notifications:"Benachrichtigungen",smartPlugs:"Smart Plugs",spoolman:"Spoolman",updates:"Updates",language:"Sprache",languageDescription:"Wählen Sie Ihre bevorzugte Sprache",theme:"Design",themeLight:"Hell",themeDark:"Dunkel",themeSystem:"System",defaultView:"Standardansicht",defaultViewDescription:"Seite, die beim Öffnen der App angezeigt wird",checkForUpdates:"Nach Updates suchen",autoUpdate:"Automatische Updates",currentVersion:"Aktuelle Version",latestVersion:"Neueste Version",upToDate:"Sie sind auf dem neuesten Stand",updateAvailable:"Update verfügbar",notificationLanguage:"Benachrichtigungssprache",notificationLanguageDescription:"Sprache für Push-Benachrichtigungen",notificationProviders:"Benachrichtigungsanbieter",addProvider:"Anbieter hinzufügen",editProvider:"Anbieter bearbeiten",providerType:"Anbietertyp",testNotification:"Testbenachrichtigung",testSuccess:"Testbenachrichtigung erfolgreich gesendet",testFailed:"Testbenachrichtigung konnte nicht gesendet werden",quietHours:"Ruhezeiten",quietHoursDescription:"Keine Störungen während dieser Zeiten",quietHoursStart:"Beginn",quietHoursEnd:"Ende",events:{title:"Benachrichtigungsereignisse",printStart:"Druck gestartet",printComplete:"Druck abgeschlossen",printFailed:"Druck fehlgeschlagen",printStopped:"Druck gestoppt",printProgress:"Fortschrittsmeldungen",printProgressDescription:"Bei 25%, 50%, 75% benachrichtigen",printerOffline:"Drucker offline",printerError:"Druckerfehler",filamentLow:"Filament niedrig",maintenanceDue:"Wartung fällig",maintenanceDueDescription:"Benachrichtigen, wenn Wartung erforderlich"},smartPlug:{title:"Smart Plugs",add:"Smart Plug hinzufügen",edit:"Smart Plug bearbeiten",name:"Name",ipAddress:"IP-Adresse",linkedPrinter:"Verknüpfter Drucker",autoOn:"Automatisch einschalten",autoOnDescription:"Einschalten beim Druckstart",autoOff:"Automatisch ausschalten",autoOffDescription:"Ausschalten nach Druckende",offDelay:"Ausschaltverzögerung",offDelayMinutes:"Minuten nach Druck",offDelayTemp:"Wenn Düse unter Temperatur",currentState:"Aktueller Status",turnOn:"Einschalten",turnOff:"Ausschalten"},spoolmanEnabled:"Spoolman-Integration aktivieren",spoolmanUrl:"Spoolman URL",spoolmanConnected:"Verbunden",spoolmanDisconnected:"Nicht verbunden"},notification:{printStarted:{title:"Druck gestartet",body:"{{printer}}: {{filename}} wird gedruckt"},printCompleted:{title:"Druck abgeschlossen",body:"{{printer}}: {{filename}} erfolgreich abgeschlossen"},printFailed:{title:"Druck fehlgeschlagen",body:"{{printer}}: {{filename}} ist fehlgeschlagen"},printStopped:{title:"Druck gestoppt",body:"{{printer}}: {{filename}} wurde gestoppt"},printProgress:{title:"Druckfortschritt",body:"{{printer}}: {{filename}} ist zu {{percent}}% abgeschlossen"},printerOffline:{title:"Drucker offline",body:"{{printer}} ist offline"},printerError:{title:"Druckerfehler",body:"{{printer}}: {{error}}"},filamentLow:{title:"Filament niedrig",body:"{{printer}}: Filament geht zur Neige"},maintenanceDue:{title:"Wartung fällig",body:"{{printer}}: {{items}} benötigen Aufmerksamkeit"}},errors:{generic:"Etwas ist schiefgelaufen",networkError:"Netzwerkfehler. Bitte überprüfen Sie Ihre Verbindung.",notFound:"Nicht gefunden",unauthorized:"Nicht autorisiert",serverError:"Serverfehler",validationError:"Bitte überprüfen Sie Ihre Eingabe",printerConnectionFailed:"Verbindung zum Drucker fehlgeschlagen",saveFailed:"Speichern fehlgeschlagen",deleteFailed:"Löschen fehlgeschlagen",loadFailed:"Laden der Daten fehlgeschlagen"},confirm:{delete:"Möchten Sie dies wirklich löschen?",unsavedChanges:"Sie haben ungespeicherte Änderungen. Möchten Sie wirklich verlassen?",clearQueue:"Möchten Sie die Warteschlange wirklich leeren?"}},xie={en:{translation:mie},de:{translation:gie}};Sa.use(gG).use(qne).init({resources:xie,fallbackLng:"en",supportedLngs:["en","de"],detection:{order:["localStorage","navigator","htmlTag"],lookupLocalStorage:"bambutrack_language",caches:["localStorage"]},interpolation:{escapeValue:!1},react:{useSuspense:!1}});const _U=[{code:"en",name:"English",nativeName:"English"},{code:"de",name:"German",nativeName:"Deutsch"}];var SU="popstate";function vie(t={}){function e(i,r){let{pathname:a,search:s,hash:o}=i.location;return _N("",{pathname:a,search:s,hash:o},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(i,r){return typeof r=="string"?r:Hx(r)}return bie(e,n,null,t)}function mi(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function _o(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function yie(){return Math.random().toString(36).substring(2,10)}function wU(t,e){return{usr:t.state,key:t.key,idx:e}}function _N(t,e,n=null,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?vm(e):e,state:n,key:e&&e.key||i||yie()}}function Hx({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function vm(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substring(i),t=t.substring(0,i)),t&&(e.pathname=t)}return e}function bie(t,e,n,i={}){let{window:r=document.defaultView,v5Compat:a=!1}=i,s=r.history,o="POP",l=null,c=u();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function u(){return(s.state||{idx:null}).idx}function f(){o="POP";let v=u(),x=v==null?null:v-c;c=v,l&&l({action:o,location:_.location,delta:x})}function m(v,x){o="PUSH";let M=_N(_.location,v,x);c=u()+1;let w=wU(M,c),C=_.createHref(M);try{s.pushState(w,"",C)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;r.location.assign(C)}a&&l&&l({action:o,location:_.location,delta:1})}function g(v,x){o="REPLACE";let M=_N(_.location,v,x);c=u();let w=wU(M,c),C=_.createHref(M);s.replaceState(w,"",C),a&&l&&l({action:o,location:_.location,delta:0})}function y(v){return _ie(v)}let _={get action(){return o},get location(){return t(r,s)},listen(v){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(SU,f),l=v,()=>{r.removeEventListener(SU,f),l=null}},createHref(v){return e(r,v)},createURL:y,encodeLocation(v){let x=y(v);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:m,replace:g,go(v){return s.go(v)}};return _}function _ie(t,e=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),mi(n,"No window.location.(origin|href) available to create URL");let i=typeof t=="string"?t:Hx(t);return i=i.replace(/ $/,"%20"),!e&&i.startsWith("//")&&(i=n+i),new URL(i,n)}function xG(t,e,n="/"){return Sie(t,e,n,!1)}function Sie(t,e,n,i){let r=typeof e=="string"?vm(e):e,a=fc(r.pathname||"/",n);if(a==null)return null;let s=vG(t);wie(s);let o=null;for(let l=0;o==null&&l{let u={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(i)&&l)return;mi(u.relativePath.startsWith(i),`Absolute route path "${u.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(i.length)}let f=rc([i,u.relativePath]),m=n.concat(u);s.children&&s.children.length>0&&(mi(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),vG(s.children,e,m,f,l)),!(s.path==null&&!s.index)&&e.push({path:f,score:Rie(f,s.index),routesMeta:m})};return t.forEach((s,o)=>{if(s.path===""||!s.path?.includes("?"))a(s,o);else for(let l of yG(s.path))a(s,o,!0,l)}),e}function yG(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,r=n.endsWith("?"),a=n.replace(/\?$/,"");if(i.length===0)return r?[a,""]:[a];let s=yG(i.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),r&&o.push(...s),o.map(l=>t.startsWith("/")&&l===""?"/":l)}function wie(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Pie(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var Mie=/^:[\w-]+$/,Eie=3,Aie=2,Tie=1,Cie=10,Nie=-2,MU=t=>t==="*";function Rie(t,e){let n=t.split("/"),i=n.length;return n.some(MU)&&(i+=Nie),e&&(i+=Aie),n.filter(r=>!MU(r)).reduce((r,a)=>r+(Mie.test(a)?Eie:a===""?Tie:Cie),i)}function Pie(t,e){return t.length===e.length&&t.slice(0,-1).every((i,r)=>i===e[r])?t[t.length-1]-e[e.length-1]:0}function kie(t,e,n=!1){let{routesMeta:i}=t,r={},a="/",s=[];for(let o=0;o{if(u==="*"){let y=o[m]||"";s=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const g=o[m];return f&&!g?c[u]=void 0:c[u]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:s,pattern:t}}function Die(t,e=!1,n=!0){_o(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let i=[],r="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(i.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(i.push({paramName:"*"}),r+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":t!==""&&t!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),i]}function Oie(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return _o(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function fc(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}var Lie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Iie=t=>Lie.test(t);function jie(t,e="/"){let{pathname:n,search:i="",hash:r=""}=typeof t=="string"?vm(t):t,a;if(n)if(Iie(n))a=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),_o(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${n}`)}n.startsWith("/")?a=EU(n.substring(1),"/"):a=EU(n,e)}else a=e;return{pathname:a,search:zie(i),hash:Bie(r)}}function EU(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function LA(t,e,n,i){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Uie(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function bG(t){let e=Uie(t);return e.map((n,i)=>i===e.length-1?n.pathname:n.pathnameBase)}function _G(t,e,n,i=!1){let r;typeof t=="string"?r=vm(t):(r={...t},mi(!r.pathname||!r.pathname.includes("?"),LA("?","pathname","search",r)),mi(!r.pathname||!r.pathname.includes("#"),LA("#","pathname","hash",r)),mi(!r.search||!r.search.includes("#"),LA("#","search","hash",r)));let a=t===""||r.pathname==="",s=a?"/":r.pathname,o;if(s==null)o=n;else{let f=e.length-1;if(!i&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),f-=1;r.pathname=m.join("/")}o=f>=0?e[f]:"/"}let l=jie(r,o),c=s&&s!=="/"&&s.endsWith("/"),u=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var rc=t=>t.join("/").replace(/\/\/+/g,"/"),Fie=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),zie=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Bie=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Hie(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var SG=["POST","PUT","PATCH","DELETE"];new Set(SG);var $ie=["GET",...SG];new Set($ie);var ym=E.createContext(null);ym.displayName="DataRouter";var WS=E.createContext(null);WS.displayName="DataRouterState";E.createContext(!1);var wG=E.createContext({isTransitioning:!1});wG.displayName="ViewTransition";var Vie=E.createContext(new Map);Vie.displayName="Fetchers";var Gie=E.createContext(null);Gie.displayName="Await";var ll=E.createContext(null);ll.displayName="Navigation";var D0=E.createContext(null);D0.displayName="Location";var Ao=E.createContext({outlet:null,matches:[],isDataRoute:!1});Ao.displayName="Route";var AP=E.createContext(null);AP.displayName="RouteError";function Wie(t,{relative:e}={}){mi(O0(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:i}=E.useContext(ll),{hash:r,pathname:a,search:s}=L0(t,{relative:e}),o=a;return n!=="/"&&(o=a==="/"?n:rc([n,a])),i.createHref({pathname:o,search:s,hash:r})}function O0(){return E.useContext(D0)!=null}function rd(){return mi(O0(),"useLocation() may be used only in the context of a component."),E.useContext(D0).location}var MG="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function EG(t){E.useContext(ll).static||E.useLayoutEffect(t)}function TP(){let{isDataRoute:t}=E.useContext(Ao);return t?lre():qie()}function qie(){mi(O0(),"useNavigate() may be used only in the context of a component.");let t=E.useContext(ym),{basename:e,navigator:n}=E.useContext(ll),{matches:i}=E.useContext(Ao),{pathname:r}=rd(),a=JSON.stringify(bG(i)),s=E.useRef(!1);return EG(()=>{s.current=!0}),E.useCallback((l,c={})=>{if(_o(s.current,MG),!s.current)return;if(typeof l=="number"){n.go(l);return}let u=_G(l,JSON.parse(a),r,c.relative==="path");t==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:rc([e,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[e,n,a,r,t])}var Xie=E.createContext(null);function Kie(t){let e=E.useContext(Ao).outlet;return E.useMemo(()=>e&&E.createElement(Xie.Provider,{value:t},e),[e,t])}function Yie(){let{matches:t}=E.useContext(Ao),e=t[t.length-1];return e?e.params:{}}function L0(t,{relative:e}={}){let{matches:n}=E.useContext(Ao),{pathname:i}=rd(),r=JSON.stringify(bG(n));return E.useMemo(()=>_G(t,JSON.parse(r),i,e==="path"),[t,r,i,e])}function Zie(t,e){return AG(t,e)}function AG(t,e,n,i,r){mi(O0(),"useRoutes() may be used only in the context of a component.");let{navigator:a}=E.useContext(ll),{matches:s}=E.useContext(Ao),o=s[s.length-1],l=o?o.params:{},c=o?o.pathname:"/",u=o?o.pathnameBase:"/",f=o&&o.route;{let M=f&&f.path||"";TG(c,!f||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${c}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let m=rd(),g;if(e){let M=typeof e=="string"?vm(e):e;mi(u==="/"||M.pathname?.startsWith(u),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${M.pathname}" was given in the \`location\` prop.`),g=M}else g=m;let y=g.pathname||"/",_=y;if(u!=="/"){let M=u.replace(/^\//,"").split("/");_="/"+y.replace(/^\//,"").split("/").slice(M.length).join("/")}let v=xG(t,{pathname:_});_o(f||v!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),_o(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let x=nre(v&&v.map(M=>Object.assign({},M,{params:Object.assign({},l,M.params),pathname:rc([u,a.encodeLocation?a.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?u:rc([u,a.encodeLocation?a.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),s,n,i,r);return e&&x?E.createElement(D0.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},x):x}function Qie(){let t=ore(),e=Hie(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:i},a={padding:"2px 4px",backgroundColor:i},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:a},"ErrorBoundary")," or"," ",E.createElement("code",{style:a},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},e),n?E.createElement("pre",{style:r},n):null,s)}var Jie=E.createElement(Qie,null),ere=class extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){return this.state.error!==void 0?E.createElement(Ao.Provider,{value:this.props.routeContext},E.createElement(AP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function tre({routeContext:t,match:e,children:n}){let i=E.useContext(ym);return i&&i.static&&i.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=e.route.id),E.createElement(Ao.Provider,{value:t},n)}function nre(t,e=[],n=null,i=null,r=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let a=t,s=n?.errors;if(s!=null){let u=a.findIndex(f=>f.route.id&&s?.[f.route.id]!==void 0);mi(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,u+1))}let o=!1,l=-1;if(n)for(let u=0;u=0?a=a.slice(0,l+1):a=[a[0]];break}}}let c=n&&i?(u,f)=>{i(u,{location:n.location,params:n.matches?.[0]?.params??{},errorInfo:f})}:void 0;return a.reduceRight((u,f,m)=>{let g,y=!1,_=null,v=null;n&&(g=s&&f.route.id?s[f.route.id]:void 0,_=f.route.errorElement||Jie,o&&(l<0&&m===0?(TG("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,v=null):l===m&&(y=!0,v=f.route.hydrateFallbackElement||null)));let x=e.concat(a.slice(0,m+1)),M=()=>{let w;return g?w=_:y?w=v:f.route.Component?w=E.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=u,E.createElement(tre,{match:f,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?E.createElement(ere,{location:n.location,revalidation:n.revalidation,component:_,error:g,children:M(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:c}):M()},null)}function CP(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ire(t){let e=E.useContext(ym);return mi(e,CP(t)),e}function rre(t){let e=E.useContext(WS);return mi(e,CP(t)),e}function are(t){let e=E.useContext(Ao);return mi(e,CP(t)),e}function NP(t){let e=are(t),n=e.matches[e.matches.length-1];return mi(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function sre(){return NP("useRouteId")}function ore(){let t=E.useContext(AP),e=rre("useRouteError"),n=NP("useRouteError");return t!==void 0?t:e.errors?.[n]}function lre(){let{router:t}=ire("useNavigate"),e=NP("useNavigate"),n=E.useRef(!1);return EG(()=>{n.current=!0}),E.useCallback(async(r,a={})=>{_o(n.current,MG),n.current&&(typeof r=="number"?t.navigate(r):await t.navigate(r,{fromRouteId:e,...a}))},[t,e])}var AU={};function TG(t,e,n){!e&&!AU[t]&&(AU[t]=!0,_o(!1,n))}E.memo(cre);function cre({routes:t,future:e,state:n,unstable_onError:i}){return AG(t,void 0,n,i,e)}function ure(t){return Kie(t.context)}function jo(t){mi(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function dre({basename:t="/",children:e=null,location:n,navigationType:i="POP",navigator:r,static:a=!1}){mi(!O0(),"You cannot render a inside another . You should never have more than one in your app.");let s=t.replace(/^\/*/,"/"),o=E.useMemo(()=>({basename:s,navigator:r,static:a,future:{}}),[s,r,a]);typeof n=="string"&&(n=vm(n));let{pathname:l="/",search:c="",hash:u="",state:f=null,key:m="default"}=n,g=E.useMemo(()=>{let y=fc(l,s);return y==null?null:{location:{pathname:y,search:c,hash:u,state:f,key:m},navigationType:i}},[s,l,c,u,f,m,i]);return _o(g!=null,` is not able to match the URL "${l}${c}${u}" because it does not start with the basename, so the won't render anything.`),g==null?null:E.createElement(ll.Provider,{value:o},E.createElement(D0.Provider,{children:e,value:g}))}function fre({children:t,location:e}){return Zie(SN(t),e)}function SN(t,e=[]){let n=[];return E.Children.forEach(t,(i,r)=>{if(!E.isValidElement(i))return;let a=[...e,r];if(i.type===E.Fragment){n.push.apply(n,SN(i.props.children,a));return}mi(i.type===jo,`[${typeof i.type=="string"?i.type:i.type.name}] is not a component. All component children of must be a or `),mi(!i.props.index||!i.props.children,"An index route cannot have child routes.");let s={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(s.children=SN(i.props.children,a)),n.push(s)}),n}var f_="get",h_="application/x-www-form-urlencoded";function qS(t){return t!=null&&typeof t.tagName=="string"}function hre(t){return qS(t)&&t.tagName.toLowerCase()==="button"}function pre(t){return qS(t)&&t.tagName.toLowerCase()==="form"}function mre(t){return qS(t)&&t.tagName.toLowerCase()==="input"}function gre(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function xre(t,e){return t.button===0&&(!e||e==="_self")&&!gre(t)}var ky=null;function vre(){if(ky===null)try{new FormData(document.createElement("form"),0),ky=!1}catch{ky=!0}return ky}var yre=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function IA(t){return t!=null&&!yre.has(t)?(_o(!1,`"${t}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${h_}"`),null):t}function bre(t,e){let n,i,r,a,s;if(pre(t)){let o=t.getAttribute("action");i=o?fc(o,e):null,n=t.getAttribute("method")||f_,r=IA(t.getAttribute("enctype"))||h_,a=new FormData(t)}else if(hre(t)||mre(t)&&(t.type==="submit"||t.type==="image")){let o=t.form;if(o==null)throw new Error('Cannot submit a