vendor: 16,284 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/browser-ponyfill-BJDvFEtm.js","assets/vendor-tanstack-DPiJ_W9I.js"])))=>i.map(i=>d[i]); 2import{g as ft,r as N,_ as ct}from"./vendor-tanstack-DPiJ_W9I.js";/*! Cat® AI Assistant⢠- Cat.ai | Version: 1.3.11 | Build Date: 2026-09-30T11:59:34.355Z */var fe,Le;function dt(){return Le||(Le=1,fe={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}),fe}var ht=dt();const pt=ft(ht);var gt=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function Pe(s){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=s.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(e.name=t[1],(pt[t[1]]||s.charAt(s.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var n=s.indexOf("-->");return{type:"comment",comment:n!==-1?s.slice(4,n):""}}for(var r=new RegExp(gt),i=null;(i=r.exec(s))!==null;)if(i[0].trim())if(i[1]){var a=i[1].trim(),o=[a,""];a.indexOf("=")>-1&&(o=a.split("=")),e.attrs[o[0]]=o[1],r.lastIndex--}else i[2]&&(e.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return e}var mt=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,yt=/^\s*$/,bt=Object.create(null);function Je(s,e){switch(e.type){case"text":return s+e.content;case"tag":return s+="<"+e.name+(e.attrs?(function(t){var n=[];for(var r in t)n.push(r+'="'+t[r]+'"');return n.length?" "+n.join(" "):""})(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?s:s+e.children.reduce(Je,"")+"</"+e.name+">";case"comment":return s+"<!--"+e.comment+"-->"}}var vt={parse:function(s,e){e||(e={}),e.components||(e.components=bt);var t,n=[],r=[],i=-1,a=!1;if(s.indexOf("<")!==0){var o=s.indexOf("<");n.push({type:"text",content:o===-1?s:s.substring(0,o)})}return s.replace(mt,function(u,l){if(a){if(u!=="</"+t.name+">")return;a=!1}var f,d=u.charAt(1)!=="/",c=u.startsWith("<!--"),h=l+u.length,p=s.charAt(h);if(c){var m=Pe(u);return i<0?(n.push(m),n):((f=r[i]).children.push(m),n)}if(d&&(i++,(t=Pe(u)).type==="tag"&&e.components[t.name]&&(t.type="component",a=!0),t.voidElement||a||!p||p==="<"||t.children.push({type:"text",content:s.slice(h,s.indexOf("<",h))}),i===0&&n.push(t),(f=r[i-1])&&f.children.push(t),r[i]=t),(!d||t.voidElement)&&(i>-1&&(t.voidElement||t.name===u.slice(2,-1))&&(i--,t=i===-1?n:r[i]),!a&&p!=="<"&&p)){f=i===-1?n:r[i].children;var g=s.indexOf("<",h),x=s.slice(h,g===-1?void 0:g);yt.test(x)&&(x=" "),(g>-1&&i+f.length>=0||x!==" ")&&f.push({type:"text",content:x})}}),n},stringify:function(s){return s.reduce(function(e,t){return e+Je("",t)},"")}};const se=(s,e,t,n)=>{var i,a,o,u;const r=[t,{code:e,...n||{}}];if((a=(i=s==null?void 0:s.services)==null?void 0:i.logger)!=null&&a.forward)return s.services.logger.forward(r,"warn","react-i18next::",!0);D(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(u=(o=s==null?void 0:s.services)==null?void 0:o.logger)!=null&&u.warn?s.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},Ce={},Q=(s,e,t,n)=>{D(t)&&Ce[t]||(D(t)&&(Ce[t]=new Date),se(s,e,t,n))},We=(s,e)=>()=>{if(s.isInitialized)e();else{const t=()=>{setTimeout(()=>{s.off("initialized",t)},0),e()};s.on("initialized",t)}},ge=(s,e,t)=>{s.loadNamespaces(e,We(s,t))},Ne=(s,e,t,n)=>{if(D(t)&&(t=[t]),s.options.preload&&s.options.preload.indexOf(e)>-1)return ge(s,t,n);t.forEach(r=>{s.options.ns.indexOf(r)<0&&s.options.ns.push(r)}),s.loadLanguages(e,We(s,n))},xt=(s,e,t={})=>!e.languages||!e.languages.length?(Q(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(s,{lng:t.lng,precheck:(n,r)=>{var i;if(((i=t.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!r(n.isLanguageChangingTo,s))return!1}}),D=s=>typeof s=="string",K=s=>typeof s=="object"&&s!==null,Ot=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,St={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},wt=s=>St[s],Lt=s=>s.replace(Ot,wt);let me={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Lt};const Pt=(s={})=>{me={...me,...s}},_e=()=>me;let Ye;const Ct=s=>{Ye=s},xe=()=>Ye,ce=(s,e)=>{var n;if(!s)return!1;const t=((n=s.props)==null?void 0:n.children)??s.children;return e?t.length>0:!!t},de=s=>{var t,n;if(!s)return[];const e=((t=s.props)==null?void 0:t.children)??s.children;return(n=s.props)!=null&&n.i18nIsDynamicList?J(e):e},Nt=s=>Array.isArray(s)&&s.every(N.isValidElement),J=s=>Array.isArray(s)?s:[s],Et=(s,e)=>{const t={...e};return t.props=Object.assign(s.props,e.props),t},Ge=(s,e,t,n)=>{if(!s)return"";let r="";const i=J(s),a=e!=null&&e.transSupportBasicHtmlNodes?e.transKeepBasicHtmlNodesFor??[]:[];return i.forEach((o,u)=>{if(D(o)){r+=`${o}`;return}if(N.isValidElement(o)){const{props:l,type:f}=o,d=Object.keys(l).length,c=a.indexOf(f)>-1,h=l.children;if(!h&&c&&!d){r+=`<${f}/>`;return}if(!h&&(!c||d)||l.i18nIsDynamicList){r+=`<${u}></${u}>`;return}if(c&&d===1&&D(h)){r+=`<${f}>${h}</${f}>`;return}const p=Ge(h,e,t,n);r+=`<${u}>${p}</${u}>`;return}if(o===null){se(t,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:n});return}if(K(o)){const{format:l,...f}=o,d=Object.keys(f);if(d.length===1){const c=l?`${d[0]}, ${l}`:d[0];r+=`{{${c}}}`;return}se(t,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:n,child:o});return}se(t,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:n,child:o})}),r},$t=(s,e,t,n,r,i)=>{if(e==="")return[];const a=n.transKeepBasicHtmlNodesFor||[],o=e&&new RegExp(a.map(g=>`<${g}`).join("|")).test(e);if(!s&&!o&&!i)return[e];const u={},l=g=>{J(g).forEach(y=>{D(y)||(ce(y)?l(de(y)):K(y)&&!N.isValidElement(y)&&Object.assign(u,y))})};l(s);const f=vt.parse(`<0>${e}</0>`),d={...u,...r},c=(g,x,y)=>{var w;const S=de(g),C=p(S,x.children,y);return Nt(S)&&C.length===0||(w=g.props)!=null&&w.i18nIsDynamicList?S:C},h=(g,x,y,S,C)=>{g.dummy?(g.children=x,y.push(N.cloneElement(g,{key:S},C?void 0:x))):y.push(...N.Children.map([g],w=>{const b={...w.props};return delete b.i18nIsDynamicList,N.createElement(w.type,{...b,key:S,ref:w.ref},C?null:x)}))},p=(g,x,y)=>{const S=J(g);return J(x).reduce((w,b,E)=>{var P,R;const L=((R=(P=b.children)==null?void 0:P[0])==null?void 0:R.content)&&t.services.interpolator.interpolate(b.children[0].content,d,t.language);if(b.type==="tag"){let $=S[parseInt(b.name,10)];y.length===1&&!$&&($=y[0][b.name]),$||($={});const O=Object.keys(b.attrs).length!==0?Et({props:b.attrs},$):$,A=N.isValidElement(O),M=A&&ce(b,!0)&&!b.voidElement,T=o&&K(O)&&O.dummy&&!A,F=K(s)&&Object.hasOwnProperty.call(s,b.name);if(D(O)){const j=t.services.interpolator.interpolate(O,d,t.language);w.push(j)}else if(ce(O)||M){const j=c(O,b,y);h(O,j,w,E)}else if(T){const j=p(S,b.children,y);h(O,j,w,E)}else if(Number.isNaN(parseFloat(b.name)))if(F){const j=c(O,b,y);h(O,j,w,E,b.voidElement)}else if(n.transSupportBasicHtmlNodes&&a.indexOf(b.name)>-1)if(b.voidElement)w.push(N.createElement(b.name,{key:`${b.name}-${E}`}));else{const j=p(S,b.children,y);w.push(N.createElement(b.name,{key:`${b.name}-${E}`},j))}else if(b.voidElement)w.push(`<${b.name} />`);else{const j=p(S,b.children,y);w.push(`<${b.name}>${j}</${b.name}>`)}else if(K(O)&&!A){const j=b.children[0]?L:null;j&&w.push(j)}else h(O,L,w,E,b.children.length!==1||!L)}else if(b.type==="text"){const $=n.transWrapTextNodes,O=i?n.unescape(t.services.interpolator.interpolate(b.content,d,t.language)):t.services.interpolator.interpolate(b.content,d,t.language);$?w.push(N.createElement($,{key:`${b.name}-${E}`},O)):w.push(O)}return w},[])},m=p([{dummy:!0,children:s||[]}],f,J(s||[]));return de(m[0])},Qe=(s,e,t)=>{const n=s.key||e,r=N.cloneElement(s,{key:n});if(!r.props||!r.props.children||t.indexOf(`${e}/>`)<0&&t.indexOf(`${e} />`)<0)return r;function i(){return N.createElement(N.Fragment,null,r)}return N.createElement(i,{key:n})},jt=(s,e)=>s.map((t,n)=>Qe(t,n,e)),Rt=(s,e)=>{const t={};return Object.keys(s).forEach(n=>{Object.assign(t,{[n]:Qe(s[n],n,e)})}),t},At=(s,e,t,n)=>s?Array.isArray(s)?jt(s,e):K(s)?Rt(s,e):(Q(t,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:n}),null):null;function Tt({children:s,count:e,parent:t,i18nKey:n,context:r,tOptions:i={},values:a,defaults:o,components:u,ns:l,i18n:f,t:d,shouldUnescape:c,...h}){var O,A,M,T,F,j;const p=f||xe();if(!p)return Q(p,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:n}),s;const m=d||p.t.bind(p)||(B=>B),g={..._e(),...(O=p.options)==null?void 0:O.react};let x=l||m.ns||((A=p.options)==null?void 0:A.defaultNS);x=D(x)?[x]:x||["translation"];const y=Ge(s,g,p,n),S=o||y||g.transEmptyNodeValue||n,{hashTransKey:C}=g,w=n||(C?C(y||S):y||S);(T=(M=p.options)==null?void 0:M.interpolation)!=null&&T.defaultVariables&&(a=a&&Object.keys(a).length>0?{...a,...p.options.interpolation.defaultVariables}:{...p.options.interpolation.defaultVariables});const b=a||e!==void 0&&!((j=(F=p.options)==null?void 0:F.interpolation)!=null&&j.alwaysFormat)||!s?i.interpolation:{interpolation:{...i.interpolation,prefix:"#$?",suffix:"?$#"}},E={...i,context:r||i.context,count:e,...a,...b,defaultValue:S,ns:x},L=w?m(w,E):S,P=At(u,L,p,n),R=$t(P||s,L,p,g,E,c),$=t??g.defaultTransParent;return $?N.createElement($,h,R):R}const wn={type:"3rdParty",init(s){Pt(s.options.react),Ct(s)}},Ze=N.createContext();class kt{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function Ln({children:s,count:e,parent:t,i18nKey:n,context:r,tOptions:i={},values:a,defaults:o,components:u,ns:l,i18n:f,t:d,shouldUnescape:c,...h}){var y;const{i18n:p,defaultNS:m}=N.useContext(Ze)||{},g=f||p||xe(),x=d||(g==null?void 0:g.t.bind(g));return Tt({children:s,count:e,parent:t,i18nKey:n,context:r,tOptions:i,values:a,defaults:o,components:u,ns:l||(x==null?void 0:x.ns)||m||((y=g==null?void 0:g.options)==null?void 0:y.defaultNS),i18n:g,t:d,shouldUnescape:c,...h})}const Ft=(s,e)=>{const t=N.useRef();return N.useEffect(()=>{t.current=s},[s,e]),t.current},et=(s,e,t,n)=>s.getFixedT(e,t,n),It=(s,e,t,n)=>N.useCallback(et(s,e,t,n),[s,e,t,n]),Pn=(s,e={})=>{var C,w,b,E;const{i18n:t}=e,{i18n:n,defaultNS:r}=N.useContext(Ze)||{},i=t||n||xe();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new kt),!i){Q(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const L=(R,$)=>D($)?$:K($)&&D($.defaultValue)?$.defaultValue:Array.isArray(R)?R[R.length-1]:R,P=[L,{},!1];return P.t=L,P.i18n={},P.ready=!1,P}(C=i.options.react)!=null&&C.wait&&Q(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={..._e(),...i.options.react,...e},{useSuspense:o,keyPrefix:u}=a;let l=r||((w=i.options)==null?void 0:w.defaultNS);l=D(l)?[l]:l||["translation"],(E=(b=i.reportNamespaces).addUsedNamespaces)==null||E.call(b,l);const f=(i.isInitialized||i.initializedStoreOnce)&&l.every(L=>xt(L,i,a)),d=It(i,e.lng||null,a.nsMode==="fallback"?l:l[0],u),c=()=>d,h=()=>et(i,e.lng||null,a.nsMode==="fallback"?l:l[0],u),[p,m]=N.useState(c);let g=l.join();e.lng&&(g=`${e.lng}${g}`);const x=Ft(g),y=N.useRef(!0);N.useEffect(()=>{const{bindI18n:L,bindI18nStore:P}=a;y.current=!0,!f&&!o&&(e.lng?Ne(i,e.lng,l,()=>{y.current&&m(h)}):ge(i,l,()=>{y.current&&m(h)})),f&&x&&x!==g&&y.current&&m(h);const R=()=>{y.current&&m(h)};return L&&(i==null||i.on(L,R)),P&&(i==null||i.store.on(P,R)),()=>{y.current=!1,i&&(L==null||L.split(" ").forEach($=>i.off($,R))),P&&i&&P.split(" ").forEach($=>i.store.off($,R))}},[i,g]),N.useEffect(()=>{y.current&&f&&m(c)},[i,u,f]);const S=[p,i,f];if(S.t=p,S.i18n=i,S.ready=f,f||!f&&!o)return S;throw new Promise(L=>{e.lng?Ne(i,e.lng,l,()=>L()):ge(i,l,()=>L())})},v=s=>typeof s=="string",Y=()=>{let s,e;const t=new Promise((n,r)=>{s=n,e=r});return t.resolve=s,t.reject=e,t},Ee=s=>s==null?"":""+s,Dt=(s,e,t)=>{s.forEach(n=>{e[n]&&(t[n]=e[n])})},Vt=/###/g,$e=s=>s&&s.indexOf("###")>-1?s.replace(Vt,"."):s,je=s=>!s||v(s),G=(s,e,t)=>{const n=v(e)?e.split("."):e;let r=0;for(;r<n.length-1;){if(je(s))return{};const i=$e(n[r]);!s[i]&&t&&(s[i]=new t),Object.prototype.hasOwnProperty.call(s,i)?s=s[i]:s={},++r}return je(s)?{}:{obj:s,k:$e(n[r])}},Re=(s,e,t)=>{const{obj:n,k:r}=G(s,e,Object);if(n!==void 0||e.length===1){n[r]=t;return}let i=e[e.length-1],a=e.slice(0,e.length-1),o=G(s,a,Object);for(;o.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),o=G(s,a,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${i}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${i}`]=t},Ht=(s,e,t,n)=>{const{obj:r,k:i}=G(s,e,Object);r[i]=r[i]||[],r[i].push(t)},re=(s,e)=>{const{obj:t,k:n}=G(s,e);if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n]},Mt=(s,e,t)=>{const n=re(s,t);return n!==void 0?n:re(e,t)},tt=(s,e,t)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in s?v(s[n])||s[n]instanceof String||v(e[n])||e[n]instanceof String?t&&(s[n]=e[n]):tt(s[n],e[n],t):s[n]=e[n]);return s},z=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ut={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Kt=s=>v(s)?s.replace(/[&<>"'\/]/g,e=>Ut[e]):s;class qt{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const 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}}const Bt=[" ",",","?","!",";"],zt=new qt(20),Xt=(s,e,t)=>{e=e||"",t=t||"";const n=Bt.filter(a=>e.indexOf(a)<0&&t.indexOf(a)<0);if(n.length===0)return!0;const r=zt.getRegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!r.test(s);if(!i){const a=s.indexOf(t);a>0&&!r.test(s.substring(0,a))&&(i=!0)}return i},ye=function(s,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!s)return;if(s[e])return Object.prototype.hasOwnProperty.call(s,e)?s[e]:void 0;const n=e.split(t);let r=s;for(let i=0;i<n.length;){if(!r||typeof r!="object")return;let a,o="";for(let u=i;u<n.length;++u)if(u!==i&&(o+=t),o+=n[u],a=r[o],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&u<n.length-1)continue;i+=u-i+1;break}r=a}return r},ie=s=>s==null?void 0:s.replace("_","-"),Jt={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,e){var t,n;(n=(t=console==null?void 0:console[s])==null?void 0:t.apply)==null||n.call(t,console,e)}};class ae{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Jt,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(v(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new ae(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new ae(this.logger,e)}}var V=new ae;class le{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const r=this.observers[n].get(t)||0;this.observers[n].set(t,r+1)}),this}
vendor: 1,651 bytes, line 2
2off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(a=>{let[o,u]=a;for(let l=0;l<u;l++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[o,u]=a;for(let l=0;l<u;l++)o.apply(o,[e,...n])})}}class Ae extends le{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){var l,f;let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):v(n)&&i?o.push(...n.split(i)):o.push(n)));const u=re(this.data,o);return!u&&!t&&!n&&e.indexOf(".")>-1&&(e=o[0],t=o[1],n=o.slice(2).join(".")),u||!a||!v(n)?u:ye((f=(l=this.data)==null?void 0:l[e])==null?void 0:f[t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let o=[e,t];
vendor: 1,640 bytes, line 2
2n&&(o=o.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(o=e.split("."),r=t,t=o[1]),this.addNamespaces(t),Re(this.data,o,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(v(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),r=n,n=t,t=o[1]),this.addNamespaces(t);let u=re(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?tt(u,n,i):u={...u,...n},Re(this.data,o,u),a.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 this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(r=>t[r]&&Object.keys(t[r]).length>0)}toJSON(){return this.data}}var nt={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,e,t,n,r){return s.forEach(i=>{var a;e=((a=this.processors[i])==null?void 0:a.process(e,t,n,r))??e}),e}};const Te={},ke=s=>!v(s)&&typeof s!="boolean"&&typeof s!="number";class oe extends le{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Dt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
2i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=V.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){const n={...arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}};if(e==null)return!1;const r=this.resolve(e,n);return(r==null?void 0:r.res)!==void 0}extractFromKey(e,t){let n=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const r=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Xt(e,n,r);if(a&&!o){const u=e.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:e,namespaces:v(i)?[i]:i};const l=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(r)}return{key:e,namespaces:v(i)?[i]:i}}translate(e,t,n){let r=typeof t=="object"?{...t}:t;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(r={...r}),r||(r={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:o,namespaces:u}=this.extractFromKey(e[e.length-1],r),l=u[u.length-1],f=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((f==null?void 0:f.toLowerCase())==="cimode"){if(d){const O=r.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${O}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${O}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:o}const c=this.resolve(e,r);let h=c==null?void 0:c.res;const p=(c==null?void 0:c.usedKey)||o,m=(c==null?void 0:c.exactUsedKey)||o,g=["[object Number]","[object Function]","[object RegExp]"],x=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,S=r.count!==void 0&&!v(r.count),C=oe.hasDefaultValue(r),w=S?this.pluralResolver.getSuffix(f,r.count,r):"",b=r.ordinal&&S?this.pluralResolver.getSuffix(f,r.count,{ordinal:!1}):"",E=S&&!r.ordinal&&r.count===0,L=E&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${w}`]||r[`defaultValue${b}`]||r.defaultValue;let P=h;y&&!h&&C&&(P=L);const R=ke(P),$=Object.prototype.toString.apply(P);if(y&&P&&R&&g.indexOf($)<0&&!(v(x)&&Array.isArray(P))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,P,{...r,ns:u}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(c.res=O,c.usedParams=this.getUsedParamsDetails(r),c):O}if(a){const O=Array.isArray(P),A=O?[]:{},M=O?m:p;for(const T in P)if(Object.prototype.hasOwnProperty.call(P,T)){const F=`${M}${a}${T}`;C&&!h?A[T]=this.translate(F,{...r,defaultValue:ke(L)?L[T]:void 0,joinArrays:!1,ns:u}):A[T]=this.translate(F,{...r,joinArrays:!1,ns:u}),A[T]===F&&(A[T]=P[T])}h=A}}else if(y&&v(x)&&Array.isArray(h))h=h.join(x),h&&(h=this.extendTranslation(h,e,r,n));else{let O=!1,A=!1;!this.isValidLookup(h)&&C&&(O=!0,h=L),this.isValidLookup(h)||(A=!0,h=o);const T=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:h,F=C&&L!==h&&this.options.updateMissing;if(A||O||F){if(this.logger.log(F?"updateKey":"missingKey",f,l,o,F?L:h),a){const I=this.resolve(o,{...r,keySeparator:!1});I&&I.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 j=[];const B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&B&&B[0])for(let I=0;I<B.length;I++)j.push(B[I]);else this.options.saveMissingTo==="all"?j=this.languageUtils.toResolveHierarchy(r.lng||this.language):j.push(r.lng||this.language);const Oe=(I,U,_)=>{var we;const Se=C&&_!==h?_:T;this.options.missingKeyHandler?this.options.missingKeyHandler(I,l,U,Se,F,r):(we=this.backendConnector)!=null&&we.saveMissing&&this.backendConnector.saveMissing(I,l,U,Se,F,r),this.emit
vendor: 12,203 bytes, line 2
2("missingKey",I,l,U,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?j.forEach(I=>{const U=this.pluralResolver.getSuffixes(I,r);E&&r[`defaultValue${this.options.pluralSeparator}zero`]&&U.indexOf(`${this.options.pluralSeparator}zero`)<0&&U.push(`${this.options.pluralSeparator}zero`),U.forEach(_=>{Oe([I],o+_,r[`defaultValue${_}`]||L)})}):Oe(j,o,L))}h=this.extendTranslation(h,e,r,c,n),A&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(A||O)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,O?h:void 0,r))}return i?(c.res=h,c.usedParams=this.getUsedParamsDetails(r),c):h}extendTranslation(e,t,n,r,i){var l,f;var a=this;if((l=this.i18nFormat)!=null&&l.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const d=v(e)&&(((f=n==null?void 0:n.interpolation)==null?void 0:f.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(d){const p=e.match(this.interpolator.nestingRegexp);c=p&&p.length}let h=n.replace&&!v(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,n.lng||this.language||r.usedLng,n),d){const p=e.match(this.interpolator.nestingRegexp),m=p&&p.length;c<m&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var p=arguments.length,m=new Array(p),g=0;g<p;g++)m[g]=arguments[g];return(i==null?void 0:i[0])===m[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${t[0]}`),null):a.translate(...m,t)},n)),n.interpolation&&this.interpolator.reset()}const o=n.postProcess||this.options.postProcess,u=v(o)?[o]:o;return e!=null&&(u!=null&&u.length)&&n.applyPostProcessor!==!1&&(e=nt.handle(u,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,r,i,a,o;return v(e)&&(e=[e]),e.forEach(u=>{if(this.isValidLookup(n))return;const l=this.extractFromKey(u,t),f=l.key;r=f;let d=l.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const c=t.count!==void 0&&!v(t.count),h=c&&!t.ordinal&&t.count===0,p=t.context!==void 0&&(v(t.context)||typeof t.context=="number")&&t.context!=="",m=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);d.forEach(g=>{var x,y;this.isValidLookup(n)||(o=g,!Te[`${m[0]}-${g}`]&&((x=this.utils)!=null&&x.hasLoadedNamespace)&&!((y=this.utils)!=null&&y.hasLoadedNamespace(o))&&(Te[`${m[0]}-${g}`]=!0,this.logger.warn(`key "${r}" for languages "${m.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!!!")),m.forEach(S=>{var b;if(this.isValidLookup(n))return;a=S;const C=[f];if((b=this.i18nFormat)!=null&&b.addLookupKeys)this.i18nFormat.addLookupKeys(C,f,S,g,t);else{let E;c&&(E=this.pluralResolver.getSuffix(S,t.count,t));const L=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(C.push(f+E),t.ordinal&&E.indexOf(P)===0&&C.push(f+E.replace(P,this.options.pluralSeparator)),h&&C.push(f+L)),p){const R=`${f}${this.options.contextSeparator}${t.context}`;C.push(R),c&&(C.push(R+E),t.ordinal&&E.indexOf(P)===0&&C.push(R+E.replace(P,this.options.pluralSeparator)),h&&C.push(R+L))}}let w;for(;w=C.pop();)this.isValidLookup(n)||(i=w,n=this.getResource(S,g,w,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,n){var i;let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!v(e.replace);let r=n?e.replace:e;if(n&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const i of t)delete r[i]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}class Fe{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=V.create("languageUtils")}getScriptPartFromCode(e){if(e=ie(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=ie(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(v(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(n=>{if(t)return;const r=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(n=>{if(t)return;const r=this.getScriptPartFromCode(n);if(this.isSupportedCode(r))return t=r;const i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),v(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=a=>{a&&(this.isSupportedCode(a)?r.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return v(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):v(e)&&i(this.formatLanguageCode(e)),n.forEach(a=>{r.indexOf(a)<0&&i(this.formatLanguageCode(a))}),r}}const Ie={zero:0,one:1,two:2,few:3,many:4,other:5},De={select:s=>s===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Wt{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=V.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=ie(e==="dev"?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),De;if(!e.match(/-|_/))return De;const u=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(u,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(r=>`${t}${r}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((r,i)=>Ie[r]-Ie[i]).map(r=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const Ve=function(s,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Mt(s,e,t);return!i&&r&&v(t)&&(i=ye(s,t,n),i===void 0&&(i=ye(e,t,n))),i},he=s=>s.replace(/\$/g,"$$$$");class _t{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=V.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:u,formatSeparator:l,unescapeSuffix:f,unescapePrefix:d,nestingPrefix:c,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:g,maxReplaces:x,alwaysFormat:y}=e.interpolation;this.escape=t!==void 0?t:Kt,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=i?z(i):a||"{{",this.suffix=o?z(o):u||"}}",this.formatSeparator=l||",",this.unescapePrefix=f?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=c?z(c):h||z("$t("),this.nestingSuffix=p?z(p):m||z(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=x||1e3,this.alwaysFormat=y!==void 0?y:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,n)=>(t==null?void 0:t.source)===n?(t.lastIndex=0,t):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){var h;let i,a,o;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=p=>{if(p.indexOf(this.formatSeparator)<0){const y=Ve(t,u,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,n,{...r,...t,interpolationkey:p}):y}const m=p.split(this.formatSeparator),g=m.shift().trim(),x=m.join(this.formatSeparator).trim();return this.format(Ve(t,u,g,this.options.keySeparator,this.options.ignoreJSONStructure),x,n,{...r,...t,interpolationkey:g})};this.resetRegExp();const f=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((h=r==null?void 0:r.interpolation)==null?void 0:h.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>he(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?he(this.escape(p)):he(p)}
vendor: 4,079 bytes, line 2
2].forEach(p=>{for(o=0;i=p.regex.exec(e);){const m=i[1].trim();if(a=l(m),a===void 0)if(typeof f=="function"){const x=f(e,i,r);a=v(x)?x:""}else if(r&&Object.prototype.hasOwnProperty.call(r,m))a="";else if(d){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),a="";else!v(a)&&!this.useRawValueToEscape&&(a=Ee(a));const g=p.safeValue(a);if(e=e.replace(i[0],g),d?(p.regex.lastIndex+=a.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a;const o=(u,l)=>{const f=this.nestingOptionsSeparator;if(u.indexOf(f)<0)return u;const d=u.split(new RegExp(`${f}[ ]*{`));let c=`{${d[1]}`;u=d[0],c=this.interpolate(c,a);const h=c.match(/'/g),p=c.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!p||p.length%2!==0)&&(c=c.replace(/'/g,'"'));try{a=JSON.parse(c),l&&(a={...l,...a})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,m),`${u}${f}${c}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,u};for(;r=this.nestingRegexp.exec(e);){let u=[];a={...n},a=a.replace&&!v(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let l=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const f=r[1].split(this.formatSeparator).map(d=>d.trim());r[1]=f.shift(),u=f,l=!0}if(i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!v(i))return i;v(i)||(i=Ee(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),l&&(i=u.reduce((f,d)=>this.format(f,d,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const Yt=s=>{let e=s.toLowerCase().trim();const t={};if(s.indexOf("(")>-1){const n=s.split("(");e=n[0].toLowerCase().trim();const r=n[1].substring(0,n[1].length-1);e==="currency"&&r.indexOf(":")<0?t.currency||(t.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?t.range||(t.range=r.trim()):r.split(";").forEach(a=>{if(a){const[o,...u]=a.split(":"),l=u.join(":").trim().replace(/^'+|'+$/g,""),f=o.trim();t[f]||(t[f]=l),l==="false"&&(t[f]=!1),l==="true"&&(t[f]=!0),isNaN(l)||(t[f]=parseInt(l,10))}})}return{formatName:e,formatOptions:t}},X=s=>{const e={};return(t,n,r)=>{let i=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(i={...i,[r.interpolationkey]:void 0});const a=n+JSON.stringify(i);let o=e[a];return o||(o=s(ie(n),r),e[a]=o),o(t)}};class Gt{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=V.create("formatter"),this.options=e,this.formats={number:X((t,n)=>{const r=new Intl.NumberFormat(t,{...n});return i=>r.format(i)}),currency:X((t,n)=>{const r=new Intl.NumberFormat(t,{...n,style:"currency"});return i=>r.format(i)}),datetime:X((t,n)=>{const r=new Intl.DateTimeFormat(t,{...n});return i=>r.format(i)}),relativetime:X((t,n)=>{const r=new Intl.RelativeTimeFormat(t,{...n});return i=>r.format(i,n.range||"day")}),list:X((t,n)=>{const r=new Intl.ListFormat(t,{...n});return i=>r.format(i)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=X(t)}format(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(o=>o.indexOf(")")>-1)){const o=i.findIndex(u=>u.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,o)].join(this.formatSeparator)}return i.reduce((o,u)=>{var d;const{formatName:l,formatOptions:f}=Yt(u);if(this.formats[l]){let c=o;try{const h=((d=r==null?void 0:r.formatParams)==null?void 0:d[r.interpolationkey])||{},p=h.locale||h.lng||r.locale||r.lng||n;c=this.formats[l](o,p,{...f,...r,...h})}catch(h){this.logger.warn(h)}return c}else this.logger.warn(`there was no format function for ${l}`);return o},e)}}const Qt=(s,e)=>
vendor: 11,882 bytes, line 2
2{s.pending[e]!==void 0&&(delete s.pending[e],s.pendingCount--)};class Zt extends le{constructor(e,t,n){var i,a;let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=V.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],(a=(i=this.backend)==null?void 0:i.init)==null||a.call(i,n,r.backend,r)}queueLoad(e,t,n,r){const i={},a={},o={},u={};return e.forEach(l=>{let f=!0;t.forEach(d=>{const c=`${l}|${d}`;!n.reload&&this.store.hasResourceBundle(l,d)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?a[c]===void 0&&(a[c]=!0):(this.state[c]=1,f=!1,a[c]===void 0&&(a[c]=!0),i[c]===void 0&&(i[c]=!0),u[d]===void 0&&(u[d]=!0)))}),f||(o[l]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(u)}}loaded(e,t,n){const r=e.split("|"),i=r[0],a=r[1];t&&this.emit("failedLoading",i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const o={};this.queue.forEach(u=>{Ht(u.loaded,[i],a),Qt(u,e),t&&u.errors.push(t),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(l=>{o[l]||(o[l]={});const f=u.loaded[l];f.length&&f.forEach(d=>{o[l][d]===void 0&&(o[l][d]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(u=>!u.done)}read(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;const o=(l,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(l&&f&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(l,f)},u=this.backend[n].bind(this.backend);if(u.length===2){try{const l=u(e,t);l&&typeof l.then=="function"?l.then(f=>o(null,f)).catch(o):o(null,l)}catch(l){o(l)}return}return u(e,t,o)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?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();v(e)&&(e=this.languageUtils.toResolveHierarchy(e)),v(t)&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}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&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(a,o)=>{a&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,a),!a&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,a,o)})}saveMissing(e,t,n,r,i){var u,l,f,d,c;let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((l=(u=this.services)==null?void 0:u.utils)!=null&&l.hasLoadedNamespace&&!((d=(f=this.services)==null?void 0:f.utils)!=null&&d.hasLoadedNamespace(t))){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!!!");return}if(!(n==null||n==="")){if((c=this.backend)!=null&&c.create){const h={...a,isUpdate:i},p=this.backend.create.bind(this.backend);if(p.length<6)try{let m;p.length===5?m=p(e,t,n,r,h):m=p(e,t,n,r),m&&typeof m.then=="function"?m.then(g=>o(null,g)).catch(o):o(null,m)}catch(m){o(m)}else p(e,t,n,r,o,h)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}}const He=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s=>{let e={};if(typeof s[1]=="object"&&(e=s[1]),v(s[1])&&(e.defaultValue=s[1]),v(s[2])&&(e.tDescription=s[2]),typeof s[2]=="object"||typeof s[3]=="object"){const t=s[3]||s[2];Object.keys(t).forEach(n=>{e[n]=t[n]})}return e},interpolation:{escapeValue:!0,format:s=>s,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Me=s=>{var e,t;return v(s.ns)&&(s.ns=[s.ns]),v(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),v(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),((t=(e=s.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),typeof s.initImmediate=="boolean"&&(s.initAsync=s.initImmediate),s},te=()=>{},en=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(t=>{typeof s[t]=="function"&&(s[t]=s[t].bind(s))})};class Z extends le{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Me(e),this.services={},this.logger=V,this.modules={external:[]},en(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(v(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=He();this.options={...r,...this.options,...Me(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?V.init(i(this.modules.logger),this.options):V.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:f=Gt;const d=new Fe(this.options);this.store=new Ae(this.options.resources,this.options);const c=this.services;c.logger=V,c.resourceStore=this.store,c.languageUtils=d,c.pluralResolver=new Wt(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(c.formatter=i(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new _t(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Zt(i(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(h){for(var p=arguments.length,m=new Array(p>1?p-1:0),g=1;g<p;g++)m[g-1]=arguments[g];e.emit(h,...m)}),this.modules.languageDetector&&(c.languageDetector=i(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=i(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new oe(this.services,this.options),this.translator.on("*",function(h){for(var p=arguments.length,m=new Array(p>1?p-1:0),g=1;g<p;g++)m[g-1]=arguments[g];e.emit(h,...m)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=te),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[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(f=>{this[f]=function(){return e.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return e.store[f](...arguments),e}});const u=Y(),l=()=>{const f=(d,c)=>{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),u.resolve(c),n(d,c)};if(this.languages&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),u}loadResources(e){var i,a;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te;const r=v(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if((r==null?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const o=[],u=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(d=>{d!=="cimode"&&o.indexOf(d)<0&&o.push(d)})};r?u(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>u(f)),(a=(i=this.options.preload)==null?void 0:i.forEach)==null||a.call(i,l=>u(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(l)})}else n(null)}reloadResources(e,t,n){const r=Y();return typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=te),this.services.backendConnector.reload(e,t,i=>{r.resolve(),n(i)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&nt.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let t=0;t<this.languages.length;t++){const n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=Y();
2this.emit("languageChanging",e);const i=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},a=(u,l)=>{l?this.isLanguageChangingTo===e&&(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(u,function(){return n.t(...arguments)})},o=u=>{var d,c;!e&&!u&&this.services.languageDetector&&(u=[]);const l=v(u)?u:u&&u[0],f=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(v(u)?[u]:u);f&&(this.language||i(f),this.translator.language||this.translator.changeLanguage(f),(c=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||c.call(d,f)),this.loadResources(f,h=>{a(h,f)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,n){var r=this;const i=function(a,o){let u;if(typeof o!="object"){for(var l=arguments.length,f=new Array(l>2?l-2:0),d=2;d<l;d++)f[d-2]=arguments[d];u=r.options.overloadTranslationOptionHandler([a,o].concat(f))}else u={...o};u.lng=u.lng||i.lng,u.lngs=u.lngs||i.lngs,u.ns=u.ns||i.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||n||i.keyPrefix);const c=r.options.keySeparator||".";let h;return u.keyPrefix&&Array.isArray(a)?h=a.map(p=>`${u.keyPrefix}${c}${p}`):h=u.keyPrefix?`${u.keyPrefix}${c}${a}`:a,r.t(h,u)};return v(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){var r;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(r=this.translator)==null?void 0:r.translate(...t)}exists(){var r;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(r=this.translator)==null?void 0:r.exists(...t)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
vendor: 4,660 bytes, lines 2-3
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const a=(o,u)=>{const l=this.services.backendConnector.state[`${o}|${u}`];return l===-1||l===0||l===2};if(t.precheck){const o=t.precheck(this,a);if(o!==void 0)return o}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){const n=Y();return this.options.ns?(v(e)&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{n.resolve(),t&&t(r)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=Y();v(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter(a=>r.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=r.concat(i),this.loadResources(a=>{n.resolve(),t&&t(a)}),n):(t&&t(),Promise.resolve())}dir(e){var r,i;if(e||(e=this.resolvedLanguage||(((r=this.languages)==null?void 0:r.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((i=this.services)==null?void 0:i.languageUtils)||new Fe(He());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Z(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new Z(r);if((e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(o=>{i[o]=this[o]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const o=Object.keys(this.store.data).reduce((u,l)=>(u[l]={...this.store.data[l]},u[l]=Object.keys(u[l]).reduce((f,d)=>(f[d]={...u[l][d]},f),u[l]),u),{});i.store=new Ae(o,r),i.services.resourceStore=i.store}return i.translator=new oe(i.services,r),i.translator.on("*",function(o){for(var u=arguments.length,l=new Array(u>1?u-1:0),f=1;f<u;f++)l[f-1]=arguments[f];i.emit(o,...l)}),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const k=Z.createInstance();k.createInstance=Z.createInstance;k.createInstance;k.dir;k.init;k.loadResources;k.reloadResources;k.use;k.changeLanguage;k.getFixedT;const Cn=k.t;k.exists;k.setDefaultNamespace;k.hasLoadedNamespace;k.loadNamespaces;k.loadLanguages;function tn(s,e){var t=typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(!t){if(Array.isArray(s)||(t=nn(s))||e){t&&(s=t);var n=0,r=function(){};return{s:r,n:function(){return n>=s.length?{done:!0}:{done:!1,value:s[n++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,o=!1;return{s:function(){t=t.call(s)},n:function(){var l=t.next();return a=l.done,l},e:function(l){o=!0,i=l},f:function(){try{a||t.return==null||t.return()}finally{if(o)throw i}}}}function nn(s,e){if(s){if(typeof s=="string")return Ue(s,e);var t={}.toString.call(s).slice(8,-1);return t==="Object"&&s.constructor&&(t=s.constructor.name),t==="Map"||t==="Set"?Array.from(s):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ue(s,e):void 0}}function Ue(s,e){(e==null||e>s.length)&&(e=s.length);for(var t=0,n=Array(e);t<e;t++)n[t]=s[t];return n}function be(s){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(s)}var st=["__proto__","constructor","prototype"];
3function rt(s){return!(typeof s!="string"||s.length===0||s.length>128||st.indexOf(s)>-1||s.indexOf("..")>-1||s.indexOf("\\")>-1||/[?#%\s@]/.test(s)||/[\x00-\x1F\x7F]/.test(s))}function it(s){return!(!rt(s)||s.indexOf("/")>-1)}function sn(s){return rt(s)}var rn={lng:it,ns:sn};function ne(s){return typeof s!="string"?s:s.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function an(s){if(typeof s!="string"||s.length===0)return s;try{var e=new URL(s);return e.username||e.password?(e.username="",e.password="",e.toString()):s}catch{return s.replace(/(\/\/)[^/@\s]+@/g,"$1")}}function at(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":be(XMLHttpRequest))==="object"}function on(s){return!!s&&typeof s.then=="function"}function un(s){return on(s)?s:Promise.resolve(s)}var ln=/\{\{(.+?)\}\}/g;function Ke(s,e){var t=!1,n=s.replace(ln,function(r,i){var a=i.trim();if(st.indexOf(a)>-1)return r;var o=e[a];if(o==null)return r;var u=rn[a]||it,l=String(o).split("+"),f=tn(l),d;try{for(f.s();!(d=f.n()).done;){var c=d.value;if(!u(c))return t=!0,r}}catch(h){f.e(h)}finally{f.f()}return l.join("+")});return t?null:n}function qe(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(s);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(s,r).enumerable})),t.push.apply(t,n)}return t}function Be(s){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?qe(Object(t),!0).forEach(function(n){fn(s,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):qe(Object(t)).forEach(function(n){Object.defineProperty(s,n,Object.getOwnPropertyDescriptor(t,n))})}return s}function fn(s,e,t){return(e=cn(e))in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function cn(s){var e=dn(s,"string");return q(e)=="symbol"?e:e+""}function dn(s,e){if(q(s)!="object"||!s)return s;var t=s[Symbol.toPrimitive];if(t!==void 0){var n=t.call(s,e);if(q(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(s)}function q(s){"@babel/helpers - typeof";return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(s)}var H=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?H=global.fetch:typeof window<"u"&&window.fetch&&(H=window.fetch);var ee;at()&&(typeof global<"u"&&global.XMLHttpRequest?ee=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(ee=window.XMLHttpRequest));var ue;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?ue=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(ue=window.ActiveXObject));typeof H!="function"&&(H=void 0);if(!H&&!ee&&!ue)try{ct(()=>import("./browser-ponyfill-BJDvFEtm.js").then(s=>s.b),__vite__mapDeps([0,1])).then(function(s){H=s.default}).catch(function(){})}catch{}var ot=["__proto__","constructor","prototype"],ve=function(e,t){if(t&&q(t)==="object"){for(var n="",r=0,i=Object.keys(t);r<i.length;r++){var a=i[r];ot.indexOf(a)>-1||(n+="&"+encodeURIComponent(a)+"="+encodeURIComponent(t[a]))}if(!n)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+n.slice(1)}return e},ze=function(e,t,n,r){var i=function(u){if(!u.ok)return n(u.statusText||"Error",{status:u.status});u.text().then(function(l){n(null,{status:u.status,data:l})}).catch(n)};if(r){var a=r(e,t);if(a instanceof Promise){a.then(i).catch(n);return}}typeof fetch=="function"?fetch(e,t).then(i).catch(n):H(e,t).then(i).catch(n)},hn=function(e,t,n,r){e.queryStringParams&&(t=ve(t,e.queryStringParams));var i=Be({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(i["Content-Type"]="application/json");var a=typeof e.requestOptions=="function"?e.requestOptions(n):e.requestOptions,o=Be({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:i},e._omitFetchOptions?{}:a),u=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{ze(t,o,r,u)}catch(l){if(!a||Object.keys(a).length===0||!l.message||l.message.indexOf("not implemented")<0)return r(l);
vendor: 6,443 bytes, line 3
3try{Object.keys(a).forEach(function(f){delete o[f]}),ze(t,o,r,u),e._omitFetchOptions=!0}catch(f){r(f)}}},pn=function(e,t,n,r){n&&q(n)==="object"&&(n=ve("",n).slice(1)),e.queryStringParams&&(t=ve(t,e.queryStringParams));try{var i=ee?new ee:new ue("MSXML2.XMLHTTP.3.0");i.open(n?"POST":"GET",t,1),e.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!e.withCredentials,n&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var a=e.customHeaders;if(a=typeof a=="function"?a():a,a)for(var o=0,u=Object.keys(a);o<u.length;o++){var l=u[o];ot.indexOf(l)>-1||i.setRequestHeader(l,a[l])}i.onreadystatechange=function(){i.readyState>3&&r(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(n)}catch(f){console&&console.log(f)}},gn=function(e,t,n,r){if(typeof n=="function"&&(r=n,n=void 0),r=r||function(){},H&&t.indexOf("file:")!==0)return hn(e,t,n,r);if(at()||typeof ActiveXObject=="function")return pn(e,t,n,r);r(new Error("No fetch and no xhr implementation found!"))};function W(s){"@babel/helpers - typeof";return W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(s)}function Xe(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(s);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(s,r).enumerable})),t.push.apply(t,n)}return t}function pe(s){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Xe(Object(t),!0).forEach(function(n){ut(s,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):Xe(Object(t)).forEach(function(n){Object.defineProperty(s,n,Object.getOwnPropertyDescriptor(t,n))})}return s}function mn(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")}function yn(s,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(s,lt(n.key),n)}}function bn(s,e,t){return e&&yn(s.prototype,e),Object.defineProperty(s,"prototype",{writable:!1}),s}function ut(s,e,t){return(e=lt(e))in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function lt(s){var e=vn(s,"string");return W(e)=="symbol"?e:e+""}function vn(s,e){if(W(s)!="object"||!s)return s;var t=s[Symbol.toPrimitive];if(t!==void 0){var n=t.call(s,e);if(W(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}var xn=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,n,r){return ut({},n,r||"")},parseLoadPayload:function(t,n){},request:gn,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},On=(function(){function s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};mn(this,s),this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}return bn(s,[{key:"init",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=t,this.options=pe(pe(pe({},xn()),this.options||{}),r),this.allOptions=i,this.services&&this.options.reloadInterval){var a=setInterval(function(){return n.reload()},this.options.reloadInterval);W(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(t,n,r){this._readAny(t,t,n,n,r)}},{key:"read",value:function(t,n,r){this._readAny([t],t,[n],n,r)}},{key:"_readAny",value:function(t,n,r,i,a){var o=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(t,r)),u=un(u),u.then(function(l){if(!l)return a(null,{});var f=Ke(l,{lng:t.join("+"),ns:r.join("+")});if(f==null){var d=t.map(ne).join(", "),c=r.map(ne).join(", ");return a(new Error("i18next-http-backend: unsafe lng/ns value â refusing to build request URL for languages=["+d+"] namespaces=["+c+"]"),!1)}o.loadUrl(f,a,n,i)})}},{key:"loadUrl",value:function(t,n,r,i){var a=this,o=typeof r=="string"?[r]:r,u=typeof i=="string"?[i]:i,l=this.options.parseLoadPayload(o,u),f=ne(an(t));this.options.request(this.options,t,l,function(d,c){if(c&&(c.status>=500&&c.status<600||!c.status))return n("failed loading "+f+"; status code: "+c.status,!0);if(c&&c.status>=400&&c.status<500)return n("failed loading "+f+"; status code: "+c.status,!1);if(!c&&d&&d.message){var h=d.message.toLowerCase(),p=["failed","fetch","network","load"].find(function(x){return h.indexOf(x)>-1});if(p)return n("failed loading "+f+": "+ne(d.message),!0)}if(d)return n(d,!1);var m,g;try{typeof c.data=="string"?m=a.options.parse(c.data,r,i):m=c.data}catch{g="failed parsing "+f+" to json"}if(g)return n(g,!1);n(null,m)})}},{key:"create",value:function(t,n,r,i,a){var o=this;if(this.options.addPath){typeof t=="string"&&(t=[t]);var u=this.options.parsePayload(n,r,i),l=0,f=[],d=[];t.forEach(function(c){var h=o.options.addPath;typeof o.options.addPath=="function"&&(h=o.options.addPath(c,n));var p=Ke(h,{lng:c,ns:n});if(p==null){l+=1,a&&l===t.length&&a(f,d);return}o.options.request(o.options,p,u,function(m,g){l+=1,f.push(m),d.push(g),l===t.length&&typeof a=="function"&&a(f,d)})})}}},{key:"reload",value:function(){var t=this,n=this.services,r=n.backendConnector,i=n.languageUtils,a=n.logger,o=r.language;if(!(o&&o.toLowerCase()==="cimode")){var u=[],l=function(d){var c=i.toResolveHierarchy(d);c.forEach(function(h){u.indexOf(h)<0&&u.push(h)})};l(o),this.allOptions.preload&&this.allOptions.preload.forEach(function(f){return l(f)}),u.forEach(function(f){t.allOptions.ns.forEach(function(d){r.read(f,d,"read",null,null,function(c,h){c&&a.warn("loading namespace ".concat(d," for language ").concat(f," failed"),c),!c&&h&&a.log("loaded namespace ".concat(d," for language ").concat(f),h),r.loaded("".concat(f,"|").concat(d),c,h)})})})}}}])})();On.type="backend";export{On as B,Ln as T,wn as a,k as i,Cn as t,Pn as u};
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.