@rsdoctor/client 0.4.4 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["301"],{50795:function(t,e,n){n.d(e,{X:function(){return o}});var r=n(56856);let i="assert";function o(t){let{tokTypes:e,TokenType:n}=t.acorn||r;return class extends t{constructor(...t){super(...t),this.assertToken=new n(i)}_codeAt(t){return this.input.charCodeAt(t)}_eat(t){this.type!==t&&this.unexpected(),this.next()}readToken(t){let e=0;for(;e<i.length;e++)if(this._codeAt(this.pos+e)!==i.charCodeAt(e))return super.readToken(t);for(;123!==this._codeAt(this.pos+e);e++){;if(32===this._codeAt(this.pos+e))continue;else return super.readToken(t)}return"{"===this.type.label?super.readToken(t):(this.pos+=i.length,this.finishToken(this.assertToken))}parseDynamicImport(t){if(this.next(),t.source=this.parseMaybeAssign(),this.eat(e.comma)){let e=this.parseObj(!1);t.arguments=[e]}return this._eat(e.parenR),this.finishNode(t,"ImportExpression")}parseExport(t,n){if(this.next(),this.eat(e.star)){if(this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseIdent(!0),this.checkExport(n,t.exported.name,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==e.string&&this.unexpected(),t.source=this.parseExprAtom(),this.type===this.assertToken||this.type===e._with){this.next();let e=this.parseImportAssertions();e&&(t.assertions=e)}return this.semicolon(),this.finishNode(t,"ExportAllDeclaration")}if(this.eat(e._default)){if(this.checkExport(n,"default",this.lastTokStart),this.type===e._function||(r=this.isAsyncFunction())){var r,i=this.startNode();this.next(),r&&this.next(),t.declaration=this.parseFunction(i,5,!1,r)}else if(this.type===e._class){var o=this.startNode();t.declaration=this.parseClass(o,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(null),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(n,t.declaration.declarations):this.checkExport(n,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(n),this.eatContextual("from")){if(this.type!==e.string&&this.unexpected(),t.source=this.parseExprAtom(),this.type===this.assertToken||this.type===e._with){this.next();let e=this.parseImportAssertions();e&&(t.assertions=e)}}else{for(var s=0,a=t.specifiers;s<a.length;s+=1){var c=a[s];this.checkUnreserved(c.local),this.checkLocalExport(c.local)}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")}parseImport(t){if(this.next(),this.type===e.string?(t.specifiers=[],t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===e.string?this.parseExprAtom():this.unexpected()),this.type===this.assertToken||this.type==e._with){this.next();let e=this.parseImportAssertions();e&&(t.assertions=e)}return this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportAssertions(){this._eat(e.braceL);let t=this.parseAssertEntries();return this._eat(e.braceR),t}parseAssertEntries(){let t=[],n=new Set;do{let r;if(this.type===e.braceR)break;let i=this.startNode();r=this.type===e.string?this.parseLiteral(this.value):this.parseIdent(!0),this.next(),i.key=r,n.has(i.key.name)&&this.raise(this.pos,"Duplicated key in assertions"),n.add(i.key.name),this.type!==e.string&&this.raise(this.pos,"Only string is supported as an assertion value"),i.value=this.parseLiteral(this.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(e.comma));return t}}}},49061:function(t,e,n){n.d(e,{Z:function(){return r}});function r(t){return!!(t&&t.__CANCEL__)}},43739:function(t,e,n){var r=n(91267);function i(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.Z.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.Z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let o=i.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{s[t]={value:t}}),Object.defineProperties(i,s),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=(t,e,n,s,a,c)=>{let u=Object.create(o);return r.Z.toFlatObject(t,u,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t),i.call(u,t.message,e,n,s,a),u.cause=t,u.name=t.name,c&&Object.assign(u,c),u},e.Z=i},26965:function(t,e,n){n.d(e,{Z:function(){return s}});var r=n(91267),i=n(88168);let o=t=>t instanceof i.Z?{...t}:t;function s(t,e){e=e||{};let n={};function i(t,e,n){if(r.Z.isPlainObject(t)&&r.Z.isPlainObject(e))return r.Z.merge.call({caseless:n},t,e);if(r.Z.isPlainObject(e))return r.Z.merge({},e);if(r.Z.isArray(e))return e.slice();return e}function s(t,e,n){return r.Z.isUndefined(e)?r.Z.isUndefined(t)?void 0:i(void 0,t,n):i(t,e,n)}function a(t,e){if(!r.Z.isUndefined(e))return i(void 0,e)}function c(t,e){return r.Z.isUndefined(e)?r.Z.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function u(n,r,o){return o in e?i(n,r):o in t?i(void 0,n):void 0}let l={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:u,headers:(t,e)=>s(o(t),o(e),!0)};return r.Z.forEach(Object.keys(Object.assign({},t,e)),function(i){let o=l[i]||s,a=o(t[i],e[i],i);r.Z.isUndefined(a)&&o!==u||(n[i]=a)}),n}},6850:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(43739);function i(t,e,n){let i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new r.Z("Request failed with status code "+n.status,[r.Z.ERR_BAD_REQUEST,r.Z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}},80217:function(t,e,n){n.d(e,{Z:function(){return r}});function r(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}},9025:function(t,e,n){var r=n(91267);e.Z=function(t){if(r.Z.isFormData(t)&&r.Z.isFunction(t.entries)){let e={};return r.Z.forEachEntry(t,(t,n)=>{var i;!function t(e,n,i,o){let s=e[o++];if("__proto__"===s)return!0;let a=Number.isFinite(+s),c=o>=e.length;return(s=!s&&r.Z.isArray(i)?i.length:s,c)?(r.Z.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!r.Z.isObject(i[s]))&&(i[s]=[]),t(e,n,i[s],o)&&r.Z.isArray(i[s])&&(i[s]=function(t){let e,n;let r={},i=Object.keys(t),o=i.length;for(e=0;e<o;e++)r[n=i[e]]=t[n];return r}(i[s])),!a)}((i=t,r.Z.matchAll(/\w+|\[(\w*)]/g,i).map(t=>"[]"===t[0]?"":t[1]||t[0])),n,e,0)}),e}return null}},29599:function(t,e,n){var r=n(91267),i=n(21232);e.Z=i.Z.hasStandardBrowserEnv?function(){let t;let e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){let r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){let n=r.Z.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},24752:function(t,e,n){var r=n(21232),i=n(91267),o=n(29599),s=n(91873),a=n(82074),c=n(26965),u=n(88168),l=n(4818);e.Z=t=>{let e;let n=(0,c.Z)({},t),{data:f,withXSRFToken:h,xsrfHeaderName:p,xsrfCookieName:d,headers:g,auth:v}=n;if(n.headers=g=u.Z.from(g),n.url=(0,l.Z)((0,a.Z)(n.baseURL,n.url),t.params,t.paramsSerializer),v&&g.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):""))),i.Z.isFormData(f)){if(r.Z.hasStandardBrowserEnv||r.Z.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if(!1!==(e=g.getContentType())){let[t,...n]=e?e.split(";").map(t=>t.trim()).filter(Boolean):[];g.setContentType([t||"multipart/form-data",...n].join("; "))}}if(r.Z.hasStandardBrowserEnv&&(h&&i.Z.isFunction(h)&&(h=h(n)),h||!1!==h&&(0,o.Z)(n.url))){let t=p&&d&&s.Z.read(d);t&&g.set(p,t)}return n}},85101:function(t,e,n){n.d(e,{Z:function(){return r}});function r(t){return function(e){return t.apply(null,e)}}},32545:function(t,e,n){var r=n(91267),i=n(43739),o=n(25746),s=n(57861).Buffer;function a(t){return r.Z.isPlainObject(t)||r.Z.isArray(t)}function c(t){return r.Z.endsWith(t,"[]")?t.slice(0,-2):t}function u(t,e,n){return t?t.concat(e).map(function(t,e){return t=c(t),!n&&e?"["+t+"]":t}).join(n?".":""):e}let l=r.Z.toFlatObject(r.Z,{},null,function(t){return/^is[A-Z]/.test(t)});e.Z=function(t,e,n){if(!r.Z.isObject(t))throw TypeError("target must be an object");e=e||new(o.Z||FormData);let f=(n=r.Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!r.Z.isUndefined(e[t])})).metaTokens,h=n.visitor||y,p=n.dots,d=n.indexes,g=(n.Blob||"undefined"!=typeof Blob&&Blob)&&r.Z.isSpecCompliantForm(e);if(!r.Z.isFunction(h))throw TypeError("visitor must be a function");function v(t){if(null===t)return"";if(r.Z.isDate(t))return t.toISOString();if(!g&&r.Z.isBlob(t))throw new i.Z("Blob is not supported. Use a Buffer instead.");return r.Z.isArrayBuffer(t)||r.Z.isTypedArray(t)?g&&"function"==typeof Blob?new Blob([t]):s.from(t):t}function y(t,n,i){let o=t;if(t&&!i&&"object"==typeof t){if(r.Z.endsWith(n,"{}"))n=f?n:n.slice(0,-2),t=JSON.stringify(t);else{var s;if(r.Z.isArray(t)&&(s=t,r.Z.isArray(s)&&!s.some(a))||(r.Z.isFileList(t)||r.Z.endsWith(n,"[]"))&&(o=r.Z.toArray(t)))return n=c(n),o.forEach(function(t,i){r.Z.isUndefined(t)||null===t||e.append(!0===d?u([n],i,p):null===d?n:n+"[]",v(t))}),!1}}return!!a(t)||(e.append(u(i,n,p),v(t)),!1)}let m=[],b=Object.assign(l,{defaultVisitor:y,convertValue:v,isVisitable:a});if(!r.Z.isObject(t))throw TypeError("data must be an object");return!function t(n,i){if(!r.Z.isUndefined(n)){if(-1!==m.indexOf(n))throw Error("Circular reference detected in "+i.join("."));m.push(n),r.Z.forEach(n,function(n,o){!0===(!(r.Z.isUndefined(n)||null===n)&&h.call(e,n,r.Z.isString(o)?o.trim():o,i,b))&&t(n,i?i.concat(o):[o])}),m.pop()}}(t),e}},21232:function(t,e,n){var r=n(65646),i=n(86963);e.Z={...i,...r.Z}},81346:function(t,e,n){var r=n(46415),i=n(1682),o=n(83493),s=n(84146),a=n(32857),c=n(68976),u=n(80189),l=n(88766),f=n(2058);function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach(function(e){(0,l.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var d={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},g=new(function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.Z)(this,t),this.init(e,n)}return(0,o.Z)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||d,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,e,n,r){return r&&!this.debug?null:("string"==typeof t[0]&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[e](t))}},{key:"create",value:function(e){return new t(this.logger,p(p({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}},{key:"clone",value:function(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new t(this.logger,e)}}]),t}()),v=function(){function t(){(0,i.Z)(this,t),this.observers={}}return(0,o.Z)(t,[{key:"on",value:function(t,e){var n=this;return t.split(" ").forEach(function(t){n.observers[t]=n.observers[t]||[],n.observers[t].push(e)}),this}},{key:"off",value:function(t,e){if(this.observers[t]){if(!e){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(function(t){return t!==e})}}},{key:"emit",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.observers[t]&&[].concat(this.observers[t]).forEach(function(t){t.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(e){e.apply(e,[t].concat(n))})}}]),t}();function y(){var t,e,n=new Promise(function(n,r){t=n,e=r});return n.resolve=t,n.reject=e,n}function m(t){return null==t?"":""+t}function b(t,e,n){function r(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function i(){return!t||"string"==typeof t}for(var o="string"!=typeof e?[].concat(e):e.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!t[s]&&n&&(t[s]=new n),t=Object.prototype.hasOwnProperty.call(t,s)?t[s]:{}}return i()?{}:{obj:t,k:r(o.shift())}}function k(t,e,n){var r=b(t,e,Object);r.obj[r.k]=n}function O(t,e){var n=b(t,e),r=n.obj,i=n.k;if(r)return r[i]}function Z(t,e,n){var r=O(t,n);return void 0!==r?r:O(e,n)}function x(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var w={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function S(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,function(t){return w[t]}):t}var _="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,j=[" ",",","?","!",";"];function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach(function(e){(0,l.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var P=function(t){(0,a.Z)(l,t);var e,n,r=(e=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=(0,u.Z)(e);return t=n?Reflect.construct(r,arguments,(0,u.Z)(this).constructor):r.apply(this,arguments),(0,c.Z)(this,t)});function l(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,i.Z)(this,l),e=r.call(this),_&&v.call((0,s.Z)(e)),e.data=t||{},e.options=n,void 0===e.options.keySeparator&&(e.options.keySeparator="."),void 0===e.options.ignoreJSONStructure&&(e.options.ignoreJSONStructure=!0),e}return(0,o.Z)(l,[{key:"addNamespaces",value:function(t){0>this.options.ns.indexOf(t)&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[t,e];n&&"string"!=typeof n&&(s=s.concat(n)),n&&"string"==typeof n&&(s=s.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(s=t.split("."));var a=O(this.data,s);return a||!o||"string"!=typeof n?a:function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[n])return e[n];for(var i=n.split(r),o=e,s=0;s<i.length;++s){if(!o||"string"==typeof o[i[s]]&&s+1<i.length)return;if(void 0===o[i[s]]){for(var a=2,c=i.slice(s,s+a).join(r),u=o[c];void 0===u&&i.length>s+a;)a++,u=o[c=i.slice(s,s+a).join(r)];if(void 0===u)return;if(null===u)return null;if(n.endsWith(c)){if("string"==typeof u)return u;if(c&&"string"==typeof u[c])return u[c]}var l=i.slice(s+a).join(r);if(l)return t(u,l,r);return}o=o[i[s]]}return o}}(this.data&&this.data[t]&&this.data[t][e],n,i)}},{key:"addResource",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var s=[t,e];n&&(s=s.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(s=t.split("."),r=e,e=s[1]),this.addNamespaces(e),k(this.data,s,r),!i.silent&&this.emit("added",t,e,n,r)}},{key:"addResources",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)("string"==typeof n[i]||"[object Array]"===Object.prototype.toString.apply(n[i]))&&this.addResource(t,e,i,n[i],{silent:!0});!r.silent&&this.emit("added",t,e,n)}},{key:"addResourceBundle",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[t,e];t.indexOf(".")>-1&&(s=t.split("."),r=n,n=e,e=s[1]),this.addNamespaces(e);var a=O(this.data,s)||{};r?!function t(e,n,r){for(var i in n)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?r&&(e[i]=n[i]):t(e[i],n[i],r):e[i]=n[i]);return e}(a,n,i):a=E(E({},a),n),k(this.data,s,a),!o.silent&&this.emit("added",t,e,n)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return(!e&&(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?E(E({},{}),this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"hasLanguageSomeTranslations",value:function(t){var e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find(function(t){return e[t]&&Object.keys(e[t]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),l}(v),L={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,i){var o=this;return t.forEach(function(t){o.processors[t]&&(e=o.processors[t].process(e,n,r,i))}),e}};function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach(function(e){(0,l.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var A={},T=function(t){(0,a.Z)(f,t);var e,n,l=(e=f,n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=(0,u.Z)(e);return t=n?Reflect.construct(r,arguments,(0,u.Z)(this).constructor):r.apply(this,arguments),(0,c.Z)(this,t)});function f(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.Z)(this,f),e=l.call(this),_&&v.call((0,s.Z)(e)),!function(t,e,n){t.forEach(function(t){e[t]&&(n[t]=e[t])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,(0,s.Z)(e)),e.options=n,void 0===e.options.keySeparator&&(e.options.keySeparator="."),e.logger=g.create("translator"),e}return(0,o.Z)(f,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;var n=this.resolve(t,e);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(t,e){var n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,i=e.ns||this.options.defaultNS||[],o=n&&t.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!e.keySeparator&&!this.options.userDefinedNsSeparator&&!e.nsSeparator&&!function(t,e,n){e=e||"",n=n||"";var r=j.filter(function(t){return 0>e.indexOf(t)&&0>n.indexOf(t)});if(0===r.length)return!0;var i=new RegExp("(".concat(r.map(function(t){return"?"===t?"\\?":t}).join("|"),")")),o=!i.test(t);if(!o){var s=t.indexOf(n);s>0&&!i.test(t.substring(0,s))&&(o=!0)}return o}(t,n,r);if(o&&!s){var a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:i};var c=t.split(n);(n!==r||n===r&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(r)}return"string"==typeof i&&(i=[i]),{key:t,namespaces:i}}},{key:"translate",value:function(t,e,n){var i=this;if("object"!==(0,r.Z)(e)&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),!e&&(e={}),null==t)return"";!Array.isArray(t)&&(t=[String(t)]);var o=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,s=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,a=this.extractFromKey(t[t.length-1],e),c=a.key,u=a.namespaces,l=u[u.length-1],h=e.lng||this.language,p=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&"cimode"===h.toLowerCase()){if(p){var d=e.nsSeparator||this.options.nsSeparator;return o?(g.res="".concat(l).concat(d).concat(c),g):"".concat(l).concat(d).concat(c)}return o?(g.res=c,g):c}var g=this.resolve(t,e),v=g&&g.res,y=g&&g.usedKey||c,m=g&&g.exactUsedKey||c,b=Object.prototype.toString.apply(v),k=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,Z="string"!=typeof v&&"boolean"!=typeof v&&"number"!=typeof v;if(O&&v&&Z&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(b)&&!("string"==typeof k&&"[object Array]"===b)){if(!e.returnObjects&&!this.options.returnObjects){!this.options.returnedObjectHandler&&this.logger.warn("accessing an object - but returnObjects options is not enabled!");var x=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,v,C(C({},e),{},{ns:u})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return o?(g.res=x,g):x}if(s){var w="[object Array]"===b,S=w?[]:{},_=w?m:y;for(var j in v)if(Object.prototype.hasOwnProperty.call(v,j)){var R="".concat(_).concat(s).concat(j);S[j]=this.translate(R,C(C({},e),{joinArrays:!1,ns:u})),S[j]===R&&(S[j]=v[j])}v=S}}else if(O&&"string"==typeof k&&"[object Array]"===b)(v=v.join(k))&&(v=this.extendTranslation(v,t,e,n));else{var E=!1,P=!1,L=void 0!==e.count&&"string"!=typeof e.count,N=f.hasDefaultValue(e),A=L?this.pluralResolver.getSuffix(h,e.count,e):"",T=e["defaultValue".concat(A)]||e.defaultValue;!this.isValidLookup(v)&&N&&(E=!0,v=T),!this.isValidLookup(v)&&(P=!0,v=c);var D=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&P?void 0:v,F=N&&T!==v&&this.options.updateMissing;if(P||E||F){if(this.logger.log(F?"updateKey":"missingKey",h,l,c,F?T:v),s){var I=this.resolve(c,C(C({},e),{},{keySeparator:!1}));I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var B=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var V=0;V<U.length;V++)B.push(U[V]);else"all"===this.options.saveMissingTo?B=this.languageUtils.toResolveHierarchy(e.lng||this.language):B.push(e.lng||this.language);var M=function(t,n,r){var o=N&&r!==v?r:D;i.options.missingKeyHandler?i.options.missingKeyHandler(t,l,n,o,F,e):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(t,l,n,o,F,e),i.emit("missingKey",t,l,n,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&L?B.forEach(function(t){i.pluralResolver.getSuffixes(t,e).forEach(function(n){M([t],c+n,e["defaultValue".concat(n)]||T)})}):M(B,c,T))}v=this.extendTranslation(v,t,e,g,n),P&&v===c&&this.options.appendNamespaceToMissingKey&&(v="".concat(l,":").concat(c)),(P||E)&&this.options.parseMissingKeyHandler&&(v="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(l,":").concat(c):c,E?v:void 0):this.options.parseMissingKeyHandler(v))}return o?(g.res=v,g):v}},{key:"extendTranslation",value:function(t,e,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,C(C({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(C(C({},n),{interpolation:C(C({},this.options.interpolation),n.interpolation)}));var s,a="string"==typeof t&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){var c=t.match(this.interpolator.nestingRegexp);s=c&&c.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=C(C({},this.options.interpolation.defaultVariables),u)),t=this.interpolator.interpolate(t,u,n.lng||this.language,n),a){var l=t.match(this.interpolator.nestingRegexp);s<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(t=this.interpolator.nest(t,function(){for(var t=arguments.length,r=Array(t),s=0;s<t;s++)r[s]=arguments[s];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(e[0])),null):o.translate.apply(o,r.concat([e]))},n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,h="string"==typeof f?[f]:f;return null!=t&&h&&h.length&&!1!==n.applyPostProcessor&&(t=L.handle(h,t,e,this.options&&this.options.postProcessPassResolved?C({i18nResolved:r},n):n,this)),t}},{key:"resolve",value:function(t){var e,n,r,i,o,s=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach(function(t){if(!s.isValidLookup(e)){var c=s.extractFromKey(t,a),u=c.key;n=u;var l=c.namespaces;s.options.fallbackNS&&(l=l.concat(s.options.fallbackNS));var f=void 0!==a.count&&"string"!=typeof a.count,h=f&&!a.ordinal&&0===a.count&&s.pluralResolver.shouldUseIntlApi(),p=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,d=a.lngs?a.lngs:s.languageUtils.toResolveHierarchy(a.lng||s.language,a.fallbackLng);l.forEach(function(t){!s.isValidLookup(e)&&(o=t,!A["".concat(d[0],"-").concat(t)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(o)&&(A["".concat(d[0],"-").concat(t)]=!0,s.logger.warn('key "'.concat(n,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach(function(n){if(!s.isValidLookup(e)){i=n;var o,c=[u];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(c,u,n,t,a);else{f&&(l=s.pluralResolver.getSuffix(n,a.count,a));var l,d="".concat(s.options.pluralSeparator,"zero");if(f&&(c.push(u+l),h&&c.push(u+d)),p){var g="".concat(u).concat(s.options.contextSeparator).concat(a.context);c.push(g),f&&(c.push(g+l),h&&c.push(g+d))}}for(;o=c.pop();)!s.isValidLookup(e)&&(r=o,e=s.getResource(n,t,o,a))}}))})}}),{res:e,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(t){return void 0!==t&&!(!this.options.returnNull&&null===t)&&!(!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,r):this.resourceStore.getResource(t,e,n,r)}}],[{key:"hasDefaultValue",value:function(t){var e="defaultValue";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e===n.substring(0,e.length)&&void 0!==t[n])return!0;return!1}}]),f}(v);function D(t){return t.charAt(0).toUpperCase()+t.slice(1)}var F=function(){function t(e){(0,i.Z)(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=g.create("languageUtils")}return(0,o.Z)(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||0>t.indexOf("-"))return null;var e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase())?null:this.formatLanguageCode(e.join("-"))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||0>t.indexOf("-"))return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"==typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map(function(t){return t.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=D(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=D(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=D(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isSupportedCode",value:function(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var e,n=this;return t?(t.forEach(function(t){if(!e){var r=n.formatLanguageCode(t);(!n.options.supportedLngs||n.isSupportedCode(r))&&(e=r)}}),!e&&this.options.supportedLngs&&t.forEach(function(t){if(!e){var r=n.getLanguagePartFromCode(t);if(n.isSupportedCode(r))return e=r;e=n.options.supportedLngs.find(function(t){if(0===t.indexOf(r))return t})}}),!e&&(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var n=t[e];return!n&&(n=t[this.getScriptPartFromCode(e)]),!n&&(n=t[this.formatLanguageCode(e)]),!n&&(n=t[this.getLanguagePartFromCode(e)]),!n&&(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,e){var n=this,r=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],o=function(t){t&&(n.isSupportedCode(t)?i.push(t):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):"string"==typeof t&&o(this.formatLanguageCode(t)),r.forEach(function(t){0>i.indexOf(t)&&o(n.formatLanguageCode(t))}),i}}]),t}(),I=[{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}],B={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}},U=["v1","v2","v3"],V={zero:0,one:1,two:2,few:3,many:4,other:5},M=function(){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.Z)(this,t),this.languageUtils=e,this.options=r,this.logger=g.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},I.forEach(function(t){t.lngs.forEach(function(e){n[e]={numbers:t.nr,plurals:B[t.fc]}})}),n)}return(0,o.Z)(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(t,{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map(function(t){return"".concat(e).concat(t)})}},{key:"getSuffixes",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(t,e){return V[t]-V[e]}).map(function(t){return"".concat(e.options.prepend).concat(t)}):r.numbers.map(function(r){return e.getSuffix(t,r,n)}):[]}},{key:"getSuffix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(t,n);if(r)return this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(e)):this.getSuffixRetroCompatible(r,e);return this.logger.warn("no plural rule found for: ".concat(t)),""}},{key:"getSuffixRetroCompatible",value:function(t,e){var n=this,r=t.noAbs?t.plurals(e):t.plurals(Math.abs(e)),i=t.numbers[r];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};if("v1"===this.options.compatibilityJSON)return 1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o();if("v2"===this.options.compatibilityJSON)return o();if(this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0])return o();return this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!U.includes(this.options.compatibilityJSON)}}]),t}();function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach(function(e){(0,l.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var q=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.Z)(this,t),this.logger=g.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return(0,o.Z)(t,[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!t.interpolation&&(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:S,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?x(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?x(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?x(e.nestingPrefix):e.nestingPrefixEscaped||x("$t("),this.nestingSuffix=e.nestingSuffix?x(e.nestingSuffix):e.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(e,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(t,e,n,r){var i,o,s,a=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(t){return t.replace(/\$/g,"$$$$")}var l=function(t){if(0>t.indexOf(a.formatSeparator)){var i=Z(e,c,t);return a.alwaysFormat?a.format(i,void 0,n,K(K(K({},r),e),{},{interpolationkey:t})):i}var o=t.split(a.formatSeparator),s=o.shift().trim(),u=o.join(a.formatSeparator).trim();return a.format(Z(e,c,s),u,n,K(K(K({},r),e),{},{interpolationkey:s}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,h=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(t){return u(t)}},{regex:this.regexp,safeValue:function(t){return a.escapeValue?u(a.escape(t)):u(t)}}].forEach(function(e){for(s=0;i=e.regex.exec(t);){var n=i[1].trim();if(void 0===(o=l(n))){if("function"==typeof f){var c=f(t,i,r);o="string"==typeof c?c:""}else if(r&&r.hasOwnProperty(n))o="";else if(h){o=i[0];continue}else a.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(t)),o=""}else"string"!=typeof o&&!a.useRawValueToEscape&&(o=m(o));var u=e.safeValue(o);if(t=t.replace(i[0],u),h?(e.regex.lastIndex+=o.length,e.regex.lastIndex-=i[0].length):e.regex.lastIndex=0,++s>=a.maxReplaces)break}}),t}},{key:"nest",value:function(t,e){var n,r,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=K({},o);function a(t,e){var n=this.nestingOptionsSeparator;if(0>t.indexOf(n))return t;var r=t.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);t=r[0];var o=(i=this.interpolate(i,s)).match(/'/g),a=i.match(/"/g);(o&&o.length%2==0&&!a||a.length%2!=0)&&(i=i.replace(/'/g,'"'));try{s=JSON.parse(i),e&&(s=K(K({},e),s))}catch(e){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),e),"".concat(t).concat(n).concat(i)}return delete s.defaultValue,t}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(t);){var c=[],u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map(function(t){return t.trim()});n[1]=l.shift(),c=l,u=!0}if((r=e(a.call(this,n[1].trim(),s),s))&&n[0]===t&&"string"!=typeof r)return r;"string"!=typeof r&&(r=m(r)),!r&&(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),r=""),u&&(r=c.reduce(function(t,e){return i.format(t,e,o.lng,K(K({},o),{},{interpolationkey:n[1].trim()}))},r.trim())),t=t.replace(n[0],r),this.regexp.lastIndex=0}return t}}]),t}();function H(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function J(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H(Object(n),!0).forEach(function(e){(0,l.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function $(t){var e={};return function(n,r,i){var o=r+JSON.stringify(i),s=e[o];return!s&&(s=t(r,i),e[o]=s),s(n)}}var W=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.Z)(this,t),this.logger=g.create("formatter"),this.options=e,this.formats={number:$(function(t,e){var n=new Intl.NumberFormat(t,e);return function(t){return n.format(t)}}),currency:$(function(t,e){var n=new Intl.NumberFormat(t,J(J({},e),{},{style:"currency"}));return function(t){return n.format(t)}}),datetime:$(function(t,e){var n=new Intl.DateTimeFormat(t,J({},e));return function(t){return n.format(t)}}),relativetime:$(function(t,e){var n=new Intl.RelativeTimeFormat(t,J({},e));return function(t){return n.format(t,e.range||"day")}}),list:$(function(t,e){var n=new Intl.ListFormat(t,J({},e));return function(t){return n.format(t)}})},this.init(e)}return(0,o.Z)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=e.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(t,e){this.formats[t.toLowerCase().trim()]=e}},{key:"addCached",value:function(t,e){this.formats[t.toLowerCase().trim()]=$(e)}},{key:"format",value:function(t,e,n,r){var i=this;return e.split(this.formatSeparator).reduce(function(t,e){var o=function(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var r=t.split("(");e=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===e&&0>i.indexOf(":")?!n.currency&&(n.currency=i.trim()):"relativetime"===e&&0>i.indexOf(":")?!n.range&&(n.range=i.trim()):i.split(";").forEach(function(t){if(t){var e=t.split(":"),r=(0,f.Z)(e),i=r[0],o=r.slice(1).join(":").trim().replace(/^'+|'+$/g,"");!n[i.trim()]&&(n[i.trim()]=o),"false"===o&&(n[i.trim()]=!1),"true"===o&&(n[i.trim()]=!0),!isNaN(o)&&(n[i.trim()]=parseInt(o,10))}})}return{formatName:e,formatOptions:n}}(e),s=o.formatName,a=o.formatOptions;if(i.formats[s]){var c=t;try{var u=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=u.locale||u.lng||r.locale||r.lng||n;c=i.formats[s](t,l,J(J(J({},a),r),u))}catch(t){i.logger.warn(t)}return c}return i.logger.warn("there was no format function for ".concat(s)),t},t)}}]),t}();function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(n),!0).forEach(function(e){(0,l.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var G=function(t){(0,a.Z)(l,t);var e,n,r=(e=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=(0,u.Z)(e);return t=n?Reflect.construct(r,arguments,(0,u.Z)(this).constructor):r.apply(this,arguments),(0,c.Z)(this,t)});function l(t,e,n){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,i.Z)(this,l),o=r.call(this),_&&v.call((0,s.Z)(o)),o.backend=t,o.store=e,o.services=n,o.languageUtils=n.languageUtils,o.options=a,o.logger=g.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.maxRetries=a.maxRetries>=0?a.maxRetries:5,o.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(n,a.backend,a),o}return(0,o.Z)(l,[{key:"queueLoad",value:function(t,e,n,r){var i=this,o={},s={},a={},c={};return t.forEach(function(t){var r=!0;e.forEach(function(e){var a="".concat(t,"|").concat(e);!n.reload&&i.store.hasResourceBundle(t,e)?i.state[a]=2:i.state[a]<0||(1===i.state[a]?void 0===s[a]&&(s[a]=!0):(i.state[a]=1,r=!1,void 0===s[a]&&(s[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===c[e]&&(c[e]=!0)))}),!r&&(a[t]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(t,e,n){var r=t.split("|"),i=r[0],o=r[1];e&&this.emit("failedLoading",i,o,e),n&&this.store.addResourceBundle(i,o,n),this.state[t]=e?-1:2;var s={};this.queue.forEach(function(n){var r,a,c,u,l,f,h,p,d;r=n.loaded,a=[i],c=o,f=(l=b(r,a,Object)).obj,f[h=l.k]=f[h]||[],u||f[h].push(c),p=n,d=t,void 0!==p.pending[d]&&(delete p.pending[d],p.pendingCount--),e&&n.errors.push(e),0===n.pendingCount&&!n.done&&(Object.keys(n.loaded).forEach(function(t){!s[t]&&(s[t]={});var e=n.loaded[t];e.length&&e.forEach(function(e){void 0===s[t][e]&&(s[t][e]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(t){return!t.done})}},{key:"read",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:e,fcName:n,tried:i,wait:o,callback:s});return}return this.readingCalls++,this.backend[n](t,e,function(a,c){if(r.readingCalls--,r.waitingReads.length>0){var u=r.waitingReads.shift();r.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(a&&c&&i<r.maxRetries){setTimeout(function(){r.read.call(r,t,e,n,i+1,2*o,s)},o);return}s(a,c)})}},{key:"prepareLoading",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=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."),i&&i();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);var o=this.queueLoad(t,e,r,i);if(!o.toLoad.length)return!o.pending.length&&i(),null;o.toLoad.forEach(function(t){n.loadOne(t)})}},{key:"load",value:function(t,e,n){this.prepareLoading(t,e,{},n)}},{key:"reload",value:function(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}},{key:"loadOne",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,function(r,s){r&&e.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&s&&e.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),s),e.loaded(t,r,s)})}},{key:"saveMissing",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e)){this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(e,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=n&&""!==n)this.backend&&this.backend.create&&this.backend.create(t,e,n,r,null,Y(Y({},o),{},{isUpdate:i})),t&&t[0]&&this.store.addResource(t[0],e,n,r)}}]),l}(v);function X(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&0>t.supportedLngs.indexOf("cimode")&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tt(Object(n),!0).forEach(function(e){(0,l.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function tn(){}var tr=function(t){(0,a.Z)(f,t);var e,n,l=(e=f,n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=(0,u.Z)(e);return t=n?Reflect.construct(r,arguments,(0,u.Z)(this).constructor):r.apply(this,arguments),(0,c.Z)(this,t)});function f(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if((0,i.Z)(this,f),t=l.call(this),_&&v.call((0,s.Z)(t)),t.options=X(e),t.services={},t.logger=g,t.modules={external:[]},!function(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))})}((0,s.Z)(t)),n&&!t.isInitialized&&!e.isClone){if(!t.options.initImmediate)return t.init(e,n),(0,c.Z)(t,(0,s.Z)(t));setTimeout(function(){t.init(e,n)},0)}return t}return(0,o.Z)(f,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:0>e.ns.indexOf("translation")&&(e.defaultNS=e.ns[0]));var i={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(t){var e={};if("object"===(0,r.Z)(t[1])&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"===(0,r.Z)(t[2])||"object"===(0,r.Z)(t[3])){var n=t[3]||t[2];Object.keys(n).forEach(function(t){e[t]=n[t]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function o(t){return t?"function"==typeof t?new t:t:null}if(this.options=te(te(te({},i),this.options),X(e)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=te(te({},i.interpolation),this.options.interpolation)),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){this.modules.logger?g.init(o(this.modules.logger),this.options):g.init(null,this.options),this.modules.formatter?s=this.modules.formatter:"undefined"!=typeof Intl&&(s=W);var s,a=new F(this.options);this.store=new P(this.options.resources,this.options);var c=this.services;c.logger=g,c.resourceStore=this.store,c.languageUtils=a,c.pluralResolver=new M(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(c.formatter=o(s),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new q(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new G(o(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e].concat(r))}),this.modules.languageDetector&&(c.languageDetector=o(this.modules.languageDetector),c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=o(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new T(this.services,this.options),this.translator.on("*",function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(t)})}if(this.format=this.options.interpolation.format,!n&&(n=tn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&"dev"!==u[0]&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}});var l=y(),f=function(){var e=function(e,r){t.isInitialized&&!t.initializedStoreOnce&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,!t.options.isClone&&t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(r),n(e,r)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return e(null,t.t.bind(t));t.changeLanguage(t.options.lng,e)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),l}},{key:"loadResources",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn,r=n,i="string"==typeof t?t:this.language;if("function"==typeof t&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],s=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach(function(t){0>o.indexOf(t)&&o.push(t)})};i?s(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(t){return s(t)}),this.options.preload&&this.options.preload.forEach(function(t){return s(t)}),this.services.backendConnector.load(o,this.options.ns,function(t){!t&&!e.resolvedLanguage&&e.language&&e.setResolvedLanguage(e.language),r(t)})}else r(null)}},{key:"reloadResources",value:function(t,e,n){var r=y();return!t&&(t=this.languages),!e&&(e=this.options.ns),!n&&(n=tn),this.services.backendConnector.reload(t,e,function(t){r.resolve(),n(t)}),r}},{key:"use",value:function(t){if(!t)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&L.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"setResolvedLanguage",value:function(t){if(!!t&&!!this.languages){if(!(["cimode","dev"].indexOf(t)>-1))for(var e=0;e<this.languages.length;e++){var n=this.languages[e];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}}},{key:"changeLanguage",value:function(t,e){var n=this;this.isLanguageChangingTo=t;var r=y();this.emit("languageChanging",t);var i=function(t){n.language=t,n.languages=n.services.languageUtils.toResolveHierarchy(t),n.resolvedLanguage=void 0,n.setResolvedLanguage(t)},o=function(t,o){o?(i(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),e&&e(t,function(){return n.t.apply(n,arguments)})},s=function(e){!t&&!e&&n.services.languageDetector&&(e=[]);var r="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);r&&(!n.language&&i(r),!n.translator.language&&n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,function(t){o(t,r)})};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(s):s(t):s(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(t,e,n){var i=this,o=function t(e,o){if("object"!==(0,r.Z)(o)){for(var s,a=arguments.length,c=Array(a>2?a-2:0),u=2;u<a;u++)c[u-2]=arguments[u];s=i.options.overloadTranslationOptionHandler([e,o].concat(c))}else s=te({},o);s.lng=s.lng||t.lng,s.lngs=s.lngs||t.lngs,s.ns=s.ns||t.ns,s.keyPrefix=s.keyPrefix||n||t.keyPrefix;var l=i.options.keySeparator||".",f=s.keyPrefix?"".concat(s.keyPrefix).concat(l).concat(e):e;return i.t(f,s)};return"string"==typeof t?o.lng=t:o.lngs=t,o.ns=e,o.keyPrefix=n,o}},{key:"t",value:function(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)}},{key:"exists",value:function(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)}},{key:"setDefaultNamespace",value:function(t){this.options.defaultNS=t}},{key:"hasLoadedNamespace",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?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 r=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var s=function(t,n){var r=e.services.backendConnector.state["".concat(t,"|").concat(n)];return -1===r||2===r};if(n.precheck){var a=n.precheck(this,s);if(void 0!==a)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!i||s(o,t)))||!1}},{key:"loadNamespaces",value:function(t,e){var n=this,r=y();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach(function(t){0>n.options.ns.indexOf(t)&&n.options.ns.push(t)}),this.loadResources(function(t){r.resolve(),e&&e(t)}),r):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var n=y();"string"==typeof t&&(t=[t]);var r=this.options.preload||[],i=t.filter(function(t){return 0>r.indexOf(t)});return i.length?(this.options.preload=r.concat(i),this.loadResources(function(t){n.resolve(),e&&e(t)}),n):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){return(!t&&(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),t)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn,r=te(te(te({},this.options),e),{isClone:!0}),i=new f(r);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(function(e){i[e]=t[e]}),i.services=te({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new T(i.services,i.options),i.translator.on("*",function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];i.emit.apply(i,[t].concat(n))}),i.init(r,n),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),f}(v);(0,l.Z)(tr,"createInstance",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new tr(t,e)});var ti=tr.createInstance();ti.createInstance=tr.createInstance,ti.createInstance,ti.init,ti.loadResources,ti.reloadResources,ti.use,ti.changeLanguage,ti.getFixedT,ti.t,ti.exists,ti.setDefaultNamespace,ti.hasLoadedNamespace,ti.loadNamespaces,ti.loadLanguages,e.ZP=ti},64250:function(t,e,n){var r=n(60246),i=n(58081),o=n(28631),s=n(83663),a=n(2827);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r.Z,c.prototype.delete=i.Z,c.prototype.get=o.Z,c.prototype.has=s.Z,c.prototype.set=a.Z,e.Z=c},6198:function(t,e,n){var r=n(71697),i=n(78723),o=n(5494),s=n(29350),a=n(45554);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r.Z,c.prototype.delete=i.Z,c.prototype.get=o.Z,c.prototype.has=s.Z,c.prototype.set=a.Z,e.Z=c},68238:function(t,e,n){var r=n(24665),i=n(25676),o=(0,r.Z)(i.Z,"Set");e.Z=o},3091:function(t,e,n){var r=n(83574),i=n(83764),o=n(77624);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r.Z;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i.Z,s.prototype.has=o.Z,e.Z=s},26894:function(t,e,n){var r=n(25676).Z.Symbol;e.Z=r},69828:function(t,e,n){var r=n(25676).Z.Uint8Array;e.Z=r},21535:function(t,e,n){e.Z=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},26222:function(t,e,n){e.Z=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},84749:function(t,e,n){var r=n(33805);e.Z=function(t,e,n,i){return(0,r.Z)(t,function(t,r,o){e(i,t,n(t),o)}),i}},393:function(t,e,n){var r=n(5089),i=n(82332);e.Z=function t(e,n,o,s,a){var c=-1,u=e.length;for(o||(o=i.Z),a||(a=[]);++c<u;){var l=e[c];n>0&&o(l)?n>1?t(l,n-1,o,s,a):(0,r.Z)(a,l):!s&&(a[a.length]=l)}return a}},38472:function(t,e,n){var r=(0,n(94351).Z)();e.Z=r},10982:function(t,e,n){var r=n(38472),i=n(49647);e.Z=function(t,e){return t&&(0,r.Z)(t,e,i.Z)}},82884:function(t,e,n){var r=n(26894),i=n(92374),o=n(12050),s=r.Z?r.Z.toStringTag:void 0;e.Z=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?(0,i.Z)(t):(0,o.Z)(t)}},30380:function(t,e,n){var r=n(76651),i=n(26784),o=n(28530);e.Z=function(t,e,n){return e==e?(0,o.Z)(t,e,n):(0,r.Z)(t,i.Z,n)}},73095:function(t,e,n){var r=n(6905),i=n(94388);e.Z=function t(e,n,o,s,a){return e===n||(null!=e&&null!=n&&((0,i.Z)(e)||(0,i.Z)(n))?(0,r.Z)(e,n,o,s,t,a):e!=e&&n!=n)}},6905:function(t,e,n){var r=n(79972),i=n(65710),o=n(39140),s=n(74619),a=n(62450),c=n(40521),u=n(753),l=n(12815),f="[object Arguments]",h="[object Array]",p="[object Object]",d=Object.prototype.hasOwnProperty;e.Z=function(t,e,n,g,v,y){var m=(0,c.Z)(t),b=(0,c.Z)(e),k=m?h:(0,a.Z)(t),O=b?h:(0,a.Z)(e);k=k==f?p:k,O=O==f?p:O;var Z=k==p,x=O==p,w=k==O;if(w&&(0,u.Z)(t)){if(!(0,u.Z)(e))return!1;m=!0,Z=!1}if(w&&!Z)return y||(y=new r.Z),m||(0,l.Z)(t)?(0,i.Z)(t,e,n,g,v,y):(0,o.Z)(t,e,k,n,g,v,y);if(!(1&n)){var S=Z&&d.call(t,"__wrapped__"),_=x&&d.call(e,"__wrapped__");if(S||_){var j=S?t.value():t,R=_?e.value():e;return y||(y=new r.Z),v(j,R,n,g,y)}}return!!w&&(y||(y=new r.Z),(0,s.Z)(t,e,n,g,v,y))}},52600:function(t,e,n){var r=n(79972),i=n(73095);e.Z=function(t,e,n,o){var s=n.length,a=s,c=!o;if(null==t)return!a;for(t=Object(t);s--;){var u=n[s];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<a;){var l=(u=n[s])[0],f=t[l],h=u[1];if(c&&u[2]){if(void 0===f&&!(l in t))return!1}else{var p=new r.Z;if(o)var d=o(f,h,l,t,e,p);if(!(void 0===d?(0,i.Z)(h,f,3,o,p):d))return!1}}return!0}},9643:function(t,e,n){var r=n(33805),i=n(80174);e.Z=function(t,e){var n=-1,o=(0,i.Z)(t)?Array(t.length):[];return(0,r.Z)(t,function(t,r,i){o[++n]=e(t,r,i)}),o}},21812:function(t,e,n){var r=n(73095),i=n(50002),o=n(5237),s=n(49899),a=n(35588),c=n(50030),u=n(15143);e.Z=function(t,e){return(0,s.Z)(t)&&(0,a.Z)(e)?(0,c.Z)((0,u.Z)(t),e):function(n){var s=(0,i.Z)(n,t);return void 0===s&&s===e?(0,o.Z)(n,t):(0,r.Z)(e,s,3)}}},48217:function(t,e,n){e.Z=function(t){return function(e){return null==e?void 0:e[t]}}},86611:function(t,e,n){var r=n(25903),i=n(64712),o=n(31284);e.Z=function(t,e){return(0,o.Z)((0,i.Z)(t,e,r.Z),t+"")}},28002:function(t,e,n){var r=n(57246),i=n(3770),o=n(26389),s=n(54054),a=n(15143);e.Z=function(t,e,n,c){if(!(0,s.Z)(t))return t;e=(0,i.Z)(e,t);for(var u=-1,l=e.length,f=l-1,h=t;null!=h&&++u<l;){var p=(0,a.Z)(e[u]),d=n;if("__proto__"===p||"constructor"===p||"prototype"===p)break;if(u!=f){var g=h[p];void 0===(d=c?c(g,p,h):void 0)&&(d=(0,s.Z)(g)?g:(0,o.Z)(e[u+1])?[]:{})}(0,r.Z)(h,p,d),h=h[p]}return t}},99263:function(t,e,n){e.Z=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},98517:function(t,e,n){var r=n(3091),i=n(60897),o=n(26222),s=n(64567),a=n(71209),c=n(34484);e.Z=function(t,e,n){var u=-1,l=i.Z,f=t.length,h=!0,p=[],d=p;if(n)h=!1,l=o.Z;else if(f>=200){var g=e?null:(0,a.Z)(t);if(g)return(0,c.Z)(g);h=!1,l=s.Z,d=new r.Z}else d=e?[]:p;t:for(;++u<f;){var v=t[u],y=e?e(v):v;if(v=n||0!==v?v:0,h&&y==y){for(var m=d.length;m--;)if(d[m]===y)continue t;e&&d.push(y),p.push(v)}else!l(d,y,n)&&(d!==p&&d.push(y),p.push(v))}return p}},71209:function(t,e,n){var r=n(68238),i=n(2945),o=n(34484),s=r.Z&&1/(0,o.Z)(new r.Z([,-0]))[1]==1/0?function(t){return new r.Z(t)}:i.Z;e.Z=s},30190:function(t,e,n){var r=n(55236),i=(0,r.Z)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});e.Z=i},49354:function(t,e,n){var r=n(51445),i=n(64712),o=n(31284);e.Z=function(t){return(0,o.Z)((0,i.Z)(t,void 0,r.Z),t+"")}},27848:function(t,e,n){var r=n(21535),i=n(95702),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),(0,r.Z)(s(t),function(e){return o.call(t,e)}))}:i.Z;e.Z=a},59301:function(t,e,n){var r=n(3770),i=n(69102),o=n(40521),s=n(26389),a=n(35870),c=n(15143);e.Z=function(t,e,n){e=(0,r.Z)(e,t);for(var u=-1,l=e.length,f=!1;++u<l;){var h=(0,c.Z)(e[u]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}return f||++u!=l?f:!!(l=null==t?0:t.length)&&(0,a.Z)(l)&&(0,s.Z)(h,l)&&((0,o.Z)(t)||(0,i.Z)(t))}},28631:function(t,e,n){var r=n(79315),i=Object.prototype.hasOwnProperty;e.Z=function(t){var e=this.__data__;if(r.Z){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},26392:function(t,e,n){var r,i=n(2519);var o=(r=/[^.]+$/.exec(i.Z&&i.Z.keys&&i.Z.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.Z=function(t){return!!o&&o in t}},5494:function(t,e,n){var r=n(16449);e.Z=function(t){var e=this.__data__,n=(0,r.Z)(e,t);return n<0?void 0:e[n][1]}},29350:function(t,e,n){var r=n(16449);e.Z=function(t){return(0,r.Z)(this.__data__,t)>-1}},45554:function(t,e,n){var r=n(16449);e.Z=function(t,e){var n=this.__data__,i=(0,r.Z)(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},63724:function(t,e,n){var r=n(64250),i=n(6198),o=n(98133);e.Z=function(){this.size=0,this.__data__={hash:new r.Z,map:new(o.Z||i.Z),string:new r.Z}}},53030:function(t,e,n){var r=n(93309);e.Z=function(t){return(0,r.Z)(this,t).get(t)}},67601:function(t,e,n){var r=n(93309);e.Z=function(t,e){var n=(0,r.Z)(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},74157:function(t,e,n){e.Z=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},50030:function(t,e,n){e.Z=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},94484:function(t,e,n){var r=n(32226);e.Z=function(t){var e=(0,r.Z)(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},79315:function(t,e,n){var r=(0,n(24665).Z)(Object,"create");e.Z=r},26e3:function(t,e,n){var r=(0,n(15683).Z)(Object.keys,Object);e.Z=r},12050:function(t,e,n){var r=Object.prototype.toString;e.Z=function(t){return r.call(t)}},77624:function(t,e,n){e.Z=function(t){return this.__data__.has(t)}},78929:function(t,e,n){var r=n(6198);e.Z=function(){this.__data__=new r.Z,this.size=0}},7019:function(t,e,n){e.Z=function(t){return this.__data__.get(t)}},19354:function(t,e,n){var r=n(14508),i=n(22873),o=n(10479);e.Z=function(t){return(0,i.Z)(t)?(0,o.Z)(t):(0,r.Z)(t)}},15143:function(t,e,n){var r=n(89221),i=1/0;e.Z=function(t){if("string"==typeof t||(0,r.Z)(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},73117:function(t,e,n){var r=Function.prototype.toString;e.Z=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},68723:function(t,e,n){var r=/\s/;e.Z=function(t){for(var e=t.length;e--&&r.test(t.charAt(e)););return e}},86938:function(t,e,n){e.Z=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}},45641:function(t,e,n){var r=n(3489),i=n(45327),o=n(1586),s=n(98355);e.Z=function(t,e,n){t=(0,s.Z)(t),e=(0,i.Z)(e);var a=t.length,c=n=void 0===n?a:(0,r.Z)((0,o.Z)(n),0,a);return(n-=e.length)>=0&&t.slice(n,c)==e}},45307:function(t,e,n){var r=n(30190),i=n(98355),o=/[&<>"']/g,s=RegExp(o.source);e.Z=function(t){return(t=(0,i.Z)(t))&&s.test(t)?t.replace(o,r.Z):t}},52136:function(t,e,n){var r=n(21535),i=n(84457),o=n(68151),s=n(40521);e.Z=function(t,e){return((0,s.Z)(t)?r.Z:i.Z)(t,(0,o.Z)(e,3))}},46985:function(t,e,n){var r=n(76651),i=n(68151),o=n(1586),s=Math.max;e.Z=function(t,e,n){var a=null==t?0:t.length;if(!a)return -1;var c=null==n?0:(0,o.Z)(n);return c<0&&(c=s(a+c,0)),(0,r.Z)(t,(0,i.Z)(e,3),c)}},86395:function(t,e,n){var r=n(59535),i=n(55037),o=Object.prototype.hasOwnProperty,s=(0,i.Z)(function(t,e,n){o.call(t,n)?t[n].push(e):(0,r.Z)(t,n,[e])});e.Z=s},5237:function(t,e,n){var r=n(74865),i=n(59301);e.Z=function(t,e){return null!=t&&(0,i.Z)(t,e,r.Z)}},80174:function(t,e,n){var r=n(3820),i=n(35870);e.Z=function(t){return null!=t&&(0,i.Z)(t.length)&&!(0,r.Z)(t)}},35870:function(t,e,n){e.Z=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},94388:function(t,e,n){e.Z=function(t){return null!=t&&"object"==typeof t}},24682:function(t,e,n){var r=n(82884),i=n(40521),o=n(94388);e.Z=function(t){return"string"==typeof t||!(0,i.Z)(t)&&(0,o.Z)(t)&&"[object String]"==(0,r.Z)(t)}},24837:function(t,e,n){var r=n(5888),i=n(88763),o=n(68151);e.Z=function(t,e){return t&&t.length?(0,r.Z)(t,(0,o.Z)(e,2),i.Z):void 0}},78398:function(t,e,n){var r=n(60864),i=n(40521);e.Z=function(t,e,n,o){return null==t?[]:(!(0,i.Z)(e)&&(e=null==e?[]:[e]),n=o?void 0:n,!(0,i.Z)(n)&&(n=null==n?[]:[n]),(0,r.Z)(t,e,n))}},96883:function(t,e,n){var r=n(3489),i=n(45327),o=n(1586),s=n(98355);e.Z=function(t,e,n){return t=(0,s.Z)(t),n=null==n?0:(0,r.Z)((0,o.Z)(n),0,t.length),e=(0,i.Z)(e),t.slice(n,n+e.length)==e}},20942:function(t,e,n){var r=n(68151),i=n(71745);e.Z=function(t,e){return t&&t.length?(0,i.Z)(t,(0,r.Z)(e,2)):0}},1586:function(t,e,n){var r=n(73857);e.Z=function(t){var e=(0,r.Z)(t),n=e%1;return e==e?n?e-n:e:0}},79555:function(t,e,n){var r=n(26238),i=n(54054),o=n(89221),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.Z=function(t){if("number"==typeof t)return t;if((0,o.Z)(t))return s;if((0,i.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,i.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=(0,r.Z)(t);var n=c.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):a.test(t)?s:+t}},42689:function(t,e,n){var r=(0,n(35857).Z)("toUpperCase");e.Z=r},69153:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(89735);function i(t){let e=this;e.parser=function(n){return(0,r.V)(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}},99524:function(t,e,n){n.d(e,{io:function(){return a}});var r=n(15182),i=n(23620),o=n(89165);n(11559);let s={};function a(t,e){let n;"object"==typeof t&&(e=t,t=void 0),e=e||{};let o=(0,r.H)(t,e.path||"/socket.io"),a=o.source,c=o.id,u=o.path,l=s[c]&&u in s[c].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||l?n=new i.d(a,e):(!s[c]&&(s[c]=new i.d(a,e)),n=s[c]),o.query&&!e.query&&(e.query=o.queryKey),n.socket(o.path,e)}Object.assign(a,{Manager:i.d,Socket:o.s,io:a,connect:a})},23620:function(t,e,n){n.d(e,{d:function(){return u}});var r=n(21618),i=n(89165),o=n(11559),s=n(51278),a=n(89130),c=n(66403);class u extends c.Q{constructor(t,e){var n;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,(0,r.Vq)(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=e.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new a.V({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;let i=e.parser||o;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new r.sk(this.uri,this.opts);let e=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let i=(0,s.on)(e,"open",function(){n.onopen(),t&&t()}),o=(0,s.on)(e,"error",e=>{n.cleanup(),n._readyState="closed",this.emitReserved("error",e),t?t(e):n.maybeReconnectOnOpen()});if(!1!==this._timeout){let t=this._timeout;0===t&&i();let n=this.setTimeoutFn(()=>{i(),e.close(),e.emit("error",Error("timeout"))},t);this.opts.autoUnref&&n.unref(),this.subs.push(function(){clearTimeout(n)})}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push((0,s.on)(t,"ping",this.onping.bind(this)),(0,s.on)(t,"data",this.ondata.bind(this)),(0,s.on)(t,"error",this.onerror.bind(this)),(0,s.on)(t,"close",this.onclose.bind(this)),(0,s.on)(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}}ondecoded(t){(0,r.Y3)(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new i.s(this,t,e),this.nsps[t]=n),n}_destroy(t){for(let t of Object.keys(this.nsps))if(this.nsps[t].active)return;this._close()}_packet(t){let e=this.encoder.encode(t);for(let n=0;n<e.length;n++)this.engine.write(e[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let e=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{if(!t.skipReconnect)this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()})},e);this.opts.autoUnref&&n.unref(),this.subs.push(function(){clearTimeout(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}},89165:function(t,e,n){n.d(e,{s:function(){return a}});var r=n(11559),i=n(51278),o=n(66403);let s=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a extends o.Q{constructor(t,e,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[(0,i.on)(t,"open",this.onopen.bind(this)),(0,i.on)(t,"packet",this.onpacket.bind(this)),(0,i.on)(t,"error",this.onerror.bind(this)),(0,i.on)(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),!this.io._reconnecting&&this.io.open(),"open"===this.io._readyState&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){if(s.hasOwnProperty(t))throw Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;let n={type:r.PacketType.EVENT,data:e};if(n.options={},n.options.compress=!1!==this.flags.compress,"function"==typeof e[e.length-1]){let t=this.ids++,r=e.pop();this._registerAckCallback(t,r),n.id=t}let i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(t,e){var n;let r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r){this.acks[t]=e;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let e=0;e<this.sendBuffer.length;e++)this.sendBuffer[e].id===t&&this.sendBuffer.splice(e,1);e.call(this,Error("operation has timed out"))},r);this.acks[t]=(...t)=>{this.io.clearTimeoutFn(i),e.apply(this,[null,...t])}}emitWithAck(t,...e){let n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise((r,i)=>{e.push((t,e)=>n?t?i(t):r(e):r(t)),this.emit(t,...e)})}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((t,...r)=>{if(n===this._queue[0])return null!==t?n.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...r)),n.pending=!1,this._drainQueue()}),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;let e=this._queue[0];if(!e.pending||!!t)e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args)}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:r.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){!this.connected&&this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e)}onpacket(t){if(!(t.nsp!==this.nsp))switch(t.type){case r.PacketType.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case r.PacketType.EVENT:case r.PacketType.BINARY_EVENT:this.onevent(t);break;case r.PacketType.ACK:case r.PacketType.BINARY_ACK:this.onack(t);break;case r.PacketType.DISCONNECT:this.ondisconnect();break;case r.PacketType.CONNECT_ERROR:this.destroy();let e=Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){let e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length)for(let e of this._anyListeners.slice())e.apply(this,t);super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){let e=this,n=!1;return function(...i){!n&&(n=!0,e.packet({type:r.PacketType.ACK,id:t,data:i}))}}onack(t){let e=this.acks[t.id];"function"==typeof e&&(e.apply(this,t.data),delete this.acks[t.id])}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:r.PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let e=this._anyListeners;for(let n=0;n<e.length;n++)if(t===e[n]){e.splice(n,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let e=this._anyOutgoingListeners;for(let n=0;n<e.length;n++)if(t===e[n]){e.splice(n,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let e of this._anyOutgoingListeners.slice())e.apply(this,t.data)}}},67023:function(t,e,n){n.d(e,{O:function(){return function t(e,n){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(t(e[n]))return!0;return!1}if(c(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return t(e.toJSON(),!0);for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return!0;return!1}},h:function(){return c}});let r="function"==typeof ArrayBuffer,i=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,o=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);function c(t){return r&&(t instanceof ArrayBuffer||i(t))||s&&t instanceof Blob||a&&t instanceof File}}}]);