diff --git a/dist/out.js b/dist/out.js index d9d98ed38..6fac3f4a4 100644 --- a/dist/out.js +++ b/dist/out.js @@ -1,6 +1,6 @@ "use strict";(()=>{var Ch=Object.create;var lc=Object.defineProperty,wh=Object.defineProperties,xh=Object.getOwnPropertyDescriptor,Mh=Object.getOwnPropertyDescriptors,Sh=Object.getOwnPropertyNames,li=Object.getOwnPropertySymbols,Th=Object.getPrototypeOf,cc=Object.prototype.hasOwnProperty,Yd=Object.prototype.propertyIsEnumerable;var Zd=(t,r,n)=>r in t?lc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,O=(t,r)=>{for(var n in r||(r={}))cc.call(r,n)&&Zd(t,n,r[n]);if(li)for(var n of li(r))Yd.call(r,n)&&Zd(t,n,r[n]);return t},te=(t,r)=>wh(t,Mh(r));var Jd=(t,r)=>{var n={};for(var a in t)cc.call(t,a)&&r.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&li)for(var a of li(t))r.indexOf(a)<0&&Yd.call(t,a)&&(n[a]=t[a]);return n};var Ja=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports);var kh=(t,r,n,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of Sh(r))!cc.call(t,s)&&s!==n&&lc(t,s,{get:()=>r[s],enumerable:!(a=xh(r,s))||a.enumerable});return t};var Un=(t,r,n)=>(n=t!=null?Ch(Th(t)):{},kh(r||!t||!t.__esModule?lc(n,"default",{value:t,enumerable:!0}):n,t));var uc=(t,r,n)=>{if(!r.has(t))throw TypeError("Cannot "+n)};var ee=(t,r,n)=>(uc(t,r,"read from private field"),n?n.call(t):r.get(t)),St=(t,r,n)=>{if(r.has(t))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(t):r.set(t,n)},Tt=(t,r,n,a)=>(uc(t,r,"write to private field"),a?a.call(t,n):r.set(t,n),n);var ci=(t,r,n)=>(uc(t,r,"access private method"),n);var tp=Ja((N2,ep)=>{"use strict";ep.exports=function(t,r,n){if(t==null||r==null)return t;var a=String(t),s=typeof r=="number"?r:parseInt(r,10);if(isNaN(s)||!isFinite(s))return a;var l=a.length;if(l>=s)return a;var c=n==null?"":String(n);c===""&&(c=" ");for(var p=s-l;c.lengthp?c.substr(0,p):c;return a+g}});var pc=Ja((_2,pi)=>{var dc=function(){var t=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function s(c,p){if(!a[c]){a[c]={};for(var g=0;g>>8,g[m*2+1]=b%256}return g},decompressFromUint8Array:function(c){if(c==null)return l.decompress(c);for(var p=new Array(c.length/2),g=0,m=p.length;g>1}else{for(h=1,m=0;m>1}U--,U==0&&(U=Math.pow(2,L),L++),delete C[B]}else for(h=b[B],m=0;m>1;U--,U==0&&(U=Math.pow(2,L),L++),b[x]=k++,B=String(v)}if(B!==""){if(Object.prototype.hasOwnProperty.call(C,B)){if(B.charCodeAt(0)<256){for(m=0;m>1}else{for(h=1,m=0;m>1}U--,U==0&&(U=Math.pow(2,L),L++),delete C[B]}else for(h=b[B],m=0;m>1;U--,U==0&&(U=Math.pow(2,L),L++)}for(h=2,m=0;m>1;for(;;)if(S=S<<1,T==p-1){E.push(g(S));break}else T++;return E.join("")},decompress:function(c){return c==null?"":c==""?null:l._decompress(c.length,32768,function(p){return c.charCodeAt(p)})},_decompress:function(c,p,g){var m=[],h,b=4,C=4,v=3,x="",B=[],U,k,L,E,S,T,I,N={val:g(0),position:p,index:1};for(U=0;U<3;U+=1)m[U]=U;for(L=0,S=Math.pow(2,2),T=1;T!=S;)E=N.val&N.position,N.position>>=1,N.position==0&&(N.position=p,N.val=g(N.index++)),L|=(E>0?1:0)*T,T<<=1;switch(h=L){case 0:for(L=0,S=Math.pow(2,8),T=1;T!=S;)E=N.val&N.position,N.position>>=1,N.position==0&&(N.position=p,N.val=g(N.index++)),L|=(E>0?1:0)*T,T<<=1;I=t(L);break;case 1:for(L=0,S=Math.pow(2,16),T=1;T!=S;)E=N.val&N.position,N.position>>=1,N.position==0&&(N.position=p,N.val=g(N.index++)),L|=(E>0?1:0)*T,T<<=1;I=t(L);break;case 2:return""}for(m[3]=I,k=I,B.push(I);;){if(N.index>c)return"";for(L=0,S=Math.pow(2,v),T=1;T!=S;)E=N.val&N.position,N.position>>=1,N.position==0&&(N.position=p,N.val=g(N.index++)),L|=(E>0?1:0)*T,T<<=1;switch(I=L){case 0:for(L=0,S=Math.pow(2,8),T=1;T!=S;)E=N.val&N.position,N.position>>=1,N.position==0&&(N.position=p,N.val=g(N.index++)),L|=(E>0?1:0)*T,T<<=1;m[C++]=t(L),I=C-1,b--;break;case 1:for(L=0,S=Math.pow(2,16),T=1;T!=S;)E=N.val&N.position,N.position>>=1,N.position==0&&(N.position=p,N.val=g(N.index++)),L|=(E>0?1:0)*T,T<<=1;m[C++]=t(L),I=C-1,b--;break;case 2:return B.join("")}if(b==0&&(b=Math.pow(2,v),v++),m[I])x=m[I];else if(I===C)x=k+k.charAt(0);else return null;B.push(x),m[C++]=k+x.charAt(0),b--,k=x,b==0&&(b=Math.pow(2,v),v++)}}};return l}();typeof define=="function"&&define.amd?define(function(){return dc}):typeof pi<"u"&&pi!=null?pi.exports=dc:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return dc})});var Ep=Ja((Hw,bc)=>{"use strict";var l1=Object.prototype.hasOwnProperty,kt="~";function zs(){}Object.create&&(zs.prototype=Object.create(null),new zs().__proto__||(kt=!1));function c1(t,r,n){this.fn=t,this.context=r,this.once=n||!1}function Ap(t,r,n,a,s){if(typeof n!="function")throw new TypeError("The listener must be a function");var l=new c1(n,a||t,s),c=kt?kt+r:r;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],l]:t._events[c].push(l):(t._events[c]=l,t._eventsCount++),t}function xi(t,r){--t._eventsCount===0?t._events=new zs:delete t._events[r]}function vt(){this._events=new zs,this._eventsCount=0}vt.prototype.eventNames=function(){var r=[],n,a;if(this._eventsCount===0)return r;for(a in n=this._events)l1.call(n,a)&&r.push(kt?a.slice(1):a);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(n)):r};vt.prototype.listeners=function(r){var n=kt?kt+r:r,a=this._events[n];if(!a)return[];if(a.fn)return[a.fn];for(var s=0,l=a.length,c=new Array(l);s{(function(r,n){typeof Xs=="object"&&typeof yc=="object"?yc.exports=n():typeof define=="function"&&define.amd?define([],n):typeof Xs=="object"?Xs.ClipboardJS=n():r.ClipboardJS=n()})(Xs,function(){return function(){var t={686:function(a,s,l){"use strict";l.d(s,{default:function(){return Gt}});var c=l(279),p=l.n(c),g=l(370),m=l.n(g),h=l(817),b=l.n(h);function C(ce){try{return document.execCommand(ce)}catch(z){return!1}}var v=function(z){var Z=b()(z);return C("cut"),Z},x=v;function B(ce){var z=document.documentElement.getAttribute("dir")==="rtl",Z=document.createElement("textarea");Z.style.fontSize="12pt",Z.style.border="0",Z.style.padding="0",Z.style.margin="0",Z.style.position="absolute",Z.style[z?"right":"left"]="-9999px";var se=window.pageYOffset||document.documentElement.scrollTop;return Z.style.top="".concat(se,"px"),Z.setAttribute("readonly",""),Z.value=ce,Z}var U=function(z,Z){var se=B(z);Z.container.appendChild(se);var ne=b()(se);return C("copy"),se.remove(),ne},k=function(z){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},se="";return typeof z=="string"?se=U(z,Z):z instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(z==null?void 0:z.type)?se=U(z.value,Z):(se=b()(z),C("copy")),se},L=k;function E(ce){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E=function(Z){return typeof Z}:E=function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},E(ce)}var S=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Z=z.action,se=Z===void 0?"copy":Z,ne=z.container,he=z.target,Fe=z.text;if(se!=="copy"&&se!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(he!==void 0)if(he&&E(he)==="object"&&he.nodeType===1){if(se==="copy"&&he.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(se==="cut"&&(he.hasAttribute("readonly")||he.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Fe)return L(Fe,{container:ne});if(he)return se==="cut"?x(he):L(he,{container:ne})},T=S;function I(ce){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(Z){return typeof Z}:I=function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},I(ce)}function N(ce,z){if(!(ce instanceof z))throw new TypeError("Cannot call a class as a function")}function X(ce,z){for(var Z=0;Z"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ce){return!1}}function xt(ce){return xt=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},xt(ce)}function Ht(ce,z){var Z="data-clipboard-".concat(ce);if(z.hasAttribute(Z))return z.getAttribute(Z)}var er=function(ce){w(Z,ce);var z=J(Z);function Z(se,ne){var he;return N(this,Z),he=z.call(this),he.resolveOptions(ne),he.listenClick(se),he}return re(Z,[{key:"resolveOptions",value:function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ne.action=="function"?ne.action:this.defaultAction,this.target=typeof ne.target=="function"?ne.target:this.defaultTarget,this.text=typeof ne.text=="function"?ne.text:this.defaultText,this.container=I(ne.container)==="object"?ne.container:document.body}},{key:"listenClick",value:function(ne){var he=this;this.listener=m()(ne,"click",function(Fe){return he.onClick(Fe)})}},{key:"onClick",value:function(ne){var he=ne.delegateTarget||ne.currentTarget,Fe=this.action(he)||"copy",Mt=T({action:Fe,container:this.container,target:this.target(he),text:this.text(he)});this.emit(Mt?"success":"error",{action:Fe,text:Mt,trigger:he,clearSelection:function(){he&&he.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(ne){return Ht("action",ne)}},{key:"defaultTarget",value:function(ne){var he=Ht("target",ne);if(he)return document.querySelector(he)}},{key:"defaultText",value:function(ne){return Ht("text",ne)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(ne){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return L(ne,he)}},{key:"cut",value:function(ne){return x(ne)}},{key:"isSupported",value:function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],he=typeof ne=="string"?[ne]:ne,Fe=!!document.queryCommandSupported;return he.forEach(function(Mt){Fe=Fe&&!!document.queryCommandSupported(Mt)}),Fe}}]),Z}(p()),Gt=er},828:function(a){var s=9;if(typeof Element<"u"&&!Element.prototype.matches){var l=Element.prototype;l.matches=l.matchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector}function c(p,g){for(;p&&p.nodeType!==s;){if(typeof p.matches=="function"&&p.matches(g))return p;p=p.parentNode}}a.exports=c},438:function(a,s,l){var c=l(828);function p(h,b,C,v,x){var B=m.apply(this,arguments);return h.addEventListener(C,B,x),{destroy:function(){h.removeEventListener(C,B,x)}}}function g(h,b,C,v,x){return typeof h.addEventListener=="function"?p.apply(null,arguments):typeof C=="function"?p.bind(null,document).apply(null,arguments):(typeof h=="string"&&(h=document.querySelectorAll(h)),Array.prototype.map.call(h,function(B){return p(B,b,C,v,x)}))}function m(h,b,C,v){return function(x){x.delegateTarget=c(x.target,b),x.delegateTarget&&v.call(h,x)}}a.exports=g},879:function(a,s){s.node=function(l){return l!==void 0&&l instanceof HTMLElement&&l.nodeType===1},s.nodeList=function(l){var c=Object.prototype.toString.call(l);return l!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in l&&(l.length===0||s.node(l[0]))},s.string=function(l){return typeof l=="string"||l instanceof String},s.fn=function(l){var c=Object.prototype.toString.call(l);return c==="[object Function]"}},370:function(a,s,l){var c=l(879),p=l(438);function g(C,v,x){if(!C&&!v&&!x)throw new Error("Missing required arguments");if(!c.string(v))throw new TypeError("Second argument must be a String");if(!c.fn(x))throw new TypeError("Third argument must be a Function");if(c.node(C))return m(C,v,x);if(c.nodeList(C))return h(C,v,x);if(c.string(C))return b(C,v,x);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function m(C,v,x){return C.addEventListener(v,x),{destroy:function(){C.removeEventListener(v,x)}}}function h(C,v,x){return Array.prototype.forEach.call(C,function(B){B.addEventListener(v,x)}),{destroy:function(){Array.prototype.forEach.call(C,function(B){B.removeEventListener(v,x)})}}}function b(C,v,x){return p(document.body,C,v,x)}a.exports=g},817:function(a){function s(l){var c;if(l.nodeName==="SELECT")l.focus(),c=l.value;else if(l.nodeName==="INPUT"||l.nodeName==="TEXTAREA"){var p=l.hasAttribute("readonly");p||l.setAttribute("readonly",""),l.select(),l.setSelectionRange(0,l.value.length),p||l.removeAttribute("readonly"),c=l.value}else{l.hasAttribute("contenteditable")&&l.focus();var g=window.getSelection(),m=document.createRange();m.selectNodeContents(l),g.removeAllRanges(),g.addRange(m),c=g.toString()}return c}a.exports=s},279:function(a){function s(){}s.prototype={on:function(l,c,p){var g=this.e||(this.e={});return(g[l]||(g[l]=[])).push({fn:c,ctx:p}),this},once:function(l,c,p){var g=this;function m(){g.off(l,m),c.apply(p,arguments)}return m._=c,this.on(l,m,p)},emit:function(l){var c=[].slice.call(arguments,1),p=((this.e||(this.e={}))[l]||[]).slice(),g=0,m=p.length;for(g;g{var d1=200,jp="__lodash_hash_undefined__",Vp=9007199254740991,Pc="[object Arguments]",p1="[object Array]",Wp="[object Boolean]",Kp="[object Date]",g1="[object Error]",Ac="[object Function]",zp="[object GeneratorFunction]",Ti="[object Map]",Xp="[object Number]",Ec="[object Object]",Rp="[object Promise]",Zp="[object RegExp]",ki="[object Set]",Yp="[object String]",Jp="[object Symbol]",xc="[object WeakMap]",eg="[object ArrayBuffer]",Li="[object DataView]",tg="[object Float32Array]",rg="[object Float64Array]",ng="[object Int8Array]",ag="[object Int16Array]",sg="[object Int32Array]",og="[object Uint8Array]",ig="[object Uint8ClampedArray]",lg="[object Uint16Array]",cg="[object Uint32Array]",m1=/[\\^$.*+?()[\]{}|]/g,f1=/\w*$/,h1=/^\[object .+?Constructor\]$/,b1=/^(?:0|[1-9]\d*)$/,_e={};_e[Pc]=_e[p1]=_e[eg]=_e[Li]=_e[Wp]=_e[Kp]=_e[tg]=_e[rg]=_e[ng]=_e[ag]=_e[sg]=_e[Ti]=_e[Xp]=_e[Ec]=_e[Zp]=_e[ki]=_e[Yp]=_e[Jp]=_e[og]=_e[ig]=_e[lg]=_e[cg]=!0;_e[g1]=_e[Ac]=_e[xc]=!1;var y1=typeof global=="object"&&global&&global.Object===Object&&global,v1=typeof self=="object"&&self&&self.Object===Object&&self,rn=y1||v1||Function("return this")(),ug=typeof Zs=="object"&&Zs&&!Zs.nodeType&&Zs,Ip=ug&&typeof as=="object"&&as&&!as.nodeType&&as,C1=Ip&&Ip.exports===ug;function w1(t,r){return t.set(r[0],r[1]),t}function x1(t,r){return t.add(r),t}function M1(t,r){for(var n=-1,a=t?t.length:0;++n-1}function X1(t,r){var n=this.__data__,a=Ei(n,t);return a<0?n.push([t,r]):n[a][1]=r,this}nn.prototype.clear=V1;nn.prototype.delete=W1;nn.prototype.get=K1;nn.prototype.has=z1;nn.prototype.set=X1;function ss(t){var r=-1,n=t?t.length:0;for(this.clear();++r-1&&t%1==0&&t-1&&t%1==0&&t<=Vp}function Ui(t){var r=typeof t;return!!t&&(r=="object"||r=="function")}function Ib(t){return!!t&&typeof t=="object"}function Rc(t){return vg(t)?ib(t):gb(t)}function Nb(){return[]}function $b(){return!1}as.exports=Eb});var ym=Ja((nl,bm)=>{(function(t,r){typeof nl=="object"&&typeof bm<"u"?r(nl):typeof define=="function"&&define.amd?define(["exports"],r):(t=typeof globalThis<"u"?globalThis:t||self,r(t.fastUniqueNumbers={}))})(nl,function(t){"use strict";var r=function(C){return function(v){var x=C(v);return v.add(x),x}},n=function(C){return function(v,x){return C.set(v,x),x}},a=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,s=536870912,l=s*2,c=function(C,v){return function(x){var B=v.get(x),U=B===void 0?x.size:Ba)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;x.has(U);)U=Math.floor(Math.random()*a);return C(x,U)}},p=new WeakMap,g=n(p),m=c(g,p),h=r(m);t.addUniqueNumber=h,t.generateUniqueNumber=m})});(function(){"use strict";var t=function(Q,$){var q=function(Ne){for(var ve=0,Ue=Ne.length;veQ.length)&&($=Q.length);for(var q=0,ue=new Array($);q<$;q++)ue[q]=Q[q];return ue}function a(Q,$){var q=typeof Symbol<"u"&&Q[Symbol.iterator]||Q["@@iterator"];if(!q){if(Array.isArray(Q)||(q=r(Q))||$&&Q&&typeof Q.length=="number"){q&&(Q=q);var ue=0,de=function(){};return{s:de,n:function(){return ue>=Q.length?{done:!0}:{done:!1,value:Q[ue++]}},e:function(et){throw et},f:de}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ne=!0,ve=!1,Ue;return{s:function(){q=q.call(Q)},n:function(){var et=q.next();return Ne=et.done,et},e:function(et){ve=!0,Ue=et},f:function(){try{!Ne&&q.return!=null&&q.return()}finally{if(ve)throw Ue}}}}var s=!0,l=!1,c="querySelectorAll",p=function($){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:MutationObserver,de=arguments.length>3&&arguments[3]!==void 0?arguments[3]:["*"],Ne=function et(En,On,Ut,Me,We,tt){var Ft=a(En),Ya;try{for(Ft.s();!(Ya=Ft.n()).done;){var ht=Ya.value;(tt||c in ht)&&(We?Ut.has(ht)||(Ut.add(ht),Me.delete(ht),$(ht,We)):Me.has(ht)||(Me.add(ht),Ut.delete(ht),$(ht,We)),tt||et(ht[c](On),On,Ut,Me,We,s))}}catch(ic){Ft.e(ic)}finally{Ft.f()}},ve=new ue(function(et){if(de.length){var En=de.join(","),On=new Set,Ut=new Set,Me=a(et),We;try{for(Me.s();!(We=Me.n()).done;){var tt=We.value,Ft=tt.addedNodes,Ya=tt.removedNodes;Ne(Ya,En,On,Ut,l,l),Ne(Ft,En,On,Ut,s,l)}}catch(ht){Me.e(ht)}finally{Me.f()}}}),Ue=ve.observe;return(ve.observe=function(et){return Ue.call(ve,et,{subtree:s,childList:s})})(q),ve},g="querySelectorAll",m=self,h=m.document,b=m.Element,C=m.MutationObserver,v=m.Set,x=m.WeakMap,B=function($){return g in $},U=[].filter,k=function(Q){var $=new x,q=function(Me){for(var We=0,tt=Me.length;We1&&arguments[1]!==void 0?arguments[1]:!0,tt=0,Ft=Me.length;tt=1&&this.m<10)return this;if(this.m===0)return this.m=0,this.e=0,this;var r=Math.floor(Math.log10(Math.abs(this.m)));return this.m=r===-324?10*this.m/1e-323:this.m/ui(r),this.e+=r,this},t.prototype.fromMantissaExponent=function(r,n){return isFinite(r)&&isFinite(n)?(this.m=r,this.e=n,this.normalize(),this):(r=Number.NaN,n=Number.NaN,this)},t.prototype.fromMantissaExponent_noNormalize=function(r,n){return this.m=r,this.e=n,this},t.prototype.fromDecimal=function(r){return this.m=r.m,this.e=r.e,this},t.prototype.fromNumber=function(r){return isNaN(r)?(this.m=Number.NaN,this.e=Number.NaN):r===Number.POSITIVE_INFINITY?(this.m=1,this.e=$r):r===Number.NEGATIVE_INFINITY?(this.m=-1,this.e=$r):r===0?(this.m=0,this.e=0):(this.e=Math.floor(Math.log10(Math.abs(r))),this.m=this.e===-324?10*r/1e-323:r/ui(this.e),this.normalize()),this},t.prototype.fromString=function(r){if(r.indexOf("e")!==-1){var n=r.split("e");this.m=parseFloat(n[0]),this.e=parseFloat(n[1]),this.normalize()}else if(r==="NaN")this.m=Number.NaN,this.e=Number.NaN;else if(this.fromNumber(parseFloat(r)),isNaN(this.m))throw Error("[DecimalError] Invalid argument: "+r);return this},t.prototype.fromValue=function(r){return r instanceof t?this.fromDecimal(r):typeof r=="number"?this.fromNumber(r):typeof r=="string"?this.fromString(r):(this.m=0,this.e=0,this)},t.prototype.toNumber=function(){if(!isFinite(this.e))return Number.NaN;if(this.e>308)return this.m>0?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(this.e<-324)return 0;if(this.e===-324)return this.m>0?5e-324:-5e-324;var r=this.m*ui(this.e);if(!isFinite(r)||this.e<0)return r;var n=Math.round(r);return Math.abs(n-r)<1e-10?n:r},t.prototype.mantissaWithDecimalPlaces=function(r){if(isNaN(this.m)||isNaN(this.e))return Number.NaN;if(this.m===0)return 0;var n=r+1,a=Math.ceil(Math.log10(Math.abs(this.m))),s=Math.round(this.m*Math.pow(10,n-a))*Math.pow(10,a-n);return parseFloat(s.toFixed(Math.max(n-a,0)))},t.prototype.toString=function(){return isNaN(this.m)||isNaN(this.e)?"NaN":this.e>=$r?this.m>0?"Infinity":"-Infinity":this.e<=-$r||this.m===0?"0":this.e<21&&this.e>-7?this.toNumber().toString():this.m+"e"+(this.e>=0?"+":"")+this.e},t.prototype.toExponential=function(r){if(isNaN(this.m)||isNaN(this.e))return"NaN";if(this.e>=$r)return this.m>0?"Infinity":"-Infinity";if(this.e<=-$r||this.m===0)return"0"+(r>0?(0,di.default)(".",r+1,"0"):"")+"e+0";if(this.e>-324&&this.e<308)return this.toNumber().toExponential(r);isFinite(r)||(r=17);var n=r+1,a=Math.max(1,Math.ceil(Math.log10(Math.abs(this.m))));return(Math.round(this.m*Math.pow(10,n-a))*Math.pow(10,a-n)).toFixed(Math.max(n-a,0))+"e"+(this.e>=0?"+":"")+this.e},t.prototype.toFixed=function(r){return isNaN(this.m)||isNaN(this.e)?"NaN":this.e>=$r?this.m>0?"Infinity":"-Infinity":this.e<=-$r||this.m===0?"0"+(r>0?(0,di.default)(".",r+1,"0"):""):this.e>=17?this.m.toString().replace(".","").padEnd(this.e+1,"0")+(r>0?(0,di.default)(".",r+1,"0"):""):this.toNumber().toFixed(r)},t.prototype.toPrecision=function(r){return this.e<=-7?this.toExponential(r-1):r>this.e?this.toFixed(r-this.e-1):this.toExponential(r-1)},t.prototype.valueOf=function(){return this.toString()},t.prototype.toJSON=function(){return this.toString()},t.prototype.toStringWithDecimalPlaces=function(r){return this.toExponential(r)},t.prototype.abs=function(){return oa(Math.abs(this.m),this.e)},t.prototype.neg=function(){return oa(-this.m,this.e)},t.prototype.negate=function(){return this.neg()},t.prototype.negated=function(){return this.neg()},t.prototype.sign=function(){return Math.sign(this.m)},t.prototype.sgn=function(){return this.sign()},t.prototype.round=function(){return this.e<-1?new t(0):this.e<17?new t(Math.round(this.toNumber())):this},t.prototype.floor=function(){return this.e<-1?Math.sign(this.m)>=0?new t(0):new t(-1):this.e<17?new t(Math.floor(this.toNumber())):this},t.prototype.ceil=function(){return this.e<-1?Math.sign(this.m)>0?new t(1):new t(0):this.e<17?new t(Math.ceil(this.toNumber())):this},t.prototype.trunc=function(){return this.e<0?new t(0):this.e<17?new t(Math.trunc(this.toNumber())):this},t.prototype.add=function(r){var n,a,s=D(r);if(this.m===0)return s;if(s.m===0)return this;if(this.e>=s.e?(n=this,a=s):(n=s,a=this),n.e-a.e>17)return n;var l=Math.round(1e14*n.m+1e14*a.m*ui(a.e-n.e));return Bt(l,n.e-14)},t.prototype.plus=function(r){return this.add(r)},t.prototype.sub=function(r){return this.add(D(r).neg())},t.prototype.subtract=function(r){return this.sub(r)},t.prototype.minus=function(r){return this.sub(r)},t.prototype.mul=function(r){if(typeof r=="number")return r<1e307&&r>-1e307?Bt(this.m*r,this.e):Bt(1e-307*this.m*r,this.e+307);var n=typeof r=="string"?new t(r):r;return Bt(this.m*n.m,this.e+n.e)},t.prototype.multiply=function(r){return this.mul(r)},t.prototype.times=function(r){return this.mul(r)},t.prototype.div=function(r){return this.mul(D(r).recip())},t.prototype.divide=function(r){return this.div(r)},t.prototype.divideBy=function(r){return this.div(r)},t.prototype.dividedBy=function(r){return this.div(r)},t.prototype.recip=function(){return Bt(1/this.m,-this.e)},t.prototype.reciprocal=function(){return this.recip()},t.prototype.reciprocate=function(){return this.recip()},t.prototype.cmp=function(r){var n=D(r);if(this.m===0){if(n.m===0)return 0;if(n.m<0)return 1;if(n.m>0)return-1}if(n.m===0){if(this.m<0)return-1;if(this.m>0)return 1}if(this.m>0)return n.m<0||this.e>n.e?1:this.en.m?1:this.m0||this.e>n.e?-1:this.en.m?1:this.m0:n.m===0?this.m<=0:this.e===n.e?this.m0?n.m>0&&this.e0||this.e>n.e},t.prototype.lte=function(r){return!this.gt(r)},t.prototype.gt=function(r){var n=D(r);return this.m===0?n.m<0:n.m===0?this.m>0:this.e===n.e?this.m>n.m:this.m>0?n.m<0||this.e>n.e:n.m<0&&this.e-1},t.prototype.greaterThan=function(r){return this.cmp(r)>0},t.prototype.decimalPlaces=function(){return this.dp()},t.prototype.dp=function(){if(!isFinite(this.mantissa))return NaN;if(this.exponent>=17)return 0;for(var r=this.mantissa,n=-this.exponent,a=1;Math.abs(Math.round(r*a)/a-r)>1e-10;)a*=10,n++;return n>0?n:0},Object.defineProperty(t,"MAX_VALUE",{get:function(){return Ah},enumerable:!1,configurable:!0}),Object.defineProperty(t,"MIN_VALUE",{get:function(){return Eh},enumerable:!1,configurable:!0}),Object.defineProperty(t,"NUMBER_MAX_VALUE",{get:function(){return Oh},enumerable:!1,configurable:!0}),Object.defineProperty(t,"NUMBER_MIN_VALUE",{get:function(){return Uh},enumerable:!1,configurable:!0}),t}(),Ah=oa(1,$r),Eh=oa(1,-$r),Oh=D(Number.MAX_VALUE),Uh=D(Number.MIN_VALUE),f=Bn;var ih=Un(pc());function bt(t){"@babel/helpers - typeof";return bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bt(t)}function xr(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function rp(t,r){if(bt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,r||"default");if(bt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function gi(t){var r=rp(t,"string");return bt(r)=="symbol"?r:r+""}function np(t,r){for(var n=0;nt.length)&&(r=t.length);for(var n=0,a=Array(r);n1&&arguments[1]!==void 0?arguments[1]:{};xr(this,t),this.init(r,n)}return Mr(t,[{key:"init",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=n||Bh,this.options=a,this.debug=a.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,a=new Array(n),s=0;s1?a-1:0),l=1;l-1?p.replace(/###/g,"."):p}function s(){return!t||typeof t=="string"}for(var l=typeof r!="string"?[].concat(r):r.split(".");l.length>1;){if(s())return{};var c=a(l.shift());!t[c]&&n&&(t[c]=new n),Object.prototype.hasOwnProperty.call(t,c)?t=t[c]:t={}}return s()?{}:{obj:t,k:a(l.shift())}}function pp(t,r,n){var a=fc(t,r,Object),s=a.obj,l=a.k;s[l]=n}function Nh(t,r,n,a){var s=fc(t,r,Object),l=s.obj,c=s.k;l[c]=l[c]||[],a&&(l[c]=l[c].concat(n)),a||l[c].push(n)}function bi(t,r){var n=fc(t,r),a=n.obj,s=n.k;if(a)return a[s]}function $h(t,r,n){var a=bi(t,n);return a!==void 0?a:bi(r,n)}function Lp(t,r,n){for(var a in r)a!=="__proto__"&&a!=="constructor"&&(a in t?typeof t[a]=="string"||t[a]instanceof String||typeof r[a]=="string"||r[a]instanceof String?n&&(t[a]=r[a]):Lp(t[a],r[a],n):t[a]=r[a]);return t}function ts(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Dh(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(r){return _h[r]}):t}var Ci=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Hh=[" ",",","?","!",";"];function Gh(t,r,n){r=r||"",n=n||"";var a=Hh.filter(function(p){return r.indexOf(p)<0&&n.indexOf(p)<0});if(a.length===0)return!0;var s=new RegExp("(".concat(a.map(function(p){return p==="?"?"\\?":p}).join("|"),")")),l=!s.test(t);if(!l){var c=t.indexOf(n);c>0&&!s.test(t.substring(0,c))&&(l=!0)}return l}function yi(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[r])return t[r];for(var a=r.split(n),s=t,l=0;ll+c;)c++,p=a.slice(l,l+c).join(n),g=s[p];if(g===void 0)return;if(g===null)return null;if(r.endsWith(p)){if(typeof g=="string")return g;if(p&&typeof g[p]=="string")return g[p]}var m=a.slice(l+c).join(n);return m?yi(g,m,n):void 0}s=s[a[l]]}return s}}function gp(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function fi(t){for(var r=1;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var qh=function(t){Ws(n,t);var r=Fh(n);function n(a){var s,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return xr(this,n),s=r.call(this),Ci&&Rn.call(_r(s)),s.data=a||{},s.options=l,s.options.keySeparator===void 0&&(s.options.keySeparator="."),s.options.ignoreJSONStructure===void 0&&(s.options.ignoreJSONStructure=!0),s}return Mr(n,[{key:"addNamespaces",value:function(s){this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}},{key:"removeNamespaces",value:function(s){var l=this.options.ns.indexOf(s);l>-1&&this.options.ns.splice(l,1)}},{key:"getResource",value:function(s,l,c){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=p.keySeparator!==void 0?p.keySeparator:this.options.keySeparator,m=p.ignoreJSONStructure!==void 0?p.ignoreJSONStructure:this.options.ignoreJSONStructure,h=[s,l];c&&typeof c!="string"&&(h=h.concat(c)),c&&typeof c=="string"&&(h=h.concat(g?c.split(g):c)),s.indexOf(".")>-1&&(h=s.split("."));var b=bi(this.data,h);return b||!m||typeof c!="string"?b:yi(this.data&&this.data[s]&&this.data[s][l],c,g)}},{key:"addResource",value:function(s,l,c,p){var g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},m=g.keySeparator!==void 0?g.keySeparator:this.options.keySeparator,h=[s,l];c&&(h=h.concat(m?c.split(m):c)),s.indexOf(".")>-1&&(h=s.split("."),p=l,l=h[1]),this.addNamespaces(l),pp(this.data,h,p),g.silent||this.emit("added",s,l,c,p)}},{key:"addResources",value:function(s,l,c){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var g in c)(typeof c[g]=="string"||Object.prototype.toString.apply(c[g])==="[object Array]")&&this.addResource(s,l,g,c[g],{silent:!0});p.silent||this.emit("added",s,l,c)}},{key:"addResourceBundle",value:function(s,l,c,p,g){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},h=[s,l];s.indexOf(".")>-1&&(h=s.split("."),p=c,c=l,l=h[1]),this.addNamespaces(l);var b=bi(this.data,h)||{};p?Lp(b,c,g):b=fi(fi({},b),c),pp(this.data,h,b),m.silent||this.emit("added",s,l,c)}},{key:"removeResourceBundle",value:function(s,l){this.hasResourceBundle(s,l)&&delete this.data[s][l],this.removeNamespaces(l),this.emit("removed",s,l)}},{key:"hasResourceBundle",value:function(s,l){return this.getResource(s,l)!==void 0}},{key:"getResourceBundle",value:function(s,l){return l||(l=this.options.defaultNS),this.options.compatibilityAPI==="v1"?fi(fi({},{}),this.getResource(s,l)):this.getResource(s,l)}},{key:"getDataByLanguage",value:function(s){return this.data[s]}},{key:"hasLanguageSomeTranslations",value:function(s){var l=this.getDataByLanguage(s),c=l&&Object.keys(l)||[];return!!c.find(function(p){return l[p]&&Object.keys(l[p]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Rn),Pp={processors:{},addPostProcessor:function(r){this.processors[r.name]=r},handle:function(r,n,a,s,l){var c=this;return r.forEach(function(p){c.processors[p]&&(n=c.processors[p].process(n,a,s,l))}),n}};function mp(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function yt(t){for(var r=1;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var fp={},hp=function(t){Ws(n,t);var r=jh(n);function n(a){var s,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return xr(this,n),s=r.call(this),Ci&&Rn.call(_r(s)),Ih(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,_r(s)),s.options=l,s.options.keySeparator===void 0&&(s.options.keySeparator="."),s.logger=Hr.create("translator"),s}return Mr(n,[{key:"changeLanguage",value:function(s){s&&(this.language=s)}},{key:"exists",value:function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(s==null)return!1;var c=this.resolve(s,l);return c&&c.res!==void 0}},{key:"extractFromKey",value:function(s,l){var c=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");var p=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,g=l.ns||this.options.defaultNS||[],m=c&&s.indexOf(c)>-1,h=!this.options.userDefinedKeySeparator&&!l.keySeparator&&!this.options.userDefinedNsSeparator&&!l.nsSeparator&&!Gh(s,c,p);if(m&&!h){var b=s.match(this.interpolator.nestingRegexp);if(b&&b.length>0)return{key:s,namespaces:g};var C=s.split(c);(c!==p||c===p&&this.options.ns.indexOf(C[0])>-1)&&(g=C.shift()),s=C.join(p)}return typeof g=="string"&&(g=[g]),{key:s,namespaces:g}}},{key:"translate",value:function(s,l,c){var p=this;if(bt(l)!=="object"&&this.options.overloadTranslationOptionHandler&&(l=this.options.overloadTranslationOptionHandler(arguments)),bt(l)==="object"&&(l=yt({},l)),l||(l={}),s==null)return"";Array.isArray(s)||(s=[String(s)]);var g=l.returnDetails!==void 0?l.returnDetails:this.options.returnDetails,m=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,h=this.extractFromKey(s[s.length-1],l),b=h.key,C=h.namespaces,v=C[C.length-1],x=l.lng||this.language,B=l.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(x&&x.toLowerCase()==="cimode"){if(B){var U=l.nsSeparator||this.options.nsSeparator;return g?{res:"".concat(v).concat(U).concat(b),usedKey:b,exactUsedKey:b,usedLng:x,usedNS:v}:"".concat(v).concat(U).concat(b)}return g?{res:b,usedKey:b,exactUsedKey:b,usedLng:x,usedNS:v}:b}var k=this.resolve(s,l),L=k&&k.res,E=k&&k.usedKey||b,S=k&&k.exactUsedKey||b,T=Object.prototype.toString.apply(L),I=["[object Number]","[object Function]","[object RegExp]"],N=l.joinArrays!==void 0?l.joinArrays:this.options.joinArrays,X=!this.i18nFormat||this.i18nFormat.handleAsObject,re=typeof L!="string"&&typeof L!="boolean"&&typeof L!="number";if(X&&L&&re&&I.indexOf(T)<0&&!(typeof N=="string"&&T==="[object Array]")){if(!l.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(E,L,yt(yt({},l),{},{ns:C})):"key '".concat(b," (").concat(this.language,")' returned an object instead of string.");return g?(k.res=w,k):w}if(m){var G=T==="[object Array]",J=G?[]:{},Se=G?S:E;for(var ut in L)if(Object.prototype.hasOwnProperty.call(L,ut)){var ft="".concat(Se).concat(m).concat(ut);J[ut]=this.translate(ft,yt(yt({},l),{joinArrays:!1,ns:C})),J[ut]===ft&&(J[ut]=L[ut])}L=J}}else if(X&&typeof N=="string"&&T==="[object Array]")L=L.join(N),L&&(L=this.extendTranslation(L,s,l,c));else{var xt=!1,Ht=!1,er=l.count!==void 0&&typeof l.count!="string",Gt=n.hasDefaultValue(l),ce=er?this.pluralResolver.getSuffix(x,l.count,l):"",z=l["defaultValue".concat(ce)]||l.defaultValue;!this.isValidLookup(L)&&Gt&&(xt=!0,L=z),this.isValidLookup(L)||(Ht=!0,L=b);var Z=l.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,se=Z&&Ht?void 0:L,ne=Gt&&z!==L&&this.options.updateMissing;if(Ht||xt||ne){if(this.logger.log(ne?"updateKey":"missingKey",x,v,b,ne?z:L),m){var he=this.resolve(b,yt(yt({},l),{},{keySeparator:!1}));he&&he.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.")}var Fe=[],Mt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,l.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Mt&&Mt[0])for(var A=0;A1&&arguments[1]!==void 0?arguments[1]:{},p,g,m,h,b;return typeof s=="string"&&(s=[s]),s.forEach(function(C){if(!l.isValidLookup(p)){var v=l.extractFromKey(C,c),x=v.key;g=x;var B=v.namespaces;l.options.fallbackNS&&(B=B.concat(l.options.fallbackNS));var U=c.count!==void 0&&typeof c.count!="string",k=U&&!c.ordinal&&c.count===0&&l.pluralResolver.shouldUseIntlApi(),L=c.context!==void 0&&(typeof c.context=="string"||typeof c.context=="number")&&c.context!=="",E=c.lngs?c.lngs:l.languageUtils.toResolveHierarchy(c.lng||l.language,c.fallbackLng);B.forEach(function(S){l.isValidLookup(p)||(b=S,!fp["".concat(E[0],"-").concat(S)]&&l.utils&&l.utils.hasLoadedNamespace&&!l.utils.hasLoadedNamespace(b)&&(fp["".concat(E[0],"-").concat(S)]=!0,l.logger.warn('key "'.concat(g,'" for languages "').concat(E.join(", "),`" won't get resolved as namespace "`).concat(b,'" 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!!!")),E.forEach(function(T){if(!l.isValidLookup(p)){h=T;var I=[x];if(l.i18nFormat&&l.i18nFormat.addLookupKeys)l.i18nFormat.addLookupKeys(I,x,T,S,c);else{var N;U&&(N=l.pluralResolver.getSuffix(T,c.count,c));var X="".concat(l.options.pluralSeparator,"zero");if(U&&(I.push(x+N),k&&I.push(x+X)),L){var re="".concat(x).concat(l.options.contextSeparator).concat(c.context);I.push(re),U&&(I.push(re+N),k&&I.push(re+X))}}for(var w;w=I.pop();)l.isValidLookup(p)||(m=w,p=l.getResource(T,S,w,c))}}))})}}),{res:p,usedKey:g,exactUsedKey:m,usedLng:h,usedNS:b}}},{key:"isValidLookup",value:function(s){return s!==void 0&&!(!this.options.returnNull&&s===null)&&!(!this.options.returnEmptyString&&s==="")}},{key:"getResource",value:function(s,l,c){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(s,l,c,p):this.resourceStore.getResource(s,l,c,p)}}],[{key:"hasDefaultValue",value:function(s){var l="defaultValue";for(var c in s)if(Object.prototype.hasOwnProperty.call(s,c)&&l===c.substring(0,l.length)&&s[c]!==void 0)return!0;return!1}}]),n}(Rn);function mc(t){return t.charAt(0).toUpperCase()+t.slice(1)}var bp=function(){function t(r){xr(this,t),this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Hr.create("languageUtils")}return Mr(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var a=n.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var a=n.split("-");return this.formatLanguageCode(a[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var a=["hans","hant","latn","cyrl","cans","mong","arab"],s=n.split("-");return this.options.lowerCaseLng?s=s.map(function(l){return l.toLowerCase()}):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),a.indexOf(s[1].toLowerCase())>-1&&(s[1]=mc(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),a.indexOf(s[1].toLowerCase())>-1&&(s[1]=mc(s[1].toLowerCase())),a.indexOf(s[2].toLowerCase())>-1&&(s[2]=mc(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var a=this;if(!n)return null;var s;return n.forEach(function(l){if(!s){var c=a.formatLanguageCode(l);(!a.options.supportedLngs||a.isSupportedCode(c))&&(s=c)}}),!s&&this.options.supportedLngs&&n.forEach(function(l){if(!s){var c=a.getLanguagePartFromCode(l);if(a.isSupportedCode(c))return s=c;s=a.options.supportedLngs.find(function(p){if(p===c)return p;if(!(p.indexOf("-")<0&&c.indexOf("-")<0)&&p.indexOf(c)===0)return p})}}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}},{key:"getFallbackCodes",value:function(n,a){if(!n)return[];if(typeof n=="function"&&(n=n(a)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!a)return n.default||[];var s=n[a];return s||(s=n[this.getScriptPartFromCode(a)]),s||(s=n[this.formatLanguageCode(a)]),s||(s=n[this.getLanguagePartFromCode(a)]),s||(s=n.default),s||[]}},{key:"toResolveHierarchy",value:function(n,a){var s=this,l=this.getFallbackCodes(a||this.options.fallbackLng||[],n),c=[],p=function(m){m&&(s.isSupportedCode(m)?c.push(m):s.logger.warn("rejecting language code not found in supportedLngs: ".concat(m)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&p(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&p(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&p(this.getLanguagePartFromCode(n))):typeof n=="string"&&p(this.formatLanguageCode(n)),l.forEach(function(g){c.indexOf(g)<0&&p(s.formatLanguageCode(g))}),c}}]),t}(),Wh=[{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}],Kh={1:function(r){return+(r>1)},2:function(r){return+(r!=1)},3:function(r){return 0},4:function(r){return r%10==1&&r%100!=11?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2},5:function(r){return r==0?0:r==1?1:r==2?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5},6:function(r){return r==1?0:r>=2&&r<=4?1:2},7:function(r){return r==1?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2},8:function(r){return r==1?0:r==2?1:r!=8&&r!=11?2:3},9:function(r){return+(r>=2)},10:function(r){return r==1?0:r==2?1:r<7?2:r<11?3:4},11:function(r){return r==1||r==11?0:r==2||r==12?1:r>2&&r<20?2:3},12:function(r){return+(r%10!=1||r%100==11)},13:function(r){return+(r!==0)},14:function(r){return r==1?0:r==2?1:r==3?2:3},15:function(r){return r%10==1&&r%100!=11?0:r%10>=2&&(r%100<10||r%100>=20)?1:2},16:function(r){return r%10==1&&r%100!=11?0:r!==0?1:2},17:function(r){return r==1||r%10==1&&r%100!=11?0:1},18:function(r){return r==0?0:r==1?1:2},19:function(r){return r==1?0:r==0||r%100>1&&r%100<11?1:r%100>10&&r%100<20?2:3},20:function(r){return r==1?0:r==0||r%100>0&&r%100<20?1:2},21:function(r){return r%100==1?1:r%100==2?2:r%100==3||r%100==4?3:0},22:function(r){return r==1?0:r==2?1:(r<0||r>10)&&r%10==0?2:3}},zh=["v1","v2","v3"],yp={zero:0,one:1,two:2,few:3,many:4,other:5};function Xh(){var t={};return Wh.forEach(function(r){r.lngs.forEach(function(n){t[n]={numbers:r.nr,plurals:Kh[r.fc]}})}),t}var Zh=function(){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};xr(this,t),this.languageUtils=r,this.options=n,this.logger=Hr.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!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=Xh()}return Mr(t,[{key:"addRule",value:function(n,a){this.rules[n]=a}},{key:"getRule",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:a.ordinal?"ordinal":"cardinal"})}catch(s){return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(n,a);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,s).map(function(l){return"".concat(a).concat(l)})}},{key:"getSuffixes",value:function(n){var a=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=this.getRule(n,s);return l?this.shouldUseIntlApi()?l.resolvedOptions().pluralCategories.sort(function(c,p){return yp[c]-yp[p]}).map(function(c){return"".concat(a.options.prepend).concat(c)}):l.numbers.map(function(c){return a.getSuffix(n,c,s)}):[]}},{key:"getSuffix",value:function(n,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=this.getRule(n,s);return l?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(l.select(a)):this.getSuffixRetroCompatible(l,a):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,a){var s=this,l=n.noAbs?n.plurals(a):n.plurals(Math.abs(a)),c=n.numbers[l];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(c===2?c="plural":c===1&&(c=""));var p=function(){return s.options.prepend&&c.toString()?s.options.prepend+c.toString():c.toString()};return this.options.compatibilityJSON==="v1"?c===1?"":typeof c=="number"?"_plural_".concat(c.toString()):p():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?p():this.options.prepend&&l.toString()?this.options.prepend+l.toString():l.toString()}},{key:"shouldUseIntlApi",value:function(){return!zh.includes(this.options.compatibilityJSON)}}]),t}();function vp(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function Tr(t){for(var r=1;r3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=$h(t,r,n);return!l&&s&&typeof n=="string"&&(l=yi(t,n,a),l===void 0&&(l=yi(r,n,a))),l}var Yh=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xr(this,t),this.logger=Hr.create("interpolator"),this.options=r,this.format=r.interpolation&&r.interpolation.format||function(n){return n},this.init(r)}return Mr(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var a=n.interpolation;this.escape=a.escape!==void 0?a.escape:Dh,this.escapeValue=a.escapeValue!==void 0?a.escapeValue:!0,this.useRawValueToEscape=a.useRawValueToEscape!==void 0?a.useRawValueToEscape:!1,this.prefix=a.prefix?ts(a.prefix):a.prefixEscaped||"{{",this.suffix=a.suffix?ts(a.suffix):a.suffixEscaped||"}}",this.formatSeparator=a.formatSeparator?a.formatSeparator:a.formatSeparator||",",this.unescapePrefix=a.unescapeSuffix?"":a.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":a.unescapeSuffix||"",this.nestingPrefix=a.nestingPrefix?ts(a.nestingPrefix):a.nestingPrefixEscaped||ts("$t("),this.nestingSuffix=a.nestingSuffix?ts(a.nestingSuffix):a.nestingSuffixEscaped||ts(")"),this.nestingOptionsSeparator=a.nestingOptionsSeparator?a.nestingOptionsSeparator:a.nestingOptionsSeparator||",",this.maxReplaces=a.maxReplaces?a.maxReplaces:1e3,this.alwaysFormat=a.alwaysFormat!==void 0?a.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var a="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(a,"g");var s="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(s,"g")}},{key:"interpolate",value:function(n,a,s,l){var c=this,p,g,m,h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function b(U){return U.replace(/\$/g,"$$$$")}var C=function(k){if(k.indexOf(c.formatSeparator)<0){var L=Cp(a,h,k,c.options.keySeparator,c.options.ignoreJSONStructure);return c.alwaysFormat?c.format(L,void 0,s,Tr(Tr(Tr({},l),a),{},{interpolationkey:k})):L}var E=k.split(c.formatSeparator),S=E.shift().trim(),T=E.join(c.formatSeparator).trim();return c.format(Cp(a,h,S,c.options.keySeparator,c.options.ignoreJSONStructure),T,s,Tr(Tr(Tr({},l),a),{},{interpolationkey:S}))};this.resetRegExp();var v=l&&l.missingInterpolationHandler||this.options.missingInterpolationHandler,x=l&&l.interpolation&&l.interpolation.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,B=[{regex:this.regexpUnescape,safeValue:function(k){return b(k)}},{regex:this.regexp,safeValue:function(k){return c.escapeValue?b(c.escape(k)):b(k)}}];return B.forEach(function(U){for(m=0;p=U.regex.exec(n);){var k=p[1].trim();if(g=C(k),g===void 0)if(typeof v=="function"){var L=v(n,p,l);g=typeof L=="string"?L:""}else if(l&&Object.prototype.hasOwnProperty.call(l,k))g="";else if(x){g=p[0];continue}else c.logger.warn("missed to pass in variable ".concat(k," for interpolating ").concat(n)),g="";else typeof g!="string"&&!c.useRawValueToEscape&&(g=dp(g));var E=U.safeValue(g);if(n=n.replace(p[0],E),x?(U.regex.lastIndex+=g.length,U.regex.lastIndex-=p[0].length):U.regex.lastIndex=0,m++,m>=c.maxReplaces)break}}),n}},{key:"nest",value:function(n,a){var s=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,p,g;function m(v,x){var B=this.nestingOptionsSeparator;if(v.indexOf(B)<0)return v;var U=v.split(new RegExp("".concat(B,"[ ]*{"))),k="{".concat(U[1]);v=U[0],k=this.interpolate(k,g);var L=k.match(/'/g),E=k.match(/"/g);(L&&L.length%2===0&&!E||E.length%2!==0)&&(k=k.replace(/'/g,'"'));try{g=JSON.parse(k),x&&(g=Tr(Tr({},x),g))}catch(S){return this.logger.warn("failed parsing options string in nesting for key ".concat(v),S),"".concat(v).concat(B).concat(k)}return delete g.defaultValue,v}for(;c=this.nestingRegexp.exec(n);){var h=[];g=Tr({},l),g=g.replace&&typeof g.replace!="string"?g.replace:g,g.applyPostProcessor=!1,delete g.defaultValue;var b=!1;if(c[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(c[1])){var C=c[1].split(this.formatSeparator).map(function(v){return v.trim()});c[1]=C.shift(),h=C,b=!0}if(p=a(m.call(this,c[1].trim(),g),g),p&&c[0]===n&&typeof p!="string")return p;typeof p!="string"&&(p=dp(p)),p||(this.logger.warn("missed to resolve ".concat(c[1]," for nesting ").concat(n)),p=""),b&&(p=h.reduce(function(v,x){return s.format(v,x,l.lng,Tr(Tr({},l),{},{interpolationkey:c[1].trim()}))},p.trim())),n=n.replace(c[0],p),this.regexp.lastIndex=0}return n}}]),t}();function wp(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function tn(t){for(var r=1;r-1){var a=t.split("(");r=a[0].toLowerCase().trim();var s=a[1].substring(0,a[1].length-1);if(r==="currency"&&s.indexOf(":")<0)n.currency||(n.currency=s.trim());else if(r==="relativetime"&&s.indexOf(":")<0)n.range||(n.range=s.trim());else{var l=s.split(";");l.forEach(function(c){if(c){var p=c.split(":"),g=lp(p),m=g[0],h=g.slice(1),b=h.join(":").trim().replace(/^'+|'+$/g,"");n[m.trim()]||(n[m.trim()]=b),b==="false"&&(n[m.trim()]=!1),b==="true"&&(n[m.trim()]=!0),isNaN(b)||(n[m.trim()]=parseInt(b,10))}})}}return{formatName:r,formatOptions:n}}function rs(t){var r={};return function(a,s,l){var c=s+JSON.stringify(l),p=r[c];return p||(p=t(s,l),r[c]=p),p(a)}}var e1=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xr(this,t),this.logger=Hr.create("formatter"),this.options=r,this.formats={number:rs(function(n,a){var s=new Intl.NumberFormat(n,tn({},a));return function(l){return s.format(l)}}),currency:rs(function(n,a){var s=new Intl.NumberFormat(n,tn(tn({},a),{},{style:"currency"}));return function(l){return s.format(l)}}),datetime:rs(function(n,a){var s=new Intl.DateTimeFormat(n,tn({},a));return function(l){return s.format(l)}}),relativetime:rs(function(n,a){var s=new Intl.RelativeTimeFormat(n,tn({},a));return function(l){return s.format(l,a.range||"day")}}),list:rs(function(n,a){var s=new Intl.ListFormat(n,tn({},a));return function(l){return s.format(l)}})},this.init(r)}return Mr(t,[{key:"init",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},s=a.interpolation;this.formatSeparator=s.formatSeparator?s.formatSeparator:s.formatSeparator||","}},{key:"add",value:function(n,a){this.formats[n.toLowerCase().trim()]=a}},{key:"addCached",value:function(n,a){this.formats[n.toLowerCase().trim()]=rs(a)}},{key:"format",value:function(n,a,s){var l=this,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=a.split(this.formatSeparator),g=p.reduce(function(m,h){var b=Jh(h),C=b.formatName,v=b.formatOptions;if(l.formats[C]){var x=m;try{var B=c&&c.formatParams&&c.formatParams[c.interpolationkey]||{},U=B.locale||B.lng||c.locale||c.lng||s;x=l.formats[C](m,U,tn(tn(tn({},v),c),B))}catch(k){l.logger.warn(k)}return x}else l.logger.warn("there was no format function for ".concat(C));return m},n);return g}}]),t}();function xp(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function Mp(t){for(var r=1;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function n1(t,r){t.pending[r]!==void 0&&(delete t.pending[r],t.pendingCount--)}var a1=function(t){Ws(n,t);var r=t1(n);function n(a,s,l){var c,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return xr(this,n),c=r.call(this),Ci&&Rn.call(_r(c)),c.backend=a,c.store=s,c.services=l,c.languageUtils=l.languageUtils,c.options=p,c.logger=Hr.create("backendConnector"),c.waitingReads=[],c.maxParallelReads=p.maxParallelReads||10,c.readingCalls=0,c.maxRetries=p.maxRetries>=0?p.maxRetries:5,c.retryTimeout=p.retryTimeout>=1?p.retryTimeout:350,c.state={},c.queue=[],c.backend&&c.backend.init&&c.backend.init(l,p.backend,p),c}return Mr(n,[{key:"queueLoad",value:function(s,l,c,p){var g=this,m={},h={},b={},C={};return s.forEach(function(v){var x=!0;l.forEach(function(B){var U="".concat(v,"|").concat(B);!c.reload&&g.store.hasResourceBundle(v,B)?g.state[U]=2:g.state[U]<0||(g.state[U]===1?h[U]===void 0&&(h[U]=!0):(g.state[U]=1,x=!1,h[U]===void 0&&(h[U]=!0),m[U]===void 0&&(m[U]=!0),C[B]===void 0&&(C[B]=!0)))}),x||(b[v]=!0)}),(Object.keys(m).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:p}),{toLoad:Object.keys(m),pending:Object.keys(h),toLoadLanguages:Object.keys(b),toLoadNamespaces:Object.keys(C)}}},{key:"loaded",value:function(s,l,c){var p=s.split("|"),g=p[0],m=p[1];l&&this.emit("failedLoading",g,m,l),c&&this.store.addResourceBundle(g,m,c),this.state[s]=l?-1:2;var h={};this.queue.forEach(function(b){Nh(b.loaded,[g],m),n1(b,s),l&&b.errors.push(l),b.pendingCount===0&&!b.done&&(Object.keys(b.loaded).forEach(function(C){h[C]||(h[C]={});var v=b.loaded[C];v.length&&v.forEach(function(x){h[C][x]===void 0&&(h[C][x]=!0)})}),b.done=!0,b.errors.length?b.callback(b.errors):b.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(function(b){return!b.done})}},{key:"read",value:function(s,l,c){var p=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,m=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,h=arguments.length>5?arguments[5]:void 0;if(!s.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:s,ns:l,fcName:c,tried:g,wait:m,callback:h});return}this.readingCalls++;var b=function(B,U){if(p.readingCalls--,p.waitingReads.length>0){var k=p.waitingReads.shift();p.read(k.lng,k.ns,k.fcName,k.tried,k.wait,k.callback)}if(B&&U&&g2&&arguments[2]!==void 0?arguments[2]:{},g=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."),g&&g();typeof s=="string"&&(s=this.languageUtils.toResolveHierarchy(s)),typeof l=="string"&&(l=[l]);var m=this.queueLoad(s,l,p,g);if(!m.toLoad.length)return m.pending.length||g(),null;m.toLoad.forEach(function(h){c.loadOne(h)})}},{key:"load",value:function(s,l,c){this.prepareLoading(s,l,{},c)}},{key:"reload",value:function(s,l,c){this.prepareLoading(s,l,{reload:!0},c)}},{key:"loadOne",value:function(s){var l=this,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",p=s.split("|"),g=p[0],m=p[1];this.read(g,m,"read",void 0,void 0,function(h,b){h&&l.logger.warn("".concat(c,"loading namespace ").concat(m," for language ").concat(g," failed"),h),!h&&b&&l.logger.log("".concat(c,"loaded namespace ").concat(m," for language ").concat(g),b),l.loaded(s,h,b)})}},{key:"saveMissing",value:function(s,l,c,p,g){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(l)){this.logger.warn('did not save key "'.concat(c,'" as the namespace "').concat(l,'" 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(!(c==null||c==="")){if(this.backend&&this.backend.create){var b=Mp(Mp({},m),{},{isUpdate:g}),C=this.backend.create.bind(this.backend);if(C.length<6)try{var v;C.length===5?v=C(s,l,c,p,b):v=C(s,l,c,p),v&&typeof v.then=="function"?v.then(function(x){return h(null,x)}).catch(h):h(null,v)}catch(x){h(x)}else C(s,l,c,p,h,b)}!s||!s[0]||this.store.addResource(s[0],l,c,p)}}}]),n}(Rn);function Sp(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(r){var n={};if(bt(r[1])==="object"&&(n=r[1]),typeof r[1]=="string"&&(n.defaultValue=r[1]),typeof r[2]=="string"&&(n.tDescription=r[2]),bt(r[2])==="object"||bt(r[3])==="object"){var a=r[3]||r[2];Object.keys(a).forEach(function(s){n[s]=a[s]})}return n},interpolation:{escapeValue:!0,format:function(r,n,a,s){return r},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Tp(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function kp(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function Dr(t){for(var r=1;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function hi(){}function i1(t){var r=Object.getOwnPropertyNames(Object.getPrototypeOf(t));r.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var vi=function(t){Ws(n,t);var r=s1(n);function n(){var a,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;if(xr(this,n),a=r.call(this),Ci&&Rn.call(_r(a)),a.options=Tp(s),a.services={},a.logger=Hr,a.modules={external:[]},i1(_r(a)),l&&!a.isInitialized&&!s.isClone){if(!a.options.initImmediate)return a.init(s,l),es(a,_r(a));setTimeout(function(){a.init(s,l)},0)}return a}return Mr(n,[{key:"init",value:function(){var s=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;typeof l=="function"&&(c=l,l={}),!l.defaultNS&&l.defaultNS!==!1&&l.ns&&(typeof l.ns=="string"?l.defaultNS=l.ns:l.ns.indexOf("translation")<0&&(l.defaultNS=l.ns[0]));var p=Sp();this.options=Dr(Dr(Dr({},p),this.options),Tp(l)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Dr(Dr({},p.interpolation),this.options.interpolation)),l.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=l.keySeparator),l.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=l.nsSeparator);function g(k){return k?typeof k=="function"?new k:k:null}if(!this.options.isClone){this.modules.logger?Hr.init(g(this.modules.logger),this.options):Hr.init(null,this.options);var m;this.modules.formatter?m=this.modules.formatter:typeof Intl<"u"&&(m=e1);var h=new bp(this.options);this.store=new qh(this.options.resources,this.options);var b=this.services;b.logger=Hr,b.resourceStore=this.store,b.languageUtils=h,b.pluralResolver=new Zh(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===p.interpolation.format)&&(b.formatter=g(m),b.formatter.init(b,this.options),this.options.interpolation.format=b.formatter.format.bind(b.formatter)),b.interpolator=new Yh(this.options),b.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},b.backendConnector=new a1(g(this.modules.backend),b.resourceStore,b,this.options),b.backendConnector.on("*",function(k){for(var L=arguments.length,E=new Array(L>1?L-1:0),S=1;S1?L-1:0),S=1;S0&&C[0]!=="dev"&&(this.options.lng=C[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var v=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];v.forEach(function(k){s[k]=function(){var L;return(L=s.store)[k].apply(L,arguments)}});var x=["addResource","addResources","addResourceBundle","removeResourceBundle"];x.forEach(function(k){s[k]=function(){var L;return(L=s.store)[k].apply(L,arguments),s}});var B=Ks(),U=function(){var L=function(S,T){s.isInitialized&&!s.initializedStoreOnce&&s.logger.warn("init: i18next is already initialized. You should call init just once!"),s.isInitialized=!0,s.options.isClone||s.logger.log("initialized",s.options),s.emit("initialized",s.options),B.resolve(T),c(S,T)};if(s.languages&&s.options.compatibilityAPI!=="v1"&&!s.isInitialized)return L(null,s.t.bind(s));s.changeLanguage(s.options.lng,L)};return this.options.resources||!this.options.initImmediate?U():setTimeout(U,0),B}},{key:"loadResources",value:function(s){var l=this,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hi,p=c,g=typeof s=="string"?s:this.language;if(typeof s=="function"&&(p=s),!this.options.resources||this.options.partialBundledLanguages){if(g&&g.toLowerCase()==="cimode")return p();var m=[],h=function(v){if(v){var x=l.services.languageUtils.toResolveHierarchy(v);x.forEach(function(B){m.indexOf(B)<0&&m.push(B)})}};if(g)h(g);else{var b=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);b.forEach(function(C){return h(C)})}this.options.preload&&this.options.preload.forEach(function(C){return h(C)}),this.services.backendConnector.load(m,this.options.ns,function(C){!C&&!l.resolvedLanguage&&l.language&&l.setResolvedLanguage(l.language),p(C)})}else p(null)}},{key:"reloadResources",value:function(s,l,c){var p=Ks();return s||(s=this.languages),l||(l=this.options.ns),c||(c=hi),this.services.backendConnector.reload(s,l,function(g){p.resolve(),c(g)}),p}},{key:"use",value:function(s){if(!s)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!s.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return s.type==="backend"&&(this.modules.backend=s),(s.type==="logger"||s.log&&s.warn&&s.error)&&(this.modules.logger=s),s.type==="languageDetector"&&(this.modules.languageDetector=s),s.type==="i18nFormat"&&(this.modules.i18nFormat=s),s.type==="postProcessor"&&Pp.addPostProcessor(s),s.type==="formatter"&&(this.modules.formatter=s),s.type==="3rdParty"&&this.modules.external.push(s),this}},{key:"setResolvedLanguage",value:function(s){if(!(!s||!this.languages)&&!(["cimode","dev"].indexOf(s)>-1))for(var l=0;l-1)&&this.store.hasLanguageSomeTranslations(c)){this.resolvedLanguage=c;break}}}},{key:"changeLanguage",value:function(s,l){var c=this;this.isLanguageChangingTo=s;var p=Ks();this.emit("languageChanging",s);var g=function(C){c.language=C,c.languages=c.services.languageUtils.toResolveHierarchy(C),c.resolvedLanguage=void 0,c.setResolvedLanguage(C)},m=function(C,v){v?(g(v),c.translator.changeLanguage(v),c.isLanguageChangingTo=void 0,c.emit("languageChanged",v),c.logger.log("languageChanged",v)):c.isLanguageChangingTo=void 0,p.resolve(function(){return c.t.apply(c,arguments)}),l&&l(C,function(){return c.t.apply(c,arguments)})},h=function(C){!s&&!C&&c.services.languageDetector&&(C=[]);var v=typeof C=="string"?C:c.services.languageUtils.getBestMatchFromCodes(C);v&&(c.language||g(v),c.translator.language||c.translator.changeLanguage(v),c.services.languageDetector&&c.services.languageDetector.cacheUserLanguage&&c.services.languageDetector.cacheUserLanguage(v)),c.loadResources(v,function(x){m(x,v)})};return!s&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!s&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(s),p}},{key:"getFixedT",value:function(s,l,c){var p=this,g=function m(h,b){var C;if(bt(b)!=="object"){for(var v=arguments.length,x=new Array(v>2?v-2:0),B=2;B1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var p=c.lng||this.resolvedLanguage||this.languages[0],g=this.options?this.options.fallbackLng:!1,m=this.languages[this.languages.length-1];if(p.toLowerCase()==="cimode")return!0;var h=function(v,x){var B=l.services.backendConnector.state["".concat(v,"|").concat(x)];return B===-1||B===2};if(c.precheck){var b=c.precheck(this,h);if(b!==void 0)return b}return!!(this.hasResourceBundle(p,s)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(p,s)&&(!g||h(m,s)))}},{key:"loadNamespaces",value:function(s,l){var c=this,p=Ks();return this.options.ns?(typeof s=="string"&&(s=[s]),s.forEach(function(g){c.options.ns.indexOf(g)<0&&c.options.ns.push(g)}),this.loadResources(function(g){p.resolve(),l&&l(g)}),p):(l&&l(),Promise.resolve())}},{key:"loadLanguages",value:function(s,l){var c=Ks();typeof s=="string"&&(s=[s]);var p=this.options.preload||[],g=s.filter(function(m){return p.indexOf(m)<0});return g.length?(this.options.preload=p.concat(g),this.loadResources(function(m){c.resolve(),l&&l(m)}),c):(l&&l(),Promise.resolve())}},{key:"dir",value:function(s){if(s||(s=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!s)return"rtl";var l=["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"],c=this.services&&this.services.languageUtils||new bp(Sp());return l.indexOf(c.getLanguagePartFromCode(s))>-1||s.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var s=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hi,p=Dr(Dr(Dr({},this.options),l),{isClone:!0}),g=new n(p);(l.debug!==void 0||l.prefix!==void 0)&&(g.logger=g.logger.clone(l));var m=["store","services","language"];return m.forEach(function(h){g[h]=s[h]}),g.services=Dr({},this.services),g.services.utils={hasLoadedNamespace:g.hasLoadedNamespace.bind(g)},g.translator=new hp(g.services,g.options),g.translator.on("*",function(h){for(var b=arguments.length,C=new Array(b>1?b-1:0),v=1;v0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new vi(t,r)});var u=vi.createInstance();u.createInstance=vi.createInstance;var Sw=u.createInstance,Tw=u.dir,kw=u.init,Lw=u.loadResources,Pw=u.reloadResources,Aw=u.use,Ew=u.changeLanguage,Ow=u.getFixedT,Uw=u.t,Bw=u.exists,Rw=u.setDefaultNamespace,Iw=u.hasLoadedNamespace,Nw=u.loadNamespaces,$w=u.loadLanguages;var hc=new Map,i=t=>{let r=hc.get(t);if(r)return r;let n=document.getElementById(t);if(!n)throw new TypeError(`Element with id "${t}" was not found on page?`);return hc.set(t,n),n},wi=t=>hc.has(t);var Op=Un(Ep()),Ct=new Op.default;var In=class{constructor(r){this.level=0;this.freeLevels=0;this.toggleBuy=1;var n,a,s,l;this.name=r.name,this.description=r.description,this.level=(n=r.level)!=null?n:0,this.freeLevels=(a=r.freeLevels)!=null?a:0,this.maxLevel=r.maxLevel,this.costPerLevel=r.costPerLevel,this.toggleBuy=(s=r.toggleBuy)!=null?s:1,this.effect=(l=r.effect)!=null?l:c=>({bonus:c,desc:"WIP not implemented"})}async changeToggle(){let r=await Ee(u.t("dynamicUpgrades.validation.setPurchaseAmount",{x:this.name})),n=Number(r);if(r===null)return P(u.t("dynamicUpgrades.validation.toggleKept",{x:d(this.toggleBuy)}));if(!Number.isInteger(r))return P(u.t("general.validation.fraction"));if(n<-1)return P(u.t("dynamicUpgrades.validation.onlyNegativeOne"));if(n===0)return P(u.t("dynamicUpgrades.validation.notZero"));this.toggleBuy=n;let a=n===-1?u.t("dynamicUpgrades.toggleMax"):u.t("dynamicUpgrades.toggle",{x:d(this.toggleBuy)});return P(a)}getEffect(){let r=this.level+Math.min(this.level,this.freeLevels)+Math.sqrt(Math.max(0,this.freeLevels-this.level));return this.effect(r)}};var f0=Un(vc());var h0=Un(pc());var tr="3.1.1 January 15, 2025 pt 1.4: The Bakery Update";var Nn=new Date(Date.UTC(2025,0,19,19,39,39)),nt=!0;var ia=()=>{let t=Object.keys(e.hypercubeBlessings);for(let r of t){let n=e.hypercubeBlessings[r],a=t.indexOf(r)+1,s=1,l=1;n>=1e3&&(s=o.benedictionDRPower[a],l*=Math.pow(1e3,1-o.benedictionDRPower[a])),o.hypercubeBonusMultiplier[a]=1+l*o.benedictionbase[a]*Math.pow(n,s)*o.platonicBonusMultiplier[4]}};var Mi=()=>{let t=Object.values(e.platonicBlessings),r=[4e6,4e6,4e6,8e4,1e4,1e4,1e4,1e4];for(let n=0;n=1e20&&(l=Math.pow(l,.5)*1e10),t[n]>=r[n]&&(a=o.platonicDRPower[n],s*=Math.pow(r[n],1-o.platonicDRPower[n])),o.platonicBonusMultiplier[n]=1+s*o.platonicCubeBase[n]*Math.pow(l,a)}};var Rt=()=>{let t=9e4;e.researches[195]>0&&(t+=18e3*e.researches[195]);let r=5,n=[99,100,125,180,195];for(let p of n)r+=e.researches[p];r*=+e.octeractUpgrades.octeractExportQuarks.getEffect().bonus;let a=r,s=Math.floor(a*t/3600),l=Math.floor(e.quarkstimer*a/3600),c=_n();return{maxTime:t,perHour:a,capacity:s,gain:l,cubeMult:c}},Up=0,Bp=t=>Up=t,rr=()=>Up,u1,$n=class{constructor(r){this.QUARKS=0;this[u1]=r=>r==="number"?this.QUARKS:null;this.QUARKS=r}applyBonus(r){let n=Si();return r*(1+rr()/100)*n}add(r,n=!0){return this.QUARKS+=n?this.applyBonus(r):r,e.quarksThisSingularity+=n?this.applyBonus(r):r,this}sub(r){return this.QUARKS-=r,this.QUARKS<0&&(this.QUARKS=0),this}toString(r){return d(Math.floor(this.applyBonus(r)),0,!0)}reset(){this.QUARKS=0}};u1=Symbol.toPrimitive;var la=()=>{let t=[e.tesseractBlessings.accelerator,e.tesseractBlessings.multiplier,e.tesseractBlessings.offering,e.tesseractBlessings.runeExp,e.tesseractBlessings.obtainium,e.tesseractBlessings.antSpeed,e.tesseractBlessings.antSacrifice,e.tesseractBlessings.antELO,e.tesseractBlessings.talismanBonus,e.tesseractBlessings.globalSpeed];for(let r=0;r<10;r++){let n=1,a=1;t[r]>=1e3&&r!==5&&(n=o.giftDRPower[r],a*=Math.pow(1e3,1-o.giftDRPower[r])),o.tesseractBonusMultiplier[r+1]=1+a*o.giftbase[r]*Math.pow(t[r],n)*o.hypercubeBonusMultiplier[r+1]}};var ns={accelerator:{weight:4,pdf:t=>0<=t&&t<=20},multiplier:{weight:4,pdf:t=>2040506070808590950<=t&&t<=33},tesseracts:{weight:13200,pdf:t=>33669999.9999.992599.99599.9975100?P(u.t("cubes.validation.invalidPercent",{x:s})):a?this.open(Math.floor(r.value*(s/100)),s===100,!1):this.open(s,s===r.value,!1)}checkQuarkGain(r,n,a){if(a<1)return 0;let s=n*Rt().cubeMult;return Math.floor(e.worlds.applyBonus(Math.log10(a)*r*s))}checkCubesToNextQuark(r,n,a,s){let l=n*Rt().cubeMult;return Math.ceil(Math.pow(10,(a+1)/e.worlds.applyBonus(l*r))-s)}add(r){return this.value=Math.min(1e300,this.value+r),this}sub(r){return this.value=Math.max(0,this.value-r),this}[Symbol.toPrimitive](r){switch(r){case"string":return this.value.toString();case"number":return this.value;default:return null}}},nr=class extends Dn{constructor(r=Number(e.wowCubes)){super("wowCubes",r)}open(r,n=!1,a=!1){let s=n?Number(this):a?r:Math.min(Number(this),r);r===1&&e.cubeBlessings.accelerator>=2e11&&e.achievements[246]<1&&R(246),a||this.sub(s),e.cubeOpenedDaily+=s;let l=e.shopUpgrades.cubeToQuark?1.5:1,c=Number(this.checkQuarkGain(5,l,e.cubeOpenedDaily)),p=Math.max(0,c-e.cubeQuarkDaily);e.cubeQuarkDaily+=p,e.worlds.add(p,!1),s*=1+e.researches[138]/1e3,s*=1+.8*e.researches[168]/1e3,s*=1+.6*e.researches[198]/1e3,s=Math.floor(s);let g=s%20,m=Math.floor(s/20);m>0&&e.cubeUpgrades[13]===1&&(g+=m),m>0&&e.cubeUpgrades[23]===1&&(g+=m),m>0&&e.cubeUpgrades[33]===1&&(g+=m),m+=100/100*Math.floor(g/20),g=g%20;let h=Object.keys(e.cubeBlessings);for(let b of h)e.cubeBlessings[b]+=ns[b].weight*m*(1+Math.floor(_("ascension",e.challengecompletions[12])));for(let b=0;b0&&(e.platonicBlessings[v]+=m);let h=["hypercubeBonus","taxes","scoreBonus","globalSpeed"];for(let v=0;v=x&&g!==0&&(e.platonicBlessings[h[v]]+=1,g-=1)}let b=[Math.floor(33*g/100),Math.floor(33*g/100),Math.floor(33*g/100),Math.floor(396*g/4e4)],C=["cubes","tesseracts","hypercubes","platonics"];for(let v=0;v0){let v=Math.floor(s*Math.max(0,Math.min(1,(f.log(e.ascendShards.add(1),10)-1e5)/9e5)));e.wowHypercubes.open(v,!1,!0)}}};var xg=Un(wg());var Bi=t=>t instanceof f||typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"mantissa"in t&&"exponent"in t,we=(t=0)=>t<=Number.MAX_SAFE_INTEGER?1:2**Math.floor(Math.log2(t)-52),ae=t=>(t=Array.isArray(t)?t:Object.values(t),t.reduce((r,n)=>r+n,0)),be=t=>t.reduce((r,n)=>r*n),Mg=t=>Array.from([...t.keys()]).sort((r,n)=>t[r]i(t);var Ic=(t,r,n)=>{for(let a=0;a{let a=i(t);for(let s of r)a.classList.add(s);for(let s of n)a.classList.remove(s)},ls=t=>{try{return window.btoa(t)}catch(r){return console.error("An error occurred:",r),null}},eo=t=>{let r="th";return t%10===1&&(r=t%100===11?"th":"st"),t%10===2&&(r=t%100===12?"th":"nd"),t%10===3&&(r=t%100===13?"th":"rd"),d(t,0,!0)+r},_b=t=>Object.entries({d:Math.floor(t/864e5),h:Math.floor(t/36e5)%24,m:Math.floor(t/6e4)%60,s:Math.floor(t/1e3)%60}).filter(r=>r[1]>0).map(r=>`${r[1]}${r[0]}`).join(" ")||"0s",kr=t=>_b(1e3*t),to=t=>{let r="";for(let n=0;n255?"_":t[n]}return r};function Gn(t,r){if(!t)throw new TypeError("assertion failed",{cause:new TypeError(r)})}function Ri(t,r,n){return tn?r:t}var Fn=()=>{let t,r,n=new Promise((a,s)=>{t=a,r=s});return{resolve:t,reject:r,promise:n}},Gr=t=>(0,xg.default)(t,r=>Bi(r)||r instanceof f?new f(r):r);function ar(t){let r=!1,n;return(...a)=>(r||(r=!0,n=t(...a)),n)}var Nc=()=>{let t=e.singularityCount,r=t>36?u.t("singularity.penalties.platonicCosts",{multiplier:d(Le("Platonic Costs",t),2,!0)}):'???????? ??????? ????? ??? ?????????? ?? ??? (37)',n=t>50?u.t("singularity.penalties.hepteractCosts",{multiplier:d(Le("Hepteract Costs",t),2,!0)}):'????????? ????? ????? ??? ?????????? ?? ??? (51)',a=`${Db(t)}
${u.t("singularity.penalties.globalSpeed",{divisor:d(Le("Global Speed",t),2,!0)})} +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lp(t){return ap(t)||sp(t)||op(t)||ip()}function cp(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function up(t){for(var r=1;r1&&arguments[1]!==void 0?arguments[1]:{};xr(this,t),this.init(r,n)}return Mr(t,[{key:"init",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=n||Bh,this.options=a,this.debug=a.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,a=new Array(n),s=0;s1?a-1:0),l=1;l-1?p.replace(/###/g,"."):p}function s(){return!t||typeof t=="string"}for(var l=typeof r!="string"?[].concat(r):r.split(".");l.length>1;){if(s())return{};var c=a(l.shift());!t[c]&&n&&(t[c]=new n),Object.prototype.hasOwnProperty.call(t,c)?t=t[c]:t={}}return s()?{}:{obj:t,k:a(l.shift())}}function pp(t,r,n){var a=fc(t,r,Object),s=a.obj,l=a.k;s[l]=n}function Nh(t,r,n,a){var s=fc(t,r,Object),l=s.obj,c=s.k;l[c]=l[c]||[],a&&(l[c]=l[c].concat(n)),a||l[c].push(n)}function bi(t,r){var n=fc(t,r),a=n.obj,s=n.k;if(a)return a[s]}function $h(t,r,n){var a=bi(t,n);return a!==void 0?a:bi(r,n)}function Lp(t,r,n){for(var a in r)a!=="__proto__"&&a!=="constructor"&&(a in t?typeof t[a]=="string"||t[a]instanceof String||typeof r[a]=="string"||r[a]instanceof String?n&&(t[a]=r[a]):Lp(t[a],r[a],n):t[a]=r[a]);return t}function ts(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Dh(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(r){return _h[r]}):t}var Ci=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Hh=[" ",",","?","!",";"];function Gh(t,r,n){r=r||"",n=n||"";var a=Hh.filter(function(p){return r.indexOf(p)<0&&n.indexOf(p)<0});if(a.length===0)return!0;var s=new RegExp("(".concat(a.map(function(p){return p==="?"?"\\?":p}).join("|"),")")),l=!s.test(t);if(!l){var c=t.indexOf(n);c>0&&!s.test(t.substring(0,c))&&(l=!0)}return l}function yi(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[r])return t[r];for(var a=r.split(n),s=t,l=0;ll+c;)c++,p=a.slice(l,l+c).join(n),g=s[p];if(g===void 0)return;if(g===null)return null;if(r.endsWith(p)){if(typeof g=="string")return g;if(p&&typeof g[p]=="string")return g[p]}var m=a.slice(l+c).join(n);return m?yi(g,m,n):void 0}s=s[a[l]]}return s}}function gp(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function fi(t){for(var r=1;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var qh=function(t){Ws(n,t);var r=Fh(n);function n(a){var s,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return xr(this,n),s=r.call(this),Ci&&Rn.call(_r(s)),s.data=a||{},s.options=l,s.options.keySeparator===void 0&&(s.options.keySeparator="."),s.options.ignoreJSONStructure===void 0&&(s.options.ignoreJSONStructure=!0),s}return Mr(n,[{key:"addNamespaces",value:function(s){this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}},{key:"removeNamespaces",value:function(s){var l=this.options.ns.indexOf(s);l>-1&&this.options.ns.splice(l,1)}},{key:"getResource",value:function(s,l,c){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=p.keySeparator!==void 0?p.keySeparator:this.options.keySeparator,m=p.ignoreJSONStructure!==void 0?p.ignoreJSONStructure:this.options.ignoreJSONStructure,h=[s,l];c&&typeof c!="string"&&(h=h.concat(c)),c&&typeof c=="string"&&(h=h.concat(g?c.split(g):c)),s.indexOf(".")>-1&&(h=s.split("."));var b=bi(this.data,h);return b||!m||typeof c!="string"?b:yi(this.data&&this.data[s]&&this.data[s][l],c,g)}},{key:"addResource",value:function(s,l,c,p){var g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},m=g.keySeparator!==void 0?g.keySeparator:this.options.keySeparator,h=[s,l];c&&(h=h.concat(m?c.split(m):c)),s.indexOf(".")>-1&&(h=s.split("."),p=l,l=h[1]),this.addNamespaces(l),pp(this.data,h,p),g.silent||this.emit("added",s,l,c,p)}},{key:"addResources",value:function(s,l,c){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var g in c)(typeof c[g]=="string"||Object.prototype.toString.apply(c[g])==="[object Array]")&&this.addResource(s,l,g,c[g],{silent:!0});p.silent||this.emit("added",s,l,c)}},{key:"addResourceBundle",value:function(s,l,c,p,g){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},h=[s,l];s.indexOf(".")>-1&&(h=s.split("."),p=c,c=l,l=h[1]),this.addNamespaces(l);var b=bi(this.data,h)||{};p?Lp(b,c,g):b=fi(fi({},b),c),pp(this.data,h,b),m.silent||this.emit("added",s,l,c)}},{key:"removeResourceBundle",value:function(s,l){this.hasResourceBundle(s,l)&&delete this.data[s][l],this.removeNamespaces(l),this.emit("removed",s,l)}},{key:"hasResourceBundle",value:function(s,l){return this.getResource(s,l)!==void 0}},{key:"getResourceBundle",value:function(s,l){return l||(l=this.options.defaultNS),this.options.compatibilityAPI==="v1"?fi(fi({},{}),this.getResource(s,l)):this.getResource(s,l)}},{key:"getDataByLanguage",value:function(s){return this.data[s]}},{key:"hasLanguageSomeTranslations",value:function(s){var l=this.getDataByLanguage(s),c=l&&Object.keys(l)||[];return!!c.find(function(p){return l[p]&&Object.keys(l[p]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Rn),Pp={processors:{},addPostProcessor:function(r){this.processors[r.name]=r},handle:function(r,n,a,s,l){var c=this;return r.forEach(function(p){c.processors[p]&&(n=c.processors[p].process(n,a,s,l))}),n}};function mp(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function yt(t){for(var r=1;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var fp={},hp=function(t){Ws(n,t);var r=jh(n);function n(a){var s,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return xr(this,n),s=r.call(this),Ci&&Rn.call(_r(s)),Ih(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,_r(s)),s.options=l,s.options.keySeparator===void 0&&(s.options.keySeparator="."),s.logger=Hr.create("translator"),s}return Mr(n,[{key:"changeLanguage",value:function(s){s&&(this.language=s)}},{key:"exists",value:function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(s==null)return!1;var c=this.resolve(s,l);return c&&c.res!==void 0}},{key:"extractFromKey",value:function(s,l){var c=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");var p=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,g=l.ns||this.options.defaultNS||[],m=c&&s.indexOf(c)>-1,h=!this.options.userDefinedKeySeparator&&!l.keySeparator&&!this.options.userDefinedNsSeparator&&!l.nsSeparator&&!Gh(s,c,p);if(m&&!h){var b=s.match(this.interpolator.nestingRegexp);if(b&&b.length>0)return{key:s,namespaces:g};var C=s.split(c);(c!==p||c===p&&this.options.ns.indexOf(C[0])>-1)&&(g=C.shift()),s=C.join(p)}return typeof g=="string"&&(g=[g]),{key:s,namespaces:g}}},{key:"translate",value:function(s,l,c){var p=this;if(bt(l)!=="object"&&this.options.overloadTranslationOptionHandler&&(l=this.options.overloadTranslationOptionHandler(arguments)),bt(l)==="object"&&(l=yt({},l)),l||(l={}),s==null)return"";Array.isArray(s)||(s=[String(s)]);var g=l.returnDetails!==void 0?l.returnDetails:this.options.returnDetails,m=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,h=this.extractFromKey(s[s.length-1],l),b=h.key,C=h.namespaces,v=C[C.length-1],x=l.lng||this.language,B=l.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(x&&x.toLowerCase()==="cimode"){if(B){var U=l.nsSeparator||this.options.nsSeparator;return g?{res:"".concat(v).concat(U).concat(b),usedKey:b,exactUsedKey:b,usedLng:x,usedNS:v}:"".concat(v).concat(U).concat(b)}return g?{res:b,usedKey:b,exactUsedKey:b,usedLng:x,usedNS:v}:b}var k=this.resolve(s,l),L=k&&k.res,E=k&&k.usedKey||b,S=k&&k.exactUsedKey||b,T=Object.prototype.toString.apply(L),I=["[object Number]","[object Function]","[object RegExp]"],N=l.joinArrays!==void 0?l.joinArrays:this.options.joinArrays,X=!this.i18nFormat||this.i18nFormat.handleAsObject,re=typeof L!="string"&&typeof L!="boolean"&&typeof L!="number";if(X&&L&&re&&I.indexOf(T)<0&&!(typeof N=="string"&&T==="[object Array]")){if(!l.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(E,L,yt(yt({},l),{},{ns:C})):"key '".concat(b," (").concat(this.language,")' returned an object instead of string.");return g?(k.res=w,k):w}if(m){var G=T==="[object Array]",J=G?[]:{},Se=G?S:E;for(var ut in L)if(Object.prototype.hasOwnProperty.call(L,ut)){var ft="".concat(Se).concat(m).concat(ut);J[ut]=this.translate(ft,yt(yt({},l),{joinArrays:!1,ns:C})),J[ut]===ft&&(J[ut]=L[ut])}L=J}}else if(X&&typeof N=="string"&&T==="[object Array]")L=L.join(N),L&&(L=this.extendTranslation(L,s,l,c));else{var xt=!1,Ht=!1,er=l.count!==void 0&&typeof l.count!="string",Gt=n.hasDefaultValue(l),ce=er?this.pluralResolver.getSuffix(x,l.count,l):"",z=l["defaultValue".concat(ce)]||l.defaultValue;!this.isValidLookup(L)&&Gt&&(xt=!0,L=z),this.isValidLookup(L)||(Ht=!0,L=b);var Z=l.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,se=Z&&Ht?void 0:L,ne=Gt&&z!==L&&this.options.updateMissing;if(Ht||xt||ne){if(this.logger.log(ne?"updateKey":"missingKey",x,v,b,ne?z:L),m){var he=this.resolve(b,yt(yt({},l),{},{keySeparator:!1}));he&&he.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.")}var Fe=[],Mt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,l.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Mt&&Mt[0])for(var A=0;A1&&arguments[1]!==void 0?arguments[1]:{},p,g,m,h,b;return typeof s=="string"&&(s=[s]),s.forEach(function(C){if(!l.isValidLookup(p)){var v=l.extractFromKey(C,c),x=v.key;g=x;var B=v.namespaces;l.options.fallbackNS&&(B=B.concat(l.options.fallbackNS));var U=c.count!==void 0&&typeof c.count!="string",k=U&&!c.ordinal&&c.count===0&&l.pluralResolver.shouldUseIntlApi(),L=c.context!==void 0&&(typeof c.context=="string"||typeof c.context=="number")&&c.context!=="",E=c.lngs?c.lngs:l.languageUtils.toResolveHierarchy(c.lng||l.language,c.fallbackLng);B.forEach(function(S){l.isValidLookup(p)||(b=S,!fp["".concat(E[0],"-").concat(S)]&&l.utils&&l.utils.hasLoadedNamespace&&!l.utils.hasLoadedNamespace(b)&&(fp["".concat(E[0],"-").concat(S)]=!0,l.logger.warn('key "'.concat(g,'" for languages "').concat(E.join(", "),`" won't get resolved as namespace "`).concat(b,'" 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!!!")),E.forEach(function(T){if(!l.isValidLookup(p)){h=T;var I=[x];if(l.i18nFormat&&l.i18nFormat.addLookupKeys)l.i18nFormat.addLookupKeys(I,x,T,S,c);else{var N;U&&(N=l.pluralResolver.getSuffix(T,c.count,c));var X="".concat(l.options.pluralSeparator,"zero");if(U&&(I.push(x+N),k&&I.push(x+X)),L){var re="".concat(x).concat(l.options.contextSeparator).concat(c.context);I.push(re),U&&(I.push(re+N),k&&I.push(re+X))}}for(var w;w=I.pop();)l.isValidLookup(p)||(m=w,p=l.getResource(T,S,w,c))}}))})}}),{res:p,usedKey:g,exactUsedKey:m,usedLng:h,usedNS:b}}},{key:"isValidLookup",value:function(s){return s!==void 0&&!(!this.options.returnNull&&s===null)&&!(!this.options.returnEmptyString&&s==="")}},{key:"getResource",value:function(s,l,c){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(s,l,c,p):this.resourceStore.getResource(s,l,c,p)}}],[{key:"hasDefaultValue",value:function(s){var l="defaultValue";for(var c in s)if(Object.prototype.hasOwnProperty.call(s,c)&&l===c.substring(0,l.length)&&s[c]!==void 0)return!0;return!1}}]),n}(Rn);function mc(t){return t.charAt(0).toUpperCase()+t.slice(1)}var bp=function(){function t(r){xr(this,t),this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Hr.create("languageUtils")}return Mr(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var a=n.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var a=n.split("-");return this.formatLanguageCode(a[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var a=["hans","hant","latn","cyrl","cans","mong","arab"],s=n.split("-");return this.options.lowerCaseLng?s=s.map(function(l){return l.toLowerCase()}):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),a.indexOf(s[1].toLowerCase())>-1&&(s[1]=mc(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),a.indexOf(s[1].toLowerCase())>-1&&(s[1]=mc(s[1].toLowerCase())),a.indexOf(s[2].toLowerCase())>-1&&(s[2]=mc(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var a=this;if(!n)return null;var s;return n.forEach(function(l){if(!s){var c=a.formatLanguageCode(l);(!a.options.supportedLngs||a.isSupportedCode(c))&&(s=c)}}),!s&&this.options.supportedLngs&&n.forEach(function(l){if(!s){var c=a.getLanguagePartFromCode(l);if(a.isSupportedCode(c))return s=c;s=a.options.supportedLngs.find(function(p){if(p===c)return p;if(!(p.indexOf("-")<0&&c.indexOf("-")<0)&&p.indexOf(c)===0)return p})}}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}},{key:"getFallbackCodes",value:function(n,a){if(!n)return[];if(typeof n=="function"&&(n=n(a)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!a)return n.default||[];var s=n[a];return s||(s=n[this.getScriptPartFromCode(a)]),s||(s=n[this.formatLanguageCode(a)]),s||(s=n[this.getLanguagePartFromCode(a)]),s||(s=n.default),s||[]}},{key:"toResolveHierarchy",value:function(n,a){var s=this,l=this.getFallbackCodes(a||this.options.fallbackLng||[],n),c=[],p=function(m){m&&(s.isSupportedCode(m)?c.push(m):s.logger.warn("rejecting language code not found in supportedLngs: ".concat(m)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&p(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&p(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&p(this.getLanguagePartFromCode(n))):typeof n=="string"&&p(this.formatLanguageCode(n)),l.forEach(function(g){c.indexOf(g)<0&&p(s.formatLanguageCode(g))}),c}}]),t}(),Wh=[{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}],Kh={1:function(r){return+(r>1)},2:function(r){return+(r!=1)},3:function(r){return 0},4:function(r){return r%10==1&&r%100!=11?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2},5:function(r){return r==0?0:r==1?1:r==2?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5},6:function(r){return r==1?0:r>=2&&r<=4?1:2},7:function(r){return r==1?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2},8:function(r){return r==1?0:r==2?1:r!=8&&r!=11?2:3},9:function(r){return+(r>=2)},10:function(r){return r==1?0:r==2?1:r<7?2:r<11?3:4},11:function(r){return r==1||r==11?0:r==2||r==12?1:r>2&&r<20?2:3},12:function(r){return+(r%10!=1||r%100==11)},13:function(r){return+(r!==0)},14:function(r){return r==1?0:r==2?1:r==3?2:3},15:function(r){return r%10==1&&r%100!=11?0:r%10>=2&&(r%100<10||r%100>=20)?1:2},16:function(r){return r%10==1&&r%100!=11?0:r!==0?1:2},17:function(r){return r==1||r%10==1&&r%100!=11?0:1},18:function(r){return r==0?0:r==1?1:2},19:function(r){return r==1?0:r==0||r%100>1&&r%100<11?1:r%100>10&&r%100<20?2:3},20:function(r){return r==1?0:r==0||r%100>0&&r%100<20?1:2},21:function(r){return r%100==1?1:r%100==2?2:r%100==3||r%100==4?3:0},22:function(r){return r==1?0:r==2?1:(r<0||r>10)&&r%10==0?2:3}},zh=["v1","v2","v3"],yp={zero:0,one:1,two:2,few:3,many:4,other:5};function Xh(){var t={};return Wh.forEach(function(r){r.lngs.forEach(function(n){t[n]={numbers:r.nr,plurals:Kh[r.fc]}})}),t}var Zh=function(){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};xr(this,t),this.languageUtils=r,this.options=n,this.logger=Hr.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!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=Xh()}return Mr(t,[{key:"addRule",value:function(n,a){this.rules[n]=a}},{key:"getRule",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:a.ordinal?"ordinal":"cardinal"})}catch(s){return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(n,a);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,s).map(function(l){return"".concat(a).concat(l)})}},{key:"getSuffixes",value:function(n){var a=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=this.getRule(n,s);return l?this.shouldUseIntlApi()?l.resolvedOptions().pluralCategories.sort(function(c,p){return yp[c]-yp[p]}).map(function(c){return"".concat(a.options.prepend).concat(c)}):l.numbers.map(function(c){return a.getSuffix(n,c,s)}):[]}},{key:"getSuffix",value:function(n,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=this.getRule(n,s);return l?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(l.select(a)):this.getSuffixRetroCompatible(l,a):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,a){var s=this,l=n.noAbs?n.plurals(a):n.plurals(Math.abs(a)),c=n.numbers[l];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(c===2?c="plural":c===1&&(c=""));var p=function(){return s.options.prepend&&c.toString()?s.options.prepend+c.toString():c.toString()};return this.options.compatibilityJSON==="v1"?c===1?"":typeof c=="number"?"_plural_".concat(c.toString()):p():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?p():this.options.prepend&&l.toString()?this.options.prepend+l.toString():l.toString()}},{key:"shouldUseIntlApi",value:function(){return!zh.includes(this.options.compatibilityJSON)}}]),t}();function vp(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function Tr(t){for(var r=1;r3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=$h(t,r,n);return!l&&s&&typeof n=="string"&&(l=yi(t,n,a),l===void 0&&(l=yi(r,n,a))),l}var Yh=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xr(this,t),this.logger=Hr.create("interpolator"),this.options=r,this.format=r.interpolation&&r.interpolation.format||function(n){return n},this.init(r)}return Mr(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var a=n.interpolation;this.escape=a.escape!==void 0?a.escape:Dh,this.escapeValue=a.escapeValue!==void 0?a.escapeValue:!0,this.useRawValueToEscape=a.useRawValueToEscape!==void 0?a.useRawValueToEscape:!1,this.prefix=a.prefix?ts(a.prefix):a.prefixEscaped||"{{",this.suffix=a.suffix?ts(a.suffix):a.suffixEscaped||"}}",this.formatSeparator=a.formatSeparator?a.formatSeparator:a.formatSeparator||",",this.unescapePrefix=a.unescapeSuffix?"":a.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":a.unescapeSuffix||"",this.nestingPrefix=a.nestingPrefix?ts(a.nestingPrefix):a.nestingPrefixEscaped||ts("$t("),this.nestingSuffix=a.nestingSuffix?ts(a.nestingSuffix):a.nestingSuffixEscaped||ts(")"),this.nestingOptionsSeparator=a.nestingOptionsSeparator?a.nestingOptionsSeparator:a.nestingOptionsSeparator||",",this.maxReplaces=a.maxReplaces?a.maxReplaces:1e3,this.alwaysFormat=a.alwaysFormat!==void 0?a.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var a="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(a,"g");var s="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(s,"g")}},{key:"interpolate",value:function(n,a,s,l){var c=this,p,g,m,h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function b(U){return U.replace(/\$/g,"$$$$")}var C=function(k){if(k.indexOf(c.formatSeparator)<0){var L=Cp(a,h,k,c.options.keySeparator,c.options.ignoreJSONStructure);return c.alwaysFormat?c.format(L,void 0,s,Tr(Tr(Tr({},l),a),{},{interpolationkey:k})):L}var E=k.split(c.formatSeparator),S=E.shift().trim(),T=E.join(c.formatSeparator).trim();return c.format(Cp(a,h,S,c.options.keySeparator,c.options.ignoreJSONStructure),T,s,Tr(Tr(Tr({},l),a),{},{interpolationkey:S}))};this.resetRegExp();var v=l&&l.missingInterpolationHandler||this.options.missingInterpolationHandler,x=l&&l.interpolation&&l.interpolation.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,B=[{regex:this.regexpUnescape,safeValue:function(k){return b(k)}},{regex:this.regexp,safeValue:function(k){return c.escapeValue?b(c.escape(k)):b(k)}}];return B.forEach(function(U){for(m=0;p=U.regex.exec(n);){var k=p[1].trim();if(g=C(k),g===void 0)if(typeof v=="function"){var L=v(n,p,l);g=typeof L=="string"?L:""}else if(l&&Object.prototype.hasOwnProperty.call(l,k))g="";else if(x){g=p[0];continue}else c.logger.warn("missed to pass in variable ".concat(k," for interpolating ").concat(n)),g="";else typeof g!="string"&&!c.useRawValueToEscape&&(g=dp(g));var E=U.safeValue(g);if(n=n.replace(p[0],E),x?(U.regex.lastIndex+=g.length,U.regex.lastIndex-=p[0].length):U.regex.lastIndex=0,m++,m>=c.maxReplaces)break}}),n}},{key:"nest",value:function(n,a){var s=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,p,g;function m(v,x){var B=this.nestingOptionsSeparator;if(v.indexOf(B)<0)return v;var U=v.split(new RegExp("".concat(B,"[ ]*{"))),k="{".concat(U[1]);v=U[0],k=this.interpolate(k,g);var L=k.match(/'/g),E=k.match(/"/g);(L&&L.length%2===0&&!E||E.length%2!==0)&&(k=k.replace(/'/g,'"'));try{g=JSON.parse(k),x&&(g=Tr(Tr({},x),g))}catch(S){return this.logger.warn("failed parsing options string in nesting for key ".concat(v),S),"".concat(v).concat(B).concat(k)}return delete g.defaultValue,v}for(;c=this.nestingRegexp.exec(n);){var h=[];g=Tr({},l),g=g.replace&&typeof g.replace!="string"?g.replace:g,g.applyPostProcessor=!1,delete g.defaultValue;var b=!1;if(c[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(c[1])){var C=c[1].split(this.formatSeparator).map(function(v){return v.trim()});c[1]=C.shift(),h=C,b=!0}if(p=a(m.call(this,c[1].trim(),g),g),p&&c[0]===n&&typeof p!="string")return p;typeof p!="string"&&(p=dp(p)),p||(this.logger.warn("missed to resolve ".concat(c[1]," for nesting ").concat(n)),p=""),b&&(p=h.reduce(function(v,x){return s.format(v,x,l.lng,Tr(Tr({},l),{},{interpolationkey:c[1].trim()}))},p.trim())),n=n.replace(c[0],p),this.regexp.lastIndex=0}return n}}]),t}();function wp(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function tn(t){for(var r=1;r-1){var a=t.split("(");r=a[0].toLowerCase().trim();var s=a[1].substring(0,a[1].length-1);if(r==="currency"&&s.indexOf(":")<0)n.currency||(n.currency=s.trim());else if(r==="relativetime"&&s.indexOf(":")<0)n.range||(n.range=s.trim());else{var l=s.split(";");l.forEach(function(c){if(c){var p=c.split(":"),g=lp(p),m=g[0],h=g.slice(1),b=h.join(":").trim().replace(/^'+|'+$/g,"");n[m.trim()]||(n[m.trim()]=b),b==="false"&&(n[m.trim()]=!1),b==="true"&&(n[m.trim()]=!0),isNaN(b)||(n[m.trim()]=parseInt(b,10))}})}}return{formatName:r,formatOptions:n}}function rs(t){var r={};return function(a,s,l){var c=s+JSON.stringify(l),p=r[c];return p||(p=t(s,l),r[c]=p),p(a)}}var e1=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xr(this,t),this.logger=Hr.create("formatter"),this.options=r,this.formats={number:rs(function(n,a){var s=new Intl.NumberFormat(n,tn({},a));return function(l){return s.format(l)}}),currency:rs(function(n,a){var s=new Intl.NumberFormat(n,tn(tn({},a),{},{style:"currency"}));return function(l){return s.format(l)}}),datetime:rs(function(n,a){var s=new Intl.DateTimeFormat(n,tn({},a));return function(l){return s.format(l)}}),relativetime:rs(function(n,a){var s=new Intl.RelativeTimeFormat(n,tn({},a));return function(l){return s.format(l,a.range||"day")}}),list:rs(function(n,a){var s=new Intl.ListFormat(n,tn({},a));return function(l){return s.format(l)}})},this.init(r)}return Mr(t,[{key:"init",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},s=a.interpolation;this.formatSeparator=s.formatSeparator?s.formatSeparator:s.formatSeparator||","}},{key:"add",value:function(n,a){this.formats[n.toLowerCase().trim()]=a}},{key:"addCached",value:function(n,a){this.formats[n.toLowerCase().trim()]=rs(a)}},{key:"format",value:function(n,a,s){var l=this,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=a.split(this.formatSeparator),g=p.reduce(function(m,h){var b=Jh(h),C=b.formatName,v=b.formatOptions;if(l.formats[C]){var x=m;try{var B=c&&c.formatParams&&c.formatParams[c.interpolationkey]||{},U=B.locale||B.lng||c.locale||c.lng||s;x=l.formats[C](m,U,tn(tn(tn({},v),c),B))}catch(k){l.logger.warn(k)}return x}else l.logger.warn("there was no format function for ".concat(C));return m},n);return g}}]),t}();function xp(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function Mp(t){for(var r=1;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function n1(t,r){t.pending[r]!==void 0&&(delete t.pending[r],t.pendingCount--)}var a1=function(t){Ws(n,t);var r=t1(n);function n(a,s,l){var c,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return xr(this,n),c=r.call(this),Ci&&Rn.call(_r(c)),c.backend=a,c.store=s,c.services=l,c.languageUtils=l.languageUtils,c.options=p,c.logger=Hr.create("backendConnector"),c.waitingReads=[],c.maxParallelReads=p.maxParallelReads||10,c.readingCalls=0,c.maxRetries=p.maxRetries>=0?p.maxRetries:5,c.retryTimeout=p.retryTimeout>=1?p.retryTimeout:350,c.state={},c.queue=[],c.backend&&c.backend.init&&c.backend.init(l,p.backend,p),c}return Mr(n,[{key:"queueLoad",value:function(s,l,c,p){var g=this,m={},h={},b={},C={};return s.forEach(function(v){var x=!0;l.forEach(function(B){var U="".concat(v,"|").concat(B);!c.reload&&g.store.hasResourceBundle(v,B)?g.state[U]=2:g.state[U]<0||(g.state[U]===1?h[U]===void 0&&(h[U]=!0):(g.state[U]=1,x=!1,h[U]===void 0&&(h[U]=!0),m[U]===void 0&&(m[U]=!0),C[B]===void 0&&(C[B]=!0)))}),x||(b[v]=!0)}),(Object.keys(m).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:p}),{toLoad:Object.keys(m),pending:Object.keys(h),toLoadLanguages:Object.keys(b),toLoadNamespaces:Object.keys(C)}}},{key:"loaded",value:function(s,l,c){var p=s.split("|"),g=p[0],m=p[1];l&&this.emit("failedLoading",g,m,l),c&&this.store.addResourceBundle(g,m,c),this.state[s]=l?-1:2;var h={};this.queue.forEach(function(b){Nh(b.loaded,[g],m),n1(b,s),l&&b.errors.push(l),b.pendingCount===0&&!b.done&&(Object.keys(b.loaded).forEach(function(C){h[C]||(h[C]={});var v=b.loaded[C];v.length&&v.forEach(function(x){h[C][x]===void 0&&(h[C][x]=!0)})}),b.done=!0,b.errors.length?b.callback(b.errors):b.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(function(b){return!b.done})}},{key:"read",value:function(s,l,c){var p=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,m=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,h=arguments.length>5?arguments[5]:void 0;if(!s.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:s,ns:l,fcName:c,tried:g,wait:m,callback:h});return}this.readingCalls++;var b=function(B,U){if(p.readingCalls--,p.waitingReads.length>0){var k=p.waitingReads.shift();p.read(k.lng,k.ns,k.fcName,k.tried,k.wait,k.callback)}if(B&&U&&g2&&arguments[2]!==void 0?arguments[2]:{},g=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."),g&&g();typeof s=="string"&&(s=this.languageUtils.toResolveHierarchy(s)),typeof l=="string"&&(l=[l]);var m=this.queueLoad(s,l,p,g);if(!m.toLoad.length)return m.pending.length||g(),null;m.toLoad.forEach(function(h){c.loadOne(h)})}},{key:"load",value:function(s,l,c){this.prepareLoading(s,l,{},c)}},{key:"reload",value:function(s,l,c){this.prepareLoading(s,l,{reload:!0},c)}},{key:"loadOne",value:function(s){var l=this,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",p=s.split("|"),g=p[0],m=p[1];this.read(g,m,"read",void 0,void 0,function(h,b){h&&l.logger.warn("".concat(c,"loading namespace ").concat(m," for language ").concat(g," failed"),h),!h&&b&&l.logger.log("".concat(c,"loaded namespace ").concat(m," for language ").concat(g),b),l.loaded(s,h,b)})}},{key:"saveMissing",value:function(s,l,c,p,g){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(l)){this.logger.warn('did not save key "'.concat(c,'" as the namespace "').concat(l,'" 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(!(c==null||c==="")){if(this.backend&&this.backend.create){var b=Mp(Mp({},m),{},{isUpdate:g}),C=this.backend.create.bind(this.backend);if(C.length<6)try{var v;C.length===5?v=C(s,l,c,p,b):v=C(s,l,c,p),v&&typeof v.then=="function"?v.then(function(x){return h(null,x)}).catch(h):h(null,v)}catch(x){h(x)}else C(s,l,c,p,h,b)}!s||!s[0]||this.store.addResource(s[0],l,c,p)}}}]),n}(Rn);function Sp(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(r){var n={};if(bt(r[1])==="object"&&(n=r[1]),typeof r[1]=="string"&&(n.defaultValue=r[1]),typeof r[2]=="string"&&(n.tDescription=r[2]),bt(r[2])==="object"||bt(r[3])==="object"){var a=r[3]||r[2];Object.keys(a).forEach(function(s){n[s]=a[s]})}return n},interpolation:{escapeValue:!0,format:function(r,n,a,s){return r},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Tp(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function kp(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function Dr(t){for(var r=1;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function hi(){}function i1(t){var r=Object.getOwnPropertyNames(Object.getPrototypeOf(t));r.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var vi=function(t){Ws(n,t);var r=s1(n);function n(){var a,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;if(xr(this,n),a=r.call(this),Ci&&Rn.call(_r(a)),a.options=Tp(s),a.services={},a.logger=Hr,a.modules={external:[]},i1(_r(a)),l&&!a.isInitialized&&!s.isClone){if(!a.options.initImmediate)return a.init(s,l),es(a,_r(a));setTimeout(function(){a.init(s,l)},0)}return a}return Mr(n,[{key:"init",value:function(){var s=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;typeof l=="function"&&(c=l,l={}),!l.defaultNS&&l.defaultNS!==!1&&l.ns&&(typeof l.ns=="string"?l.defaultNS=l.ns:l.ns.indexOf("translation")<0&&(l.defaultNS=l.ns[0]));var p=Sp();this.options=Dr(Dr(Dr({},p),this.options),Tp(l)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Dr(Dr({},p.interpolation),this.options.interpolation)),l.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=l.keySeparator),l.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=l.nsSeparator);function g(k){return k?typeof k=="function"?new k:k:null}if(!this.options.isClone){this.modules.logger?Hr.init(g(this.modules.logger),this.options):Hr.init(null,this.options);var m;this.modules.formatter?m=this.modules.formatter:typeof Intl<"u"&&(m=e1);var h=new bp(this.options);this.store=new qh(this.options.resources,this.options);var b=this.services;b.logger=Hr,b.resourceStore=this.store,b.languageUtils=h,b.pluralResolver=new Zh(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===p.interpolation.format)&&(b.formatter=g(m),b.formatter.init(b,this.options),this.options.interpolation.format=b.formatter.format.bind(b.formatter)),b.interpolator=new Yh(this.options),b.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},b.backendConnector=new a1(g(this.modules.backend),b.resourceStore,b,this.options),b.backendConnector.on("*",function(k){for(var L=arguments.length,E=new Array(L>1?L-1:0),S=1;S1?L-1:0),S=1;S0&&C[0]!=="dev"&&(this.options.lng=C[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var v=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];v.forEach(function(k){s[k]=function(){var L;return(L=s.store)[k].apply(L,arguments)}});var x=["addResource","addResources","addResourceBundle","removeResourceBundle"];x.forEach(function(k){s[k]=function(){var L;return(L=s.store)[k].apply(L,arguments),s}});var B=Ks(),U=function(){var L=function(S,T){s.isInitialized&&!s.initializedStoreOnce&&s.logger.warn("init: i18next is already initialized. You should call init just once!"),s.isInitialized=!0,s.options.isClone||s.logger.log("initialized",s.options),s.emit("initialized",s.options),B.resolve(T),c(S,T)};if(s.languages&&s.options.compatibilityAPI!=="v1"&&!s.isInitialized)return L(null,s.t.bind(s));s.changeLanguage(s.options.lng,L)};return this.options.resources||!this.options.initImmediate?U():setTimeout(U,0),B}},{key:"loadResources",value:function(s){var l=this,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hi,p=c,g=typeof s=="string"?s:this.language;if(typeof s=="function"&&(p=s),!this.options.resources||this.options.partialBundledLanguages){if(g&&g.toLowerCase()==="cimode")return p();var m=[],h=function(v){if(v){var x=l.services.languageUtils.toResolveHierarchy(v);x.forEach(function(B){m.indexOf(B)<0&&m.push(B)})}};if(g)h(g);else{var b=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);b.forEach(function(C){return h(C)})}this.options.preload&&this.options.preload.forEach(function(C){return h(C)}),this.services.backendConnector.load(m,this.options.ns,function(C){!C&&!l.resolvedLanguage&&l.language&&l.setResolvedLanguage(l.language),p(C)})}else p(null)}},{key:"reloadResources",value:function(s,l,c){var p=Ks();return s||(s=this.languages),l||(l=this.options.ns),c||(c=hi),this.services.backendConnector.reload(s,l,function(g){p.resolve(),c(g)}),p}},{key:"use",value:function(s){if(!s)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!s.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return s.type==="backend"&&(this.modules.backend=s),(s.type==="logger"||s.log&&s.warn&&s.error)&&(this.modules.logger=s),s.type==="languageDetector"&&(this.modules.languageDetector=s),s.type==="i18nFormat"&&(this.modules.i18nFormat=s),s.type==="postProcessor"&&Pp.addPostProcessor(s),s.type==="formatter"&&(this.modules.formatter=s),s.type==="3rdParty"&&this.modules.external.push(s),this}},{key:"setResolvedLanguage",value:function(s){if(!(!s||!this.languages)&&!(["cimode","dev"].indexOf(s)>-1))for(var l=0;l-1)&&this.store.hasLanguageSomeTranslations(c)){this.resolvedLanguage=c;break}}}},{key:"changeLanguage",value:function(s,l){var c=this;this.isLanguageChangingTo=s;var p=Ks();this.emit("languageChanging",s);var g=function(C){c.language=C,c.languages=c.services.languageUtils.toResolveHierarchy(C),c.resolvedLanguage=void 0,c.setResolvedLanguage(C)},m=function(C,v){v?(g(v),c.translator.changeLanguage(v),c.isLanguageChangingTo=void 0,c.emit("languageChanged",v),c.logger.log("languageChanged",v)):c.isLanguageChangingTo=void 0,p.resolve(function(){return c.t.apply(c,arguments)}),l&&l(C,function(){return c.t.apply(c,arguments)})},h=function(C){!s&&!C&&c.services.languageDetector&&(C=[]);var v=typeof C=="string"?C:c.services.languageUtils.getBestMatchFromCodes(C);v&&(c.language||g(v),c.translator.language||c.translator.changeLanguage(v),c.services.languageDetector&&c.services.languageDetector.cacheUserLanguage&&c.services.languageDetector.cacheUserLanguage(v)),c.loadResources(v,function(x){m(x,v)})};return!s&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!s&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(s),p}},{key:"getFixedT",value:function(s,l,c){var p=this,g=function m(h,b){var C;if(bt(b)!=="object"){for(var v=arguments.length,x=new Array(v>2?v-2:0),B=2;B1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var p=c.lng||this.resolvedLanguage||this.languages[0],g=this.options?this.options.fallbackLng:!1,m=this.languages[this.languages.length-1];if(p.toLowerCase()==="cimode")return!0;var h=function(v,x){var B=l.services.backendConnector.state["".concat(v,"|").concat(x)];return B===-1||B===2};if(c.precheck){var b=c.precheck(this,h);if(b!==void 0)return b}return!!(this.hasResourceBundle(p,s)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(p,s)&&(!g||h(m,s)))}},{key:"loadNamespaces",value:function(s,l){var c=this,p=Ks();return this.options.ns?(typeof s=="string"&&(s=[s]),s.forEach(function(g){c.options.ns.indexOf(g)<0&&c.options.ns.push(g)}),this.loadResources(function(g){p.resolve(),l&&l(g)}),p):(l&&l(),Promise.resolve())}},{key:"loadLanguages",value:function(s,l){var c=Ks();typeof s=="string"&&(s=[s]);var p=this.options.preload||[],g=s.filter(function(m){return p.indexOf(m)<0});return g.length?(this.options.preload=p.concat(g),this.loadResources(function(m){c.resolve(),l&&l(m)}),c):(l&&l(),Promise.resolve())}},{key:"dir",value:function(s){if(s||(s=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!s)return"rtl";var l=["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"],c=this.services&&this.services.languageUtils||new bp(Sp());return l.indexOf(c.getLanguagePartFromCode(s))>-1||s.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var s=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hi,p=Dr(Dr(Dr({},this.options),l),{isClone:!0}),g=new n(p);(l.debug!==void 0||l.prefix!==void 0)&&(g.logger=g.logger.clone(l));var m=["store","services","language"];return m.forEach(function(h){g[h]=s[h]}),g.services=Dr({},this.services),g.services.utils={hasLoadedNamespace:g.hasLoadedNamespace.bind(g)},g.translator=new hp(g.services,g.options),g.translator.on("*",function(h){for(var b=arguments.length,C=new Array(b>1?b-1:0),v=1;v0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new vi(t,r)});var u=vi.createInstance();u.createInstance=vi.createInstance;var Sw=u.createInstance,Tw=u.dir,kw=u.init,Lw=u.loadResources,Pw=u.reloadResources,Aw=u.use,Ew=u.changeLanguage,Ow=u.getFixedT,Uw=u.t,Bw=u.exists,Rw=u.setDefaultNamespace,Iw=u.hasLoadedNamespace,Nw=u.loadNamespaces,$w=u.loadLanguages;var hc=new Map,i=t=>{let r=hc.get(t);if(r)return r;let n=document.getElementById(t);if(!n)throw new TypeError(`Element with id "${t}" was not found on page?`);return hc.set(t,n),n},wi=t=>hc.has(t);var Op=Un(Ep()),Ct=new Op.default;var In=class{constructor(r){this.level=0;this.freeLevels=0;this.toggleBuy=1;var n,a,s,l;this.name=r.name,this.description=r.description,this.level=(n=r.level)!=null?n:0,this.freeLevels=(a=r.freeLevels)!=null?a:0,this.maxLevel=r.maxLevel,this.costPerLevel=r.costPerLevel,this.toggleBuy=(s=r.toggleBuy)!=null?s:1,this.effect=(l=r.effect)!=null?l:c=>({bonus:c,desc:"WIP not implemented"})}async changeToggle(){let r=await Ee(u.t("dynamicUpgrades.validation.setPurchaseAmount",{x:this.name})),n=Number(r);if(r===null)return P(u.t("dynamicUpgrades.validation.toggleKept",{x:d(this.toggleBuy)}));if(!Number.isInteger(r))return P(u.t("general.validation.fraction"));if(n<-1)return P(u.t("dynamicUpgrades.validation.onlyNegativeOne"));if(n===0)return P(u.t("dynamicUpgrades.validation.notZero"));this.toggleBuy=n;let a=n===-1?u.t("dynamicUpgrades.toggleMax"):u.t("dynamicUpgrades.toggle",{x:d(this.toggleBuy)});return P(a)}getEffect(){let r=this.level+Math.min(this.level,this.freeLevels)+Math.sqrt(Math.max(0,this.freeLevels-this.level));return this.effect(r)}};var f0=Un(vc());var h0=Un(pc());var tr="3.1.1 January 15, 2025 pt 1.4: The Bakery Update";var Nn=new Date(Date.UTC(2025,0,20,1,12,31)),nt=!0;var ia=()=>{let t=Object.keys(e.hypercubeBlessings);for(let r of t){let n=e.hypercubeBlessings[r],a=t.indexOf(r)+1,s=1,l=1;n>=1e3&&(s=o.benedictionDRPower[a],l*=Math.pow(1e3,1-o.benedictionDRPower[a])),o.hypercubeBonusMultiplier[a]=1+l*o.benedictionbase[a]*Math.pow(n,s)*o.platonicBonusMultiplier[4]}};var Mi=()=>{let t=Object.values(e.platonicBlessings),r=[4e6,4e6,4e6,8e4,1e4,1e4,1e4,1e4];for(let n=0;n=1e20&&(l=Math.pow(l,.5)*1e10),t[n]>=r[n]&&(a=o.platonicDRPower[n],s*=Math.pow(r[n],1-o.platonicDRPower[n])),o.platonicBonusMultiplier[n]=1+s*o.platonicCubeBase[n]*Math.pow(l,a)}};var Rt=()=>{let t=9e4;e.researches[195]>0&&(t+=18e3*e.researches[195]);let r=5,n=[99,100,125,180,195];for(let p of n)r+=e.researches[p];r*=+e.octeractUpgrades.octeractExportQuarks.getEffect().bonus;let a=r,s=Math.floor(a*t/3600),l=Math.floor(e.quarkstimer*a/3600),c=_n();return{maxTime:t,perHour:a,capacity:s,gain:l,cubeMult:c}},Up=0,Bp=t=>Up=t,rr=()=>Up,u1,$n=class{constructor(r){this.QUARKS=0;this[u1]=r=>r==="number"?this.QUARKS:null;this.QUARKS=r}applyBonus(r){let n=Si();return r*(1+rr()/100)*n}add(r,n=!0){return this.QUARKS+=n?this.applyBonus(r):r,e.quarksThisSingularity+=n?this.applyBonus(r):r,this}sub(r){return this.QUARKS-=r,this.QUARKS<0&&(this.QUARKS=0),this}toString(r){return d(Math.floor(this.applyBonus(r)),0,!0)}reset(){this.QUARKS=0}};u1=Symbol.toPrimitive;var la=()=>{let t=[e.tesseractBlessings.accelerator,e.tesseractBlessings.multiplier,e.tesseractBlessings.offering,e.tesseractBlessings.runeExp,e.tesseractBlessings.obtainium,e.tesseractBlessings.antSpeed,e.tesseractBlessings.antSacrifice,e.tesseractBlessings.antELO,e.tesseractBlessings.talismanBonus,e.tesseractBlessings.globalSpeed];for(let r=0;r<10;r++){let n=1,a=1;t[r]>=1e3&&r!==5&&(n=o.giftDRPower[r],a*=Math.pow(1e3,1-o.giftDRPower[r])),o.tesseractBonusMultiplier[r+1]=1+a*o.giftbase[r]*Math.pow(t[r],n)*o.hypercubeBonusMultiplier[r+1]}};var ns={accelerator:{weight:4,pdf:t=>0<=t&&t<=20},multiplier:{weight:4,pdf:t=>2040506070808590950<=t&&t<=33},tesseracts:{weight:13200,pdf:t=>33669999.9999.992599.99599.9975100?P(u.t("cubes.validation.invalidPercent",{x:s})):a?this.open(Math.floor(r.value*(s/100)),s===100,!1):this.open(s,s===r.value,!1)}checkQuarkGain(r,n,a){if(a<1)return 0;let s=n*Rt().cubeMult;return Math.floor(e.worlds.applyBonus(Math.log10(a)*r*s))}checkCubesToNextQuark(r,n,a,s){let l=n*Rt().cubeMult;return Math.ceil(Math.pow(10,(a+1)/e.worlds.applyBonus(l*r))-s)}add(r){return this.value=Math.min(1e300,this.value+r),this}sub(r){return this.value=Math.max(0,this.value-r),this}[Symbol.toPrimitive](r){switch(r){case"string":return this.value.toString();case"number":return this.value;default:return null}}},nr=class extends Dn{constructor(r=Number(e.wowCubes)){super("wowCubes",r)}open(r,n=!1,a=!1){let s=n?Number(this):a?r:Math.min(Number(this),r);r===1&&e.cubeBlessings.accelerator>=2e11&&e.achievements[246]<1&&R(246),a||this.sub(s),e.cubeOpenedDaily+=s;let l=e.shopUpgrades.cubeToQuark?1.5:1,c=Number(this.checkQuarkGain(5,l,e.cubeOpenedDaily)),p=Math.max(0,c-e.cubeQuarkDaily);e.cubeQuarkDaily+=p,e.worlds.add(p,!1),s*=1+e.researches[138]/1e3,s*=1+.8*e.researches[168]/1e3,s*=1+.6*e.researches[198]/1e3,s=Math.floor(s);let g=s%20,m=Math.floor(s/20);m>0&&e.cubeUpgrades[13]===1&&(g+=m),m>0&&e.cubeUpgrades[23]===1&&(g+=m),m>0&&e.cubeUpgrades[33]===1&&(g+=m),m+=100/100*Math.floor(g/20),g=g%20;let h=Object.keys(e.cubeBlessings);for(let b of h)e.cubeBlessings[b]+=ns[b].weight*m*(1+Math.floor(_("ascension",e.challengecompletions[12])));for(let b=0;b0&&(e.platonicBlessings[v]+=m);let h=["hypercubeBonus","taxes","scoreBonus","globalSpeed"];for(let v=0;v=x&&g!==0&&(e.platonicBlessings[h[v]]+=1,g-=1)}let b=[Math.floor(33*g/100),Math.floor(33*g/100),Math.floor(33*g/100),Math.floor(396*g/4e4)],C=["cubes","tesseracts","hypercubes","platonics"];for(let v=0;v0){let v=Math.floor(s*Math.max(0,Math.min(1,(f.log(e.ascendShards.add(1),10)-1e5)/9e5)));e.wowHypercubes.open(v,!1,!0)}}};var xg=Un(wg());var Bi=t=>t instanceof f||typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"mantissa"in t&&"exponent"in t,we=(t=0)=>t<=Number.MAX_SAFE_INTEGER?1:2**Math.floor(Math.log2(t)-52),ae=t=>(t=Array.isArray(t)?t:Object.values(t),t.reduce((r,n)=>r+n,0)),be=t=>t.reduce((r,n)=>r*n),Mg=t=>Array.from([...t.keys()]).sort((r,n)=>t[r]i(t);var Ic=(t,r,n)=>{for(let a=0;a{let a=i(t);for(let s of r)a.classList.add(s);for(let s of n)a.classList.remove(s)},ls=t=>{try{return window.btoa(t)}catch(r){return console.error("An error occurred:",r),null}},eo=t=>{let r="th";return t%10===1&&(r=t%100===11?"th":"st"),t%10===2&&(r=t%100===12?"th":"nd"),t%10===3&&(r=t%100===13?"th":"rd"),d(t,0,!0)+r},_b=t=>Object.entries({d:Math.floor(t/864e5),h:Math.floor(t/36e5)%24,m:Math.floor(t/6e4)%60,s:Math.floor(t/1e3)%60}).filter(r=>r[1]>0).map(r=>`${r[1]}${r[0]}`).join(" ")||"0s",kr=t=>_b(1e3*t),to=t=>{let r="";for(let n=0;n255?"_":t[n]}return r};function Gn(t,r){if(!t)throw new TypeError("assertion failed",{cause:new TypeError(r)})}function Ri(t,r,n){return tn?r:t}var Fn=()=>{let t,r,n=new Promise((a,s)=>{t=a,r=s});return{resolve:t,reject:r,promise:n}},Gr=t=>(0,xg.default)(t,r=>Bi(r)||r instanceof f?new f(r):r);function ar(t){let r=!1,n;return(...a)=>(r||(r=!0,n=t(...a)),n)}var Nc=()=>{let t=e.singularityCount,r=t>36?u.t("singularity.penalties.platonicCosts",{multiplier:d(Le("Platonic Costs",t),2,!0)}):'???????? ??????? ????? ??? ?????????? ?? ??? (37)',n=t>50?u.t("singularity.penalties.hepteractCosts",{multiplier:d(Le("Hepteract Costs",t),2,!0)}):'????????? ????? ????? ??? ?????????? ?? ??? (51)',a=`${Db(t)}
${u.t("singularity.penalties.globalSpeed",{divisor:d(Le("Global Speed",t),2,!0)})} ${u.t("singularity.penalties.ascensionSpeed",{divisor:d(Le("Ascension Speed",t),2,!0)})} ${u.t("singularity.penalties.offeringGain",{divisor:d(Le("Offering",t),2,!0)})} ${u.t("singularity.penalties.obtainiumGain",{divisor:d(Le("Obtainium",t),2,!0)})}