diff --git a/assets/index-CKBjFUTc.js b/assets/index-CKBjFUTc.js new file mode 100644 index 00000000..e4af205d --- /dev/null +++ b/assets/index-CKBjFUTc.js @@ -0,0 +1,979 @@ +var DN=Object.defineProperty;var FN=(n,e,t)=>e in n?DN(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Kn=(n,e,t)=>FN(n,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();function fl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function R6(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var p3={exports:{}},ov={},m3={exports:{}},fs={},JO;function LN(){if(JO)return fs;JO=1;/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),B=Symbol.iterator;function O(De){return De===null||typeof De!="object"?null:(De=B&&De[B]||De["@@iterator"],typeof De=="function"?De:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,j={};function N(De,He,bt){this.props=De,this.context=He,this.refs=j,this.updater=bt||P}N.prototype.isReactComponent={},N.prototype.setState=function(De,He){if(typeof De!="object"&&typeof De!="function"&&De!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,De,He,"setState")},N.prototype.forceUpdate=function(De){this.updater.enqueueForceUpdate(this,De,"forceUpdate")};function Y(){}Y.prototype=N.prototype;function H(De,He,bt){this.props=De,this.context=He,this.refs=j,this.updater=bt||P}var se=H.prototype=new Y;se.constructor=H,U(se,N.prototype),se.isPureReactComponent=!0;var re=Array.isArray,V=Object.prototype.hasOwnProperty,ne={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function oe(De,He,bt){var Yt,yt={},Ft=null,Pt=null;if(He!=null)for(Yt in He.ref!==void 0&&(Pt=He.ref),He.key!==void 0&&(Ft=""+He.key),He)V.call(He,Yt)&&!G.hasOwnProperty(Yt)&&(yt[Yt]=He[Yt]);var Ue=arguments.length-2;if(Ue===1)yt.children=bt;else if(1=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function WN(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function Kb(){return Kb=Object.assign?Object.assign.bind():function(n){for(var e=1;eXn.createElement(e.tag,Rb({key:t},e.attr),yD(e.child)))}function Xl(n){return e=>Xn.createElement(qN,Kb({attr:Rb({},n.attr)},e),yD(n.child))}function qN(n){var e=t=>{var{attr:r,size:i,title:s}=n,l=NN(n,jN),o=i||t.size||"1em",f;return t.className&&(f=t.className),n.className&&(f=(f?f+" ":"")+n.className),Xn.createElement("svg",Kb({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:f,style:Rb(Rb({color:n.color||t.color},t.style),n.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),s&&Xn.createElement("title",null,s),n.children)};return _E!==void 0?Xn.createElement(_E.Consumer,null,t=>e(t)):e(gD)}var T_={},g3={exports:{}},uh={},y3={exports:{}},v3={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var i8;function VN(){return i8||(i8=1,function(n){function e(Je,Ne){var we=Je.length;Je.push(Ne);e:for(;0>>1,He=Je[De];if(0>>1;Dei(yt,we))Fti(Pt,yt)?(Je[De]=Pt,Je[Ft]=we,De=Ft):(Je[De]=yt,Je[Yt]=we,De=Yt);else if(Fti(Pt,we))Je[De]=Pt,Je[Ft]=we,De=Ft;else break e}}return Ne}function i(Je,Ne){var we=Je.sortIndex-Ne.sortIndex;return we!==0?we:Je.id-Ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();n.unstable_now=function(){return l.now()-o}}var f=[],y=[],x=1,B=null,O=3,P=!1,U=!1,j=!1,N=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function se(Je){for(var Ne=t(y);Ne!==null;){if(Ne.callback===null)r(y);else if(Ne.startTime<=Je)r(y),Ne.sortIndex=Ne.expirationTime,e(f,Ne);else break;Ne=t(y)}}function re(Je){if(j=!1,se(Je),!U)if(t(f)!==null)U=!0,at(V);else{var Ne=t(y);Ne!==null&&Ze(re,Ne.startTime-Je)}}function V(Je,Ne){U=!1,j&&(j=!1,Y(oe),oe=-1),P=!0;var we=O;try{for(se(Ne),B=t(f);B!==null&&(!(B.expirationTime>Ne)||Je&&!Ee());){var De=B.callback;if(typeof De=="function"){B.callback=null,O=B.priorityLevel;var He=De(B.expirationTime<=Ne);Ne=n.unstable_now(),typeof He=="function"?B.callback=He:B===t(f)&&r(f),se(Ne)}else r(f);B=t(f)}if(B!==null)var bt=!0;else{var Yt=t(y);Yt!==null&&Ze(re,Yt.startTime-Ne),bt=!1}return bt}finally{B=null,O=we,P=!1}}var ne=!1,G=null,oe=-1,he=5,fe=-1;function Ee(){return!(n.unstable_now()-feJe||125De?(Je.sortIndex=we,e(y,Je),t(f)===null&&Je===t(y)&&(j?(Y(oe),oe=-1):j=!0,Ze(re,we-De))):(Je.sortIndex=He,e(f,Je),U||P||(U=!0,at(V))),Je},n.unstable_shouldYield=Ee,n.unstable_wrapCallback=function(Je){var Ne=O;return function(){var we=O;O=Ne;try{return Je.apply(this,arguments)}finally{O=we}}}}(v3)),v3}var o8;function $N(){return o8||(o8=1,y3.exports=VN()),y3.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var s8;function HN(){if(s8)return uh;s8=1;var n=Ia(),e=$N();function t(m){for(var C="https://reactjs.org/docs/error-decoder.html?invariant="+m,D=1;D"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,y=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x={},B={};function O(m){return f.call(B,m)?!0:f.call(x,m)?!1:y.test(m)?B[m]=!0:(x[m]=!0,!1)}function P(m,C,D,Q){if(D!==null&&D.type===0)return!1;switch(typeof C){case"function":case"symbol":return!0;case"boolean":return Q?!1:D!==null?!D.acceptsBooleans:(m=m.toLowerCase().slice(0,5),m!=="data-"&&m!=="aria-");default:return!1}}function U(m,C,D,Q){if(C===null||typeof C>"u"||P(m,C,D,Q))return!0;if(Q)return!1;if(D!==null)switch(D.type){case 3:return!C;case 4:return C===!1;case 5:return isNaN(C);case 6:return isNaN(C)||1>C}return!1}function j(m,C,D,Q,le,ge,tt){this.acceptsBooleans=C===2||C===3||C===4,this.attributeName=Q,this.attributeNamespace=le,this.mustUseProperty=D,this.propertyName=m,this.type=C,this.sanitizeURL=ge,this.removeEmptyString=tt}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){N[m]=new j(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var C=m[0];N[C]=new j(C,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){N[m]=new j(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){N[m]=new j(m,2,!1,m,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(m){N[m]=new j(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){N[m]=new j(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){N[m]=new j(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){N[m]=new j(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){N[m]=new j(m,5,!1,m.toLowerCase(),null,!1,!1)});var Y=/[\-:]([a-z])/g;function H(m){return m[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(m){var C=m.replace(Y,H);N[C]=new j(C,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var C=m.replace(Y,H);N[C]=new j(C,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var C=m.replace(Y,H);N[C]=new j(C,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){N[m]=new j(m,1,!1,m.toLowerCase(),null,!1,!1)}),N.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){N[m]=new j(m,1,!1,m.toLowerCase(),null,!0,!0)});function se(m,C,D,Q){var le=N.hasOwnProperty(C)?N[C]:null;(le!==null?le.type!==0:Q||!(2Ot||le[tt]!==ge[Ot]){var Wt=` +`+le[tt].replace(" at new "," at ");return m.displayName&&Wt.includes("")&&(Wt=Wt.replace("",m.displayName)),Wt}while(1<=tt&&0<=Ot);break}}}finally{bt=!1,Error.prepareStackTrace=D}return(m=m?m.displayName||m.name:"")?He(m):""}function yt(m){switch(m.tag){case 5:return He(m.type);case 16:return He("Lazy");case 13:return He("Suspense");case 19:return He("SuspenseList");case 0:case 2:case 15:return m=Yt(m.type,!1),m;case 11:return m=Yt(m.type.render,!1),m;case 1:return m=Yt(m.type,!0),m;default:return""}}function Ft(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case G:return"Fragment";case ne:return"Portal";case he:return"Profiler";case oe:return"StrictMode";case Se:return"Suspense";case Ke:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case Ee:return(m.displayName||"Context")+".Consumer";case fe:return(m._context.displayName||"Context")+".Provider";case me:var C=m.render;return m=m.displayName,m||(m=C.displayName||C.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case xe:return C=m.displayName||null,C!==null?C:Ft(m.type)||"Memo";case at:C=m._payload,m=m._init;try{return Ft(m(C))}catch{}}return null}function Pt(m){var C=m.type;switch(m.tag){case 24:return"Cache";case 9:return(C.displayName||"Context")+".Consumer";case 10:return(C._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=C.render,m=m.displayName||m.name||"",C.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return C;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ft(C);case 8:return C===oe?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof C=="function")return C.displayName||C.name||null;if(typeof C=="string")return C}return null}function Ue(m){switch(typeof m){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function Pe(m){var C=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(C==="checkbox"||C==="radio")}function Be(m){var C=Pe(m)?"checked":"value",D=Object.getOwnPropertyDescriptor(m.constructor.prototype,C),Q=""+m[C];if(!m.hasOwnProperty(C)&&typeof D<"u"&&typeof D.get=="function"&&typeof D.set=="function"){var le=D.get,ge=D.set;return Object.defineProperty(m,C,{configurable:!0,get:function(){return le.call(this)},set:function(tt){Q=""+tt,ge.call(this,tt)}}),Object.defineProperty(m,C,{enumerable:D.enumerable}),{getValue:function(){return Q},setValue:function(tt){Q=""+tt},stopTracking:function(){m._valueTracker=null,delete m[C]}}}}function it(m){m._valueTracker||(m._valueTracker=Be(m))}function _t(m){if(!m)return!1;var C=m._valueTracker;if(!C)return!0;var D=C.getValue(),Q="";return m&&(Q=Pe(m)?m.checked?"true":"false":m.value),m=Q,m!==D?(C.setValue(m),!0):!1}function pt(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch{return m.body}}function Lt(m,C){var D=C.checked;return we({},C,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:D??m._wrapperState.initialChecked})}function nn(m,C){var D=C.defaultValue==null?"":C.defaultValue,Q=C.checked!=null?C.checked:C.defaultChecked;D=Ue(C.value!=null?C.value:D),m._wrapperState={initialChecked:Q,initialValue:D,controlled:C.type==="checkbox"||C.type==="radio"?C.checked!=null:C.value!=null}}function Kt(m,C){C=C.checked,C!=null&&se(m,"checked",C,!1)}function vn(m,C){Kt(m,C);var D=Ue(C.value),Q=C.type;if(D!=null)Q==="number"?(D===0&&m.value===""||m.value!=D)&&(m.value=""+D):m.value!==""+D&&(m.value=""+D);else if(Q==="submit"||Q==="reset"){m.removeAttribute("value");return}C.hasOwnProperty("value")?tn(m,C.type,D):C.hasOwnProperty("defaultValue")&&tn(m,C.type,Ue(C.defaultValue)),C.checked==null&&C.defaultChecked!=null&&(m.defaultChecked=!!C.defaultChecked)}function Gn(m,C,D){if(C.hasOwnProperty("value")||C.hasOwnProperty("defaultValue")){var Q=C.type;if(!(Q!=="submit"&&Q!=="reset"||C.value!==void 0&&C.value!==null))return;C=""+m._wrapperState.initialValue,D||C===m.value||(m.value=C),m.defaultValue=C}D=m.name,D!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,D!==""&&(m.name=D)}function tn(m,C,D){(C!=="number"||pt(m.ownerDocument)!==m)&&(D==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+D&&(m.defaultValue=""+D))}var dr=Array.isArray;function Pn(m,C,D,Q){if(m=m.options,C){C={};for(var le=0;le"+C.valueOf().toString()+"",C=ce.firstChild;m.firstChild;)m.removeChild(m.firstChild);for(;C.firstChild;)m.appendChild(C.firstChild)}});function nt(m,C){if(C){var D=m.firstChild;if(D&&D===m.lastChild&&D.nodeType===3){D.nodeValue=C;return}}m.textContent=C}var wt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ht=["Webkit","ms","Moz","O"];Object.keys(wt).forEach(function(m){Ht.forEach(function(C){C=C+m.charAt(0).toUpperCase()+m.substring(1),wt[C]=wt[m]})});function sn(m,C,D){return C==null||typeof C=="boolean"||C===""?"":D||typeof C!="number"||C===0||wt.hasOwnProperty(m)&&wt[m]?(""+C).trim():C+"px"}function Hn(m,C){m=m.style;for(var D in C)if(C.hasOwnProperty(D)){var Q=D.indexOf("--")===0,le=sn(D,C[D],Q);D==="float"&&(D="cssFloat"),Q?m.setProperty(D,le):m[D]=le}}var Ve=we({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function J(m,C){if(C){if(Ve[m]&&(C.children!=null||C.dangerouslySetInnerHTML!=null))throw Error(t(137,m));if(C.dangerouslySetInnerHTML!=null){if(C.children!=null)throw Error(t(60));if(typeof C.dangerouslySetInnerHTML!="object"||!("__html"in C.dangerouslySetInnerHTML))throw Error(t(61))}if(C.style!=null&&typeof C.style!="object")throw Error(t(62))}}function ve(m,C){if(m.indexOf("-")===-1)return typeof C.is=="string";switch(m){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var p=null;function Fe(m){return m=m.target||m.srcElement||window,m.correspondingUseElement&&(m=m.correspondingUseElement),m.nodeType===3?m.parentNode:m}var Qe=null,rt=null,ct=null;function dt(m){if(m=gi(m)){if(typeof Qe!="function")throw Error(t(280));var C=m.stateNode;C&&(C=ta(C),Qe(m.stateNode,m.type,C))}}function qt(m){rt?ct?ct.push(m):ct=[m]:rt=m}function Gt(){if(rt){var m=rt,C=ct;if(ct=rt=null,dt(m),C)for(m=0;m>>=0,m===0?32:31-(Qn(m)/fn|0)|0}var Di=64,vo=4194304;function rs(m){switch(m&-m){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return m&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return m}}function ua(m,C){var D=m.pendingLanes;if(D===0)return 0;var Q=0,le=m.suspendedLanes,ge=m.pingedLanes,tt=D&268435455;if(tt!==0){var Ot=tt&~le;Ot!==0?Q=rs(Ot):(ge&=tt,ge!==0&&(Q=rs(ge)))}else tt=D&~le,tt!==0?Q=rs(tt):ge!==0&&(Q=rs(ge));if(Q===0)return 0;if(C!==0&&C!==Q&&(C&le)===0&&(le=Q&-Q,ge=C&-C,le>=ge||le===16&&(ge&4194240)!==0))return C;if((Q&4)!==0&&(Q|=D&16),C=m.entangledLanes,C!==0)for(m=m.entanglements,C&=Q;0D;D++)C.push(m);return C}function xi(m,C,D){m.pendingLanes|=C,C!==536870912&&(m.suspendedLanes=0,m.pingedLanes=0),m=m.eventTimes,C=31-Cn(C),m[C]=D}function uA(m,C){var D=m.pendingLanes&~C;m.pendingLanes=C,m.suspendedLanes=0,m.pingedLanes=0,m.expiredLanes&=C,m.mutableReadLanes&=C,m.entangledLanes&=C,C=m.entanglements;var Q=m.eventTimes;for(m=m.expirationTimes;0=ju),Ch=" ",Jh=!1;function fu(m,C){switch(m){case"keyup":return hu.indexOf(C.keyCode)!==-1;case"keydown":return C.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function XA(m){return m=m.detail,typeof m=="object"&&"data"in m?m.data:null}var BA=!1;function pu(m,C){switch(m){case"compositionend":return XA(C);case"keypress":return C.which!==32?null:(Jh=!0,Ch);case"textInput":return m=C.data,m===Ch&&Jh?null:m;default:return null}}function ef(m,C){if(BA)return m==="compositionend"||!Nc&&fu(m,C)?(m=Do(),pi=Pr=Ir=null,BA=!1,m):null;switch(m){case"paste":return null;case"keypress":if(!(C.ctrlKey||C.altKey||C.metaKey)||C.ctrlKey&&C.altKey){if(C.char&&1=C)return{node:D,offset:C-m};m=Q}e:{for(;D;){if(D.nextSibling){D=D.nextSibling;break e}D=D.parentNode}D=void 0}D=Ri(D)}}function Bs(m,C){return m&&C?m===C?!0:m&&m.nodeType===3?!1:C&&C.nodeType===3?Bs(m,C.parentNode):"contains"in m?m.contains(C):m.compareDocumentPosition?!!(m.compareDocumentPosition(C)&16):!1:!1}function Jo(){for(var m=window,C=pt();C instanceof m.HTMLIFrameElement;){try{var D=typeof C.contentWindow.location.href=="string"}catch{D=!1}if(D)m=C.contentWindow;else break;C=pt(m.document)}return C}function JA(m){var C=m&&m.nodeName&&m.nodeName.toLowerCase();return C&&(C==="input"&&(m.type==="text"||m.type==="search"||m.type==="tel"||m.type==="url"||m.type==="password")||C==="textarea"||m.contentEditable==="true")}function xh(m){var C=Jo(),D=m.focusedElem,Q=m.selectionRange;if(C!==D&&D&&D.ownerDocument&&Bs(D.ownerDocument.documentElement,D)){if(Q!==null&&JA(D)){if(C=Q.start,m=Q.end,m===void 0&&(m=C),"selectionStart"in D)D.selectionStart=C,D.selectionEnd=Math.min(m,D.value.length);else if(m=(C=D.ownerDocument||document)&&C.defaultView||window,m.getSelection){m=m.getSelection();var le=D.textContent.length,ge=Math.min(Q.start,le);Q=Q.end===void 0?ge:Math.min(Q.end,le),!m.extend&&ge>Q&&(le=Q,Q=ge,ge=le),le=Po(D,ge);var tt=Po(D,Q);le&&tt&&(m.rangeCount!==1||m.anchorNode!==le.node||m.anchorOffset!==le.offset||m.focusNode!==tt.node||m.focusOffset!==tt.offset)&&(C=C.createRange(),C.setStart(le.node,le.offset),m.removeAllRanges(),ge>Q?(m.addRange(C),m.extend(tt.node,tt.offset)):(C.setEnd(tt.node,tt.offset),m.addRange(C)))}}for(C=[],m=D;m=m.parentNode;)m.nodeType===1&&C.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D=document.documentMode,ec=null,mu=null,Ka=null,AA=!1;function xc(m,C,D){var Q=D.window===D?D.document:D.nodeType===9?D:D.ownerDocument;AA||ec==null||ec!==pt(Q)||(Q=ec,"selectionStart"in Q&&JA(Q)?Q={start:Q.selectionStart,end:Q.selectionEnd}:(Q=(Q.ownerDocument&&Q.ownerDocument.defaultView||window).getSelection(),Q={anchorNode:Q.anchorNode,anchorOffset:Q.anchorOffset,focusNode:Q.focusNode,focusOffset:Q.focusOffset}),Ka&&Dr(Ka,Q)||(Ka=Q,Q=rc(mu,"onSelect"),0TA||(m.current=zl[TA],zl[TA]=null,TA--)}function bs(m,C){TA++,zl[TA]=m.current,m.current=C}var Hc={},ba=_a(Hc),il=_a(!1),gs=Hc;function xr(m,C){var D=m.type.contextTypes;if(!D)return Hc;var Q=m.stateNode;if(Q&&Q.__reactInternalMemoizedUnmaskedChildContext===C)return Q.__reactInternalMemoizedMaskedChildContext;var le={},ge;for(ge in D)le[ge]=C[ge];return Q&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=C,m.__reactInternalMemoizedMaskedChildContext=le),le}function xa(m){return m=m.childContextTypes,m!=null}function Zc(){Us(il),Us(ba)}function nf(m,C,D){if(ba.current!==Hc)throw Error(t(168));bs(ba,C),bs(il,D)}function ac(m,C,D){var Q=m.stateNode;if(C=C.childContextTypes,typeof Q.getChildContext!="function")return D;Q=Q.getChildContext();for(var le in Q)if(!(le in C))throw Error(t(108,Pt(m)||"Unknown",le));return we({},D,Q)}function yl(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||Hc,gs=ba.current,bs(ba,m),bs(il,il.current),!0}function Xd(m,C,D){var Q=m.stateNode;if(!Q)throw Error(t(169));D?(m=ac(m,C,gs),Q.__reactInternalMemoizedMergedChildContext=m,Us(il),Us(ba),bs(ba,m)):Us(il),bs(il,D)}var Mi=null,Md=!1,wd=!1;function $u(m){Mi===null?Mi=[m]:Mi.push(m)}function Sc(m){Md=!0,$u(m)}function lc(){if(!wd&&Mi!==null){wd=!0;var m=0,C=oi;try{var D=Mi;for(oi=1;m>=tt,le-=tt,ol=1<<32-Cn(C)+le|D<ji?(Gl=Pi,Pi=null):Gl=Pi.sibling;var ys=or(hn,Pi,yn[ji],Cr);if(ys===null){Pi===null&&(Pi=Gl);break}m&&Pi&&ys.alternate===null&&C(hn,Pi),en=ge(ys,en,ji),Ti===null?Xr=ys:Ti.sibling=ys,Ti=ys,Pi=Gl}if(ji===yn.length)return D(hn,Pi),Eo&&PA(hn,ji),Xr;if(Pi===null){for(;jiji?(Gl=Pi,Pi=null):Gl=Pi.sibling;var oh=or(hn,Pi,ys.value,Cr);if(oh===null){Pi===null&&(Pi=Gl);break}m&&Pi&&oh.alternate===null&&C(hn,Pi),en=ge(oh,en,ji),Ti===null?Xr=oh:Ti.sibling=oh,Ti=oh,Pi=Gl}if(ys.done)return D(hn,Pi),Eo&&PA(hn,ji),Xr;if(Pi===null){for(;!ys.done;ji++,ys=yn.next())ys=mr(hn,ys.value,Cr),ys!==null&&(en=ge(ys,en,ji),Ti===null?Xr=ys:Ti.sibling=ys,Ti=ys);return Eo&&PA(hn,ji),Xr}for(Pi=Q(hn,Pi);!ys.done;ji++,ys=yn.next())ys=Vr(Pi,hn,ji,ys.value,Cr),ys!==null&&(m&&ys.alternate!==null&&Pi.delete(ys.key===null?ji:ys.key),en=ge(ys,en,ji),Ti===null?Xr=ys:Ti.sibling=ys,Ti=ys);return m&&Pi.forEach(function(l1){return C(hn,l1)}),Eo&&PA(hn,ji),Xr}function xl(hn,en,yn,Cr){if(typeof yn=="object"&&yn!==null&&yn.type===G&&yn.key===null&&(yn=yn.props.children),typeof yn=="object"&&yn!==null){switch(yn.$$typeof){case V:e:{for(var Xr=yn.key,Ti=en;Ti!==null;){if(Ti.key===Xr){if(Xr=yn.type,Xr===G){if(Ti.tag===7){D(hn,Ti.sibling),en=le(Ti,yn.props.children),en.return=hn,hn=en;break e}}else if(Ti.elementType===Xr||typeof Xr=="object"&&Xr!==null&&Xr.$$typeof===at&&sf(Xr)===Ti.type){D(hn,Ti.sibling),en=le(Ti,yn.props),en.ref=Os(hn,Ti,yn),en.return=hn,hn=en;break e}D(hn,Ti);break}else C(hn,Ti);Ti=Ti.sibling}yn.type===G?(en=$f(yn.props.children,hn.mode,Cr,yn.key),en.return=hn,hn=en):(Cr=Vf(yn.type,yn.key,yn.props,null,hn.mode,Cr),Cr.ref=Os(hn,en,yn),Cr.return=hn,hn=Cr)}return tt(hn);case ne:e:{for(Ti=yn.key;en!==null;){if(en.key===Ti)if(en.tag===4&&en.stateNode.containerInfo===yn.containerInfo&&en.stateNode.implementation===yn.implementation){D(hn,en.sibling),en=le(en,yn.children||[]),en.return=hn,hn=en;break e}else{D(hn,en);break}else C(hn,en);en=en.sibling}en=n0(yn,hn.mode,Cr),en.return=hn,hn=en}return tt(hn);case at:return Ti=yn._init,xl(hn,en,Ti(yn._payload),Cr)}if(dr(yn))return ai(hn,en,yn,Cr);if(Ne(yn))return ui(hn,en,yn,Cr);Is(hn,yn)}return typeof yn=="string"&&yn!==""||typeof yn=="number"?(yn=""+yn,en!==null&&en.tag===6?(D(hn,en.sibling),en=le(en,yn),en.return=hn,hn=en):(D(hn,en),en=t0(yn,hn.mode,Cr),en.return=hn,hn=en),tt(hn)):D(hn,en)}return xl}var ks=Zu(!0),Oc=Zu(!1),bu=_a(null),Cl=null,ou=null,Ic=null;function xu(){Ic=ou=Cl=null}function ha(m){var C=bu.current;Us(bu),m._currentValue=C}function Qs(m,C,D){for(;m!==null;){var Q=m.alternate;if((m.childLanes&C)!==C?(m.childLanes|=C,Q!==null&&(Q.childLanes|=C)):Q!==null&&(Q.childLanes&C)!==C&&(Q.childLanes|=C),m===D)break;m=m.return}}function su(m,C){Cl=m,Ic=ou=null,m=m.dependencies,m!==null&&m.firstContext!==null&&((m.lanes&C)!==0&&(El=!0),m.firstContext=null)}function au(m){var C=m._currentValue;if(Ic!==m)if(m={context:m,memoizedValue:C,next:null},ou===null){if(Cl===null)throw Error(t(308));ou=m,Cl.dependencies={lanes:0,firstContext:m}}else ou=ou.next=m;return C}var RA=null;function Mu(m){RA===null?RA=[m]:RA.push(m)}function Ac(m,C,D,Q){var le=C.interleaved;return le===null?(D.next=D,Mu(C)):(D.next=le.next,le.next=D),C.interleaved=D,fA(m,Q)}function fA(m,C){m.lanes|=C;var D=m.alternate;for(D!==null&&(D.lanes|=C),D=m,m=m.return;m!==null;)m.childLanes|=C,D=m.alternate,D!==null&&(D.childLanes|=C),D=m,m=m.return;return D.tag===3?D.stateNode:null}var jl=!1;function Xc(m){m.updateQueue={baseState:m.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function I(m,C){m=m.updateQueue,C.updateQueue===m&&(C.updateQueue={baseState:m.baseState,firstBaseUpdate:m.firstBaseUpdate,lastBaseUpdate:m.lastBaseUpdate,shared:m.shared,effects:m.effects})}function a(m,C){return{eventTime:m,lane:C,tag:0,payload:null,callback:null,next:null}}function c(m,C,D){var Q=m.updateQueue;if(Q===null)return null;if(Q=Q.shared,(Ci&2)!==0){var le=Q.pending;return le===null?C.next=C:(C.next=le.next,le.next=C),Q.pending=C,fA(m,D)}return le=Q.interleaved,le===null?(C.next=C,Mu(Q)):(C.next=le.next,le.next=C),Q.interleaved=C,fA(m,D)}function _(m,C,D){if(C=C.updateQueue,C!==null&&(C=C.shared,(D&4194240)!==0)){var Q=C.lanes;Q&=m.pendingLanes,D|=Q,C.lanes=D,Ja(m,D)}}function M(m,C){var D=m.updateQueue,Q=m.alternate;if(Q!==null&&(Q=Q.updateQueue,D===Q)){var le=null,ge=null;if(D=D.firstBaseUpdate,D!==null){do{var tt={eventTime:D.eventTime,lane:D.lane,tag:D.tag,payload:D.payload,callback:D.callback,next:null};ge===null?le=ge=tt:ge=ge.next=tt,D=D.next}while(D!==null);ge===null?le=ge=C:ge=ge.next=C}else le=ge=C;D={baseState:Q.baseState,firstBaseUpdate:le,lastBaseUpdate:ge,shared:Q.shared,effects:Q.effects},m.updateQueue=D;return}m=D.lastBaseUpdate,m===null?D.firstBaseUpdate=C:m.next=C,D.lastBaseUpdate=C}function T(m,C,D,Q){var le=m.updateQueue;jl=!1;var ge=le.firstBaseUpdate,tt=le.lastBaseUpdate,Ot=le.shared.pending;if(Ot!==null){le.shared.pending=null;var Wt=Ot,wn=Wt.next;Wt.next=null,tt===null?ge=wn:tt.next=wn,tt=Wt;var ir=m.alternate;ir!==null&&(ir=ir.updateQueue,Ot=ir.lastBaseUpdate,Ot!==tt&&(Ot===null?ir.firstBaseUpdate=wn:Ot.next=wn,ir.lastBaseUpdate=Wt))}if(ge!==null){var mr=le.baseState;tt=0,ir=wn=Wt=null,Ot=ge;do{var or=Ot.lane,Vr=Ot.eventTime;if((Q&or)===or){ir!==null&&(ir=ir.next={eventTime:Vr,lane:0,tag:Ot.tag,payload:Ot.payload,callback:Ot.callback,next:null});e:{var ai=m,ui=Ot;switch(or=C,Vr=D,ui.tag){case 1:if(ai=ui.payload,typeof ai=="function"){mr=ai.call(Vr,mr,or);break e}mr=ai;break e;case 3:ai.flags=ai.flags&-65537|128;case 0:if(ai=ui.payload,or=typeof ai=="function"?ai.call(Vr,mr,or):ai,or==null)break e;mr=we({},mr,or);break e;case 2:jl=!0}}Ot.callback!==null&&Ot.lane!==0&&(m.flags|=64,or=le.effects,or===null?le.effects=[Ot]:or.push(Ot))}else Vr={eventTime:Vr,lane:or,tag:Ot.tag,payload:Ot.payload,callback:Ot.callback,next:null},ir===null?(wn=ir=Vr,Wt=mr):ir=ir.next=Vr,tt|=or;if(Ot=Ot.next,Ot===null){if(Ot=le.shared.pending,Ot===null)break;or=Ot,Ot=or.next,or.next=null,le.lastBaseUpdate=or,le.shared.pending=null}}while(!0);if(ir===null&&(Wt=mr),le.baseState=Wt,le.firstBaseUpdate=wn,le.lastBaseUpdate=ir,C=le.shared.interleaved,C!==null){le=C;do tt|=le.lane,le=le.next;while(le!==C)}else ge===null&&(le.shared.lanes=0);Ou|=tt,m.lanes=tt,m.memoizedState=mr}}function z(m,C,D){if(m=C.effects,C.effects=null,m!==null)for(C=0;CD?D:4,m(!0);var Q=Rt.transition;Rt.transition={};try{m(!1),C()}finally{oi=D,Rt.transition=Q}}function Eh(){return _o().memoizedState}function jf(m,C,D){var Q=rh(m);if(D={lane:Q,action:D,hasEagerState:!1,eagerState:null,next:null},cc(m))Ts(C,D);else if(D=Ac(m,C,D,Q),D!==null){var le=_A();nd(D,m,Q,le),Su(D,C,Q)}}function Bh(m,C,D){var Q=rh(m),le={lane:Q,action:D,hasEagerState:!1,eagerState:null,next:null};if(cc(m))Ts(C,le);else{var ge=m.alternate;if(m.lanes===0&&(ge===null||ge.lanes===0)&&(ge=C.lastRenderedReducer,ge!==null))try{var tt=C.lastRenderedState,Ot=ge(tt,D);if(le.hasEagerState=!0,le.eagerState=Ot,an(Ot,tt)){var Wt=C.interleaved;Wt===null?(le.next=le,Mu(C)):(le.next=Wt.next,Wt.next=le),C.interleaved=le;return}}catch{}finally{}D=Ac(m,C,le,Q),D!==null&&(le=_A(),nd(D,m,Q,le),Su(D,C,Q))}}function cc(m){var C=m.alternate;return m===It||C!==null&&C===It}function Ts(m,C){En=Mn=!0;var D=m.pending;D===null?C.next=C:(C.next=D.next,D.next=C),m.pending=C}function Su(m,C,D){if((D&4194240)!==0){var Q=C.lanes;Q&=m.pendingLanes,D|=Q,C.lanes=D,Ja(m,D)}}var Jd={readContext:au,useCallback:zn,useContext:zn,useEffect:zn,useImperativeHandle:zn,useInsertionEffect:zn,useLayoutEffect:zn,useMemo:zn,useReducer:zn,useRef:zn,useState:zn,useDebugValue:zn,useDeferredValue:zn,useTransition:zn,useMutableSource:zn,useSyncExternalStore:zn,useId:zn,unstable_isNewReconciler:!1},af={readContext:au,useCallback:function(m,C){return Xi().memoizedState=[m,C===void 0?null:C],m},useContext:au,useEffect:mA,useImperativeHandle:function(m,C,D){return D=D!=null?D.concat([m]):null,Xu(4194308,4,gA.bind(null,C,m),D)},useLayoutEffect:function(m,C){return Xu(4194308,4,m,C)},useInsertionEffect:function(m,C){return Xu(4,2,m,C)},useMemo:function(m,C){var D=Xi();return C=C===void 0?null:C,m=m(),D.memoizedState=[m,C],m},useReducer:function(m,C,D){var Q=Xi();return C=D!==void 0?D(C):C,Q.memoizedState=Q.baseState=C,m={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:m,lastRenderedState:C},Q.queue=m,m=m.dispatch=jf.bind(null,It,m),[Q.memoizedState,m]},useRef:function(m){var C=Xi();return m={current:m},C.memoizedState=m},useState:wu,useDebugValue:zo,useDeferredValue:function(m){return Xi().memoizedState=m},useTransition:function(){var m=wu(!1),C=m[0];return m=zf.bind(null,m[1]),Xi().memoizedState=m,[C,m]},useMutableSource:function(){},useSyncExternalStore:function(m,C,D){var Q=It,le=Xi();if(Eo){if(D===void 0)throw Error(t(407));D=D()}else{if(D=C(),ls===null)throw Error(t(349));(Ut&30)!==0||Fa(Q,C,D)}le.memoizedState=D;var ge={value:D,getSnapshot:C};return le.queue=ge,mA(es.bind(null,Q,ge,m),[m]),Q.flags|=2048,_l(9,ss.bind(null,Q,ge,D,C),void 0,null),D},useId:function(){var m=Xi(),C=ls.identifierPrefix;if(Eo){var D=Uo,Q=ol;D=(Q&~(1<<32-Cn(Q)-1)).toString(32)+D,C=":"+C+"R"+D,D=bn++,0<\/script>",m=m.removeChild(m.firstChild)):typeof Q.is=="string"?m=tt.createElement(D,{is:Q.is}):(m=tt.createElement(D),D==="select"&&(tt=m,Q.multiple?tt.multiple=!0:Q.size&&(tt.size=Q.size))):m=tt.createElementNS(m,D),m[kA]=C,m[wc]=Q,bl(m,C,!1,!1),C.stateNode=m;e:{switch(tt=ve(D,Q),D){case"dialog":cs("cancel",m),cs("close",m),le=Q;break;case"iframe":case"object":case"embed":cs("load",m),le=Q;break;case"video":case"audio":for(le=0;lepf&&(C.flags|=128,Q=!0,Ph(ge,!1),C.lanes=4194304)}else{if(!Q)if(m=ft(tt),m!==null){if(C.flags|=128,Q=!0,D=m.updateQueue,D!==null&&(C.updateQueue=D,C.flags|=4),Ph(ge,!0),ge.tail===null&&ge.tailMode==="hidden"&&!tt.alternate&&!Eo)return uu(C),null}else 2*Yi()-ge.renderingStartTime>pf&&D!==1073741824&&(C.flags|=128,Q=!0,Ph(ge,!1),C.lanes=4194304);ge.isBackwards?(tt.sibling=C.child,C.child=tt):(D=ge.last,D!==null?D.sibling=tt:C.child=tt,ge.last=tt)}return ge.tail!==null?(C=ge.tail,ge.rendering=C,ge.tail=C.sibling,ge.renderingStartTime=Yi(),C.sibling=null,D=ut.current,bs(ut,Q?D&1|2:D&1),C):(uu(C),null);case 22:case 23:return $m(),Q=C.memoizedState!==null,m!==null&&m.memoizedState!==null!==Q&&(C.flags|=8192),Q&&(C.mode&1)!==0?(xs&1073741824)!==0&&(uu(C),C.subtreeFlags&6&&(C.flags|=8192)):uu(C),null;case 24:return null;case 25:return null}throw Error(t(156,C.tag))}function A(m,C){switch(uc(C),C.tag){case 1:return xa(C.type)&&Zc(),m=C.flags,m&65536?(C.flags=m&-65537|128,C):null;case 3:return $e(),Us(il),Us(ba),Et(),m=C.flags,(m&65536)!==0&&(m&128)===0?(C.flags=m&-65537|128,C):null;case 5:return mt(C),null;case 13:if(Us(ut),m=C.memoizedState,m!==null&&m.dehydrated!==null){if(C.alternate===null)throw Error(t(340));al()}return m=C.flags,m&65536?(C.flags=m&-65537|128,C):null;case 19:return Us(ut),null;case 4:return $e(),null;case 10:return ha(C.type._context),null;case 22:case 23:return $m(),null;case 24:return null;default:return null}}var g=!1,S=!1,E=typeof WeakSet=="function"?WeakSet:Set,R=null;function Z(m,C){var D=m.ref;if(D!==null)if(typeof D=="function")try{D(null)}catch(Q){ul(m,C,Q)}else D.current=null}function Ae(m,C,D){try{D()}catch(Q){ul(m,C,Q)}}var Ce=!1;function Ie(m,C){if(bd=Oe,m=Jo(),JA(m)){if("selectionStart"in m)var D={start:m.selectionStart,end:m.selectionEnd};else e:{D=(D=m.ownerDocument)&&D.defaultView||window;var Q=D.getSelection&&D.getSelection();if(Q&&Q.rangeCount!==0){D=Q.anchorNode;var le=Q.anchorOffset,ge=Q.focusNode;Q=Q.focusOffset;try{D.nodeType,ge.nodeType}catch{D=null;break e}var tt=0,Ot=-1,Wt=-1,wn=0,ir=0,mr=m,or=null;t:for(;;){for(var Vr;mr!==D||le!==0&&mr.nodeType!==3||(Ot=tt+le),mr!==ge||Q!==0&&mr.nodeType!==3||(Wt=tt+Q),mr.nodeType===3&&(tt+=mr.nodeValue.length),(Vr=mr.firstChild)!==null;)or=mr,mr=Vr;for(;;){if(mr===m)break t;if(or===D&&++wn===le&&(Ot=tt),or===ge&&++ir===Q&&(Wt=tt),(Vr=mr.nextSibling)!==null)break;mr=or,or=mr.parentNode}mr=Vr}D=Ot===-1||Wt===-1?null:{start:Ot,end:Wt}}else D=null}D=D||{start:0,end:0}}else D=null;for(nl={focusedElem:m,selectionRange:D},Oe=!1,R=C;R!==null;)if(C=R,m=C.child,(C.subtreeFlags&1028)!==0&&m!==null)m.return=C,R=m;else for(;R!==null;){C=R;try{var ai=C.alternate;if((C.flags&1024)!==0)switch(C.tag){case 0:case 11:case 15:break;case 1:if(ai!==null){var ui=ai.memoizedProps,xl=ai.memoizedState,hn=C.stateNode,en=hn.getSnapshotBeforeUpdate(C.elementType===C.type?ui:ll(C.type,ui),xl);hn.__reactInternalSnapshotBeforeUpdate=en}break;case 3:var yn=C.stateNode.containerInfo;yn.nodeType===1?yn.textContent="":yn.nodeType===9&&yn.documentElement&&yn.removeChild(yn.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Cr){ul(C,C.return,Cr)}if(m=C.sibling,m!==null){m.return=C.return,R=m;break}R=C.return}return ai=Ce,Ce=!1,ai}function je(m,C,D){var Q=C.updateQueue;if(Q=Q!==null?Q.lastEffect:null,Q!==null){var le=Q=Q.next;do{if((le.tag&m)===m){var ge=le.destroy;le.destroy=void 0,ge!==void 0&&Ae(C,D,ge)}le=le.next}while(le!==Q)}}function gt(m,C){if(C=C.updateQueue,C=C!==null?C.lastEffect:null,C!==null){var D=C=C.next;do{if((D.tag&m)===m){var Q=D.create;D.destroy=Q()}D=D.next}while(D!==C)}}function Mt(m){var C=m.ref;if(C!==null){var D=m.stateNode;switch(m.tag){case 5:m=D;break;default:m=D}typeof C=="function"?C(m):C.current=m}}function Xt(m){var C=m.alternate;C!==null&&(m.alternate=null,Xt(C)),m.child=null,m.deletions=null,m.sibling=null,m.tag===5&&(C=m.stateNode,C!==null&&(delete C[kA],delete C[wc],delete C[Sh],delete C[ot],delete C[Vu])),m.stateNode=null,m.return=null,m.dependencies=null,m.memoizedProps=null,m.memoizedState=null,m.pendingProps=null,m.stateNode=null,m.updateQueue=null}function Qt(m){return m.tag===5||m.tag===3||m.tag===4}function xn(m){e:for(;;){for(;m.sibling===null;){if(m.return===null||Qt(m.return))return null;m=m.return}for(m.sibling.return=m.return,m=m.sibling;m.tag!==5&&m.tag!==6&&m.tag!==18;){if(m.flags&2||m.child===null||m.tag===4)continue e;m.child.return=m,m=m.child}if(!(m.flags&2))return m.stateNode}}function Fn(m,C,D){var Q=m.tag;if(Q===5||Q===6)m=m.stateNode,C?D.nodeType===8?D.parentNode.insertBefore(m,C):D.insertBefore(m,C):(D.nodeType===8?(C=D.parentNode,C.insertBefore(m,D)):(C=D,C.appendChild(m)),D=D._reactRootContainer,D!=null||C.onclick!==null||(C.onclick=oc));else if(Q!==4&&(m=m.child,m!==null))for(Fn(m,C,D),m=m.sibling;m!==null;)Fn(m,C,D),m=m.sibling}function Ar(m,C,D){var Q=m.tag;if(Q===5||Q===6)m=m.stateNode,C?D.insertBefore(m,C):D.appendChild(m);else if(Q!==4&&(m=m.child,m!==null))for(Ar(m,C,D),m=m.sibling;m!==null;)Ar(m,C,D),m=m.sibling}var tr=null,gr=!1;function yr(m,C,D){for(D=D.child;D!==null;)Rr(m,C,D),D=D.sibling}function Rr(m,C,D){if(Ye&&typeof Ye.onCommitFiberUnmount=="function")try{Ye.onCommitFiberUnmount(Zs,D)}catch{}switch(D.tag){case 5:S||Z(D,C);case 6:var Q=tr,le=gr;tr=null,yr(m,C,D),tr=Q,gr=le,tr!==null&&(gr?(m=tr,D=D.stateNode,m.nodeType===8?m.parentNode.removeChild(D):m.removeChild(D)):tr.removeChild(D.stateNode));break;case 18:tr!==null&&(gr?(m=tr,D=D.stateNode,m.nodeType===8?Zd(m.parentNode,D):m.nodeType===1&&Zd(m,D),Ki(m)):Zd(tr,D.stateNode));break;case 4:Q=tr,le=gr,tr=D.stateNode.containerInfo,gr=!0,yr(m,C,D),tr=Q,gr=le;break;case 0:case 11:case 14:case 15:if(!S&&(Q=D.updateQueue,Q!==null&&(Q=Q.lastEffect,Q!==null))){le=Q=Q.next;do{var ge=le,tt=ge.destroy;ge=ge.tag,tt!==void 0&&((ge&2)!==0||(ge&4)!==0)&&Ae(D,C,tt),le=le.next}while(le!==Q)}yr(m,C,D);break;case 1:if(!S&&(Z(D,C),Q=D.stateNode,typeof Q.componentWillUnmount=="function"))try{Q.props=D.memoizedProps,Q.state=D.memoizedState,Q.componentWillUnmount()}catch(Ot){ul(D,C,Ot)}yr(m,C,D);break;case 21:yr(m,C,D);break;case 22:D.mode&1?(S=(Q=S)||D.memoizedState!==null,yr(m,C,D),S=Q):yr(m,C,D);break;default:yr(m,C,D)}}function ti(m){var C=m.updateQueue;if(C!==null){m.updateQueue=null;var D=m.stateNode;D===null&&(D=m.stateNode=new E),C.forEach(function(Q){var le=WA.bind(null,m,Q);D.has(Q)||(D.add(Q),Q.then(le,le))})}}function jr(m,C){var D=C.deletions;if(D!==null)for(var Q=0;Qle&&(le=tt),Q&=~ge}if(Q=le,Q=Yi()-Q,Q=(120>Q?120:480>Q?480:1080>Q?1080:1920>Q?1920:3e3>Q?3e3:4320>Q?4320:1960*Wl(Q/1960))-Q,10m?16:m,mf===null)var Q=!1;else{if(m=mf,mf=null,jA=0,(Ci&6)!==0)throw Error(t(331));var le=Ci;for(Ci|=4,R=m.current;R!==null;){var ge=R,tt=ge.child;if((R.flags&16)!==0){var Ot=ge.deletions;if(Ot!==null){for(var Wt=0;WtYi()-Qf?qf(m,0):CA|=D),NA(m,C)}function r1(m,C){C===0&&((m.mode&1)===0?C=1:(C=vo,vo<<=1,(vo&130023424)===0&&(vo=4194304)));var D=_A();m=fA(m,C),m!==null&&(xi(m,C,D),NA(m,D))}function i1(m){var C=m.memoizedState,D=0;C!==null&&(D=C.retryLane),r1(m,D)}function WA(m,C){var D=0;switch(m.tag){case 13:var Q=m.stateNode,le=m.memoizedState;le!==null&&(D=le.retryLane);break;case 19:Q=m.stateNode;break;default:throw Error(t(314))}Q!==null&&Q.delete(C),r1(m,D)}var Jm;Jm=function(m,C,D){if(m!==null)if(m.memoizedProps!==C.pendingProps||il.current)El=!0;else{if((m.lanes&D)===0&&(C.flags&128)===0)return El=!1,Ym(m,C,D);El=(m.flags&131072)!==0}else El=!1,Eo&&(C.flags&1048576)!==0&&Sd(C,_u,C.index);switch(C.lanes=0,C.tag){case 2:var Q=C.type;Ep(m,C),m=C.pendingProps;var le=xr(C,ba.current);su(C,D),le=Tr(null,C,Q,m,le,D);var ge=Zr();return C.flags|=1,typeof le=="object"&&le!==null&&typeof le.render=="function"&&le.$$typeof===void 0?(C.tag=1,C.memoizedState=null,C.updateQueue=null,xa(Q)?(ge=!0,yl(C)):ge=!1,C.memoizedState=le.state!==null&&le.state!==void 0?le.state:null,Xc(C),le.updater=Oh,C.stateNode=le,le._reactInternals=C,Mp(C,Q,m,D),C=th(null,C,Q,!0,ge,D)):(C.tag=0,Eo&&ge&&KA(C),Nl(null,C,le,D),C=C.child),C;case 16:Q=C.elementType;e:{switch(Ep(m,C),m=C.pendingProps,le=Q._init,Q=le(Q._payload),C.type=Q,le=C.tag=kp(Q),m=ll(Q,m),le){case 0:C=Bl(null,C,Q,m,D);break e;case 1:C=vA(null,C,Q,m,D);break e;case 11:C=Qm(null,C,Q,m,D);break e;case 14:C=Nf(null,C,Q,ll(Q.type,m),D);break e}throw Error(t(306,Q,""))}return C;case 0:return Q=C.type,le=C.pendingProps,le=C.elementType===Q?le:ll(Q,le),Bl(m,C,Q,le,D);case 1:return Q=C.type,le=C.pendingProps,le=C.elementType===Q?le:ll(Q,le),vA(m,C,Q,le,D);case 3:e:{if(Sp(C),m===null)throw Error(t(387));Q=C.pendingProps,ge=C.memoizedState,le=ge.element,I(m,C),T(C,Q,null,D);var tt=C.memoizedState;if(Q=tt.element,ge.isDehydrated)if(ge={element:Q,isDehydrated:!1,cache:tt.cache,pendingSuspenseBoundaries:tt.pendingSuspenseBoundaries,transitions:tt.transitions},C.updateQueue.baseState=ge,C.memoizedState=ge,C.flags&256){le=LA(Error(t(423)),C),C=dc(m,C,Q,D,le);break e}else if(Q!==le){le=LA(Error(t(424)),C),C=dc(m,C,Q,D,le);break e}else for(Da=nu(C.stateNode.containerInfo.firstChild),da=C,Eo=!0,ru=null,D=Oc(C,null,Q,D),C.child=D;D;)D.flags=D.flags&-3|4096,D=D.sibling;else{if(al(),Q===le){C=Eu(m,C,D);break e}Nl(m,C,Q,D)}C=C.child}return C;case 5:return Xe(C),m===null&&vl(C),Q=C.type,le=C.pendingProps,ge=m!==null?m.memoizedProps:null,tt=le.children,vu(Q,le)?tt=null:ge!==null&&vu(Q,ge)&&(C.flags|=32),Bd(m,C),Nl(m,C,tt,D),C.child;case 6:return m===null&&vl(C),null;case 13:return ff(m,C,D);case 4:return Te(C,C.stateNode.containerInfo),Q=C.pendingProps,m===null?C.child=ks(C,null,Q,D):Nl(m,C,Q,D),C.child;case 11:return Q=C.type,le=C.pendingProps,le=C.elementType===Q?le:ll(Q,le),Qm(m,C,Q,le,D);case 7:return Nl(m,C,C.pendingProps,D),C.child;case 8:return Nl(m,C,C.pendingProps.children,D),C.child;case 12:return Nl(m,C,C.pendingProps.children,D),C.child;case 10:e:{if(Q=C.type._context,le=C.pendingProps,ge=C.memoizedProps,tt=le.value,bs(bu,Q._currentValue),Q._currentValue=tt,ge!==null)if(an(ge.value,tt)){if(ge.children===le.children&&!il.current){C=Eu(m,C,D);break e}}else for(ge=C.child,ge!==null&&(ge.return=C);ge!==null;){var Ot=ge.dependencies;if(Ot!==null){tt=ge.child;for(var Wt=Ot.firstContext;Wt!==null;){if(Wt.context===Q){if(ge.tag===1){Wt=a(-1,D&-D),Wt.tag=2;var wn=ge.updateQueue;if(wn!==null){wn=wn.shared;var ir=wn.pending;ir===null?Wt.next=Wt:(Wt.next=ir.next,ir.next=Wt),wn.pending=Wt}}ge.lanes|=D,Wt=ge.alternate,Wt!==null&&(Wt.lanes|=D),Qs(ge.return,D,C),Ot.lanes|=D;break}Wt=Wt.next}}else if(ge.tag===10)tt=ge.type===C.type?null:ge.child;else if(ge.tag===18){if(tt=ge.return,tt===null)throw Error(t(341));tt.lanes|=D,Ot=tt.alternate,Ot!==null&&(Ot.lanes|=D),Qs(tt,D,C),tt=ge.sibling}else tt=ge.child;if(tt!==null)tt.return=ge;else for(tt=ge;tt!==null;){if(tt===C){tt=null;break}if(ge=tt.sibling,ge!==null){ge.return=tt.return,tt=ge;break}tt=tt.return}ge=tt}Nl(m,C,le.children,D),C=C.child}return C;case 9:return le=C.type,Q=C.pendingProps.children,su(C,D),le=au(le),Q=Q(le),C.flags|=1,Nl(m,C,Q,D),C.child;case 14:return Q=C.type,le=ll(Q,C.pendingProps),le=ll(Q.type,le),Nf(m,C,Q,le,D);case 15:return Ho(m,C,C.type,C.pendingProps,D);case 17:return Q=C.type,le=C.pendingProps,le=C.elementType===Q?le:ll(Q,le),Ep(m,C),C.tag=1,xa(Q)?(m=!0,yl(C)):m=!1,su(C,D),Ed(C,Q,le),Mp(C,Q,le,D),th(null,C,Q,!0,m,D);case 19:return UA(m,C,D);case 22:return Wf(m,C,D)}throw Error(t(156,C.tag))};function X0(m,C){return Sl(m,C)}function vf(m,C,D,Q){this.tag=m,this.key=D,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=C,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Q,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function GA(m,C,D,Q){return new vf(m,C,D,Q)}function Cf(m){return m=m.prototype,!(!m||!m.isReactComponent)}function kp(m){if(typeof m=="function")return Cf(m)?1:0;if(m!=null){if(m=m.$$typeof,m===me)return 11;if(m===xe)return 14}return 2}function hc(m,C){var D=m.alternate;return D===null?(D=GA(m.tag,C,m.key,m.mode),D.elementType=m.elementType,D.type=m.type,D.stateNode=m.stateNode,D.alternate=m,m.alternate=D):(D.pendingProps=C,D.type=m.type,D.flags=0,D.subtreeFlags=0,D.deletions=null),D.flags=m.flags&14680064,D.childLanes=m.childLanes,D.lanes=m.lanes,D.child=m.child,D.memoizedProps=m.memoizedProps,D.memoizedState=m.memoizedState,D.updateQueue=m.updateQueue,C=m.dependencies,D.dependencies=C===null?null:{lanes:C.lanes,firstContext:C.firstContext},D.sibling=m.sibling,D.index=m.index,D.ref=m.ref,D}function Vf(m,C,D,Q,le,ge){var tt=2;if(Q=m,typeof m=="function")Cf(m)&&(tt=1);else if(typeof m=="string")tt=5;else e:switch(m){case G:return $f(D.children,le,ge,C);case oe:tt=8,le|=8;break;case he:return m=GA(12,D,C,le|2),m.elementType=he,m.lanes=ge,m;case Se:return m=GA(13,D,C,le),m.elementType=Se,m.lanes=ge,m;case Ke:return m=GA(19,D,C,le),m.elementType=Ke,m.lanes=ge,m;case Ze:return e0(D,le,ge,C);default:if(typeof m=="object"&&m!==null)switch(m.$$typeof){case fe:tt=10;break e;case Ee:tt=9;break e;case me:tt=11;break e;case xe:tt=14;break e;case at:tt=16,Q=null;break e}throw Error(t(130,m==null?m:typeof m,""))}return C=GA(tt,D,C,le),C.elementType=m,C.type=Q,C.lanes=ge,C}function $f(m,C,D,Q){return m=GA(7,m,Q,C),m.lanes=D,m}function e0(m,C,D,Q){return m=GA(22,m,Q,C),m.elementType=Ze,m.lanes=D,m.stateNode={isHidden:!1},m}function t0(m,C,D){return m=GA(6,m,null,C),m.lanes=D,m}function n0(m,C,D){return C=GA(4,m.children!==null?m.children:[],m.key,C),C.lanes=D,C.stateNode={containerInfo:m.containerInfo,pendingChildren:null,implementation:m.implementation},C}function Hy(m,C,D,Q,le){this.tag=C,this.containerInfo=m,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cs(0),this.expirationTimes=Cs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cs(0),this.identifierPrefix=Q,this.onRecoverableError=le,this.mutableSourceEagerHydrationData=null}function r0(m,C,D,Q,le,ge,tt,Ot,Wt){return m=new Hy(m,C,D,Ot,Wt),C===1?(C=1,ge===!0&&(C|=8)):C=0,ge=GA(3,null,null,C),m.current=ge,ge.stateNode=m,ge.memoizedState={element:Q,isDehydrated:D,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xc(ge),m}function o1(m,C,D){var Q=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),g3.exports=HN(),g3.exports}var l8;function ZN(){if(l8)return T_;l8=1;var n=IC();return T_.createRoot=n.createRoot,T_.hydrateRoot=n.hydrateRoot,T_}var XN=ZN();const JN="modulepreload",eW=function(n){return"/maputnik/"+n},u8={},d1=function(e,t,r){let i=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),o=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.allSettled(t.map(f=>{if(f=eW(f),f in u8)return;u8[f]=!0;const y=f.endsWith(".css"),x=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${x}`))return;const B=document.createElement("link");if(B.rel=y?"stylesheet":JN,y||(B.as="script"),B.crossOrigin="",B.href=f,o&&B.setAttribute("nonce",o),document.head.appendChild(B),y)return new Promise((O,P)=>{B.addEventListener("load",O),B.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=l,window.dispatchEvent(o),!o.defaultPrevented)throw l}return i.then(l=>{for(const o of l||[])o.status==="rejected"&&s(o.reason);return e().catch(s)})},tW=(n,e,t)=>{const r=n[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((i,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Io=n=>typeof n=="string",sv=()=>{let n,e;const t=new Promise((r,i)=>{n=r,e=i});return t.resolve=n,t.reject=e,t},A8=n=>n==null?"":""+n,nW=(n,e,t)=>{n.forEach(r=>{e[r]&&(t[r]=e[r])})},rW=/###/g,c8=n=>n&&n.indexOf("###")>-1?n.replace(rW,"."):n,d8=n=>!n||Io(n),Uv=(n,e,t)=>{const r=Io(e)?e.split("."):e;let i=0;for(;i{const{obj:r,k:i}=Uv(n,e,Object);if(r!==void 0||e.length===1){r[i]=t;return}let s=e[e.length-1],l=e.slice(0,e.length-1),o=Uv(n,l,Object);for(;o.obj===void 0&&l.length;)s=`${l[l.length-1]}.${s}`,l=l.slice(0,l.length-1),o=Uv(n,l,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${s}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${s}`]=t},iW=(n,e,t,r)=>{const{obj:i,k:s}=Uv(n,e,Object);i[s]=i[s]||[],i[s].push(t)},Db=(n,e)=>{const{obj:t,k:r}=Uv(n,e);if(t&&Object.prototype.hasOwnProperty.call(t,r))return t[r]},oW=(n,e,t)=>{const r=Db(n,t);return r!==void 0?r:Db(e,t)},vD=(n,e,t)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in n?Io(n[r])||n[r]instanceof String||Io(e[r])||e[r]instanceof String?t&&(n[r]=e[r]):vD(n[r],e[r],t):n[r]=e[r]);return n},h1=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var sW={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const aW=n=>Io(n)?n.replace(/[&<>"'\/]/g,e=>sW[e]):n;class lW{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const uW=[" ",",","?","!",";"],AW=new lW(20),cW=(n,e,t)=>{e=e||"",t=t||"";const r=uW.filter(l=>e.indexOf(l)<0&&t.indexOf(l)<0);if(r.length===0)return!0;const i=AW.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let s=!i.test(n);if(!s){const l=n.indexOf(t);l>0&&!i.test(n.substring(0,l))&&(s=!0)}return s},bE=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!n)return;if(n[e])return Object.prototype.hasOwnProperty.call(n,e)?n[e]:void 0;const r=e.split(t);let i=n;for(let s=0;s-1&&fn==null?void 0:n.replace("_","-"),dW={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){var t,r;(r=(t=console==null?void 0:console[n])==null?void 0:t.apply)==null||r.call(t,console,e)}};class Lb{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||dW,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(t)||0;this.observers[r].set(t,i+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i{let[o,f]=l;for(let y=0;y{let[o,f]=l;for(let y=0;y1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){var y,x;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],r&&(Array.isArray(r)?o.push(...r):Io(r)&&s?o.push(...r.split(s)):o.push(r)));const f=Db(this.data,o);return!f&&!t&&!r&&e.indexOf(".")>-1&&(e=o[0],t=o[1],r=o.slice(2).join(".")),f||!l||!Io(r)?f:bE((x=(y=this.data)==null?void 0:y[e])==null?void 0:x[t],r,s)}addResource(e,t,r,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let o=[e,t];r&&(o=o.concat(l?r.split(l):r)),e.indexOf(".")>-1&&(o=e.split("."),i=t,t=o[1]),this.addNamespaces(t),h8(this.data,o,i),s.silent||this.emit("added",e,t,r,i)}addResources(e,t,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(Io(r[s])||Array.isArray(r[s]))&&this.addResource(e,t,s,r[s],{silent:!0});i.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,i,s){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),i=r,r=t,t=o[1]),this.addNamespaces(t);let f=Db(this.data,o)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?vD(f,r,s):f={...f,...r},h8(this.data,o,f),l.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(i=>t[i]&&Object.keys(t[i]).length>0)}toJSON(){return this.data}}var CD={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,r,i){return n.forEach(s=>{var l;e=((l=this.processors[s])==null?void 0:l.process(e,t,r,i))??e}),e}};const p8={},m8=n=>!Io(n)&&typeof n!="boolean"&&typeof n!="number";class Ub extends z2{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),nW(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Gp.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const r=this.resolve(e,t);return(r==null?void 0:r.res)!==void 0}extractFromKey(e,t){let r=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let s=t.ns||this.options.defaultNS||[];const l=r&&e.indexOf(r)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!cW(e,r,i);if(l&&!o){const f=e.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:e,namespaces:Io(s)?[s]:s};const y=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(y[0])>-1)&&(s=y.shift()),e=y.join(i)}return{key:e,namespaces:Io(s)?[s]:s}}translate(e,t,r){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:l,namespaces:o}=this.extractFromKey(e[e.length-1],t),f=o[o.length-1],y=t.lng||this.language,x=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((y==null?void 0:y.toLowerCase())==="cimode"){if(x){const Ee=t.nsSeparator||this.options.nsSeparator;return i?{res:`${f}${Ee}${l}`,usedKey:l,exactUsedKey:l,usedLng:y,usedNS:f,usedParams:this.getUsedParamsDetails(t)}:`${f}${Ee}${l}`}return i?{res:l,usedKey:l,exactUsedKey:l,usedLng:y,usedNS:f,usedParams:this.getUsedParamsDetails(t)}:l}const B=this.resolve(e,t);let O=B==null?void 0:B.res;const P=(B==null?void 0:B.usedKey)||l,U=(B==null?void 0:B.exactUsedKey)||l,j=["[object Number]","[object Function]","[object RegExp]"],N=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,Y=!this.i18nFormat||this.i18nFormat.handleAsObject,H=t.count!==void 0&&!Io(t.count),se=Ub.hasDefaultValue(t),re=H?this.pluralResolver.getSuffix(y,t.count,t):"",V=t.ordinal&&H?this.pluralResolver.getSuffix(y,t.count,{ordinal:!1}):"",ne=H&&!t.ordinal&&t.count===0,G=ne&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${re}`]||t[`defaultValue${V}`]||t.defaultValue;let oe=O;Y&&!O&&se&&(oe=G);const he=m8(oe),fe=Object.prototype.toString.apply(oe);if(Y&&oe&&he&&j.indexOf(fe)<0&&!(Io(N)&&Array.isArray(oe))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Ee=this.options.returnedObjectHandler?this.options.returnedObjectHandler(P,oe,{...t,ns:o}):`key '${l} (${this.language})' returned an object instead of string.`;return i?(B.res=Ee,B.usedParams=this.getUsedParamsDetails(t),B):Ee}if(s){const Ee=Array.isArray(oe),me=Ee?[]:{},Se=Ee?U:P;for(const Ke in oe)if(Object.prototype.hasOwnProperty.call(oe,Ke)){const xe=`${Se}${s}${Ke}`;se&&!O?me[Ke]=this.translate(xe,{...t,defaultValue:m8(G)?G[Ke]:void 0,joinArrays:!1,ns:o}):me[Ke]=this.translate(xe,{...t,joinArrays:!1,ns:o}),me[Ke]===xe&&(me[Ke]=oe[Ke])}O=me}}else if(Y&&Io(N)&&Array.isArray(O))O=O.join(N),O&&(O=this.extendTranslation(O,e,t,r));else{let Ee=!1,me=!1;!this.isValidLookup(O)&&se&&(Ee=!0,O=G),this.isValidLookup(O)||(me=!0,O=l);const Ke=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&me?void 0:O,xe=se&&G!==O&&this.options.updateMissing;if(me||Ee||xe){if(this.logger.log(xe?"updateKey":"missingKey",y,f,l,xe?G:O),s){const Ne=this.resolve(l,{...t,keySeparator:!1});Ne&&Ne.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 at=[];const Ze=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ze&&Ze[0])for(let Ne=0;Ne{var bt;const He=se&&De!==O?De:Ke;this.options.missingKeyHandler?this.options.missingKeyHandler(Ne,f,we,He,xe,t):(bt=this.backendConnector)!=null&&bt.saveMissing&&this.backendConnector.saveMissing(Ne,f,we,He,xe,t),this.emit("missingKey",Ne,f,we,O)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?at.forEach(Ne=>{const we=this.pluralResolver.getSuffixes(Ne,t);ne&&t[`defaultValue${this.options.pluralSeparator}zero`]&&we.indexOf(`${this.options.pluralSeparator}zero`)<0&&we.push(`${this.options.pluralSeparator}zero`),we.forEach(De=>{Je([Ne],l+De,t[`defaultValue${De}`]||G)})}):Je(at,l,G))}O=this.extendTranslation(O,e,t,B,r),me&&O===l&&this.options.appendNamespaceToMissingKey&&(O=`${f}:${l}`),(me||Ee)&&this.options.parseMissingKeyHandler&&(O=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${f}:${l}`:l,Ee?O:void 0))}return i?(B.res=O,B.usedParams=this.getUsedParamsDetails(t),B):O}extendTranslation(e,t,r,i,s){var y,x;var l=this;if((y=this.i18nFormat)!=null&&y.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const B=Io(e)&&(((x=r==null?void 0:r.interpolation)==null?void 0:x.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let O;if(B){const U=e.match(this.interpolator.nestingRegexp);O=U&&U.length}let P=r.replace&&!Io(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(P={...this.options.interpolation.defaultVariables,...P}),e=this.interpolator.interpolate(e,P,r.lng||this.language||i.usedLng,r),B){const U=e.match(this.interpolator.nestingRegexp),j=U&&U.length;O1&&arguments[1]!==void 0?arguments[1]:{},r,i,s,l,o;return Io(e)&&(e=[e]),e.forEach(f=>{if(this.isValidLookup(r))return;const y=this.extractFromKey(f,t),x=y.key;i=x;let B=y.namespaces;this.options.fallbackNS&&(B=B.concat(this.options.fallbackNS));const O=t.count!==void 0&&!Io(t.count),P=O&&!t.ordinal&&t.count===0,U=t.context!==void 0&&(Io(t.context)||typeof t.context=="number")&&t.context!=="",j=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);B.forEach(N=>{var Y,H;this.isValidLookup(r)||(o=N,!p8[`${j[0]}-${N}`]&&((Y=this.utils)!=null&&Y.hasLoadedNamespace)&&!((H=this.utils)!=null&&H.hasLoadedNamespace(o))&&(p8[`${j[0]}-${N}`]=!0,this.logger.warn(`key "${i}" for languages "${j.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!!!")),j.forEach(se=>{var ne;if(this.isValidLookup(r))return;l=se;const re=[x];if((ne=this.i18nFormat)!=null&&ne.addLookupKeys)this.i18nFormat.addLookupKeys(re,x,se,N,t);else{let G;O&&(G=this.pluralResolver.getSuffix(se,t.count,t));const oe=`${this.options.pluralSeparator}zero`,he=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(O&&(re.push(x+G),t.ordinal&&G.indexOf(he)===0&&re.push(x+G.replace(he,this.options.pluralSeparator)),P&&re.push(x+oe)),U){const fe=`${x}${this.options.contextSeparator}${t.context}`;re.push(fe),O&&(re.push(fe+G),t.ordinal&&G.indexOf(he)===0&&re.push(fe+G.replace(he,this.options.pluralSeparator)),P&&re.push(fe+oe))}}let V;for(;V=re.pop();)this.isValidLookup(r)||(s=V,r=this.getResource(se,N,V,t))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:l,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,r){var s;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(e,t,r,i):this.resourceStore.getResource(e,t,r,i)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!Io(e.replace);let i=r?e.replace:e;if(r&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of t)delete i[s]}return i}static hasDefaultValue(e){const t="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&e[r]!==void 0)return!0;return!1}}class g8{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Gp.create("languageUtils")}getScriptPartFromCode(e){if(e=Fb(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Fb(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(Io(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(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 t;return e.forEach(r=>{if(t)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(r=>{if(t)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&(s.indexOf("-")>0&&i.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===i||s.indexOf(i)===0&&i.length>1))return s})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),Io(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],s=l=>{l&&(this.isSupportedCode(l)?i.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return Io(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):Io(e)&&s(this.formatLanguageCode(e)),r.forEach(l=>{i.indexOf(l)<0&&s(this.formatLanguageCode(l))}),i}}const y8={zero:0,one:1,two:2,few:3,many:4,other:5},v8={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class hW{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Gp.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=Fb(e==="dev"?"en":e),i=t.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let l;try{l=new Intl.PluralRules(r,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),v8;if(!e.match(/-|_/))return v8;const f=this.languageUtils.getLanguagePartFromCode(e);l=this.getRule(f,t)}return this.pluralRulesCache[s]=l,l}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(i=>`${t}${i}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?r.resolvedOptions().pluralCategories.sort((i,s)=>y8[i]-y8[s]).map(i=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}const C8=function(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=oW(n,e,t);return!s&&i&&Io(t)&&(s=bE(n,t,r),s===void 0&&(s=bE(e,t,r))),s},C3=n=>n.replace(/\$/g,"$$$$");class fW{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Gp.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(r=>r),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:l,suffix:o,suffixEscaped:f,formatSeparator:y,unescapeSuffix:x,unescapePrefix:B,nestingPrefix:O,nestingPrefixEscaped:P,nestingSuffix:U,nestingSuffixEscaped:j,nestingOptionsSeparator:N,maxReplaces:Y,alwaysFormat:H}=e.interpolation;this.escape=t!==void 0?t:aW,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?h1(s):l||"{{",this.suffix=o?h1(o):f||"}}",this.formatSeparator=y||",",this.unescapePrefix=x?"":B||"-",this.unescapeSuffix=this.unescapePrefix?"":x||"",this.nestingPrefix=O?h1(O):P||h1("$t("),this.nestingSuffix=U?h1(U):j||h1(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=Y||1e3,this.alwaysFormat=H!==void 0?H:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,r)=>(t==null?void 0:t.source)===r?(t.lastIndex=0,t):new RegExp(r,"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,t,r,i){var P;let s,l,o;const f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},y=U=>{if(U.indexOf(this.formatSeparator)<0){const H=C8(t,f,U,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(H,void 0,r,{...i,...t,interpolationkey:U}):H}const j=U.split(this.formatSeparator),N=j.shift().trim(),Y=j.join(this.formatSeparator).trim();return this.format(C8(t,f,N,this.options.keySeparator,this.options.ignoreJSONStructure),Y,r,{...i,...t,interpolationkey:N})};this.resetRegExp();const x=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,B=((P=i==null?void 0:i.interpolation)==null?void 0:P.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:U=>C3(U)},{regex:this.regexp,safeValue:U=>this.escapeValue?C3(this.escape(U)):C3(U)}].forEach(U=>{for(o=0;s=U.regex.exec(e);){const j=s[1].trim();if(l=y(j),l===void 0)if(typeof x=="function"){const Y=x(e,s,i);l=Io(Y)?Y:""}else if(i&&Object.prototype.hasOwnProperty.call(i,j))l="";else if(B){l=s[0];continue}else this.logger.warn(`missed to pass in variable ${j} for interpolating ${e}`),l="";else!Io(l)&&!this.useRawValueToEscape&&(l=A8(l));const N=U.safeValue(l);if(e=e.replace(s[0],N),B?(U.regex.lastIndex+=l.length,U.regex.lastIndex-=s[0].length):U.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,l;const o=(f,y)=>{const x=this.nestingOptionsSeparator;if(f.indexOf(x)<0)return f;const B=f.split(new RegExp(`${x}[ ]*{`));let O=`{${B[1]}`;f=B[0],O=this.interpolate(O,l);const P=O.match(/'/g),U=O.match(/"/g);(((P==null?void 0:P.length)??0)%2===0&&!U||U.length%2!==0)&&(O=O.replace(/'/g,'"'));try{l=JSON.parse(O),y&&(l={...y,...l})}catch(j){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,j),`${f}${x}${O}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,f};for(;i=this.nestingRegexp.exec(e);){let f=[];l={...r},l=l.replace&&!Io(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;let y=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const x=i[1].split(this.formatSeparator).map(B=>B.trim());i[1]=x.shift(),f=x,y=!0}if(s=t(o.call(this,i[1].trim(),l),l),s&&i[0]===e&&!Io(s))return s;Io(s)||(s=A8(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),s=""),y&&(s=f.reduce((x,B)=>this.format(x,B,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e}}const pW=n=>{let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const r=n.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);e==="currency"&&i.indexOf(":")<0?t.currency||(t.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?t.range||(t.range=i.trim()):i.split(";").forEach(l=>{if(l){const[o,...f]=l.split(":"),y=f.join(":").trim().replace(/^'+|'+$/g,""),x=o.trim();t[x]||(t[x]=y),y==="false"&&(t[x]=!1),y==="true"&&(t[x]=!0),isNaN(y)||(t[x]=parseInt(y,10))}})}return{formatName:e,formatOptions:t}},f1=n=>{const e={};return(t,r,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const l=r+JSON.stringify(s);let o=e[l];return o||(o=n(Fb(r),i),e[l]=o),o(t)}};class mW{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Gp.create("formatter"),this.options=e,this.formats={number:f1((t,r)=>{const i=new Intl.NumberFormat(t,{...r});return s=>i.format(s)}),currency:f1((t,r)=>{const i=new Intl.NumberFormat(t,{...r,style:"currency"});return s=>i.format(s)}),datetime:f1((t,r)=>{const i=new Intl.DateTimeFormat(t,{...r});return s=>i.format(s)}),relativetime:f1((t,r)=>{const i=new Intl.RelativeTimeFormat(t,{...r});return s=>i.format(s,r.range||"day")}),list:f1((t,r)=>{const i=new Intl.ListFormat(t,{...r});return s=>i.format(s)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=f1(t)}format(e,t,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=t.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(o=>o.indexOf(")")>-1)){const o=s.findIndex(f=>f.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,o)].join(this.formatSeparator)}return s.reduce((o,f)=>{var B;const{formatName:y,formatOptions:x}=pW(f);if(this.formats[y]){let O=o;try{const P=((B=i==null?void 0:i.formatParams)==null?void 0:B[i.interpolationkey])||{},U=P.locale||P.lng||i.locale||i.lng||r;O=this.formats[y](o,U,{...x,...i,...P})}catch(P){this.logger.warn(P)}return O}else this.logger.warn(`there was no format function for ${y}`);return o},e)}}const gW=(n,e)=>{n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)};class yW extends z2{constructor(e,t,r){var s,l;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Gp.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(l=(s=this.backend)==null?void 0:s.init)==null||l.call(s,r,i.backend,i)}queueLoad(e,t,r,i){const s={},l={},o={},f={};return e.forEach(y=>{let x=!0;t.forEach(B=>{const O=`${y}|${B}`;!r.reload&&this.store.hasResourceBundle(y,B)?this.state[O]=2:this.state[O]<0||(this.state[O]===1?l[O]===void 0&&(l[O]=!0):(this.state[O]=1,x=!1,l[O]===void 0&&(l[O]=!0),s[O]===void 0&&(s[O]=!0),f[B]===void 0&&(f[B]=!0)))}),x||(o[y]=!0)}),(Object.keys(s).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(l),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(f)}}loaded(e,t,r){const i=e.split("|"),s=i[0],l=i[1];t&&this.emit("failedLoading",s,l,t),!t&&r&&this.store.addResourceBundle(s,l,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const o={};this.queue.forEach(f=>{iW(f.loaded,[s],l),gW(f,e),t&&f.errors.push(t),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(y=>{o[y]||(o[y]={});const x=f.loaded[y];x.length&&x.forEach(B=>{o[y][B]===void 0&&(o[y][B]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(f=>!f.done)}read(e,t,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!e.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:i,wait:s,callback:l});return}this.readingCalls++;const o=(y,x)=>{if(this.readingCalls--,this.waitingReads.length>0){const B=this.waitingReads.shift();this.read(B.lng,B.ns,B.fcName,B.tried,B.wait,B.callback)}if(y&&x&&i{this.read.call(this,e,t,r,i+1,s*2,l)},s);return}l(y,x)},f=this.backend[r].bind(this.backend);if(f.length===2){try{const y=f(e,t);y&&typeof y.then=="function"?y.then(x=>o(null,x)).catch(o):o(null,y)}catch(y){o(y)}return}return f(e,t,o)}prepareLoading(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Io(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Io(t)&&(t=[t]);const s=this.queueLoad(e,t,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(l=>{this.loadOne(l)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(l,o)=>{l&&this.logger.warn(`${t}loading namespace ${s} for language ${i} failed`,l),!l&&o&&this.logger.log(`${t}loaded namespace ${s} for language ${i}`,o),this.loaded(e,l,o)})}saveMissing(e,t,r,i,s){var f,y,x,B,O;let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((y=(f=this.services)==null?void 0:f.utils)!=null&&y.hasLoadedNamespace&&!((B=(x=this.services)==null?void 0:x.utils)!=null&&B.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((O=this.backend)!=null&&O.create){const P={...l,isUpdate:s},U=this.backend.create.bind(this.backend);if(U.length<6)try{let j;U.length===5?j=U(e,t,r,i,P):j=U(e,t,r,i),j&&typeof j.then=="function"?j.then(N=>o(null,N)).catch(o):o(null,j)}catch(j){o(j)}else U(e,t,r,i,o,P)}!e||!e[0]||this.store.addResource(e[0],t,r,i)}}}const _8=()=>({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:n=>{let e={};if(typeof n[1]=="object"&&(e=n[1]),Io(n[1])&&(e.defaultValue=n[1]),Io(n[2])&&(e.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const t=n[3]||n[2];Object.keys(t).forEach(r=>{e[r]=t[r]})}return e},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),b8=n=>{var e,t;return Io(n.ns)&&(n.ns=[n.ns]),Io(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),Io(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),((t=(e=n.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n},P_=()=>{},vW=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})};class Xv extends z2{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=b8(e),this.services={},this.logger=Gp,this.modules={external:[]},vW(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(r=t,t={}),t.defaultNS==null&&t.ns&&(Io(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const i=_8();this.options={...i,...this.options,...b8(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const s=x=>x?typeof x=="function"?new x:x:null;if(!this.options.isClone){this.modules.logger?Gp.init(s(this.modules.logger),this.options):Gp.init(null,this.options);let x;this.modules.formatter?x=this.modules.formatter:x=mW;const B=new g8(this.options);this.store=new f8(this.options.resources,this.options);const O=this.services;O.logger=Gp,O.resourceStore=this.store,O.languageUtils=B,O.pluralResolver=new hW(B,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),x&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(O.formatter=s(x),O.formatter.init(O,this.options),this.options.interpolation.format=O.formatter.format.bind(O.formatter)),O.interpolator=new fW(this.options),O.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},O.backendConnector=new yW(s(this.modules.backend),O.resourceStore,O,this.options),O.backendConnector.on("*",function(P){for(var U=arguments.length,j=new Array(U>1?U-1:0),N=1;N1?U-1:0),N=1;N{P.init&&P.init(this)})}if(this.format=this.options.interpolation.format,r||(r=P_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.length>0&&x[0]!=="dev"&&(this.options.lng=x[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(x=>{this[x]=function(){return e.store[x](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(x=>{this[x]=function(){return e.store[x](...arguments),e}});const f=sv(),y=()=>{const x=(B,O)=>{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),f.resolve(O),r(B,O)};if(this.languages&&!this.isInitialized)return x(null,this.t.bind(this));this.changeLanguage(this.options.lng,x)};return this.options.resources||!this.options.initAsync?y():setTimeout(y,0),f}loadResources(e){var s,l;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P_;const i=Io(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],f=y=>{if(!y||y==="cimode")return;this.services.languageUtils.toResolveHierarchy(y).forEach(B=>{B!=="cimode"&&o.indexOf(B)<0&&o.push(B)})};i?f(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(x=>f(x)),(l=(s=this.options.preload)==null?void 0:s.forEach)==null||l.call(s,y=>f(y)),this.services.backendConnector.load(o,this.options.ns,y=>{!y&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(y)})}else r(null)}reloadResources(e,t,r){const i=sv();return typeof e=="function"&&(r=e,e=void 0),typeof t=="function"&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=P_),this.services.backendConnector.reload(e,t,s=>{i.resolve(),r(s)}),i}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"&&CD.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 t=0;t-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;const i=sv();this.emit("languageChanging",e);const s=f=>{this.language=f,this.languages=this.services.languageUtils.toResolveHierarchy(f),this.resolvedLanguage=void 0,this.setResolvedLanguage(f)},l=(f,y)=>{y?(s(y),this.translator.changeLanguage(y),this.isLanguageChangingTo=void 0,this.emit("languageChanged",y),this.logger.log("languageChanged",y)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),t&&t(f,function(){return r.t(...arguments)})},o=f=>{var x,B;!e&&!f&&this.services.languageDetector&&(f=[]);const y=Io(f)?f:this.services.languageUtils.getBestMatchFromCodes(f);y&&(this.language||s(y),this.translator.language||this.translator.changeLanguage(y),(B=(x=this.services.languageDetector)==null?void 0:x.cacheUserLanguage)==null||B.call(x,y)),this.loadResources(y,O=>{l(O,y)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),i}getFixedT(e,t,r){var i=this;const s=function(l,o){let f;if(typeof o!="object"){for(var y=arguments.length,x=new Array(y>2?y-2:0),B=2;B`${f.keyPrefix}${O}${U}`):P=f.keyPrefix?`${f.keyPrefix}${O}${l}`:l,i.t(P,f)};return Io(e)?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=r,s}t(){var i;for(var e=arguments.length,t=new Array(e),r=0;r1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(o,f)=>{const y=this.services.backendConnector.state[`${o}|${f}`];return y===-1||y===0||y===2};if(t.precheck){const o=t.precheck(this,l);if(o!==void 0)return o}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,e)&&(!i||l(s,e)))}loadNamespaces(e,t){const r=sv();return this.options.ns?(Io(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),t&&t(i)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=sv();Io(e)&&(e=[e]);const i=this.options.preload||[],s=e.filter(l=>i.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return s.length?(this.options.preload=i.concat(s),this.loadResources(l=>{r.resolve(),t&&t(l)}),r):(t&&t(),Promise.resolve())}dir(e){var i,s;if(e||(e=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((s=this.services)==null?void 0:s.languageUtils)||new g8(_8());return t.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Xv(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P_;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},s=new Xv(i);if((e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(o=>{s[o]=this[o]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const o=Object.keys(this.store.data).reduce((f,y)=>(f[y]={...this.store.data[y]},Object.keys(f[y]).reduce((x,B)=>(x[B]={...f[y][B]},x),{})),{});s.store=new f8(o,i),s.services.resourceStore=s.store}return s.translator=new Ub(s.services,i),s.translator.on("*",function(o){for(var f=arguments.length,y=new Array(f>1?f-1:0),x=1;x{if(e)for(const t in e)n[t]===void 0&&(n[t]=e[t])}),n}const x8=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,xW=function(n,e){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(e);let s=`${n}=${i}`;if(r.maxAge>0){const l=r.maxAge-0;if(Number.isNaN(l))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(l)}`}if(r.domain){if(!x8.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!x8.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return s},M8={create(n,e,t,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};t&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+t*60*1e3)),r&&(i.domain=r),document.cookie=xW(n,encodeURIComponent(e),i)},read(n){const e=`${n}=`,t=document.cookie.split(";");for(let r=0;r-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const l=i.substring(1).split("&");for(let o=0;o0&&l[o].substring(0,f)===e&&(t=l[o].substring(f+1))}}return t}};let p1=null;const w8=()=>{if(p1!==null)return p1;try{if(p1=typeof window<"u"&&window.localStorage!==null,!p1)return!1;const n="i18next.translate.boo";window.localStorage.setItem(n,"foo"),window.localStorage.removeItem(n)}catch{p1=!1}return p1};var SW={name:"localStorage",lookup(n){let{lookupLocalStorage:e}=n;if(e&&w8())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(n,e){let{lookupLocalStorage:t}=e;t&&w8()&&window.localStorage.setItem(t,n)}};let m1=null;const S8=()=>{if(m1!==null)return m1;try{if(m1=typeof window<"u"&&window.sessionStorage!==null,!m1)return!1;const n="i18next.translate.boo";window.sessionStorage.setItem(n,"foo"),window.sessionStorage.removeItem(n)}catch{m1=!1}return m1};var EW={name:"sessionStorage",lookup(n){let{lookupSessionStorage:e}=n;if(e&&S8())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(n,e){let{lookupSessionStorage:t}=e;t&&S8()&&window.sessionStorage.setItem(t,n)}},BW={name:"navigator",lookup(n){const e=[];if(typeof navigator<"u"){const{languages:t,userLanguage:r,language:i}=navigator;if(t)for(let s=0;s0?e:void 0}},OW={name:"htmlTag",lookup(n){let{htmlTag:e}=n,t;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(t=r.getAttribute("lang")),t}},IW={name:"path",lookup(n){var i;let{lookupFromPathIndex:e}=n;if(typeof window>"u")return;const t=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(t)?(i=t[typeof e=="number"?e:0])==null?void 0:i.replace("/",""):void 0}},kW={name:"subdomain",lookup(n){var i,s;let{lookupFromSubdomainIndex:e}=n;const t=typeof e=="number"?e+1:1,r=typeof window<"u"&&((s=(i=window.location)==null?void 0:i.hostname)==null?void 0:s.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[t]}};let _D=!1;try{document.cookie,_D=!0}catch{}const bD=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];_D||bD.splice(1,1);const TW=()=>({order:bD,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:n=>n});class xD{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=bW(t,this.options||{},TW()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(MW),this.addDetector(wW),this.addDetector(SW),this.addDetector(EW),this.addDetector(BW),this.addDetector(OW),this.addDetector(IW),this.addDetector(kW)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,t=[];return e.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(t=t.concat(i))}}),t=t.map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}xD.type="languageDetector";var PW=function(e){return{type:"backend",init:function(r,i,s){},read:function(r,i,s){if(typeof e=="function"){if(e.length<3){try{var l=e(r,i);l&&typeof l.then=="function"?l.then(function(o){return s(null,o&&o.default||o)}).catch(s):s(null,l)}catch(o){s(o)}return}e(r,i,s);return}s(null,e[r]&&e[r][i])}}},_3,E8;function KW(){return E8||(E8=1,_3={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),_3}var RW=KW();const DW=fl(RW);var FW=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function B8(n){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=n.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(e.name=t[1],(DW[t[1]]||n.charAt(n.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var r=n.indexOf("-->");return{type:"comment",comment:r!==-1?n.slice(4,r):""}}for(var i=new RegExp(FW),s=null;(s=i.exec(n))!==null;)if(s[0].trim())if(s[1]){var l=s[1].trim(),o=[l,""];l.indexOf("=")>-1&&(o=l.split("=")),e.attrs[o[0]]=o[1],i.lastIndex--}else s[2]&&(e.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return e}var LW=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,UW=/^\s*$/,zW=Object.create(null);function MD(n,e){switch(e.type){case"text":return n+e.content;case"tag":return n+="<"+e.name+(e.attrs?function(t){var r=[];for(var i in t)r.push(i+'="'+t[i]+'"');return r.length?" "+r.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?n:n+e.children.reduce(MD,"")+"";case"comment":return n+""}}var jW={parse:function(n,e){e||(e={}),e.components||(e.components=zW);var t,r=[],i=[],s=-1,l=!1;if(n.indexOf("<")!==0){var o=n.indexOf("<");r.push({type:"text",content:o===-1?n:n.substring(0,o)})}return n.replace(LW,function(f,y){if(l){if(f!=="")return;l=!1}var x,B=f.charAt(1)!=="/",O=f.startsWith("");return{type:"comment",comment:r!==-1?n.slice(4,r):""}}for(var i=new RegExp(bq),s=null;(s=i.exec(n))!==null;)if(s[0].trim())if(s[1]){var a=s[1].trim(),o=[a,""];a.indexOf("=")>-1&&(o=a.split("=")),e.attrs[o[0]]=o[1],i.lastIndex--}else s[2]&&(e.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return e}var xq=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,wq=/^\s*$/,Mq=Object.create(null);function aL(n,e){switch(e.type){case"text":return n+e.content;case"tag":return n+="<"+e.name+(e.attrs?function(t){var r=[];for(var i in t)r.push(i+'="'+t[i]+'"');return r.length?" "+r.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?n:n+e.children.reduce(aL,"")+"";case"comment":return n+""}}var Sq={parse:function(n,e){e||(e={}),e.components||(e.components=Mq);var t,r=[],i=[],s=-1,a=!1;if(n.indexOf("<")!==0){var o=n.indexOf("<");r.push({type:"text",content:o===-1?n:n.substring(0,o)})}return n.replace(xq,function(f,y){if(a){if(f!=="")return;a=!1}var x,B=f.charAt(1)!=="/",O=f.startsWith("