(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6024],{79303:function(e){e.exports={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}},44736:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});let{slice:o,forEach:i}=[],r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,s=(e,t,n)=>{let o=n||{};o.path=o.path||"/";let i=encodeURIComponent(t),s=`${e}=${i}`;if(o.maxAge>0){let e=o.maxAge-0;if(Number.isNaN(e))throw Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(e)}`}if(o.domain){if(!r.test(o.domain))throw TypeError("option domain is invalid");s+=`; Domain=${o.domain}`}if(o.path){if(!r.test(o.path))throw TypeError("option path is invalid");s+=`; Path=${o.path}`}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw TypeError("option expires is invalid");s+=`; Expires=${o.expires.toUTCString()}`}if(o.httpOnly&&(s+="; HttpOnly"),o.secure&&(s+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"none":s+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return s},a={create(e,t,n,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+6e4*n)),o&&(i.domain=o),document.cookie=s(e,encodeURIComponent(t),i)},read(e){let t=`${e}=`,n=document.cookie.split(";");for(let e=0;e<n.length;e++){let o=n[e];for(;" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},remove(e){this.create(e,"",-1)}};var l={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&"undefined"!=typeof document)return a.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:o,cookieDomain:i,cookieOptions:r}=t;n&&"undefined"!=typeof document&&a.create(n,e,o,i,r)}},c={name:"querystring",lookup(e){let t,{lookupQuerystring:n}=e;if("undefined"!=typeof window){let{search:e}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));let o=e.substring(1).split("&");for(let e=0;e<o.length;e++){let i=o[e].indexOf("=");i>0&&o[e].substring(0,i)===n&&(t=o[e].substring(i+1))}}return t}};let u=null,p=()=>{if(null!==u)return u;try{u="undefined"!==window&&null!==window.localStorage;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){u=!1}return u};var d={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&p())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&p()&&window.localStorage.setItem(n,e)}};let f=null,h=()=>{if(null!==f)return f;try{f="undefined"!==window&&null!==window.sessionStorage;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){f=!1}return f};var g={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&h())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&h()&&window.sessionStorage.setItem(n,e)}},m={name:"navigator",lookup(e){let t=[];if("undefined"!=typeof navigator){let{languages:e,userLanguage:n,language:o}=navigator;if(e)for(let n=0;n<e.length;n++)t.push(e[n]);n&&t.push(n),o&&t.push(o)}return t.length>0?t:void 0}},y={name:"htmlTag",lookup(e){let t,{htmlTag:n}=e,o=n||("undefined"!=typeof document?document.documentElement:null);return o&&"function"==typeof o.getAttribute&&(t=o.getAttribute("lang")),t}},v={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("undefined"==typeof window)return;let n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(n))return n["number"==typeof t?t:0]?.replace("/","")}},b={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,n="undefined"!=typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n["number"==typeof t?t+1:1]}};class w{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return i.call(o.call(arguments,1),t=>{if(t)for(let n in t)void 0===e[n]&&(e[n]=t[n])}),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(l),this.addDetector(c),this.addDetector(d),this.addDetector(g),this.addDetector(m),this.addDetector(y),this.addDetector(v),this.addDetector(b)}addDetector(e){return this.detectors[e.name]=e,this}detect(e){e||(e=this.options.order);let t=[];return(e.forEach(e=>{if(this.detectors[e]){let n=this.detectors[e].lookup(this.options);n&&"string"==typeof n&&(n=[n]),n&&(t=t.concat(n))}}),t=t.map(e=>this.options.convertDetectedLanguage(e)),this.services.languageUtils.getBestMatchFromCodes)?t:t.length>0?t[0]:null}cacheUserLanguage(e,t){t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}}w.type="languageDetector"},68013:function(e,t,n){"use strict";n.d(t,{fP:function(){return y}});var o,i,r,s,a={},l=function(){if(o)return a;o=1,a.parse=function(e,n){if("string"!=typeof e)throw TypeError("argument str must be a string");var o={},i=e.length;if(i<2)return o;var r=n&&n.decode||u,s=0,a=0,p=0;do{if(-1===(a=e.indexOf("=",s)))break;if(-1===(p=e.indexOf(";",s)))p=i;else if(a>p){s=e.lastIndexOf(";",a-1)+1;continue}var d=l(e,s,a),f=c(e,a,d),h=e.slice(d,f);if(!t.call(o,h)){var g=l(e,a+1,p),m=c(e,p,g);34===e.charCodeAt(g)&&34===e.charCodeAt(m-1)&&(g++,m--);var y=e.slice(g,m);o[h]=function(e,t){try{return t(e)}catch(t){return e}}(y,r)}s=p+1}while(s<i);return o},a.serialize=function(t,o,a){var l=a&&a.encode||encodeURIComponent;if("function"!=typeof l)throw TypeError("option encode is invalid");if(!n.test(t))throw TypeError("argument name is invalid");var c=l(o);if(!i.test(c))throw TypeError("argument val is invalid");var u=t+"="+c;if(!a)return u;if(null!=a.maxAge){var p=Math.floor(a.maxAge);if(!isFinite(p))throw TypeError("option maxAge is invalid");u+="; Max-Age="+p}if(a.domain){if(!r.test(a.domain))throw TypeError("option domain is invalid");u+="; Domain="+a.domain}if(a.path){if(!s.test(a.path))throw TypeError("option path is invalid");u+="; Path="+a.path}if(a.expires){var d=a.expires;if("[object Date]"!==e.call(d)||isNaN(d.valueOf()))throw TypeError("option expires is invalid");u+="; Expires="+d.toUTCString()}if(a.httpOnly&&(u+="; HttpOnly"),a.secure&&(u+="; Secure"),a.partitioned&&(u+="; Partitioned"),a.priority)switch("string"==typeof a.priority?a.priority.toLowerCase():a.priority){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return u};var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,i=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/;function l(e,t,n){do{var o=e.charCodeAt(t);if(32!==o&&9!==o)return t}while(++t<n);return n}function c(e,t,n){for(;t>n;){var o=e.charCodeAt(--t);if(32!==o&&9!==o)return t+1}return n}function u(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}return a}();function c(e,t={}){let n=e&&"j"===e[0]&&":"===e[1]?e.substr(2):e;if(!t.doNotParse)try{return JSON.parse(n)}catch(e){}return e}class u{constructor(e,t={}){var n;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;let e=this.cookies;this.cookies=l.parse(document.cookie),this._checkChanges(e)};let o="undefined"==typeof document?"":document.cookie;this.cookies="string"==typeof(n=e||o)?l.parse(n):"object"==typeof n&&null!==n?n:{},this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=function(){let e="undefined"==typeof global?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof e?e:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach(t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:c(this.cookies[t])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),c(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();let t={};for(let n in this.cookies)t[n]=c(this.cookies[n],e);return t}set(e,t,n){n=n?Object.assign(Object.assign({},this.defaultSetOptions),n):this.defaultSetOptions;let o="string"==typeof t?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:o}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=l.serialize(e,o,n)),this._emitChange({name:e,value:t,options:n})}remove(e,t){let n=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=l.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:t})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){let t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}var p=n(96530);let d=p.createContext(new u),{Provider:f,Consumer:h}=d;"function"==typeof SuppressedError&&SuppressedError;var g={exports:{}},m={};function y(e,t){let n=(0,p.useContext)(d);if(!n)throw Error("Missing <CookiesProvider>");let o=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[i,r]=(0,p.useState)(()=>n.getAll(o));return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement&&(0,p.useLayoutEffect)(()=>{function t(){let t=n.getAll(o);(function(e,t,n){if(!e)return!0;for(let o of e)if(t[o]!==n[o])return!0;return!1})(e||null,t,i)&&r(t)}return n.addChangeListener(t),()=>{n.removeChangeListener(t)}},[n,i]),[i,(0,p.useMemo)(()=>n.set.bind(n),[n]),(0,p.useMemo)(()=>n.remove.bind(n),[n]),(0,p.useMemo)(()=>n.update.bind(n),[n])]}!function(){if(!s){s=1;var e=(r||(r=1,g.exports=function(){if(i)return m;i=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var i=e.$$typeof;switch(i){case t:switch(e=e.type){case c:case u:case o:case s:case r:case d:return e;default:switch(e=e&&e.$$typeof){case l:case p:case g:case h:case a:return e;default:return i}}case n:return i}}}function x(e){return S(e)===u}return m.AsyncMode=c,m.ConcurrentMode=u,m.ContextConsumer=l,m.ContextProvider=a,m.Element=t,m.ForwardRef=p,m.Fragment=o,m.Lazy=g,m.Memo=h,m.Portal=n,m.Profiler=s,m.StrictMode=r,m.Suspense=d,m.isAsyncMode=function(e){return x(e)||S(e)===c},m.isConcurrentMode=x,m.isContextConsumer=function(e){return S(e)===l},m.isContextProvider=function(e){return S(e)===a},m.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},m.isForwardRef=function(e){return S(e)===p},m.isFragment=function(e){return S(e)===o},m.isLazy=function(e){return S(e)===g},m.isMemo=function(e){return S(e)===h},m.isPortal=function(e){return S(e)===n},m.isProfiler=function(e){return S(e)===s},m.isStrictMode=function(e){return S(e)===r},m.isSuspense=function(e){return S(e)===d},m.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===s||e===r||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},m.typeOf=S,m}()),g.exports),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=n}}()},10630:function(e,t,n){"use strict";n.d(t,{cC:function(){return j},Db:function(){return A.D},$G:function(){return P}});var o=n(96530),i=n(79303),r=n.n(i),s=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function a(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(r()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var o=e.indexOf("-->");return{type:"comment",comment:-1!==o?e.slice(4,o):""}}for(var i=new RegExp(s),a=null;null!==(a=i.exec(e));)if(a[0].trim()){if(a[1]){var l=a[1].trim(),c=[l,""];l.indexOf("=")>-1&&(c=l.split("=")),t.attrs[c[0]]=c[1],i.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1))}return t}var l=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,c=/^\s*$/,u=Object.create(null),p={parse:function(e,t){t||(t={}),t.components||(t.components=u);var n,o=[],i=[],r=-1,s=!1;if(0!==e.indexOf("<")){var p=e.indexOf("<");o.push({type:"text",content:-1===p?e:e.substring(0,p)})}return e.replace(l,function(l,u){if(s){if(l!=="</"+n.name+">")return;s=!1}var p,d="/"!==l.charAt(1),f=l.startsWith("<!--"),h=u+l.length,g=e.charAt(h);if(f){var m=a(l);return r<0?o.push(m):(p=i[r]).children.push(m),o}if(d&&(r++,"tag"===(n=a(l)).type&&t.components[n.name]&&(n.type="component",s=!0),n.voidElement||s||!g||"<"===g||n.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===r&&o.push(n),(p=i[r-1])&&p.children.push(n),i[r]=n),(!d||n.voidElement)&&(r>-1&&(n.voidElement||n.name===l.slice(2,-1))&&(n=-1==--r?o:i[r]),!s&&"<"!==g&&g)){p=-1===r?o:i[r].children;var y=e.indexOf("<",h),v=e.slice(h,-1===y?void 0:y);c.test(v)&&(v=" "),(y>-1&&r+p.length>=0||" "!==v)&&p.push({type:"text",content:v})}}),o}};function d(){if(console&&console.warn){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];w(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}let f={};function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];w(t[0])&&f[t[0]]||(w(t[0])&&(f[t[0]]=new Date),d(...t))}let g=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},m=(e,t,n)=>{e.loadNamespaces(t,g(e,n))},y=(e,t,n,o)=>{w(n)&&(n=[n]),n.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,g(e,o))},v=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.languages[0],i=!!t.options&&t.options.fallbackLng,r=t.languages[t.languages.length-1];if("cimode"===o.toLowerCase())return!0;let s=(e,n)=>{let o=t.services.backendConnector.state[`${e}|${n}`];return -1===o||2===o};return(!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!s(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(o,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(o,e)&&(!i||s(r,e)))},b=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e))return!1}}):v(e,t,n):(h("i18n.languages were undefined or empty",t.languages),!0)},w=e=>"string"==typeof e,S=e=>"object"==typeof e&&null!==e;var x=n(38458),k=n(10759);let O=(e,t)=>{if(!e)return!1;let n=e.props?e.props.children:e.children;return t?n.length>0:!!n},E=e=>{if(!e)return[];let t=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?$(t):t},C=e=>Array.isArray(e)&&e.every(o.isValidElement),$=e=>Array.isArray(e)?e:[e],N=(e,t)=>{let n={...t};return n.props=Object.assign(e.props,t.props),n},L=(e,t)=>{if(!e)return"";let n="",i=$(e),r=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return i.forEach((e,i)=>{if(w(e))n+=`${e}`;else if((0,o.isValidElement)(e)){let{props:o,type:s}=e,a=Object.keys(o).length,l=r.indexOf(s)>-1,c=o.children;if(c||!l||a){if(!c&&(!l||a)||o.i18nIsDynamicList)n+=`<${i}></${i}>`;else if(l&&1===a&&w(c))n+=`<${s}>${c}</${s}>`;else{let e=L(c,t);n+=`<${i}>${e}</${i}>`}}else n+=`<${s}/>`}else if(null===e)d("Trans: the passed in value is invalid - seems you passed in a null child.");else if(S(e)){let{format:t,...o}=e,i=Object.keys(o);if(1===i.length){let e=t?`${i[0]}, ${t}`:i[0];n+=`{{${e}}}`}else d("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else d("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)}),n},T=(e,t,n,i,r,s)=>{if(""===t)return[];let a=i.transKeepBasicHtmlNodesFor||[],l=t&&new RegExp(a.map(e=>`<${e}`).join("|")).test(t);if(!e&&!l&&!s)return[t];let c={},u=e=>{$(e).forEach(e=>{w(e)||(O(e)?u(E(e)):S(e)&&!(0,o.isValidElement)(e)&&Object.assign(c,e))})};u(e);let d=p.parse(`<0>${t}</0>`),f={...c,...r},h=(e,t,n)=>{let o=E(e),i=m(o,t.children,n);return C(o)&&0===i.length||e.props&&e.props.i18nIsDynamicList?o:i},g=(e,t,n,i,r)=>{e.dummy?(e.children=t,n.push((0,o.cloneElement)(e,{key:i},r?void 0:t))):n.push(...o.Children.map([e],e=>{let n={...e.props};return delete n.i18nIsDynamicList,(0,o.createElement)(e.type,{...n,key:i,ref:e.ref},r?null:t)}))},m=(t,r,c)=>{let u=$(t);return $(r).reduce((t,r,p)=>{let d=r.children&&r.children[0]&&r.children[0].content&&n.services.interpolator.interpolate(r.children[0].content,f,n.language);if("tag"===r.type){let s=u[parseInt(r.name,10)];1!==c.length||s||(s=c[0][r.name]),s||(s={});let y=0!==Object.keys(r.attrs).length?N({props:r.attrs},s):s,v=(0,o.isValidElement)(y),b=v&&O(r,!0)&&!r.voidElement,x=l&&S(y)&&y.dummy&&!v,k=S(e)&&Object.hasOwnProperty.call(e,r.name);if(w(y)){let e=n.services.interpolator.interpolate(y,f,n.language);t.push(e)}else if(O(y)||b){let e=h(y,r,c);g(y,e,t,p)}else if(x)g(y,m(u,r.children,c),t,p);else if(Number.isNaN(parseFloat(r.name))){if(k){let e=h(y,r,c);g(y,e,t,p,r.voidElement)}else if(i.transSupportBasicHtmlNodes&&a.indexOf(r.name)>-1){if(r.voidElement)t.push((0,o.createElement)(r.name,{key:`${r.name}-${p}`}));else{let e=m(u,r.children,c);t.push((0,o.createElement)(r.name,{key:`${r.name}-${p}`},e))}}else if(r.voidElement)t.push(`<${r.name} />`);else{let e=m(u,r.children,c);t.push(`<${r.name}>${e}</${r.name}>`)}}else if(S(y)&&!v){let e=r.children[0]?d:null;e&&t.push(e)}else g(y,d,t,p,1!==r.children.length||!d)}else if("text"===r.type){let e=i.transWrapTextNodes,a=s?i.unescape(n.services.interpolator.interpolate(r.content,f,n.language)):n.services.interpolator.interpolate(r.content,f,n.language);e?t.push((0,o.createElement)(e,{key:`${r.name}-${p}`},a)):t.push(a)}return t},[])};return E(m([{dummy:!0,children:e||[]}],d,$(e||[]))[0])};var A=n(76429);let I=(0,o.createContext)();class D{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces=()=>Object.keys(this.usedNamespaces)}function j(e){let{children:t,count:n,parent:i,i18nKey:r,context:s,tOptions:a={},values:l,defaults:c,components:u,ns:p,i18n:d,t:f,shouldUnescape:g,...m}=e,{i18n:y,defaultNS:v}=(0,o.useContext)(I)||{},b=d||y||(0,k.n)(),S=f||b&&b.t.bind(b);return function(e){let{children:t,count:n,parent:i,i18nKey:r,context:s,tOptions:a={},values:l,defaults:c,components:u,ns:p,i18n:d,t:f,shouldUnescape:g,...m}=e,y=d||(0,k.n)();if(!y)return h("You will need to pass in an i18next instance by using i18nextReactModule"),t;let v=f||y.t.bind(y)||(e=>e),b={...(0,x.J)(),...y.options&&y.options.react},S=p||v.ns||y.options&&y.options.defaultNS;S=w(S)?[S]:S||["translation"];let O=L(t,b),E=c||O||b.transEmptyNodeValue||r,{hashTransKey:C}=b,$=r||(C?C(O||E):O||E);y.options&&y.options.interpolation&&y.options.interpolation.defaultVariables&&(l=l&&Object.keys(l).length>0?{...l,...y.options.interpolation.defaultVariables}:{...y.options.interpolation.defaultVariables});let N=l||void 0!==n||!t?a.interpolation:{interpolation:{...a.interpolation,prefix:"#$?",suffix:"?$#"}},A={...a,context:s||a.context,count:n,...l,...N,defaultValue:E,ns:S},I=$?v($,A):E;u&&Object.keys(u).forEach(e=>{let t=u[e];"function"==typeof t.type||!t.props||!t.props.children||0>I.indexOf(`${e}/>`)&&0>I.indexOf(`${e} />`)||(u[e]=(0,o.createElement)(function(){return(0,o.createElement)(o.Fragment,null,t)}))});let D=T(u||t,I,y,b,A,g),j=void 0!==i?i:b.defaultTransParent;return j?(0,o.createElement)(j,m,D):D}({children:t,count:n,parent:i,i18nKey:r,context:s,tOptions:a,values:l,defaults:c,components:u,ns:p||S&&S.ns||v||b&&b.options&&b.options.defaultNS,i18n:b,t:f,shouldUnescape:g,...m})}let _=(e,t)=>{let n=(0,o.useRef)();return(0,o.useEffect)(()=>{n.current=t?n.current:e},[e,t]),n.current},U=(e,t,n,o)=>e.getFixedT(t,n,o),M=(e,t,n,i)=>(0,o.useCallback)(U(e,t,n,i),[e,t,n,i]),P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{i18n:n}=t,{i18n:i,defaultNS:r}=(0,o.useContext)(I)||{},s=n||i||(0,k.n)();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new D),!s){h("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>w(t)?t:S(t)&&w(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}s.options.react&&void 0!==s.options.react.wait&&h("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let a={...(0,x.J)(),...s.options.react,...t},{useSuspense:l,keyPrefix:c}=a,u=e||r||s.options&&s.options.defaultNS;u=w(u)?[u]:u||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(u);let p=(s.isInitialized||s.initializedStoreOnce)&&u.every(e=>b(e,s,a)),d=M(s,t.lng||null,"fallback"===a.nsMode?u:u[0],c),f=()=>d,g=()=>U(s,t.lng||null,"fallback"===a.nsMode?u:u[0],c),[v,O]=(0,o.useState)(f),E=u.join();t.lng&&(E=`${t.lng}${E}`);let C=_(E),$=(0,o.useRef)(!0);(0,o.useEffect)(()=>{let{bindI18n:e,bindI18nStore:n}=a;$.current=!0,p||l||(t.lng?y(s,t.lng,u,()=>{$.current&&O(g)}):m(s,u,()=>{$.current&&O(g)})),p&&C&&C!==E&&$.current&&O(g);let o=()=>{$.current&&O(g)};return e&&s&&s.on(e,o),n&&s&&s.store.on(n,o),()=>{$.current=!1,e&&s&&e.split(" ").forEach(e=>s.off(e,o)),n&&s&&n.split(" ").forEach(e=>s.store.off(e,o))}},[s,E]),(0,o.useEffect)(()=>{$.current&&p&&O(f)},[s,c,p]);let N=[v,s,p];if(N.t=v,N.i18n=s,N.ready=p,p||!p&&!l)return N;throw new Promise(e=>{t.lng?y(s,t.lng,u,()=>e()):m(s,u,()=>e())})}}}]);