PageSourceSearch

https://axolaina.fi/_next/static/chunks/cc4b86fe33c8cb82.js?dpl=dpl_2aj4yAvrcQN4MBvQCdLqqBgp513y

js axolaina.fi collected 2026-10-07 03:42:52 UTC 80,236 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f32e7166-3424-5bdc-95dd-68f454b9c1cc")}catch(e){}}();
3(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,333494,e=>{"use strict";e.s(["getLanguageFromLocale",()=>t]);let t=e=>e.split("-")[0]},989159,179017,455387,263504,693955,590277,e=>{"use strict";e.s(["Locales",()=>t],989159);let t=["en-GB","da-DK","fi-FI","nb-NO","sv-SE"];function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.s(["default",()=>C],179017);var r,s,o=[];o.forEach,o.slice;var a=["__proto__","constructor","prototype"];function l(e){return!("string"!=typeof e||0===e.length||e.length>128||a.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function u(e){return!(!l(e)||e.indexOf("/")>-1)}var c={lng:u,ns:function(e){return l(e)}};function p(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function h(){return"function"==typeof XMLHttpRequest||("undefined"==typeof XMLHttpRequest?"undefined":i(XMLHttpRequest))==="object"}var d=/\{\{(.+?)\}\}/g;function g(e,t){var i=!1,r=e.replace(d,function(e,r){var s=r.trim();if(a.indexOf(s)>-1)return e;var o=t[s];if(null==o)return e;var l,p=c[s]||u,h=String(o).split("+"),d=function(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return n(e,void 0);var i=({}).toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(e))){i&&(e=i);var r=0,s=function(){};return{s:s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:s}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(l)throw o}}}}(h);try{for(d.s();!(l=d.n()).done;){var g=l.value;if(!p(g))return i=!0,e}}catch(e){d.e(e)}finally{d.f()}return h.join("+")});return i?null:r}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){var i,r,s;i=e,r=t,s=n[t],(r=function(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=y(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}(r))in i?Object.defineProperty(i,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[r]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v="function"==typeof fetch?fetch:void 0;if(e.g.fetch?v=e.g.fetch:"undefined"!=typeof window&&window.fetch&&(v=window.fetch),h()&&(e.g.XMLHttpRequest?r=e.g.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(r=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&(e.g.ActiveXObject?s=e.g.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(s=window.ActiveXObject)),"function"!=typeof v&&(v=void 0),!v&&!r&&!s)try{e.A(378381).then(function(e){v=e.default}).catch(function(){})}catch(e){}var b=["__proto__","constructor","prototype"],x=function(e,t){if(t&&"object"===y(t)){for(var n="",i=0,r=Object.keys(t);i<r.length;i++){var s=r[i];b.indexOf(s)>-1||(n+="&"+encodeURIComponent(s)+"="+encodeURIComponent(t[s]))}if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},O=function(e,t,n,i){var r=function(e){if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(function(t){n(null,{status:e.status,data:t})}).catch(n)};if(i){var s=i(e,t);if(s instanceof Promise)return void s.then(r).catch(n)}"function"==typeof fetch?fetch(e,t).then(r).catch(n):v(e,t).then(r).catch(n)},k=function(t,n,i,r){t.queryStringParams&&(n=x(n,t.queryStringParams));var s=m({},"function"==typeof t.customHeaders?t.customHeaders():t.customHeaders);"undefined"==typeof window&&void 0!==e.g.process&&e.g.process.versions&&e.g.process.versions.node&&(s["User-Agent"]="i18next-http-backend (node/".concat(e.g.process.version,";
3 ").concat(e.g.process.platform," ").concat(e.g.process.arch,")")),i&&(s["Content-Type"]="application/json");var o="function"==typeof t.requestOptions?t.requestOptions(i):t.requestOptions,a=m({method:i?"POST":"GET",body:i?t.stringify(i):void 0,headers:s},t._omitFetchOptions?{}:o),l="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{O(n,a,r,l)}catch(e){if(!o||0===Object.keys(o).length||!e.message||0>e.message.indexOf("not implemented"))return r(e);try{Object.keys(o).forEach(function(e){delete a[e]}),O(n,a,r,l),t._omitFetchOptions=!0}catch(e){r(e)}}},S=function(e,t,n,i){n&&"object"===y(n)&&(n=x("",n).slice(1)),e.queryStringParams&&(t=x(t,e.queryStringParams));try{var o=r?new r:new s("MSXML2.XMLHTTP.3.0");o.open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=e.customHeaders;if(a="function"==typeof a?a():a)for(var l=0,u=Object.keys(a);l<u.length;l++){var c=u[l];b.indexOf(c)>-1||o.setRequestHeader(c,a[c])}o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(e){console&&console.log(e)}};let w=function(e,t,n,i){return("function"==typeof n&&(i=n,n=void 0),i=i||function(){},v&&0!==t.indexOf("file:"))?k(e,t,n,i):h()||"function"==typeof ActiveXObject?S(e,t,n,i):void i(Error("No fetch and no xhr implementation found!"))};function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach(function(t){P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P(e,t,n){return(t=$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e){var t=function(e,t){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=L(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==L(t)?t:t+""}var R=function(){var e,t;return e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.services=t,this.options=n,this.allOptions=i,this.type="backend",this.init(t,n,i)},t=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.services=e,this.options=j(j(j({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return P({},t,n||"")},parseLoadPayload:function(e,t){},request:w,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),n),this.allOptions=i,this.services&&this.options.reloadInterval){var r=setInterval(function(){return t.reload()},this.options.reloadInterval);"object"===L(r)&&"function"==typeof r.unref&&r.unref()}}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,i,r){var s,o,a=this,l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(e,n)),(l=(o=s=l)&&"function"==typeof o.then?s:Promise.resolve(s)).then(function(s){if(!s)return r(null,{});var o=g(s,{lng:e.join("+"),ns:n.join("+")});if(null==o)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(p).join(", ")+"] namespaces=["+n.map(p).join(", ")+"]"),!1);a.loadUrl(o,r,t,i)})}},{key:"loadUrl",value:function(e,t,n,i){var r=this,s=this.options.parseLoadPayload("str
3ing"==typeof n?[n]:n,"string"==typeof i?[i]:i),o=p(function(e){if("string"!=typeof e||0===e.length)return e;try{var t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,s,function(e,s){if(s&&(s.status>=500&&s.status<600||!s.status))return t("failed loading "+o+"; status code: "+s.status,!0);if(s&&s.status>=400&&s.status<500)return t("failed loading "+o+"; status code: "+s.status,!1);if(!s&&e&&e.message){var a,l,u=e.message.toLowerCase();if(["failed","fetch","network","load"].find(function(e){return u.indexOf(e)>-1}))return t("failed loading "+o+": "+p(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof s.data?r.options.parse(s.data,n,i):s.data}catch(e){l="failed parsing "+o+" to json"}if(l)return t(l,!1);t(null,a)})}},{key:"create",value:function(e,t,n,i,r){var s=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var o=this.options.parsePayload(t,n,i),a=0,l=[],u=[];e.forEach(function(n){var i=s.options.addPath;"function"==typeof s.options.addPath&&(i=s.options.addPath(n,t));var c=g(i,{lng:n,ns:t});if(null==c){a+=1,r&&a===e.length&&r(l,u);return}s.options.request(s.options,c,o,function(t,n){a+=1,l.push(t),u.push(n),a===e.length&&"function"==typeof r&&r(l,u)})})}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,i=t.languageUtils,r=t.logger,s=n.language;if(!s||"cimode"!==s.toLowerCase()){var o=[],a=function(e){i.toResolveHierarchy(e).forEach(function(e){0>o.indexOf(e)&&o.push(e)})};a(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return a(e)}),o.forEach(function(t){e.allOptions.ns.forEach(function(e){n.read(t,e,"read",null,null,function(i,s){i&&r.warn("loading namespace ".concat(e," for language ").concat(t," failed"),i),!i&&s&&r.log("loaded namespace ".concat(e," for language ").concat(t),s),n.loaded("".concat(t,"|").concat(e),i,s)})})})}}}],function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,$(i.key),i)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}();R.type="backend";let C=R;e.s(["default",()=>E],455387);var E=function(e){return{type:"backend",init:function(e,t,n){},read:function(t,n,i){if("function"==typeof e){if(e.length<3){try{var r=e(t,n);r&&"function"==typeof r.then?r.then(function(e){return i(null,e&&e.default||e)}).catch(i):i(null,r)}catch(e){i(e)}return}e(t,n,i);return}i(null,e&&e[t]&&e[t][n])}}};e.s(["packagesWithTranslations",()=>I],263504);let I={ProductInsurance:"insurance"};e.s(["deepMergeDefined",()=>T],693955);let A=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),F=e=>{if(Array.isArray(e))return e.map(F);if(A(e)){let t={};for(let[n,i]of Object.entries(e))t[n]=F(i);return t}return e},T=(e,t)=>
3{if(!A(t))return e;if(!A(e))return F(t);let n={};for(let[t,i]of Object.entries(e))n[t]=F(i);for(let[e,i]of Object.entries(t)){if(null==i||""===i)continue;let t=n[e];n[e]=A(i)&&A(t)?T(t,i):F(i)}return n};e.s(["getBackendEndpointFromNamespace",()=>M],590277),e.i(103466);var D=e.i(756676),U=e.i(594845);let M=e=>(t,n)=>{if(!n.includes(e))return;let{env:i}=D.ConfigService.get("env"),{domain:r}=D.ConfigService.get("site"),s=I[e],o=`api/i18n/${s}?locale={{lng}}`;return`${(0,U.getSiteOneHost)(r,i)}/${o}`}},149612,e=>{"use strict";e.s(["createI18nConfig",()=>l]);var t=e.i(989159),n=e.i(179017),i=e.i(455387),r=e.i(263504),s=e.i(693955),o=e.i(590277),a=e.i(333494);let l=(e,l,u)=>{let c={load:"currentOnly",fallbackLng:!1,interpolation:{escapeValue:!1},ns:[e],defaultNS:e,supportedLngs:t.Locales.map(e=>(0,a.getLanguageFromLocale)(e)),...u};if(Object.keys(r.packagesWithTranslations).includes(e)){let t=(0,o.getBackendEndpointFromNamespace)(e);Object.assign(c,{partialBundledLanguages:!0,resources:l,backend:{backends:[n.default,(0,i.default)(l)],backendOptions:[{loadPath:t,requestOptions:()=>({signal:AbortSignal.timeout(5e3)}),parse:(e,t,n)=>{let i=JSON.parse(e),r=Array.isArray(t)?t[0]:t,o=Array.isArray(n)?n[0]:n;if(!r||!o)return i;let a=l[r]?.[o];return a?(0,s.deepMergeDefined)(a,i):i}}]}})}else Object.assign(c,{resources:l});return c}},645141,e=>{"use strict";e.s(["createInstance",()=>z,"default",()=>K]);let t=e=>"string"==typeof e,n=()=>{let e,t,n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n},i=e=>null==e?"":""+e,r=/###/g,s=e=>e&&e.indexOf("###")>-1?e.replace(r,"."):e,o=e=>!e||t(e),a=(e,n,i)=>{let r=t(n)?n.split("."):n,a=0;for(;a<r.length-1;){if(o(e))return{};let t=s(r[a]);!e[t]&&i&&(e[t]=new i),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return o(e)?{}:{obj:e,k:s(r[a])}},l=(e,t,n)=>{let{obj:i,k:r}=a(e,t,Object);if(void 0!==i||1===t.length){i[r]=n;return}let s=t[t.length-1],o=t.slice(0,t.length-1),l=a(e,o,Object);for(;void 0===l.obj&&o.length;)s=`${o[o.length-1]}.${s}`,(l=a(e,o=o.slice(0,o.length-1),Object))&&l.obj&&void 0!==l.obj[`${l.k}.${s}`]&&(l.obj=void 0);l.obj[`${l.k}.${s}`]=n},u=(e,t)=>{let{obj:n,k:i}=a(e,t);if(n)return n[i]},c=(e,n,i)=>{for(let r in n)"__proto__"!==r&&"constructor"!==r&&(r in e?t(e[r])||e[r]instanceof String||t(n[r])||n[r]instanceof String?i&&(e[r]=n[r]):c(e[r],n[r],i):e[r]=n[r]);return e},p=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var h={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let d=e=>t(e)?e.replace(/[&<>"'\/]/g,e=>h[e]):e,g=[" ",",","?","!",";"],f=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let e=0;e<i.length;){let t;if(!r||"object"!=typeof r)return;let s="";for(let o=e;o<i.length;++o)if(o!==e&&(s+=n),s+=i[o],void 0!==(t=r[s])){if(["string","number","boolean"].indexOf(typeof t)>-1&&o<i.length-1)continue;e+=o-e+1;break}r=t}return r},y=e=>e&&e.replace("_","-"),v={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class b{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||v,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,i,r){return r&&!this.debug?null:(t(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new b(this.logger,{...{prefix:`${this.prefix}:${e}:`},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new b(this.logger,e)}}var x=new b;class O{constructor(){this.observers={}}
3on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,i]=e;for(let e=0;e<i;e++)t(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[i,r]=t;for(let t=0;t<r;t++)i.apply(i,[e,...n])})}}class k extends O{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,n,i){let r,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator,a=void 0!==s.ignoreJSONStructure?s.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?r=e.split("."):(r=[e,n],i&&(Array.isArray(i)?r.push(...i):t(i)&&o?r.push(...i.split(o)):r.push(i)));let l=u(this.data,r);return(!l&&!n&&!i&&e.indexOf(".")>-1&&(e=r[0],n=r[1],i=r.slice(2).join(".")),!l&&a&&t(i))?m(this.data&&this.data[e]&&this.data[e][n],i,o):l}addResource(e,t,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=[e,t];n&&(o=o.concat(s?n.split(s):n)),e.indexOf(".")>-1&&(o=e.split("."),i=t,t=o[1]),this.addNamespaces(t),l(this.data,o,i),r.silent||this.emit("added",e,t,n,i)}addResources(e,n,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let r in i)(t(i[r])||Array.isArray(i[r]))&&this.addResource(e,n,r,i[r],{silent:!0});r.silent||this.emit("added",e,n,i)}addResourceBundle(e,t,n,i,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),i=n,n=t,t=o[1]),this.addNamespaces(t);let a=u(this.data,o)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?c(a,n,r):a={...a,...n},l(this.data,o,a),s.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var S={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,i,r))}),t}};let w={};class L extends O{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
3i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=x.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,n){let i=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===i&&(i=":");let r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=n.ns||this.options.defaultNS||[],o=i&&e.indexOf(i)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";let i=g.filter(e=>0>t.indexOf(e)&&0>n.indexOf(e));if(0===i.length)return!0;let r=f.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`),s=!r.test(e);if(!s){let t=e.indexOf(n);t>0&&!r.test(e.substring(0,t))&&(s=!0)}return s})(e,i,r);if(o&&!a){let n=e.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:e,namespaces:t(s)?[s]:s};let o=e.split(i);(i!==r||i===r&&this.options.ns.indexOf(o[0])>-1)&&(s=o.shift()),e=o.join(r)}return{key:e,namespaces:t(s)?[s]:s}}translate(e,n,i){if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let r=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],n),l=a[a.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(c){let e=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o}let p=this.resolve(e,n),h=p&&p.res,d=p&&p.usedKey||o,g=p&&p.exactUsedKey||o,f=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!t(h)&&"boolean"!=typeof h&&"number"!=typeof h;if(y&&h&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(f)&&!(t(m)&&Array.isArray(h))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,h,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(p.res=e,p.usedParams=this.getUsedParamsDetails(n),p):e}if(s){let e=Array.isArray(h),t=e?[]:{},i=e?g:d;for(let e in h)if(Object.prototype.hasOwnProperty.call(h,e)){let r=`${i}${s}${e}`;t[e]=this.translate(r,{...n,joinArrays:!1,ns:a}),t[e]===r&&(t[e]=h[e])}h=t}}else if(y&&t(m)&&Array.isArray(h))(h=h.join(m))&&(h=this.extendTranslation(h,e,n,i));else{let r=!1,a=!1,c=void 0!==n.count&&!t(n.count),d=L.hasDefaultValue(n),g=c?this.pluralResolver.getSuffix(u,n.count,n):"",f=n.ordinal&&c?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",m=c&&!n.ordinal&&0===n.count&&this.pluralResolver.shouldUseIntlApi(),y=m&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${g}`]||n[`defaultValue${f}`]||n.defaultValue;!this.isValidLookup(h)&&d&&(r=!0,h=y),this.isValidLookup(h)||(a=!0,h=o);let v=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:h,b=d&&y!==h&&this.options.updateMissing;if(a||r||b){if(this.logger.log(b?"updateKey":"missingKey",u,l,o,b?y:h),s){let e=this.resolve(o,{...n,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);let i=(e,t,i)=>{let r=d&&i!==h?i:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,b,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,b,n),this.emit
3("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);m&&n[`defaultValue${this.options.pluralSeparator}zero`]&&0>t.indexOf(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{i([e],o+t,n[`defaultValue${t}`]||y)})}):i(e,o,y))}h=this.extendTranslation(h,e,n,p,i),a&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,r?h:void 0):this.options.parseMissingKeyHandler(h))}return r?(p.res=h,p.usedParams=this.getUsedParamsDetails(n),p):h}extendTranslation(e,n,i,r,s){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){let a;i.interpolation&&this.interpolator.init({...i,...{interpolation:{...this.options.interpolation,...i.interpolation}}});let l=t(e)&&(i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let u=i.replace&&!t(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,i.lng||this.language||r.usedLng,i),l){let t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(i.nest=!1)}!i.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(i.lng=this.language||r.usedLng),!1!==i.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return s&&s[0]===t[0]&&!i.context?(o.logger.warn(`It seems you are nesting recursively key: ${t[0]} in key: ${n[0]}`),null):o.translate(...t,n)},i)),i.interpolation&&this.interpolator.reset()}let a=i.postProcess||this.options.postProcess,l=t(a)?[a]:a;return null!=e&&l&&l.length&&!1!==i.applyPostProcessor&&(e=S.handle(l,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e){let n,i,r,s,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let l=this.extractFromKey(e,a),u=l.key;i=u;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let p=void 0!==a.count&&!t(a.count),h=p&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&(t(a.context)||"number"==typeof a.context)&&""!==a.context,g=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);
3c.forEach(e=>{this.isValidLookup(n)||(o=e,!w[`${g[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(w[`${g[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${g.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!!!")),g.forEach(t=>{let i;if(this.isValidLookup(n))return;s=t;let o=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,u,t,e,a);else{let e;p&&(e=this.pluralResolver.getSuffix(t,a.count,a));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(o.push(u+e),a.ordinal&&0===e.indexOf(i)&&o.push(u+e.replace(i,this.options.pluralSeparator)),h&&o.push(u+n)),d){let t=`${u}${this.options.contextSeparator}${a.context}`;o.push(t),p&&(o.push(t+e),a.ordinal&&0===e.indexOf(i)&&o.push(t+e.replace(i,this.options.pluralSeparator)),h&&o.push(t+n))}}for(;i=o.pop();)this.isValidLookup(n)||(r=i,n=this.getResource(t,e,i,a))}))})}),{res:n,usedKey:i,exactUsedKey:r,usedLng:s,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.replace&&!t(e.replace),i=n?e.replace:e;if(n&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n)for(let e of(i={...i},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete i[e];return i}static hasDefaultValue(e){let t="defaultValue";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}let N=e=>e.charAt(0).toUpperCase()+e.slice(1);class j{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=x.create("languageUtils")}getScriptPartFromCode(e){if(!(e=y(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=y(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(t(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}let t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=N(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=N(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=N(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&(e.indexOf("-")>0&&0>n.indexOf("-")&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,n){if(!e)return[];if("function"==typeof e&&(e=e(n)),t(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let i=e[n];
3return i||(i=e[this.getScriptPartFromCode(n)]),i||(i=e[this.formatLanguageCode(n)]),i||(i=e[this.getLanguagePartFromCode(n)]),i||(i=e.default),i||[]}toResolveHierarchy(e,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],e),r=[],s=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return t(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(e))):t(e)&&s(this.formatLanguageCode(e)),i.forEach(e=>{0>r.indexOf(e)&&s(this.formatLanguageCode(e))}),r}}let P=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],$={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(+(1!=e&&(e%10!=1||e%100==11))),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4)),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)},R=["v1","v2","v3"],C=["v4"],E={zero:0,one:1,two:2,few:3,many:4,other:5};class I{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=x.create("pluralResolver"),(!this.options.compatibilityJSON||C.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{let e={};return P.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:$[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){let n,i=y("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:i,type:r});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];try{n=new Intl.PluralRules(i,{type:r})}catch(r){if(!e.match(/-|_/))return;let i=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(i,t)}return this.pluralRulesCache[s]=n,n}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
3return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>E[e]-E[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:this.getSuffixRetroCompatible(i,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));let r=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?`_plural_${i.toString()}`:r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?r():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}
3shouldUseIntlApi(){return!R.includes(this.options.compatibilityJSON)}}let A=function(e,n,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",s=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=((e,t,n)=>{let i=u(e,n);return void 0!==i?i:u(t,n)})(e,n,i);return!o&&s&&t(i)&&void 0===(o=m(e,i,r))&&(o=m(n,i,r)),o},F=e=>e.replace(/\$/g,"$$$$");class T{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=x.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:i,prefix:r,prefixEscaped:s,suffix:o,suffixEscaped:a,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:h,nestingPrefixEscaped:g,nestingSuffix:f,nestingSuffixEscaped:m,nestingOptionsSeparator:y,maxReplaces:v,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:d,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==i&&i,this.prefix=r?p(r):s||"{{",this.suffix=o?p(o):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=h?p(h):g||p("$t("),this.nestingSuffix=f?p(f):m||p(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=v||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,s){let o,a,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(0>e.indexOf(this.formatSeparator)){let t=A(n,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(t,void 0,r,{...s,...n,interpolationkey:e}):t}let t=e.split(this.formatSeparator),i=t.shift().trim(),o=t.join(this.formatSeparator).trim();return this.format(A(n,u,i,this.options.keySeparator,this.options.ignoreJSONStructure),o,r,{...s,...n,interpolationkey:i})};this.resetRegExp();let p=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,h=s&&s.interpolation&&void 0!==s.interpolation.skipOnVariables?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>F(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?F(this.escape(e)):F(e)}].forEach(n=>{for(l=0;o=n.regex.exec(e);){let r=o[1].trim();if(void 0===(a=c(r)))if("function"==typeof p){let n=p(e,o,s);a=t(n)?n:""}else if(s&&Object.prototype.hasOwnProperty.call(s,r))a="";else if(h){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),a="";else t(a)||this.useRawValueToEscape||(a=i(a));let u=n.safeValue(a);if(e=e.replace(o[0],u),h?(n.regex.lastIndex+=a.length,n.regex.lastIndex-=o[0].length):n.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,n){let r,s,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(e,t)=>{let n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;let i=e.split(RegExp(`${n}[ ]*{`)),r=`{${i[1]}`;e=i[0];let s=(r=this.interpolate(r,o)).match(/'/g),a=r.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(r=r.replace(/'/g,'"'));try{o=JSON.parse(r),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${r}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let u=[];(o=(o={...a}).replace&&!t(o.replace)?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),u=e,c=!0}if((s=n(l.call(this,r[1].trim(),o),o))&&r[0]===e&&!t(s))return s;t(s)||(s=i(s)),s||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}
3`),s=""),c&&(s=u.reduce((e,t)=>this.format(e,t,a.lng,{...a,interpolationkey:r[1].trim()}),s.trim())),e=e.replace(r[0],s),this.regexp.lastIndex=0}return e}}let D=e=>{let t={};return(n,i,r)=>{let s=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(s={...s,[r.interpolationkey]:void 0});let o=i+JSON.stringify(s),a=t[o];return a||(a=e(y(i),r),t[o]=a),a(n)}};class U{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=x.create("formatter"),this.options=e,this.formats={number:D((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:D((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:D((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:D((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:D((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?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()]=D(t)}format(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&0>r[0].indexOf(")")&&r.find(e=>e.indexOf(")")>-1)){let e=r.findIndex(e=>e.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,e)].join(this.formatSeparator)}return r.reduce((e,t)=>{let{formatName:r,formatOptions:s}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);"currency"===t&&0>r.indexOf(":")?n.currency||(n.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?n.range||(n.range=r.trim()):r.split(";").forEach(e=>{if(e){let[t,...i]=e.split(":"),r=i.join(":").trim().replace(/^'+|'+$/g,""),s=t.trim();n[s]||(n[s]=r),"false"===r&&(n[s]=!1),"true"===r&&(n[s]=!0),isNaN(r)||(n[s]=parseInt(r,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[r]){let t=e;try{let o=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},a=o.locale||o.lng||i.locale||i.lng||n;t=this.formats[r](e,a,{...s,...i,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}}class M extends O{constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=x.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(e,t,n,i){let r={},s={},o={},a={};return e.forEach(e=>{let i=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===s[o]&&(s[o]=!0):(this.state[o]=1,i=!1,void 0===s[o]&&(s[o]=!0),void 0===r[o]&&(r[o]=!0),void 0===a[t]&&(a[t]=!0)))}),i||(o[e]=!0)}),(Object.keys(r).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){let i=e.split("|"),r=i[0],s=i[1];t&&this.emit("failedLoading",r,s,t),!t&&n&&this.store.addResourceBundle(r,s,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{((e,t,n,i)=>{let{obj:r,k:s}=a(e,t,Object);r[s]=r[s]||[],r[s].push(n)}
3)(n.loaded,[r],s),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:r,callback:s});this.readingCalls++;let o=(o,a)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&a&&i<this.maxRetries)return void setTimeout(()=>{this.read.call(this,e,t,n,i+1,2*r,s)},r);s(o,a)},a=this.backend[n].bind(this.backend);if(2===a.length){try{let n=a(e,t);n&&"function"==typeof n.then?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return a(e,t,o)}prepareLoading(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=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."),r&&r();t(e)&&(e=this.languageUtils.toResolveHierarchy(e)),t(n)&&(n=[n]);let s=this.queueLoad(e,n,i,r);if(!s.toLoad.length)return s.pending.length||r(),null;s.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),i=n[0],r=n[1];this.read(i,r,"read",void 0,void 0,(n,s)=>{n&&this.logger.warn(`${t}loading namespace ${r} for language ${i} failed`,n),!n&&s&&this.logger.log(`${t}loaded namespace ${r} for language ${i}`,s),this.loaded(e,n,s)})}saveMissing(e,t,n,i,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${n}" 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!!!");if(null!=n&&""!==n){if(this.backend&&this.backend.create){let a={...s,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;(r=5===l.length?l(e,t,n,i,a):l(e,t,n,i))&&"function"==typeof r.then?r.then(e=>o(null,e)).catch(o):o(null,r)}catch(e){o(e)}else l(e,t,n,i,o,a)}e&&e[0]&&this.store.addResource(e[0],t,n,i)}}}let V=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let n={};if("object"==typeof e[1]&&(n=e[1]),t(e[1])&&(n.defaultValue=e[1]),t(e[2])&&(n.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let t=e[3]||e[2];Object.keys(t).forEach(e=>{n[e]=t[e]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),H=e=>(t(e.ns)&&(e.ns=[e.ns]),t(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),t(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),q=()=>{};class B extends O{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=H(e),this.services={},this.logger=x,this.modules={external:[]},(e=>
3{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof i&&(r=i,i={}),!i.defaultNS&&!1!==i.defaultNS&&i.ns&&(t(i.ns)?i.defaultNS=i.ns:0>i.ns.indexOf("translation")&&(i.defaultNS=i.ns[0]));let s=V();this.options={...s,...this.options,...H(i)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),void 0!==i.keySeparator&&(this.options.userDefinedKeySeparator=i.keySeparator),void 0!==i.nsSeparator&&(this.options.userDefinedNsSeparator=i.nsSeparator);let o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?x.init(o(this.modules.logger),this.options):x.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=U);let n=new j(this.options);this.store=new k(this.options.resources,this.options);let i=this.services;i.logger=x,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new I(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new T(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new M(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.emit(t,...i)}),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new L(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.emit(t,...i)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=q),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[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(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=n(),l=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),a}loadResources(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q,i=n,r=t(e)?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return i();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e
3=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),i(e)})}else i(null)}reloadResources(e,t,i){let r=n();return"function"==typeof e&&(i=e,e=void 0),"function"==typeof t&&(i=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),i||(i=q),this.services.backendConnector.reload(e,t,e=>{r.resolve(),i(e)}),r}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&S.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,i){var r=this;this.isLanguageChangingTo=e;let s=n();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,t)=>{t?(o(t),this.translator.changeLanguage(t),this.isLanguageChangingTo=void 0,this.emit("languageChanged",t),this.logger.log("languageChanged",t)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),i&&i(e,function(){return r.t(...arguments)})},l=n=>{e||n||!this.services.languageDetector||(n=[]);let i=t(n)?n:this.services.languageUtils.getBestMatchFromCodes(n);i&&(this.language||o(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(i)),this.loadResources(i,e=>{a(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),s}getFixedT(e,n,i){var r=this;let s=function(e,t){let n,o;if("object"!=typeof t){for(var a=arguments.length,l=Array(a>2?a-2:0),u=2;u<a;u++)l[u-2]=arguments[u];n=r.options.overloadTranslationOptionHandler([e,t].concat(l))}else n={...t};n.lng=n.lng||s.lng,n.lngs=n.lngs||s.lngs,n.ns=n.ns||s.ns,""!==n.keyPrefix&&(n.keyPrefix=n.keyPrefix||i||s.keyPrefix);let c=r.options.keySeparator||".";return o=n.keyPrefix&&Array.isArray(e)?e.map(e=>`${n.keyPrefix}${c}${e}`):n.keyPrefix?`${n.keyPrefix}${c}${e}`:e,r.t(o,n)};return t(e)?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=i,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
3if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let s=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||0===n||2===n};if(t.precheck){let e=t.precheck(this,s);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(n,e)&&(!i||s(r,e)))}loadNamespaces(e,i){let r=n();return this.options.ns?(t(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),i&&i(e)}),r):(i&&i(),Promise.resolve())}loadLanguages(e,i){let r=n();t(e)&&(e=[e]);let s=this.options.preload||[],o=e.filter(e=>0>s.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=s.concat(o),this.loadResources(e=>{r.resolve(),i&&i(e)}),r):(i&&i(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["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"].indexOf((this.services&&this.services.languageUtils||new j(V())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new B(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q,n=e.forkResourceStore;n&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},r=new B(i);return(void 0!==e.debug||void 0!==e.prefix)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(e=>{r[e]=this[e]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n&&(r.store=new k(this.store.data,i),r.services.resourceStore=r.store),r.translator=new L(r.services,i),r.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r.emit(e,...n)}),r.init(i,t),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let K=B.createInstance();K.createInstance=B.createInstance;let z=K.createInstance;K.dir,K.init,K.loadResources,K.reloadResources,K.use,K.changeLanguage,K.getFixedT,K.t,K.exists,K.setDefaultNamespace,K.hasLoadedNamespace,K.loadNamespaces,K.loadLanguages},441907,e=>{"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.s(["default",()=>o],441907);var n=[],i=n.forEach,r=n.slice;function s(e,t,n,i){var r=e.read.bind(e);if(2===r.length){try{var s=r(t,n);s&&"function"==typeof s.then?s.then(function(e){return i(null,e)}).catch(i):i(null,s)}catch(e){i(e)}return}r(t,n,i)}var o=function(){var e;function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(this instanceof n))throw TypeError("Cannot call a class as a function");this.backends=[],this.type="backend",this.allOptions=i,this.init(e,t)}return e=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return i.call(r.call(arguments,1
3),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}(n,this.options||{},{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}),this.allOptions=s,this.options.backends&&this.options.backends.forEach(function(n,i){t.backends[i]=t.backends[i]||(n?"function"==typeof n?new n:n:null),t.backends[i].init(e,t.options.backendOptions&&t.options.backendOptions[i]||{},s)}),this.services&&this.options.reloadInterval&&setInterval(function(){return t.reload()},this.options.reloadInterval)}},{key:"read",value:function(e,t,n){var i=this,r=this.backends.length,o=function n(r,s){if(!(r<0)){var o=i.backends[r];o.save&&o.save(e,t,s),n(r-1,s)}};!function a(l){if(l>=r)return n(Error("non of the backend loaded data",!0));var u=l===r-1,c=i.options.handleEmptyResourcesAsFailed&&!u?0:-1,p=i.backends[l];p.read?s(p,e,t,function(r,u,h){if(!r&&u&&Object.keys(u).length>c){if(n(null,u,l),o(l-1,u),p.save&&i.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(i.options.cacheHitMode)>-1){if(h&&i.options.refreshExpirationTime&&h+i.options.refreshExpirationTime>Date.now())return;var d=i.backends[l+1];d&&d.read&&s(d,e,t,function(n,r){!n&&r&&!(Object.keys(r).length<=c)&&(o(l,r),"refreshAndUpdateStore"===i.options.cacheHitMode&&i.services&&i.services.resourceStore&&i.services.resourceStore.addResourceBundle(e,t,r))})}}else a(l+1)}):a(l+1)}(0)}},{key:"create",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.backends.forEach(function(o){if(o.create){var a,l=o.create.bind(o);if(l.length<6){try{(a=5===l.length?l(e,t,n,i,s):l(e,t,n,i))&&"function"==typeof a.then?a.then(function(e){return r(null,e)}).catch(r):r(null,a)}catch(e){r(e)}return}l(e,t,n,i,r,s)}})}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,i=t.languageUtils,r=t.logger,s=n.language;if(!s||"cimode"!==s.toLowerCase()){var o=[],a=function(e){i.toResolveHierarchy(e).forEach(function(e){0>o.indexOf(e)&&o.push(e)})};a(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return a(e)}),o.forEach(function(t){e.allOptions.ns.forEach(function(e){n.read(t,e,"read",null,null,function(i,s){i&&r.warn("loading namespace ".concat(e," for language ").concat(t," failed"),i),!i&&s&&r.log("loaded namespace ".concat(e," for language ").concat(t),s),n.loaded("".concat(t,"|").concat(e),i,s)})})})}}}],function(e,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,n||"default");if("object"!=t(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(r.key),r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();o.type="backend"},2008,(e,t,n)=>{t.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}},785269,402607,345771,322831,200071,e=>{"use strict";let t;e.s([],785269),e.s(["Trans",()=>E],345771);var n=e.i(271645),i=e.i(2008),r=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function s(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(i.default[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var s=e.indexOf("-->");return{type:"comment",comment:-1!==s?e.slice(4,s):""}}for(var o=new RegExp(r),a=null;null!==(a=o.exec(e));
3)if(a[0].trim())if(a[1]){var l=a[1].trim(),u=[l,""];l.indexOf("=")>-1&&(u=l.split("=")),t.attrs[u[0]]=u[1],o.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var o=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,a=/^\s*$/,l=Object.create(null);let u={parse:function(e,t){t||(t={}),t.components||(t.components=l);var n,i=[],r=[],u=-1,c=!1;if(0!==e.indexOf("<")){var p=e.indexOf("<");i.push({type:"text",content:-1===p?e:e.substring(0,p)})}return e.replace(o,function(o,l){if(c){if(o!=="</"+n.name+">")return;c=!1}var p,h="/"!==o.charAt(1),d=o.startsWith("<!--"),g=l+o.length,f=e.charAt(g);if(d){var m=s(o);return u<0?i.push(m):(p=r[u]).children.push(m),i}if(h&&(u++,"tag"===(n=s(o)).type&&t.components[n.name]&&(n.type="component",c=!0),n.voidElement||c||!f||"<"===f||n.children.push({type:"text",content:e.slice(g,e.indexOf("<",g))}),0===u&&i.push(n),(p=r[u-1])&&p.children.push(n),r[u]=n),(!h||n.voidElement)&&(u>-1&&(n.voidElement||n.name===o.slice(2,-1))&&(n=-1==--u?i:r[u]),!c&&"<"!==f&&f)){p=-1===u?i:r[u].children;var y=e.indexOf("<",g),v=e.slice(g,-1===y?void 0:y);a.test(v)&&(v=" "),(y>-1&&u+p.length>=0||" "!==v)&&p.push({type:"text",content:v})}}),i}};function c(){if(console&&console.warn){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];v(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}let p={};function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];v(t[0])&&p[t[0]]||(v(t[0])&&(p[t[0]]=new Date),c(...t))}let d=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},g=(e,t,n)=>{e.loadNamespaces(t,d(e,n))},f=(e,t,n,i)=>{v(n)&&(n=[n]),n.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,d(e,i))},m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.languages[0],r=!!t.options&&t.options.fallbackLng,s=t.languages[t.languages.length-1];if("cimode"===i.toLowerCase())return!0;let o=(e,n)=>{let i=t.services.backendConnector.state[`${e}|${n}`];return -1===i||2===i};return(!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!o(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(i,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(i,e)&&(!r||o(s,e)))},y=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?m(e,t,n):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e))return!1}}):(h("i18n.languages were undefined or empty",t.languages),!0)},v=e=>"string"==typeof e,b=e=>"object"==typeof e&&null!==e,x=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,O={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},k=e=>O[e],S={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(x,k)},w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};S={...S,...e}},L=(e,t)=>{if(!e)return!1;let n=e.props?e.props.children:e.children;return t?n.length>0:!!n},N=e=>{if(!e)return[];let t=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?j(t):t},j=e=>Array.isArray(e)?e:[e],P=(e,t)=>{if(!e)return"";let i="",r=j(e),s=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return r.forEach((e,r)=>{if(v(e))i+=`${e}`;else if((0,n.isValidElement)(e)){let{props:n,type:o}=e,a=Object.keys(n).length,l=s.indexOf(o)>-1,u=n.children;if(u||!l||a)if(!u&&(!l||a)||n.i18nIsDynamicList)i+=`<${r}></${r}>`;else if(l&&1===a&&v(u))i+=`<${o}>${u}</${o}>`;else{let e=P(u,t);i+=`<${r}>${e}</${r}>`}else i+=`<${o}/>`}
3else if(null===e)c("Trans: the passed in value is invalid - seems you passed in a null child.");else if(b(e)){let{format:t,...n}=e,r=Object.keys(n);if(1===r.length){let e=t?`${r[0]}, ${t}`:r[0];i+=`{{${e}}}`}else c("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else c("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)}),i};e.s(["initReactI18next",()=>$],402607);let $={type:"3rdParty",init(e){w(e.options.react),t=e}},R=(0,n.createContext)();class C{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces=()=>Object.keys(this.usedNamespaces)}function E(e){let{children:i,count:r,parent:s,i18nKey:o,context:a,tOptions:l={},values:c,defaults:p,components:d,ns:g,i18n:f,t:m,shouldUnescape:y,...x}=e,{i18n:O,defaultNS:k}=(0,n.useContext)(R)||{},w=f||O||t,$=m||w&&w.t.bind(w);return function(e){let{children:i,count:r,parent:s,i18nKey:o,context:a,tOptions:l={},values:c,defaults:p,components:d,ns:g,i18n:f,t:m,shouldUnescape:y,...x}=e,O=f||t;if(!O)return h("You will need to pass in an i18next instance by using i18nextReactModule"),i;let k=m||O.t.bind(O)||(e=>e),w={...S,...O.options&&O.options.react},$=g||k.ns||O.options&&O.options.defaultNS;$=v($)?[$]:$||["translation"];let R=P(i,w),C=p||R||w.transEmptyNodeValue||o,{hashTransKey:E}=w,I=o||(E?E(R||C):R||C);O.options&&O.options.interpolation&&O.options.interpolation.defaultVariables&&(c=c&&Object.keys(c).length>0?{...c,...O.options.interpolation.defaultVariables}:{...O.options.interpolation.defaultVariables});let A=c||void 0!==r||!i?l.interpolation:{interpolation:{...l.interpolation,prefix:"#$?",suffix:"?$#"}},F={...l,context:a||l.context,count:r,...c,...A,defaultValue:C,ns:$},T=I?k(I,F):C;d&&Object.keys(d).forEach(e=>{let t=d[e];"function"==typeof t.type||!t.props||!t.props.children||0>T.indexOf(`${e}/>`)&&0>T.indexOf(`${e} />`)||(d[e]=(0,n.createElement)(function(){return(0,n.createElement)(n.Fragment,null,t)}))});let D=((e,t,i,r,s,o)=>{if(""===t)return[];let a=r.transKeepBasicHtmlNodesFor||[],l=t&&new RegExp(a.map(e=>`<${e}`).join("|")).test(t);if(!e&&!l&&!o)return[t];let c={},p=e=>{j(e).forEach(e=>{v(e)||(L(e)?p(N(e)):b(e)&&!(0,n.isValidElement)(e)&&Object.assign(c,e))})};p(e);let h=u.parse(`<0>${t}</0>`),d={...c,...s},g=(e,t,i)=>{let r,s=N(e),o=m(s,t.children,i);return Array.isArray(r=s)&&r.every(n.isValidElement)&&0===o.length||e.props&&e.props.i18nIsDynamicList?s:o},f=(e,t,i,r,s)=>{e.dummy?(e.children=t,i.push((0,n.cloneElement)(e,{key:r},s?void 0:t))):i.push(...n.Children.map([e],e=>{let i={...e.props};return delete i.i18nIsDynamicList,(0,n.createElement)(e.type,{...i,key:r,ref:e.ref},s?null:t)}))},m=(t,s,u)=>{let c=j(t);return j(s).reduce((t,s,p)=>{let h=s.children&&s.children[0]&&s.children[0].content&&i.services.interpolator.interpolate(s.children[0].content,d,i.language);if("tag"===s.type){let o=c[parseInt(s.name,10)];1!==u.length||o||(o=u[0][s.name]),o||(o={});let y=0!==Object.keys(s.attrs).length?((e,t)=>{let n={...t};return n.props=Object.assign(e.props,t.props),n})({props:s.attrs},o):o,x=(0,n.isValidElement)(y),O=x&&L(s,!0)&&!s.voidElement,k=l&&b(y)&&y.dummy&&!x,S=b(e)&&Object.hasOwnProperty.call(e,s.name);if(v(y)){let e=i.services.interpolator.interpolate(y,d,i.language);t.push(e)}else if(L(y)||O){let e=g(y,s,u);f(y,e,t,p)}else if(k)f(y,m(c,s.children,u),t,p);else if(Number.isNaN(parseFloat(s.name)))if(S){let e=g(y,s,u);f(y,e,t,p,s.voidElement)}else if(r.transSupportBasicHtmlNodes&&a.indexOf(s.name)>-1)if(s.voidElement)t.push((0,n.createElement)(s.name,{key:`${s.name}-${p}`}));else{let e=m(c,s.children,u);t.push((0,n.createElement)(s.name,{key:`${s.name}-${p}`},e))}else if(s.voidElement)t.push(`<${s.name} />`);else{let e=m(c,s.children,u);t.push(`<${s.name}>${e}</${s.name}>`)}else if(b(y)&&!x){let e=s.children[0]?h:null;e&&t.push(e)}else f(y,h,t,p,1!==s.children.length||!h)}else if("text"===s.type){let e=r.transWrapTextNodes,a=o?r.unescape(i.services.interpolator.interpolate(s.content,d,i.language)):i.services.interpolator.interpolate(s.content,d,i.language);e?t.push((0,n.createElement)(e,{key:`${s.name}-${p}`},a)):t.push(a)}return t},[])};return N(m([{dummy:!0,children:e||[]}],h,j(e||[]))[0])})(d||i,T,O,w,F,y),U=void 0!==s?s:w.defaultTransParent;return U?(0,n.createElement)(U,x,D):D}({children:i,count:r,parent:s,i18nKey:o,context:a,tOptions:l,values:c,defaults:p,c
3omponents:d,ns:g||$&&$.ns||k||w&&w.options&&w.options.defaultNS,i18n:w,t:m,shouldUnescape:y,...x})}e.s(["useTranslation",()=>A],322831);let I=(e,t,n,i)=>e.getFixedT(t,n,i),A=function(e){let i,r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{i18n:o}=s,{i18n:a,defaultNS:l}=(0,n.useContext)(R)||{},u=o||a||t;if(u&&!u.reportNamespaces&&(u.reportNamespaces=new C),!u){h("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>v(t)?t:b(t)&&v(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}u.options.react&&void 0!==u.options.react.wait&&h("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let c={...S,...u.options.react,...s},{useSuspense:p,keyPrefix:d}=c,m=e||l||u.options&&u.options.defaultNS;m=v(m)?[m]:m||["translation"],u.reportNamespaces.addUsedNamespaces&&u.reportNamespaces.addUsedNamespaces(m);let x=(u.isInitialized||u.initializedStoreOnce)&&m.every(e=>y(e,u,c)),O=(i=s.lng||null,r="fallback"===c.nsMode?m:m[0],(0,n.useCallback)(I(u,i,r,d),[u,i,r,d])),k=()=>O,w=()=>I(u,s.lng||null,"fallback"===c.nsMode?m:m[0],d),[L,N]=(0,n.useState)(k),j=m.join();s.lng&&(j=`${s.lng}${j}`);let P=((e,t)=>{let i=(0,n.useRef)();return(0,n.useEffect)(()=>{i.current=t?i.current:e},[e,t]),i.current})(j),$=(0,n.useRef)(!0);(0,n.useEffect)(()=>{let{bindI18n:e,bindI18nStore:t}=c;$.current=!0,x||p||(s.lng?f(u,s.lng,m,()=>{$.current&&N(w)}):g(u,m,()=>{$.current&&N(w)})),x&&P&&P!==j&&$.current&&N(w);let n=()=>{$.current&&N(w)};return e&&u&&u.on(e,n),t&&u&&u.store.on(t,n),()=>{$.current=!1,e&&u&&e.split(" ").forEach(e=>u.off(e,n)),t&&u&&t.split(" ").forEach(e=>u.store.off(e,n))}},[u,j]),(0,n.useEffect)(()=>{$.current&&x&&N(k)},[u,d,x]);let E=[L,u,x];if(E.t=L,E.i18n=u,E.ready=x,x||!x&&!p)return E;throw new Promise(e=>{s.lng?f(u,s.lng,m,()=>e()):g(u,m,()=>e())})};function F(e){let{i18n:t,defaultNS:i,children:r}=e,s=(0,n.useMemo)(()=>({i18n:t,defaultNS:i}),[t,i]);return(0,n.createElement)(R.Provider,{value:s},r)}e.s(["I18nextProvider",()=>F],200071)},257620,635439,e=>{"use strict";e.s([],257620),e.i(149612),e.s(["I18nNsProvider",()=>a],635439);var t=e.i(843476),n=e.i(645141),i=e.i(441907),r=e.i(271645);e.i(785269);var s=e.i(200071),o=e.i(402607);let a=({children:e,localConfig:a})=>{let u=(0,r.useRef)(!1);if(!u.current&&!a.backend){if(n.default.isInitialized){if(console.log("i18n update with :",{ns:a.defaultNS,namespaces:a.ns}),((e,t)=>{let{resources:n,supportedLngs:i,ns:r}=t;n&&i&&r&&i.forEach(t=>{if("string"!=typeof t)return;let i=n[t];i&&(Array.isArray(r)?r:[r]).forEach(n=>{if(!e.hasResourceBundle(t,n)){let r=i[n];"object"==typeof r&&e.addResourceBundle(t,n,r,!0,!0)}})})})(n.default,a),a.fallbackNS){let e=n.default.options.fallbackNS,t=Array.isArray(a.fallbackNS)?a.fallbackNS:[a.fallbackNS],i=Array.from(new Set([...e?Array.isArray(e)?e:[e]:[],...t]));n.default.options.fallbackNS=i}console.log("...i18n updated",a.defaultNS),a.lng&&n.default.language!==a.lng&&n.default.changeLanguage(a.lng)}else console.log("i18n initialize with :",{ns:a.defaultNS,namespaces:a.ns}),n.default.use(i.default).use(o.initReactI18next).init(a),console.log("...i18n initialized",a.defaultNS);u.current=!0}return a.backend?(0,t.jsx)(l,{localConfig:a,children:e}):n.default.isInitialized?(0,t.jsx)(s.I18nextProvider,{i18n:n.default,defaultNS:a.defaultNS,children:e}):(0,t.jsx)(t.Fragment,{children:e})},l=({children:e,localConfig:a})=>{let l=(0,r.useMemo)(()=>{let e=n.default.createInstance(a).use(i.default).use(o.initReactI18next);return e.isInitialized||(console.log("i18n w/ backend initialize with :",{ns:a.defaultNS,namespaces:a.ns}),e.on("loaded",()=>{console.log("...i18n backend resources loaded",a.defaultNS)}),e.init(a),e.language&&e.reloadResources(),console.log("...i18n w/ backend initialized",a.defaultNS)),e},[a.defaultNS]);return(0,t.jsx)(s.I18nextProvider,{i18n:l,defaultNS:a.defaultNS,children:e})};e.i(322831)}]);
4
5//# sourceMappingURL=d833258a6f68f5a5.js.map
6//# debugId=f32e7166-3424-5bdc-95dd-68f454b9c1cc

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.