import{a as t,h as e}from"./p-5925f187.js";import{c as n,a as i}from"./p-e9c4f463.js";import{a as r}from"./p-dce02d5a.js";import{d as s}from"./p-37511f39.js";import{D as o}from"./p-4fb8ce4b.js";const f={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){if(console&&console[t])console[t].apply(console,e)}};class u{constructor(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.prefix=e.prefix||"i18next:";this.logger=t||f;this.options=e;this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),n=0;n{if(!this.observers[t])this.observers[t]=new Map;const n=this.observers[t].get(e)||0;this.observers[t].set(e,n+1)}));return this}off(t,e){if(!this.observers[t])return;if(!e){delete this.observers[t];return}this.observers[t].delete(e)}emit(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i{let[e,i]=t;for(let t=0;t{let[i,r]=e;for(let e=0;e{t=n;e=i}));n.resolve=t;n.reject=e;return n}function l(t){if(t==null)return"";return""+t}function d(t,e,n){t.forEach((t=>{if(e[t])n[t]=e[t]}))}const p=/###/g;function m(t,e,n){function i(t){return t&&t.indexOf("###")>-1?t.replace(p,"."):t}function r(){return!t||typeof t==="string"}const s=typeof e!=="string"?e:e.split(".");let o=0;while(o":">",'"':""","'":"'","/":"/"};function O(t){if(typeof t==="string"){return t.replace(/[&<>"'\/]/g,(t=>$[t]))}return t}class S{constructor(t){this.capacity=t;this.regExpMap=new Map;this.regExpQueue=[]}getRegExp(t){const e=this.regExpMap.get(t);if(e!==undefined){return e}const n=new RegExp(t);if(this.regExpQueue.length===this.capacity){this.regExpMap.delete(this.regExpQueue.shift())}this.regExpMap.set(t,n);this.regExpQueue.push(t);return n}}const k=[" ",",","?","!",";"];const N=new S(20);function x(t,e,n){e=e||"";n=n||"";const i=k.filter((t=>e.indexOf(t)<0&&n.indexOf(t)<0));if(i.length===0)return true;const r=N.getRegExp(`(${i.map((t=>t==="?"?"\\?":t)).join("|")})`);let s=!r.test(t);if(!s){const e=t.indexOf(n);if(e>0&&!r.test(t.substring(0,e))){s=true}}return s}function P(t,e){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:".";if(!t)return undefined;if(t[e])return t[e];const i=e.split(n);let r=t;for(let t=0;t-1&&o0)return t.replace("_","-");return t}class T extends c{constructor(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{ns:["translation"],defaultNS:"translation"};super();this.data=t||{};this.options=e;if(this.options.keySeparator===undefined){this.options.keySeparator="."}if(this.options.ignoreJSONStructure===undefined){this.options.ignoreJSONStructure=true}}addNamespaces(t){if(this.options.ns.indexOf(t)<0){this.options.ns.push(t)}}removeNamespaces(t){const e=this.options.ns.indexOf(t);if(e>-1){this.options.ns.splice(e,1)}}getResource(t,e,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};const r=i.keySeparator!==undefined?i.keySeparator:this.options.keySeparator;const s=i.ignoreJSONStructure!==undefined?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;if(t.indexOf(".")>-1){o=t.split(".")}else{o=[t,e];if(n){if(Array.isArray(n)){o.push(...n)}else if(typeof n==="string"&&r){o.push(...n.split(r))}else{o.push(n)}}}const f=g(this.data,o);if(!f&&!e&&!n&&t.indexOf(".")>-1){t=o[0];e=o[1];n=o.slice(2).join(".")}if(f||!s||typeof n!=="string")return f;return P(this.data&&this.data[t]&&this.data[t][e],n,r)}addResource(t,e,n,i){let r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{silent:false};const s=r.keySeparator!==undefined?r.keySeparator:this.options.keySeparator;let o=[t,e];if(n)o=o.concat(s?n.split(s):n);if(t.indexOf(".")>-1){o=t.split(".");i=e;e=o[1]}this.addNamespaces(e);y(this.data,o,i);if(!r.silent)this.emit("added",t,e,n,i)}addResources(t,e,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{silent:false};for(const i in n){if(typeof n[i]==="string"||Array.isArray(n[i]))this.addResource(t,e,i,n[i],{silent:true})}if(!i.silent)this.emit("added",t,e,n)}addResourceBundle(t,e,n,i,r){let s=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{silent:false,skipCopy:false};let o=[t,e];if(t.indexOf(".")>-1){o=t.split(".");i=n;n=e;e=o[1]}this.addNamespaces(e);let f=g(this.data,o)||{};if(!s.skipCopy)n=JSON.parse(JSON.stringify(n));if(i){v(f,n,r)}else{f={...f,...n}}y(this.data,o,f);if(!s.silent)this.emit("added",t,e,n)}removeResourceBundle(t,e){if(this.hasResourceBundle(t,e)){delete this.data[t][e]}this.removeNamespaces(e);this.emit("removed",t,e)}hasResourceBundle(t,e){return this.getResource(t,e)!==undefined}getResourceBundle(t,e){if(!e)e=this.options.defaultNS;if(this.options.compatibilityAPI==="v1")return{...{},...this.getResource(t,e)};return this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);const n=e&&Object.keys(e)||[];return!!n.find((t=>e[t]&&Object.keys(e[t]).length>0))}toJSON(){return this.data}}var R={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,r){t.forEach((t=>{if(this.processors[t])e=this.processors[t].process(e,n,i,r)}));return e}};const E={};class L extends c{constructor(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};super();d(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this);this.options=e;if(this.options.keySeparator===undefined){this.options.keySeparator="."}this.logger=a.create("translator")}changeLanguage(t){if(t)this.language=t}exists(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{interpolation:{}};if(t===undefined||t===null){return false}const n=this.resolve(t,e);return n&&n.res!==undefined}extractFromKey(t,e){let n=e.nsSeparator!==undefined?e.nsSeparator:this.options.nsSeparator;if(n===undefined)n=":";const i=e.keySeparator!==undefined?e.keySeparator:this.options.keySeparator;let r=e.ns||this.options.defaultNS||[];const s=n&&t.indexOf(n)>-1;const o=!this.options.userDefinedKeySeparator&&!e.keySeparator&&!this.options.userDefinedNsSeparator&&!e.nsSeparator&&!x(t,n,i);if(s&&!o){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0){return{key:t,namespaces:r}}const s=t.split(n);if(n!==i||n===i&&this.options.ns.indexOf(s[0])>-1)r=s.shift();t=s.join(i)}if(typeof r==="string")r=[r];return{key:t,namespaces:r}}translate(t,e,n){if(typeof e!=="object"&&this.options.overloadTranslationOptionHandler){e=this.options.overloadTranslationOptionHandler(arguments)}if(typeof e==="object")e={...e};if(!e)e={};if(t===undefined||t===null)return"";if(!Array.isArray(t))t=[String(t)];const i=e.returnDetails!==undefined?e.returnDetails:this.options.returnDetails;const r=e.keySeparator!==undefined?e.keySeparator:this.options.keySeparator;const{key:s,namespaces:o}=this.extractFromKey(t[t.length-1],e);const f=o[o.length-1];const u=e.lng||this.language;const a=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(a){const t=e.nsSeparator||this.options.nsSeparator;if(i){return{res:`${f}${t}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:f,usedParams:this.getUsedParamsDetails(e)}}return`${f}${t}${s}`}if(i){return{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:f,usedParams:this.getUsedParamsDetails(e)}}return s}const c=this.resolve(t,e);let h=c&&c.res;const l=c&&c.usedKey||s;const d=c&&c.exactUsedKey||s;const p=Object.prototype.toString.apply(h);const m=["[object Number]","[object Function]","[object RegExp]"];const y=e.joinArrays!==undefined?e.joinArrays:this.options.joinArrays;const b=!this.i18nFormat||this.i18nFormat.handleAsObject;const g=typeof h!=="string"&&typeof h!=="boolean"&&typeof h!=="number";if(b&&h&&g&&m.indexOf(p)<0&&!(typeof y==="string"&&Array.isArray(h))){if(!e.returnObjects&&!this.options.returnObjects){if(!this.options.returnedObjectHandler){this.logger.warn("accessing an object - but returnObjects options is not enabled!")}const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(l,h,{...e,ns:o}):`key '${s} (${this.language})' returned an object instead of string.`;if(i){c.res=t;c.usedParams=this.getUsedParamsDetails(e);return c}return t}if(r){const t=Array.isArray(h);const n=t?[]:{};const i=t?d:l;for(const t in h){if(Object.prototype.hasOwnProperty.call(h,t)){const s=`${i}${r}${t}`;n[t]=this.translate(s,{...e,...{joinArrays:false,ns:o}});if(n[t]===s)n[t]=h[t]}}h=n}}else if(b&&typeof y==="string"&&Array.isArray(h)){h=h.join(y);if(h)h=this.extendTranslation(h,t,e,n)}else{let i=false;let o=false;const a=e.count!==undefined&&typeof e.count!=="string";const l=L.hasDefaultValue(e);const d=a?this.pluralResolver.getSuffix(u,e.count,e):"";const p=e.ordinal&&a?this.pluralResolver.getSuffix(u,e.count,{ordinal:false}):"";const m=a&&!e.ordinal&&e.count===0&&this.pluralResolver.shouldUseIntlApi();const y=m&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${d}`]||e[`defaultValue${p}`]||e.defaultValue;if(!this.isValidLookup(h)&&l){i=true;h=y}if(!this.isValidLookup(h)){o=true;h=s}const b=e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey;const g=b&&o?undefined:h;const j=l&&y!==h&&this.options.updateMissing;if(o||i||j){this.logger.log(j?"updateKey":"missingKey",u,f,s,j?y:h);if(r){const t=this.resolve(s,{...e,keySeparator:false});if(t&&t.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 t=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if(this.options.saveMissingTo==="fallback"&&n&&n[0]){for(let e=0;e{const r=l&&i!==h?i:g;if(this.options.missingKeyHandler){this.options.missingKeyHandler(t,f,n,r,j,e)}else if(this.backendConnector&&this.backendConnector.saveMissing){this.backendConnector.saveMissing(t,f,n,r,j,e)}this.emit("missingKey",t,f,n,h)};if(this.options.saveMissing){if(this.options.saveMissingPlurals&&a){t.forEach((t=>{const n=this.pluralResolver.getSuffixes(t,e);if(m&&e[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0){n.push(`${this.options.pluralSeparator}zero`)}n.forEach((n=>{i([t],s+n,e[`defaultValue${n}`]||y)}))}))}else{i(t,s,y)}}}h=this.extendTranslation(h,t,e,c,n);if(o&&h===s&&this.options.appendNamespaceToMissingKey)h=`${f}:${s}`;if((o||i)&&this.options.parseMissingKeyHandler){if(this.options.compatibilityAPI!=="v1"){h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${f}:${s}`:s,i?h:undefined)}else{h=this.options.parseMissingKeyHandler(h)}}}if(i){c.res=h;c.usedParams=this.getUsedParamsDetails(e);return c}return h}extendTranslation(t,e,n,i,r){var s=this;if(this.i18nFormat&&this.i18nFormat.parse){t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i})}else if(!n.skipInterpolation){if(n.interpolation)this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});const o=typeof t==="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==undefined?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(o){const e=t.match(this.interpolator.nestingRegexp);f=e&&e.length}let u=n.replace&&typeof n.replace!=="string"?n.replace:n;if(this.options.interpolation.defaultVariables)u={...this.options.interpolation.defaultVariables,...u};t=this.interpolator.interpolate(t,u,n.lng||this.language||i.usedLng,n);if(o){const e=t.match(this.interpolator.nestingRegexp);const i=e&&e.length;if(f1&&arguments[1]!==undefined?arguments[1]:{};let n;let i;let r;let s;let o;if(typeof t==="string")t=[t];t.forEach((t=>{if(this.isValidLookup(n))return;const f=this.extractFromKey(t,e);const u=f.key;i=u;let a=f.namespaces;if(this.options.fallbackNS)a=a.concat(this.options.fallbackNS);const c=e.count!==undefined&&typeof e.count!=="string";const h=c&&!e.ordinal&&e.count===0&&this.pluralResolver.shouldUseIntlApi();const l=e.context!==undefined&&(typeof e.context==="string"||typeof e.context==="number")&&e.context!=="";const d=e.lngs?e.lngs:this.languageUtils.toResolveHierarchy(e.lng||this.language,e.fallbackLng);a.forEach((t=>{if(this.isValidLookup(n))return;o=t;if(!E[`${d[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)){E[`${d[0]}-${t}`]=true;this.logger.warn(`key "${i}" for languages "${d.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!!!")}d.forEach((i=>{if(this.isValidLookup(n))return;s=i;const o=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys){this.i18nFormat.addLookupKeys(o,u,i,t,e)}else{let t;if(c)t=this.pluralResolver.getSuffix(i,e.count,e);const n=`${this.options.pluralSeparator}zero`;const r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c){o.push(u+t);if(e.ordinal&&t.indexOf(r)===0){o.push(u+t.replace(r,this.options.pluralSeparator))}if(h){o.push(u+n)}}if(l){const i=`${u}${this.options.contextSeparator}${e.context}`;o.push(i);if(c){o.push(i+t);if(e.ordinal&&t.indexOf(r)===0){o.push(i+t.replace(r,this.options.pluralSeparator))}if(h){o.push(i+n)}}}}let f;while(f=o.pop()){if(!this.isValidLookup(n)){r=f;n=this.getResource(i,t,f,e)}}}))}))}));return{res:n,usedKey:i,exactUsedKey:r,usedLng:s,usedNS:o}}isValidLookup(t){return t!==undefined&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,e,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};if(this.i18nFormat&&this.i18nFormat.getResource)return this.i18nFormat.getResource(t,e,n,i);return this.resourceStore.getResource(t,e,n,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"];const n=t.replace&&typeof t.replace!=="string";let i=n?t.replace:t;if(n&&typeof t.count!=="undefined"){i.count=t.count}if(this.options.interpolation.defaultVariables){i={...this.options.interpolation.defaultVariables,...i}}if(!n){i={...i};for(const t of e){delete i[t]}}return i}static hasDefaultValue(t){const e="defaultValue";for(const n in t){if(Object.prototype.hasOwnProperty.call(t,n)&&e===n.substring(0,e.length)&&undefined!==t[n]){return true}}return false}}function C(t){return t.charAt(0).toUpperCase()+t.slice(1)}class I{constructor(t){this.options=t;this.supportedLngs=this.options.supportedLngs||false;this.logger=a.create("languageUtils")}getScriptPartFromCode(t){t=A(t);if(!t||t.indexOf("-")<0)return null;const e=t.split("-");if(e.length===2)return null;e.pop();if(e[e.length-1].toLowerCase()==="x")return null;return this.formatLanguageCode(e.join("-"))}getLanguagePartFromCode(t){t=A(t);if(!t||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if(typeof t==="string"&&t.indexOf("-")>-1){const e=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");if(this.options.lowerCaseLng){n=n.map((t=>t.toLowerCase()))}else if(n.length===2){n[0]=n[0].toLowerCase();n[1]=n[1].toUpperCase();if(e.indexOf(n[1].toLowerCase())>-1)n[1]=C(n[1].toLowerCase())}else if(n.length===3){n[0]=n[0].toLowerCase();if(n[1].length===2)n[1]=n[1].toUpperCase();if(n[0]!=="sgn"&&n[2].length===2)n[2]=n[2].toUpperCase();if(e.indexOf(n[1].toLowerCase())>-1)n[1]=C(n[1].toLowerCase());if(e.indexOf(n[2].toLowerCase())>-1)n[2]=C(n[2].toLowerCase())}return n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){if(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs){t=this.getLanguagePartFromCode(t)}return!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;t.forEach((t=>{if(e)return;const n=this.formatLanguageCode(t);if(!this.options.supportedLngs||this.isSupportedCode(n))e=n}));if(!e&&this.options.supportedLngs){t.forEach((t=>{if(e)return;const n=this.getLanguagePartFromCode(t);if(this.isSupportedCode(n))return e=n;e=this.options.supportedLngs.find((t=>{if(t===n)return t;if(t.indexOf("-")<0&&n.indexOf("-")<0)return;if(t.indexOf("-")>0&&n.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===n)return t;if(t.indexOf(n)===0&&n.length>1)return t}))}))}if(!e)e=this.getFallbackCodes(this.options.fallbackLng)[0];return e}getFallbackCodes(t,e){if(!t)return[];if(typeof t==="function")t=t(e);if(typeof t==="string")t=[t];if(Array.isArray(t))return t;if(!e)return t.default||[];let n=t[e];if(!n)n=t[this.getScriptPartFromCode(e)];if(!n)n=t[this.formatLanguageCode(e)];if(!n)n=t[this.getLanguagePartFromCode(e)];if(!n)n=t.default;return n||[]}toResolveHierarchy(t,e){const n=this.getFallbackCodes(e||this.options.fallbackLng||[],t);const i=[];const r=t=>{if(!t)return;if(this.isSupportedCode(t)){i.push(t)}else{this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`)}};if(typeof t==="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)){if(this.options.load!=="languageOnly")r(this.formatLanguageCode(t));if(this.options.load!=="languageOnly"&&this.options.load!=="currentOnly")r(this.getScriptPartFromCode(t));if(this.options.load!=="currentOnly")r(this.getLanguagePartFromCode(t))}else if(typeof t==="string"){r(this.formatLanguageCode(t))}n.forEach((t=>{if(i.indexOf(t)<0)r(this.formatLanguageCode(t))}));return i}}let z=[{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}];let U={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}};const D=["v1","v2","v3"];const B=["v4"];const M={zero:0,one:1,two:2,few:3,many:4,other:5};function F(){const t={};z.forEach((e=>{e.lngs.forEach((n=>{t[n]={numbers:e.nr,plurals:U[e.fc]}}))}));return t}class q{constructor(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.languageUtils=t;this.options=e;this.logger=a.create("pluralResolver");if((!this.options.compatibilityJSON||B.includes(this.options.compatibilityJSON))&&(typeof Intl==="undefined"||!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=F()}addRule(t,e){this.rules[t]=e}getRule(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(this.shouldUseIntlApi()){try{return new Intl.PluralRules(A(t==="dev"?"en":t),{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};const n=this.getRule(t,e);if(this.shouldUseIntlApi()){return n&&n.resolvedOptions().pluralCategories.length>1}return n&&n.numbers.length>1}getPluralFormsOfKey(t,e){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return this.getSuffixes(t,n).map((t=>`${e}${t}`))}getSuffixes(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};const n=this.getRule(t,e);if(!n){return[]}if(this.shouldUseIntlApi()){return n.resolvedOptions().pluralCategories.sort(((t,e)=>M[t]-M[e])).map((t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`))}return n.numbers.map((n=>this.getSuffix(t,n,e)))}getSuffix(t,e){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};const i=this.getRule(t,n);if(i){if(this.shouldUseIntlApi()){return`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(e)}`}return this.getSuffixRetroCompatible(i,e)}this.logger.warn(`no plural rule found for: ${t}`);return""}getSuffixRetroCompatible(t,e){const n=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let i=t.numbers[n];if(this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1){if(i===2){i="plural"}else if(i===1){i=""}}const r=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();if(this.options.compatibilityJSON==="v1"){if(i===1)return"";if(typeof i==="number")return`_plural_${i.toString()}`;return r()}else if(this.options.compatibilityJSON==="v2"){return r()}else if(this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1){return r()}return this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!D.includes(this.options.compatibilityJSON)}}function H(t,e,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:".";let r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:true;let s=j(t,e,n);if(!s&&r&&typeof n==="string"){s=P(t,n,i);if(s===undefined)s=P(e,n,i)}return s}class _{constructor(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this.logger=a.create("interpolator");this.options=t;this.format=t.interpolation&&t.interpolation.format||(t=>t);this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!t.interpolation)t.interpolation={escapeValue:true};const{escape:e,escapeValue:n,useRawValueToEscape:i,prefix:r,prefixEscaped:s,suffix:o,suffixEscaped:f,formatSeparator:u,unescapeSuffix:a,unescapePrefix:c,nestingPrefix:h,nestingPrefixEscaped:l,nestingSuffix:d,nestingSuffixEscaped:p,nestingOptionsSeparator:m,maxReplaces:y,alwaysFormat:b}=t.interpolation;this.escape=e!==undefined?e:O;this.escapeValue=n!==undefined?n:true;this.useRawValueToEscape=i!==undefined?i:false;this.prefix=r?w(r):s||"{{";this.suffix=o?w(o):f||"}}";this.formatSeparator=u||",";this.unescapePrefix=a?"":c||"-";this.unescapeSuffix=this.unescapePrefix?"":a||"";this.nestingPrefix=h?w(h):l||w("$t(");this.nestingSuffix=d?w(d):p||w(")");this.nestingOptionsSeparator=m||",";this.maxReplaces=y||1e3;this.alwaysFormat=b!==undefined?b:false;this.resetRegExp()}reset(){if(this.options)this.init(this.options)}resetRegExp(){const t=(t,e)=>{if(t&&t.source===e){t.lastIndex=0;return t}return new RegExp(e,"g")};this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`);this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`);this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,e,n,i){let r;let s;let o;const f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(t){return t.replace(/\$/g,"$$$$")}const a=t=>{if(t.indexOf(this.formatSeparator)<0){const r=H(e,f,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,undefined,n,{...i,...e,interpolationkey:t}):r}const r=t.split(this.formatSeparator);const s=r.shift().trim();const o=r.join(this.formatSeparator).trim();return this.format(H(e,f,s,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...i,...e,interpolationkey:s})};this.resetRegExp();const c=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler;const h=i&&i.interpolation&&i.interpolation.skipOnVariables!==undefined?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;const d=[{regex:this.regexpUnescape,safeValue:t=>u(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?u(this.escape(t)):u(t)}];d.forEach((e=>{o=0;while(r=e.regex.exec(t)){const n=r[1].trim();s=a(n);if(s===undefined){if(typeof c==="function"){const e=c(t,r,i);s=typeof e==="string"?e:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n)){s=""}else if(h){s=r[0];continue}else{this.logger.warn(`missed to pass in variable ${n} for interpolating ${t}`);s=""}}else if(typeof s!=="string"&&!this.useRawValueToEscape){s=l(s)}const f=e.safeValue(s);t=t.replace(r[0],f);if(h){e.regex.lastIndex+=s.length;e.regex.lastIndex-=r[0].length}else{e.regex.lastIndex=0}o++;if(o>=this.maxReplaces){break}}}));return t}nest(t,e){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};let i;let r;let s;function o(t,e){const n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;const i=t.split(new RegExp(`${n}[ ]*{`));let r=`{${i[1]}`;t=i[0];r=this.interpolate(r,s);const o=r.match(/'/g);const f=r.match(/"/g);if(o&&o.length%2===0&&!f||f.length%2!==0){r=r.replace(/'/g,'"')}try{s=JSON.parse(r);if(e)s={...e,...s}}catch(e){this.logger.warn(`failed parsing options string in nesting for key ${t}`,e);return`${t}${n}${r}`}if(s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1)delete s.defaultValue;return t}while(i=this.nestingRegexp.exec(t)){let f=[];s={...n};s=s.replace&&typeof s.replace!=="string"?s.replace:s;s.applyPostProcessor=false;delete s.defaultValue;let u=false;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const t=i[1].split(this.formatSeparator).map((t=>t.trim()));i[1]=t.shift();f=t;u=true}r=e(o.call(this,i[1].trim(),s),s);if(r&&i[0]===t&&typeof r!=="string")return r;if(typeof r!=="string")r=l(r);if(!r){this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`);r=""}if(u){r=f.reduce(((t,e)=>this.format(t,e,n.lng,{...n,interpolationkey:i[1].trim()})),r.trim())}t=t.replace(i[0],r);this.regexp.lastIndex=0}return t}}function V(t){let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);if(e==="currency"&&r.indexOf(":")<0){if(!n.currency)n.currency=r.trim()}else if(e==="relativetime"&&r.indexOf(":")<0){if(!n.range)n.range=r.trim()}else{const t=r.split(";");t.forEach((t=>{if(t){const[e,...i]=t.split(":");const r=i.join(":").trim().replace(/^'+|'+$/g,"");const s=e.trim();if(!n[s])n[s]=r;if(r==="false")n[s]=false;if(r==="true")n[s]=true;if(!isNaN(r))n[s]=parseInt(r,10)}}))}}return{formatName:e,formatOptions:n}}function K(t){const e={};return function n(i,r,s){const o=r+JSON.stringify(s);let f=e[o];if(!f){f=t(A(r),s);e[o]=f}return f(i)}}class J{constructor(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this.logger=a.create("formatter");this.options=t;this.formats={number:K(((t,e)=>{const n=new Intl.NumberFormat(t,{...e});return t=>n.format(t)})),currency:K(((t,e)=>{const n=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>n.format(t)})),datetime:K(((t,e)=>{const n=new Intl.DateTimeFormat(t,{...e});return t=>n.format(t)})),relativetime:K(((t,e)=>{const n=new Intl.RelativeTimeFormat(t,{...e});return t=>n.format(t,e.range||"day")})),list:K(((t,e)=>{const n=new Intl.ListFormat(t,{...e});return t=>n.format(t)}))};this.init(t)}init(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{interpolation:{}};const n=e.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=K(e)}format(t,e,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};const r=e.split(this.formatSeparator);const s=r.reduce(((t,e)=>{const{formatName:r,formatOptions:s}=V(e);if(this.formats[r]){let e=t;try{const o=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{};const f=o.locale||o.lng||i.locale||i.lng||n;e=this.formats[r](t,f,{...s,...i,...o})}catch(t){this.logger.warn(t)}return e}else{this.logger.warn(`there was no format function for ${r}`)}return t}),t);return s}}function G(t,e){if(t.pending[e]!==undefined){delete t.pending[e];t.pendingCount--}}class X extends c{constructor(t,e,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};super();this.backend=t;this.store=e;this.services=n;this.languageUtils=n.languageUtils;this.options=i;this.logger=a.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=[];if(this.backend&&this.backend.init){this.backend.init(n,i.backend,i)}}queueLoad(t,e,n,i){const r={};const s={};const o={};const f={};t.forEach((t=>{let i=true;e.forEach((e=>{const o=`${t}|${e}`;if(!n.reload&&this.store.hasResourceBundle(t,e)){this.state[o]=2}else if(this.state[o]<0);else if(this.state[o]===1){if(s[o]===undefined)s[o]=true}else{this.state[o]=1;i=false;if(s[o]===undefined)s[o]=true;if(r[o]===undefined)r[o]=true;if(f[e]===undefined)f[e]=true}}));if(!i)o[t]=true}));if(Object.keys(r).length||Object.keys(s).length){this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i})}return{toLoad:Object.keys(r),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(f)}}loaded(t,e,n){const i=t.split("|");const r=i[0];const s=i[1];if(e)this.emit("failedLoading",r,s,e);if(n){this.store.addResourceBundle(r,s,n,undefined,undefined,{skipCopy:true})}this.state[t]=e?-1:2;const o={};this.queue.forEach((n=>{b(n.loaded,[r],s);G(n,t);if(e)n.errors.push(e);if(n.pendingCount===0&&!n.done){Object.keys(n.loaded).forEach((t=>{if(!o[t])o[t]={};const e=n.loaded[t];if(e.length){e.forEach((e=>{if(o[t][e]===undefined)o[t][e]=true}))}}));n.done=true;if(n.errors.length){n.callback(n.errors)}else{n.callback()}}}));this.emit("loaded",o);this.queue=this.queue.filter((t=>!t.done))}read(t,e,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;let r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:this.retryTimeout;let s=arguments.length>5?arguments[5]:undefined;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:e,fcName:n,tried:i,wait:r,callback:s});return}this.readingCalls++;const o=(o,f)=>{this.readingCalls--;if(this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}if(o&&f&&i{this.read.call(this,t,e,n,i+1,r*2,s)}),r);return}s(o,f)};const f=this.backend[n].bind(this.backend);if(f.length===2){try{const n=f(t,e);if(n&&typeof n.then==="function"){n.then((t=>o(null,t))).catch(o)}else{o(null,n)}}catch(t){o(t)}return}return f(t,e,o)}prepareLoading(t,e){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};let i=arguments.length>3?arguments[3]:undefined;if(!this.backend){this.logger.warn("No backend was added via i18next.use. Will not load resources.");return i&&i()}if(typeof t==="string")t=this.languageUtils.toResolveHierarchy(t);if(typeof e==="string")e=[e];const r=this.queueLoad(t,e,n,i);if(!r.toLoad.length){if(!r.pending.length)i();return null}r.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,e,n){this.prepareLoading(t,e,{},n)}reload(t,e,n){this.prepareLoading(t,e,{reload:true},n)}loadOne(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";const n=t.split("|");const i=n[0];const r=n[1];this.read(i,r,"read",undefined,undefined,((n,s)=>{if(n)this.logger.warn(`${e}loading namespace ${r} for language ${i} failed`,n);if(!n&&s)this.logger.log(`${e}loaded namespace ${r} for language ${i}`,s);this.loaded(t,n,s)}))}saveMissing(t,e,n,i,r){let s=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};let o=arguments.length>6&&arguments[6]!==undefined?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e)){this.logger.warn(`did not save key "${n}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(n===undefined||n===null||n==="")return;if(this.backend&&this.backend.create){const f={...s,isUpdate:r};const u=this.backend.create.bind(this.backend);if(u.length<6){try{let r;if(u.length===5){r=u(t,e,n,i,f)}else{r=u(t,e,n,i)}if(r&&typeof r.then==="function"){r.then((t=>o(null,t))).catch(o)}else{o(null,r)}}catch(t){o(t)}}else{u(t,e,n,i,o,f)}}if(!t||!t[0])return;this.store.addResource(t[0],e,n,i)}}function Y(){return{debug:false,initImmediate:true,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:false,supportedLngs:false,nonExplicitSupportedLngs:false,load:"all",preload:false,simplifyPluralSuffix:true,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:false,saveMissing:false,updateMissing:false,saveMissingTo:"fallback",saveMissingPlurals:true,missingKeyHandler:false,missingInterpolationHandler:false,postProcess:false,postProcessPassResolved:false,returnNull:false,returnEmptyString:true,returnObjects:false,joinArrays:false,returnedObjectHandler:false,parseMissingKeyHandler:false,appendNamespaceToMissingKey:false,appendNamespaceToCIMode:false,overloadTranslationOptionHandler:function t(e){let n={};if(typeof e[1]==="object")n=e[1];if(typeof e[1]==="string")n.defaultValue=e[1];if(typeof e[2]==="string")n.tDescription=e[2];if(typeof e[2]==="object"||typeof e[3]==="object"){const t=e[3]||e[2];Object.keys(t).forEach((e=>{n[e]=t[e]}))}return n},interpolation:{escapeValue:true,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:true}}}function W(t){if(typeof t.ns==="string")t.ns=[t.ns];if(typeof t.fallbackLng==="string")t.fallbackLng=[t.fallbackLng];if(typeof t.fallbackNS==="string")t.fallbackNS=[t.fallbackNS];if(t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0){t.supportedLngs=t.supportedLngs.concat(["cimode"])}return t}function Z(){}function Q(t){const e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach((e=>{if(typeof t[e]==="function"){t[e]=t[e].bind(t)}}))}class tt extends c{constructor(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};let e=arguments.length>1?arguments[1]:undefined;super();this.options=W(t);this.services={};this.logger=a;this.modules={external:[]};Q(this);if(e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate){this.init(t,e);return this}setTimeout((()=>{this.init(t,e)}),0)}}init(){var t=this;let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};let n=arguments.length>1?arguments[1]:undefined;this.isInitializing=true;if(typeof e==="function"){n=e;e={}}if(!e.defaultNS&&e.defaultNS!==false&&e.ns){if(typeof e.ns==="string"){e.defaultNS=e.ns}else if(e.ns.indexOf("translation")<0){e.defaultNS=e.ns[0]}}const i=Y();this.options={...i,...this.options,...W(e)};if(this.options.compatibilityAPI!=="v1"){this.options.interpolation={...i.interpolation,...this.options.interpolation}}if(e.keySeparator!==undefined){this.options.userDefinedKeySeparator=e.keySeparator}if(e.nsSeparator!==undefined){this.options.userDefinedNsSeparator=e.nsSeparator}function r(t){if(!t)return null;if(typeof t==="function")return new t;return t}if(!this.options.isClone){if(this.modules.logger){a.init(r(this.modules.logger),this.options)}else{a.init(null,this.options)}let e;if(this.modules.formatter){e=this.modules.formatter}else if(typeof Intl!=="undefined"){e=J}const n=new I(this.options);this.store=new T(this.options.resources,this.options);const s=this.services;s.logger=a;s.resourceStore=this.store;s.languageUtils=n;s.pluralResolver=new q(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix});if(e&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)){s.formatter=r(e);s.formatter.init(s,this.options);this.options.interpolation.format=s.formatter.format.bind(s.formatter)}s.interpolator=new _(this.options);s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)};s.backendConnector=new X(r(this.modules.backend),s.resourceStore,s,this.options);s.backendConnector.on("*",(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r{if(t.init)t.init(this)}))}this.format=this.options.interpolation.format;if(!n)n=Z;if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);if(t.length>0&&t[0]!=="dev")this.options.lng=t[0]}if(!this.services.languageDetector&&!this.options.lng){this.logger.warn("init: no languageDetector is used and no lng is defined")}const s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((e=>{this[e]=function(){return t.store[e](...arguments)}}));const o=["addResource","addResources","addResourceBundle","removeResourceBundle"];o.forEach((e=>{this[e]=function(){t.store[e](...arguments);return t}}));const f=h();const u=()=>{const t=(t,e)=>{this.isInitializing=false;if(this.isInitialized&&!this.initializedStoreOnce)this.logger.warn("init: i18next is already initialized. You should call init just once!");this.isInitialized=true;if(!this.options.isClone)this.logger.log("initialized",this.options);this.emit("initialized",this.options);f.resolve(e);n(t,e)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};if(this.options.resources||!this.options.initImmediate){u()}else{setTimeout(u,0)}return f}loadResources(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Z;let n=e;const i=typeof t==="string"?t:this.language;if(typeof t==="function")n=t;if(!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const t=[];const e=e=>{if(!e)return;if(e==="cimode")return;const n=this.services.languageUtils.toResolveHierarchy(e);n.forEach((e=>{if(e==="cimode")return;if(t.indexOf(e)<0)t.push(e)}))};if(!i){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.forEach((t=>e(t)))}else{e(i)}if(this.options.preload){this.options.preload.forEach((t=>e(t)))}this.services.backendConnector.load(t,this.options.ns,(t=>{if(!t&&!this.resolvedLanguage&&this.language)this.setResolvedLanguage(this.language);n(t)}))}else{n(null)}}reloadResources(t,e,n){const i=h();if(!t)t=this.languages;if(!e)e=this.options.ns;if(!n)n=Z;this.services.backendConnector.reload(t,e,(t=>{i.resolve();n(t)}));return i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");if(t.type==="backend"){this.modules.backend=t}if(t.type==="logger"||t.log&&t.warn&&t.error){this.modules.logger=t}if(t.type==="languageDetector"){this.modules.languageDetector=t}if(t.type==="i18nFormat"){this.modules.i18nFormat=t}if(t.type==="postProcessor"){R.addPostProcessor(t)}if(t.type==="formatter"){this.modules.formatter=t}if(t.type==="3rdParty"){this.modules.external.push(t)}return this}setResolvedLanguage(t){if(!t||!this.languages)return;if(["cimode","dev"].indexOf(t)>-1)return;for(let t=0;t-1)continue;if(this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var n=this;this.isLanguageChangingTo=t;const i=h();this.emit("languageChanging",t);const r=t=>{this.language=t;this.languages=this.services.languageUtils.toResolveHierarchy(t);this.resolvedLanguage=undefined;this.setResolvedLanguage(t)};const s=(t,s)=>{if(s){r(s);this.translator.changeLanguage(s);this.isLanguageChangingTo=undefined;this.emit("languageChanged",s);this.logger.log("languageChanged",s)}else{this.isLanguageChangingTo=undefined}i.resolve((function(){return n.t(...arguments)}));if(e)e(t,(function(){return n.t(...arguments)}))};const o=e=>{if(!t&&!e&&this.services.languageDetector)e=[];const n=typeof e==="string"?e:this.services.languageUtils.getBestMatchFromCodes(e);if(n){if(!this.language){r(n)}if(!this.translator.language)this.translator.changeLanguage(n);if(this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage)this.services.languageDetector.cacheUserLanguage(n)}this.loadResources(n,(t=>{s(t,n)}))};if(!t&&this.services.languageDetector&&!this.services.languageDetector.async){o(this.services.languageDetector.detect())}else if(!t&&this.services.languageDetector&&this.services.languageDetector.async){if(this.services.languageDetector.detect.length===0){this.services.languageDetector.detect().then(o)}else{this.services.languageDetector.detect(o)}}else{o(t)}return i}getFixedT(t,e,n){var i=this;const r=function(t,e){let s;if(typeof e!=="object"){for(var o=arguments.length,f=new Array(o>2?o-2:0),u=2;u`${s.keyPrefix}${a}${t}`))}else{c=s.keyPrefix?`${s.keyPrefix}${a}${t}`:t}return i.t(c,s)};if(typeof t==="string"){r.lng=t}else{r.lngs=t}r.ns=e;r.keyPrefix=n;return r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!this.isInitialized){this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages);return false}if(!this.languages||!this.languages.length){this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages);return false}const n=e.lng||this.resolvedLanguage||this.languages[0];const i=this.options?this.options.fallbackLng:false;const r=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return true;const s=(t,e)=>{const n=this.services.backendConnector.state[`${t}|${e}`];return n===-1||n===2};if(e.precheck){const t=e.precheck(this,s);if(t!==undefined)return t}if(this.hasResourceBundle(n,t))return true;if(!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return true;if(s(n,t)&&(!i||s(r,t)))return true;return false}loadNamespaces(t,e){const n=h();if(!this.options.ns){if(e)e();return Promise.resolve()}if(typeof t==="string")t=[t];t.forEach((t=>{if(this.options.ns.indexOf(t)<0)this.options.ns.push(t)}));this.loadResources((t=>{n.resolve();if(e)e(t)}));return n}loadLanguages(t,e){const n=h();if(typeof t==="string")t=[t];const i=this.options.preload||[];const r=t.filter((t=>i.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t)));if(!r.length){if(e)e();return Promise.resolve()}this.options.preload=i.concat(r);this.loadResources((t=>{n.resolve();if(e)e(t)}));return n}dir(t){if(!t)t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language);if(!t)return"rtl";const 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"];const n=this.services&&this.services.languageUtils||new I(Y());return e.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};let e=arguments.length>1?arguments[1]:undefined;return new tt(t,e)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Z;const n=t.forkResourceStore;if(n)delete t.forkResourceStore;const i={...this.options,...t,...{isClone:true}};const r=new tt(i);if(t.debug!==undefined||t.prefix!==undefined){r.logger=r.logger.clone(t)}const s=["store","services","language"];s.forEach((t=>{r[t]=this[t]}));r.services={...this.services};r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)};if(n){r.store=new T(this.store.data,i);r.services.resourceStore=r.store}r.translator=new L(r.services,i);r.translator.on("*",(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i-1}}function f(t){if(typeof t!=="string"){t=String(t)}if(/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||t===""){throw new TypeError('Invalid character in header field name: "'+t+'"')}return t.toLowerCase()}function u(t){if(typeof t!=="string"){t=String(t)}return t}function a(t){var e={next:function(){var e=t.shift();return{done:e===undefined,value:e}}};if(i.iterable){e[Symbol.iterator]=function(){return e}}return e}function c(t){this.map={};if(t instanceof c){t.forEach((function(t,e){this.append(e,t)}),this)}else if(Array.isArray(t)){t.forEach((function(t){this.append(t[0],t[1])}),this)}else if(t){Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}}c.prototype.append=function(t,e){t=f(t);e=u(e);var n=this.map[t];this.map[t]=n?n+", "+e:e};c.prototype["delete"]=function(t){delete this.map[f(t)]};c.prototype.get=function(t){t=f(t);return this.has(t)?this.map[t]:null};c.prototype.has=function(t){return this.map.hasOwnProperty(f(t))};c.prototype.set=function(t,e){this.map[f(t)]=u(e)};c.prototype.forEach=function(t,e){for(var n in this.map){if(this.map.hasOwnProperty(n)){t.call(e,this.map[n],n,this)}}};c.prototype.keys=function(){var t=[];this.forEach((function(e,n){t.push(n)}));return a(t)};c.prototype.values=function(){var t=[];this.forEach((function(e){t.push(e)}));return a(t)};c.prototype.entries=function(){var t=[];this.forEach((function(e,n){t.push([n,e])}));return a(t)};if(i.iterable){c.prototype[Symbol.iterator]=c.prototype.entries}function h(t){if(t.bodyUsed){return Promise.reject(new TypeError("Already read"))}t.bodyUsed=true}function l(t){return new Promise((function(e,n){t.onload=function(){e(t.result)};t.onerror=function(){n(t.error)}}))}function d(t){var e=new FileReader;var n=l(e);e.readAsArrayBuffer(t);return n}function p(t){var e=new FileReader;var n=l(e);e.readAsText(t);return n}function m(t){var e=new Uint8Array(t);var n=new Array(e.length);for(var i=0;i-1?e:t}function v(t,e){if(!(this instanceof v)){throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')}e=e||{};var n=e.body;if(t instanceof v){if(t.bodyUsed){throw new TypeError("Already read")}this.url=t.url;this.credentials=t.credentials;if(!e.headers){this.headers=new c(t.headers)}this.method=t.method;this.mode=t.mode;this.signal=t.signal;if(!n&&t._bodyInit!=null){n=t._bodyInit;t.bodyUsed=true}}else{this.url=String(t)}this.credentials=e.credentials||this.credentials||"same-origin";if(e.headers||!this.headers){this.headers=new c(e.headers)}this.method=j(e.method||this.method||"GET");this.mode=e.mode||this.mode||null;this.signal=e.signal||this.signal;this.referrer=null;if((this.method==="GET"||this.method==="HEAD")&&n){throw new TypeError("Body not allowed for GET or HEAD requests")}this._initBody(n);if(this.method==="GET"||this.method==="HEAD"){if(e.cache==="no-store"||e.cache==="no-cache"){var i=/([?&])_=[^&]*/;if(i.test(this.url)){this.url=this.url.replace(i,"$1_="+(new Date).getTime())}else{var r=/\?/;this.url+=(r.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})};function w(t){var e=new FormData;t.trim().split("&").forEach((function(t){if(t){var n=t.split("=");var i=n.shift().replace(/\+/g," ");var r=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}}));return e}function $(t){var e=new c;var n=t.replace(/\r?\n[\t ]+/g," ");n.split("\r").map((function(t){return t.indexOf("\n")===0?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":");var i=n.shift().trim();if(i){var r=n.join(":").trim();e.append(i,r)}}));return e}b.call(v.prototype);function O(t,e){if(!(this instanceof O)){throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')}if(!e){e={}}this.type="default";this.status=e.status===undefined?200:e.status;this.ok=this.status>=200&&this.status<300;this.statusText=e.statusText===undefined?"":""+e.statusText;this.headers=new c(e.headers);this.url=e.url||"";this._initBody(t)}b.call(O.prototype);O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})};O.error=function(){var t=new O(null,{status:0,statusText:""});t.type="error";return t};var S=[301,302,303,307,308];O.redirect=function(t,e){if(S.indexOf(e)===-1){throw new RangeError("Invalid status code")}return new O(null,{status:e,headers:{location:t}})};e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t;this.name=e;var n=Error(t);this.stack=n.stack};e.DOMException.prototype=Object.create(Error.prototype);e.DOMException.prototype.constructor=e.DOMException}function k(t,r){return new Promise((function(s,o){var f=new v(t,r);if(f.signal&&f.signal.aborted){return o(new e.DOMException("Aborted","AbortError"))}var a=new XMLHttpRequest;function h(){a.abort()}a.onload=function(){var t={status:a.status,statusText:a.statusText,headers:$(a.getAllResponseHeaders()||"")};t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL");var e="response"in a?a.response:a.responseText;setTimeout((function(){s(new O(e,t))}),0)};a.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)};a.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)};a.onabort=function(){setTimeout((function(){o(new e.DOMException("Aborted","AbortError"))}),0)};function l(t){try{return t===""&&n.location.href?n.location.href:t}catch(e){return t}}a.open(f.method,l(f.url),true);if(f.credentials==="include"){a.withCredentials=true}else if(f.credentials==="omit"){a.withCredentials=false}if("responseType"in a){if(i.blob){a.responseType="blob"}else if(i.arrayBuffer&&f.headers.get("Content-Type")&&f.headers.get("Content-Type").indexOf("application/octet-stream")!==-1){a.responseType="arraybuffer"}}if(r&&typeof r.headers==="object"&&!(r.headers instanceof c)){Object.getOwnPropertyNames(r.headers).forEach((function(t){a.setRequestHeader(t,u(r.headers[t]))}))}else{f.headers.forEach((function(t,e){a.setRequestHeader(e,t)}))}if(f.signal){f.signal.addEventListener("abort",h);a.onreadystatechange=function(){if(a.readyState===4){f.signal.removeEventListener("abort",h)}}}a.send(typeof f._bodyInit==="undefined"?null:f._bodyInit)}))}k.polyfill=true;if(!n.fetch){n.fetch=k;n.Headers=c;n.Request=v;n.Response=O}e.Headers=c;e.Request=v;e.Response=O;e.fetch=k;return e})({})})(r);r.fetch.ponyfill=true;delete r.fetch.polyfill;var s=i.fetch?i:r;e=s.fetch;e.default=s.fetch;e.fetch=s.fetch;e.Headers=s.Headers;e.Request=s.Request;e.Response=s.Response;t.exports=e})(ft,ft.exports);(function(t,e){var r;if(typeof fetch==="function"){if(typeof n!=="undefined"&&n.fetch){r=n.fetch}else if(typeof window!=="undefined"&&window.fetch){r=window.fetch}else{r=fetch}}if(typeof i!=="undefined"&&typeof window==="undefined"){var s=r||ft.exports;if(s.default)s=s.default;e.default=s;t.exports=e.default}})(ot,ot.exports);const ut=ot.exports;const at=Object.freeze(Object.assign(Object.create(null),ot.exports,{default:ut}));function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ht(t){for(var e=1;e=1?e.alternateFetch:undefined;try{vt(n,f,r,u)}catch(t){if(!o||Object.keys(o).length===0||!t.message||t.message.indexOf("not implemented")<0){return r(t)}try{Object.keys(o).forEach((function(t){delete f[t]}));vt(n,f,r,u);wt=true}catch(t){r(t)}}};var Ot=function t(e,n,i,r){if(i&&mt(i)==="object"){i=jt("",i).slice(1)}if(e.queryStringParams){n=jt(n,e.queryStringParams)}try{var s;if(bt){s=new bt}else{s=new gt("MSXML2.XMLHTTP.3.0")}s.open(i?"POST":"GET",n,1);if(!e.crossDomain){s.setRequestHeader("X-Requested-With","XMLHttpRequest")}s.withCredentials=!!e.withCredentials;if(i){s.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}if(s.overrideMimeType){s.overrideMimeType("application/json")}var o=e.customHeaders;o=typeof o==="function"?o():o;if(o){for(var f in o){s.setRequestHeader(f,o[f])}}s.onreadystatechange=function(){s.readyState>3&&r(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})};s.send(i)}catch(t){console&&console.log(t)}};var St=function t(e,n,i,r){if(typeof i==="function"){r=i;i=undefined}r=r||function(){};if(yt&&n.indexOf("file:")!==0){return $t(e,n,i,r)}if(it()||typeof ActiveXObject==="function"){return Ot(e,n,i,r)}r(new Error("No fetch and no xhr implementation found!"))};function kt(t){"@babel/helpers - typeof";return kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kt(t)}function Nt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function xt(t){for(var e=1;e1&&arguments[1]!==undefined?arguments[1]:{};var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};Pt(this,t);this.services=e;this.options=n;this.allOptions=i;this.type="backend";this.init(e,n,i)}return Tt(t,[{key:"init",value:function t(e){var n=this;var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};this.services=e;this.options=xt(xt(xt({},Ct()),this.options||{}),i);this.allOptions=r;if(this.services&&this.options.reloadInterval){var s=setInterval((function(){return n.reload()}),this.options.reloadInterval);if(kt(s)==="object"&&typeof s.unref==="function")s.unref()}}},{key:"readMulti",value:function t(e,n,i){this._readAny(e,e,n,n,i)}},{key:"read",value:function t(e,n,i){this._readAny([e],e,[n],n,i)}},{key:"_readAny",value:function t(e,n,i,r,s){var o=this;var f=this.options.loadPath;if(typeof this.options.loadPath==="function"){f=this.options.loadPath(e,i)}f=st(f);f.then((function(t){if(!t)return s(null,{});var f=o.services.interpolator.interpolate(t,{lng:e.join("+"),ns:i.join("+")});o.loadUrl(f,s,n,r)}))}},{key:"loadUrl",value:function t(e,n,i,r){var s=this;var o=typeof i==="string"?[i]:i;var f=typeof r==="string"?[r]:r;var u=this.options.parseLoadPayload(o,f);this.options.request(this.options,e,u,(function(t,o){if(o&&(o.status>=500&&o.status<600||!o.status))return n("failed loading "+e+"; status code: "+o.status,true);if(o&&o.status>=400&&o.status<500)return n("failed loading "+e+"; status code: "+o.status,false);if(!o&&t&&t.message&&t.message.indexOf("Failed to fetch")>-1)return n("failed loading "+e+": "+t.message,true);if(t)return n(t,false);var f,u;try{if(typeof o.data==="string"){f=s.options.parse(o.data,i,r)}else{f=o.data}}catch(t){u="failed parsing "+e+" to json"}if(u)return n(u,false);n(null,f)}))}},{key:"create",value:function t(e,n,i,r,s){var o=this;if(!this.options.addPath)return;if(typeof e==="string")e=[e];var f=this.options.parsePayload(n,i,r);var u=0;var a=[];var c=[];e.forEach((function(t){var i=o.options.addPath;if(typeof o.options.addPath==="function"){i=o.options.addPath(t,n)}var r=o.services.interpolator.interpolate(i,{lng:t,ns:n});o.options.request(o.options,r,f,(function(t,n){u+=1;a.push(t);c.push(n);if(u===e.length){if(typeof s==="function")s(a,c)}}))}))}},{key:"reload",value:function t(){var e=this;var n=this.services,i=n.backendConnector,r=n.languageUtils,s=n.logger;var o=i.language;if(o&&o.toLowerCase()==="cimode")return;var f=[];var u=function t(e){var n=r.toResolveHierarchy(e);n.forEach((function(t){if(f.indexOf(t)<0)f.push(t)}))};u(o);if(this.allOptions.preload)this.allOptions.preload.forEach((function(t){return u(t)}));f.forEach((function(t){e.allOptions.ns.forEach((function(e){i.read(t,e,"read",null,null,(function(n,r){if(n)s.warn("loading namespace ".concat(e," for language ").concat(t," failed"),n);if(!n&&r)s.log("loaded namespace ".concat(e," for language ").concat(t),r);i.loaded("".concat(t,"|").concat(e),n,r)}))}))}))}}])}();It.type="backend";function zt(){return window}function Ut(){return{version:"2.79.1",headlessVersion:r}}function Dt(t){if(zt()[t]){return}zt()[t]=Ut()}function Bt(){if(window.applyFocusVisiblePolyfill){return}try{document.body.querySelector(":focus-visible")}catch(t){import("./p-31970087.js").then((function(t){return t.f}))}}const Mt={af:()=>import("./p-c37926cf.js").then((function(t){return t.a})),am:()=>import("./p-fbff1dd6.js").then((function(t){return t.a})),"ar-DZ":()=>import("./p-d4a0d92d.js").then((function(t){return t.a})),"ar-IQ":()=>import("./p-4595a6c6.js").then((function(t){return t.a})),"ar-KW":()=>import("./p-459d0a25.js").then((function(t){return t.a})),"ar-LY":()=>import("./p-8ce223bb.js").then((function(t){return t.a})),"ar-MA":()=>import("./p-2af338ff.js").then((function(t){return t.a})),"ar-SA":()=>import("./p-25a966e7.js").then((function(t){return t.a})),"ar-TN":()=>import("./p-d2d139df.js").then((function(t){return t.a})),ar:()=>import("./p-c7970705.js").then((function(t){return t.a})),az:()=>import("./p-f527c98d.js").then((function(t){return t.a})),be:()=>import("./p-1ce5ed9d.js").then((function(t){return t.b})),bg:()=>import("./p-1244ce9e.js").then((function(t){return t.b})),bi:()=>import("./p-37aa05b9.js").then((function(t){return t.b})),bm:()=>import("./p-ca01cf26.js").then((function(t){return t.b})),"bn-BD":()=>import("./p-5584d8f4.js").then((function(t){return t.b})),bn:()=>import("./p-c9805fd5.js").then((function(t){return t.b})),bo:()=>import("./p-854bdb2d.js").then((function(t){return t.b})),br:()=>import("./p-efe5b525.js").then((function(t){return t.b})),bs:()=>import("./p-7cef96f9.js").then((function(t){return t.b})),ca:()=>import("./p-2ba51580.js").then((function(t){return t.c})),cs:()=>import("./p-8872a971.js").then((function(t){return t.c})),cv:()=>import("./p-59956d7f.js").then((function(t){return t.c})),cy:()=>import("./p-63b8b476.js").then((function(t){return t.c})),da:()=>import("./p-058c3cd8.js").then((function(t){return t.d})),"de-AT":()=>import("./p-a3aed191.js").then((function(t){return t.d})),"de-CH":()=>import("./p-fd417099.js").then((function(t){return t.d})),de:()=>import("./p-344fba48.js").then((function(t){return t.d})),dv:()=>import("./p-b4b461e7.js").then((function(t){return t.d})),el:()=>import("./p-f07869cf.js").then((function(t){return t.e})),"en-AU":()=>import("./p-e4aaec02.js").then((function(t){return t.e})),"en-CA":()=>import("./p-8abe7de7.js").then((function(t){return t.e})),"en-GB":()=>import("./p-d30c8a75.js").then((function(t){return t.e})),"en-IE":()=>import("./p-0212d5f8.js").then((function(t){return t.e})),"en-IL":()=>import("./p-243d2a17.js").then((function(t){return t.e})),"en-IN":()=>import("./p-ce84385c.js").then((function(t){return t.e})),"en-NZ":()=>import("./p-07b141d9.js").then((function(t){return t.e})),"en-SG":()=>import("./p-18d8931a.js").then((function(t){return t.e})),"en-TT":()=>import("./p-dbe15940.js").then((function(t){return t.e})),en:()=>import("./p-5027b35d.js").then((function(t){return t.e})),eo:()=>import("./p-05453dde.js").then((function(t){return t.e})),"es-DO":()=>import("./p-8483bcb0.js").then((function(t){return t.e})),"es-MX":()=>import("./p-d5c6ea8c.js").then((function(t){return t.e})),"es-PR":()=>import("./p-9e5479a7.js").then((function(t){return t.e})),"es-US":()=>import("./p-c83d07bf.js").then((function(t){return t.e})),es:()=>import("./p-9a205445.js").then((function(t){return t.e})),et:()=>import("./p-eac9a3b9.js").then((function(t){return t.e})),eu:()=>import("./p-4536658b.js").then((function(t){return t.e})),fa:()=>import("./p-d9622a92.js").then((function(t){return t.f})),fi:()=>import("./p-e1aed3d3.js").then((function(t){return t.f})),fo:()=>import("./p-5db21838.js").then((function(t){return t.f})),"fr-CA":()=>import("./p-705e0cd7.js").then((function(t){return t.f})),"fr-CH":()=>import("./p-69a22645.js").then((function(t){return t.f})),fr:()=>import("./p-db6e50dc.js").then((function(t){return t.f})),fy:()=>import("./p-907a0b52.js").then((function(t){return t.f})),ga:()=>import("./p-c729e1a9.js").then((function(t){return t.g})),gd:()=>import("./p-82c64a74.js").then((function(t){return t.g})),gl:()=>import("./p-33bedd5b.js").then((function(t){return t.g})),"gom-LATN":()=>import("./p-57dfa135.js").then((function(t){return t.g})),gu:()=>import("./p-2cf2cdcc.js").then((function(t){return t.g})),he:()=>import("./p-f807cc7f.js").then((function(t){return t.h})),hi:()=>import("./p-ca25b601.js").then((function(t){return t.h})),hr:()=>import("./p-76e44a07.js").then((function(t){return t.h})),ht:()=>import("./p-ac546a71.js").then((function(t){return t.h})),hu:()=>import("./p-79eaa93b.js").then((function(t){return t.h})),"hy-AM":()=>import("./p-061e02ce.js").then((function(t){return t.h})),id:()=>import("./p-97a7430c.js").then((function(t){return t.i})),is:()=>import("./p-184d3c2a.js").then((function(t){return t.i})),"it-CH":()=>import("./p-3dc9a987.js").then((function(t){return t.i})),it:()=>import("./p-3147ea50.js").then((function(t){return t.i})),ja:()=>import("./p-fcc8c467.js").then((function(t){return t.j})),jv:()=>import("./p-f4ce9102.js").then((function(t){return t.j})),ka:()=>import("./p-2a9b3e31.js").then((function(t){return t.k})),kk:()=>import("./p-8d09c3af.js").then((function(t){return t.k})),km:()=>import("./p-e9106b72.js").then((function(t){return t.k})),kn:()=>import("./p-f96e24cf.js").then((function(t){return t.k})),ko:()=>import("./p-c66463ab.js").then((function(t){return t.k})),ku:()=>import("./p-6ed445db.js").then((function(t){return t.k})),ky:()=>import("./p-4f167a49.js").then((function(t){return t.k})),lb:()=>import("./p-4524bccc.js").then((function(t){return t.l})),lo:()=>import("./p-7f90384c.js").then((function(t){return t.l})),lt:()=>import("./p-aa4a2ba3.js").then((function(t){return t.l})),lv:()=>import("./p-a253ca17.js").then((function(t){return t.l})),me:()=>import("./p-22c1c6f9.js").then((function(t){return t.m})),mi:()=>import("./p-ee7df13b.js").then((function(t){return t.m})),mk:()=>import("./p-64ee3a09.js").then((function(t){return t.m})),ml:()=>import("./p-1f05e46a.js").then((function(t){return t.m})),mn:()=>import("./p-1f961d34.js").then((function(t){return t.m})),mr:()=>import("./p-d92e26c0.js").then((function(t){return t.m})),"ms-MY":()=>import("./p-98ede40b.js").then((function(t){return t.m})),ms:()=>import("./p-48831917.js").then((function(t){return t.m})),mt:()=>import("./p-fc5287ab.js").then((function(t){return t.m})),my:()=>import("./p-42996123.js").then((function(t){return t.m})),nb:()=>import("./p-6422f49b.js").then((function(t){return t.n})),ne:()=>import("./p-077c6a94.js").then((function(t){return t.n})),"nl-BE":()=>import("./p-e0ecd592.js").then((function(t){return t.n})),nl:()=>import("./p-cf4793a2.js").then((function(t){return t.n})),pl:()=>import("./p-52e0f132.js").then((function(t){return t.p})),"pt-BR":()=>import("./p-70d7b584.js").then((function(t){return t.p})),pt:()=>import("./p-52b72df1.js").then((function(t){return t.p})),rn:()=>import("./p-a23461d9.js").then((function(t){return t.r})),ro:()=>import("./p-7414e691.js").then((function(t){return t.r})),ru:()=>import("./p-6ac10e7e.js").then((function(t){return t.r})),rw:()=>import("./p-185b953a.js").then((function(t){return t.r})),sd:()=>import("./p-0a546674.js").then((function(t){return t.s})),se:()=>import("./p-bb887c24.js").then((function(t){return t.s})),si:()=>import("./p-c08b6ee0.js").then((function(t){return t.s})),sk:()=>import("./p-7df81a08.js").then((function(t){return t.s})),sl:()=>import("./p-1ca4d5cc.js").then((function(t){return t.s})),sq:()=>import("./p-549b7868.js").then((function(t){return t.s})),"sr-CYRL":()=>import("./p-050ac27f.js").then((function(t){return t.s})),sr:()=>import("./p-aa780e1b.js").then((function(t){return t.s})),ss:()=>import("./p-841695e6.js").then((function(t){return t.s})),"sv-FI":()=>import("./p-18dffa7e.js").then((function(t){return t.s})),sv:()=>import("./p-0bf7d417.js").then((function(t){return t.s})),sw:()=>import("./p-1280de08.js").then((function(t){return t.s})),ta:()=>import("./p-10c0c01a.js").then((function(t){return t.t})),te:()=>import("./p-924910ad.js").then((function(t){return t.t})),tet:()=>import("./p-2c109f6c.js").then((function(t){return t.t})),tg:()=>import("./p-8c1c910b.js").then((function(t){return t.t})),th:()=>import("./p-71fcc224.js").then((function(t){return t.t})),tk:()=>import("./p-7c5504e5.js").then((function(t){return t.t})),"tl-PH":()=>import("./p-6fe2665a.js").then((function(t){return t.t})),tlh:()=>import("./p-5ee11eb2.js").then((function(t){return t.t})),tr:()=>import("./p-f6d46b70.js").then((function(t){return t.t})),tzl:()=>import("./p-ad01c839.js").then((function(t){return t.t})),"tzm-LATN":()=>import("./p-dcf79aaa.js").then((function(t){return t.t})),tzm:()=>import("./p-14f03ec0.js").then((function(t){return t.t})),"ug-CN":()=>import("./p-269789d2.js").then((function(t){return t.u})),uk:()=>import("./p-6787db48.js").then((function(t){return t.u})),ur:()=>import("./p-2268fe6d.js").then((function(t){return t.u})),"uz-LATN":()=>import("./p-80c7e4d8.js").then((function(t){return t.u})),uz:()=>import("./p-2e95e24e.js").then((function(t){return t.u})),vi:()=>import("./p-bae4aa54.js").then((function(t){return t.v})),"x-PSEUDO":()=>import("./p-fbf90819.js").then((function(t){return t.x})),yo:()=>import("./p-7364248e.js").then((function(t){return t.y})),"zh-CN":()=>import("./p-93ac31b6.js").then((function(t){return t.z})),"zh-HK":()=>import("./p-96beccaf.js").then((function(t){return t.z})),"zh-TW":()=>import("./p-c21f1eca.js").then((function(t){return t.z})),zh:()=>import("./p-aaf9be52.js").then((function(t){return t.z})),"pa-IN":()=>import("./p-73a7e662.js").then((function(t){return t.p})),"oc-LNC":()=>import("./p-10f889a5.js").then((function(t){return t.o})),nn:()=>import("./p-0f01529e.js").then((function(t){return t.n}))};const Ft=t=>console.warn(`Cannot load dayjs locale file file for "${t}"`);const qt=t=>{if(Mt[t]){return t}if(t.includes("-")){const e=t.split("-")[0];if(Mt[e]){return e}}return t};function Ht(t){const e=qt(t);if(!Mt[e]){Ft(e);return}try{Mt[e]().then((()=>s.locale(e)))}catch(t){Ft(e)}}const _t=["dev","en","fr","cs","da","de","el","es","fi","hu","id","it","ja","ko","nl","no","pl","pt","pt-br","ru","sv","th","tr","zh","zh-cn","zh-tw","zn","es-es"];const Vt="translation";function Kt(t){return _t.includes(t.toLowerCase())}function Jt(e){return{loadPath:`${t(e.languageAssetsPath)}/{{lng}}.json?lng={{lng}}&ns={{ns}}`,request:async(t,e,n,i)=>{try{const[t,n]=e.split("?");const r=new URLSearchParams(n);const s=r.get("lng");const o=r.get("ns");if(!Kt(s)){throw new Error(`Unsupported locale "${s}"`)}if(o!==Vt){throw new Error(`Unsupported namespace "${o}"`)}const f=await fetch(t);if(f.status!==200&&f.status!==304){throw new Error(`Unsuccessful request returned status "${f.status}"`)}i(null,{status:f.status,data:await f.json()})}catch(t){i(t,{status:404,data:""})}}}}function Gt(t){return t.i18n.use(It).init({debug:t.logLevel==="debug",lng:t.language,nsSeparator:"___",fallbackLng:"en",backend:Jt(t),interpolation:{escape:t=>o.sanitize(t)},compatibilityJSON:t.localizationCompatibilityVersion})}const Xt=(t,e)=>`A ${e} is configured on the ${t} interface element, but the ${t} interface was initialized with an engine. You should only configure the ${e} in the target engine.`;class Yt{constructor(t,n){this.atomicInterface=t;this.hangingComponentsInitialization=[];Dt(n);Bt();const{connectedCallback:i,render:r}=t;t.connectedCallback=()=>{this.i18nPromise=Gt(t);return i&&i.call(t)};t.render=()=>{if(t.error){return e("atomic-component-error",{element:t.host,error:t.error})}return r&&r.call(t)}}onComponentInitializing(t){t.preventDefault();t.stopPropagation();if(this.atomicInterface.engine){t.detail(this.atomicInterface.bindings);return}this.hangingComponentsInitialization.push(t)}async onInitialization(t){if(this.atomicInterface.engine){this.atomicInterface.engine.logger.warn(`The ${this.interfaceTagname} component "initialize" has already been called.`,this.atomicInterface.host);return}this.atomicInterface.updateIconAssetsPath();t();if(this.atomicInterface.registerFieldsToInclude){this.atomicInterface.registerFieldsToInclude()}Ht(this.language);await this.i18nPromise;this.initComponents()}onAnalyticsChange(){const{engine:t,analytics:e}=this.atomicInterface;if(!this.engineIsCreated(t)){return}if(!e){t.disableAnalytics();return}t.enableAnalytics()}onLanguageChange(){const{i18n:t,language:e}=this.atomicInterface;Ht(this.language);new It(t.services,Jt(this.atomicInterface)).read(this.language,Vt,((n,i)=>{t.addResourceBundle(this.language,Vt,i,true,false);t.changeLanguage(e)}))}engineIsCreated(t){if(!t){console.error(`You have to call "initialize" on the ${this.interfaceTagname} component before modifying the props or calling other public methods.`,this.atomicInterface.host);return false}return true}get interfaceTagname(){return this.atomicInterface.host.tagName.toLowerCase()}initComponents(){this.hangingComponentsInitialization.forEach((t=>t.detail(this.atomicInterface.bindings)))}get language(){return this.atomicInterface.language||"en"}}export{Yt as C,Ut as g,et as i,Xt as m}; //# sourceMappingURL=p-eee4fde4.js.map